CTC Mode Timer 0 Atmega328p
can any one explain to me how i get OCR = 250
i need delay for 0.5 second and prescaler 1024 and
F_CPU =1MHZ i want to use it with interrupt and this is timer0 but in...

servo motor controlling with atmega16 Does he apply the same role here and how he get 600ms
The timer will count from 0 to ICR1(TOP Value). The formula for PWM frequency and calculation for
TOP value is given...

Thursday, 16 May 2019 - 12:27

servo motor controlling with atmega16 i want to know i take the min. range and divide it over 180 or not as in this equation you reverse 180/125 = 1.44

servo motor controlling with atmega16 the value of ocr will be at 0 degree =125
ocr at 90 will be =187
180 will be =250
but i do not know the ocr for 45 degree and 135 can you tell me a formula to calculate them

Thursday, 16 May 2019 - 10:46

servo motor controlling with atmega16 i use pre-scaler 64 when i calculate ICR1=2499 so i divided it on 20 and 10 to get the range of degrees or not

Thursday, 16 May 2019 - 10:18

servo motor controlling with atmega16 can you get more explanation for this example please
i have servo motor and a controller with 8MHZ to generate 50HZ using timer1 make motor rotate 0 , 90 ,180 degrees can you tell...

Thursday, 16 May 2019 - 09:40

servo motor controlling with atmega16 stylediva wrote:
kindly tell me if I want to take steps of different angles then how the value of OCR1 should be set?

can any one explain to me how i get OCR = 250 i need delay for 0.5 second and prescaler 1024 and F_CPU =1MHZ i want to use it with interrupt and this is timer0 but in...

toggle a led each 5 US if you have frequency 10MHZ using compare match mode how to calculate OCR0

It is a new question

Does he apply the same role here and how he get 600ms The timer will count from 0 to ICR1(TOP Value). The formula for PWM frequency and calculation for TOP value is given...

i want to know i take the min. range and divide it over 180 or not as in this equation you reverse 180/125 = 1.44

so you mean that this depend on the prescaler and the frequency if they change the equation change

the value of ocr will be at 0 degree =125 ocr at 90 will be =187 180 will be =250 but i do not know the ocr for 45 degree and 135 can you tell me a formula to calculate them

i use pre-scaler 64 when i calculate ICR1=2499 so i divided it on 20 and 10 to get the range of degrees or not

can you get more explanation for this example please i have servo motor and a controller with 8MHZ to generate 50HZ using timer1 make motor rotate 0 , 90 ,180 degrees can you tell...

stylediva wrote: kindly tell me if I want to take steps of different angles then how the value of OCR1 should be set?

how i calculate OCR1A value