due PWm code fixed