- This topic has 1 reply, 2 voices, and was last updated 11 years, 6 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › PWM
hey…am trying to vary the intensity/speed of a led/motor.. it seems i need to be using PWM..the only difference between an led and motor would be the use of a transistor.. how ever, can any one of you explain the basic logic of generating the PWM signal..to be precise, about the prescalar to be used as well as the output compare resgister..am using an atmega328.. Thank you
Hi Shrikanth,
The datasheet should have equations relating the period, duty cycle and the prescalar to be used to get the required waveform. Kindly go through them in detail