[AVR] PWM wave generation........

Status
Not open for further replies.

debajyoty.roy

Newbie level 5
Joined
Aug 22, 2013
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
Calcutta, India, India
Activity points
64
hi guys,i have a problem regarding pwm wave generation.i want to generate a 770hz pwm with 10%duty cycle on timer 2(atmega8) ,crystl is 4MHZ.so my TCNT value s 0x5D,and OCR is 0x6D according to my calculation..bt proteus shows generated signal is 200hz.so pls help me finding the problem.thnx...
 

Did you set your timer prescalar correctly? Did you check your compare flags for errors?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…