- This topic has 3 replies, 2 voices, and was last updated 11 years, 9 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › Generate 50hz frequency wave to control servo motor
hey, i am working on remote contrlled surveillance helicopter. To control sevo motors, i am using Phase correct PWM mode and i need 50 hz output wave frequency..is this possible using 6 or 8 MHz crystal.??
thanks in advance.
Hi,
It depends on the specifications of the microcontroller you are using. Please mention the details of the microcontroller in your project also.
I am using atmega328 having 28 pins. I know it can be done using 6.5 Mhz crystal easily, but unfortunately i dont have. so i want to know if it could be done with 6 or 8 Mhz crystal by choosing any appropriate mode in phase correct PWM or prescalar for timer0.
Thank u very much for ur attention.
Hi Kalpana,
If it works with 6.5Mhz crystal then ofcourse you can do the same with 4Mhz, 6Mhz crystal and 8 Mhz crystal by appropriately setting the timer registers.
Suggest you to use 4Mhz or 6Mhz crystal since you need long time period (20ms).