How do I actually turn on PD6 when PWM is enabled(on ATMega88PA)? Once I have the WGM and COMM bits set to select the type of PWM and which pin it is enabled for, lets say I want to start the motor, do I simply enable the CSxx bits and to stop the motor (turn the pin completely off) clear them? Or do I continue to use PORTD |= (1<<6); and PORTD &= ~(1<<6); to turn the motor on and off?
Joined: Tue. Feb 24, 2009
Posts: 139 View posts