Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top