English
Language : 

PIC16LF720_11 Datasheet, PDF (117/244 Pages) Microchip Technology – 20-Pin Flash Microcontrollers with nanoWatt XLP Technology
PIC16(L)F720/721
by clearing the associated TRIS bit(s).
Note:
In order to send a complete duty cycle and
period on the first PWM output, the above
steps must be included in the setup
sequence. If it is not critical to start with a
complete PWM signal on the first output,
then step 6 may be ignored.
TABLE 15-6: SUMMARY OF REGISTERS ASSOCIATED WITH PWM
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
POR, BOR
ANSELB
—
—
ANSB5
ANSB4
—
—
—
—
--11 ----
CCP1CON
—
—
DC1
B1
CCP1M3 CCP1M2 CCP1M1 CCP1M0 --00 0000
CCPR1L
Capture/Compare/PWM Register Low Byte
xxxx xxxx
CCPR1H
Capture/Compare/PWM Register High Byte
xxxx xxxx
PR2
Timer2 module Period Register
1111 1111
T2CON
—
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000
TMR2
Timer2 module Register
0000 0000
TRISB
TRISB7 TRISB6 TRISB5 TRISB4
—
—
—
—
1111 ----
TRISC
TRISC7 TRISC6 TRISC5 TRISC4 TRISC3 TRISC2 TRISC1 TRISC0 1111 1111
Legend: - = Unimplemented locations, read as ‘0’, u = unchanged, x = unknown. Shaded cells are not used by the PWM.
Value on
all other
Resets
--11 ----
--00 0000
uuuu uuuu
uuuu uuuu
1111 1111
-000 0000
0000 0000
1111 ----
1111 1111
 2011 Microchip Technology Inc.
Preliminary
DS41430B-page 117