duecontroller updated with PWM and MM