PIC12F1516 MICROCHIP [Microchip Technology], PIC12F1516 Datasheet - Page 182

no-image

PIC12F1516

Manufacturer Part Number
PIC12F1516
Description
28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC16(L)F1516/7/8/9
20.3.6
The resolution determines the number of available duty
cycles for a given period. For example, a 10-bit resolution
will result in 1024 discrete duty cycles, whereas an 8-bit
resolution will result in 256 discrete duty cycles.
The maximum PWM resolution is 10 bits when PR2 is
255. The resolution is a function of the PR2 register
value as shown by
TABLE 20-2:
TABLE 20-3:
DS41452B-page 182
Timer Prescale (1, 4, 16)
PR2 Value
Maximum Resolution (bits)
Timer Prescale (1, 4, 16)
PR2 Value
Maximum Resolution (bits)
PWM Frequency
PWM Frequency
PWM RESOLUTION
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS (F
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS (F
Equation
20-4.
1.22 kHz
1.22 kHz
0xFF
0x65
16
10
16
8
4.88 kHz
4.90 kHz
0xFF
Preliminary
0x65
10
4
4
8
19.53 kHz
19.61 kHz
EQUATION 20-4:
0xFF
Note:
0x65
10
1
1
8
Resolution
If the pulse width value is greater than the
period the assigned PWM pin(s) will
remain unchanged.
78.12 kHz
76.92 kHz
0x3F
0x19
1
8
1
6
OSC
OSC
=
PWM RESOLUTION
log
----------------------------------------- - bits
 2011 Microchip Technology Inc.
= 20 MHz)
= 8 MHz)
4 PR2
153.85 kHz
log
156.3 kHz
0x0C
0x1F
2  
1
7
1
5
+
1
208.3 kHz
200.0 kHz
0x17
0x09
6.6
1
1
5

Related parts for PIC12F1516