10-5
PULSE-WIDTH MODULATOR
where:
PWM_PERIOD = 8-bit value to load into the PWM_PERIOD register
F
XTAL
1
= input frequency on XTAL1 pin, in MHz
T
PWM
= output period on the PWM output pins, in µs
F
PWM
= output frequency on the PWM output pins, in MHz
Table 10-3. PWM Output Frequencies (F
PWM
)
PWM_PERIOD
XTAL1 Frequency (F
XTAL
1
)
8 MHz 10 MHz 16 MHz
00H 15.6 kHz 19.5 kHz 31.2 kHz
0FH 976.6 Hz 1220.7 Hz 1953.1 Hz
1FH 488.3 Hz 610.3 Hz 976.6 Hz
2FH 325.5 Hz 406.9 Hz 651.0 Hz
3FH 244.1 Hz 395.2 Hz 488.3 Hz
4FH 195.3 Hz 244.1 Hz 390.6 Hz
5FH 162.8 Hz 203.4 Hz 325.5 Hz
6FH 139.5 Hz 174.4 Hz 279.0 Hz
7FH 122.1 Hz 152.6 Hz 244.1 Hz
8FH 108.5 Hz 135.6 Hz 217.0 Hz
9FH 97.7 Hz 122.1 Hz 195.3 Hz
AFH 88.8 Hz 111.0 Hz 177.6 Hz
BFH 81.4 Hz 101.7 Hz 162.8 Hz
CFH 75.1 Hz 93.9 Hz 150.2 Hz
DFH 69.7 Hz 87.2 Hz 139.5 Hz
EFH 65.1 Hz 81.4 Hz 130.2 Hz
FFH 61.0 Hz 76.0 Hz 122.0 Hz