Timer interrupts - Frequency, PWM and Duty Cycle
i have been reading many tutorials , posts on timers , still little confused.
i want produce square wave have control of both frequency , duty cycle of square wave.
i understand prescaler etc. ocr1a etc. seems used duty cycle , adjusting exact frequency prescaler values.
could explain how done. appreciate snippet of code if possible.
thanks
i want produce square wave have control of both frequency , duty cycle of square wave.
i understand prescaler etc. ocr1a etc. seems used duty cycle , adjusting exact frequency prescaler values.
could explain how done. appreciate snippet of code if possible.
thanks
have read atmega datasheet whatever processor using? - uno uses atmega328. contains lot of information.
you might @ arduino code analogwrite(). presumably can want modifying code.
...r
you might @ arduino code analogwrite(). presumably can want modifying code.
...r
Arduino Forum > Using Arduino > Programming Questions > Timer interrupts - Frequency, PWM and Duty Cycle
arduino
Comments
Post a Comment