PWM real and calculated freq
Posted: Thu Oct 01, 2020 8:01 am
Hello
PWM real and calculated frequency question.
When I setup (for Nano)
Chn 1, Timer 0 as suggested for freq: 30kHz
by calculation section:
Period - 81
Prescale - 8
FC8 shows - 30kHz
The scope shows: 3.906kHz
------------------------------------
When I change the Period to 111 and Prescale to 1
(photo below)
the freq is 31.25kHz
---------------------------------
PS The scope probe is 1x
---------------------------------
What do I do wrong?
-------------------------------
PWM real and calculated frequency question.
When I setup (for Nano)
Chn 1, Timer 0 as suggested for freq: 30kHz
by calculation section:
Period - 81
Prescale - 8
FC8 shows - 30kHz
The scope shows: 3.906kHz
------------------------------------
When I change the Period to 111 and Prescale to 1
(photo below)
the freq is 31.25kHz
---------------------------------
PS The scope probe is 1x
---------------------------------
What do I do wrong?
-------------------------------