Note that timer 0 is the one on which rely all time functions in Arduino: i.e., if you change this timer, function like delay() or millis() will continue to work but at a different timescale (quicker or slower!!!) Prescaler = 3 -> PWM frequency is 980 Hz (default value) Prescaler = 2 -> PWM frequency is 7800 Hz Prescaler = 6 -> PWM frequency is PWM frequency is 62000 Hz Prescaler = 3 -> PWM frequency is 490 Hz (default value) Prescaler = 2 -> PWM frequency is 4000 Hz Prescaler = 1 -> PWM frequency is 31000 Hz I registered those values on all PWM pins, changing the value of prescaler (the only exception are pins 13 and 14, see later):
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |