generate two pwm signal with 180 degree shift phase

Status
Not open for further replies.

abdoalghareeb

Member level 5
Joined
Feb 5, 2010
Messages
84
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,981
I use ATmega 8 microcontroller and timer1
I want to generate two PWM square wave on OC1A & OC1B pins, but the phase between the waves must be 180 degrees
The frequency for both waves = 50 Hz
The duty cycle for both waves = 30 %

 

OK, and the problem is... ?

What have you tried?
 

what are the control registers values of timer1 for generate that waves
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…