Datasheet
PIC16F72X/PIC16LF72X
DS41341E-page 294 © 2009 Microchip Technology Inc.
Capture Module. See Capture/Compare/PWM (CCP)
Capture/Compare/PWM (CCP).........................................135
Associated registers w/ Capture ...............................138
Associated registers w/ Compare .............................140
Associated registers w/ PWM ...................................144
Capture Mode ...........................................................137
CCPx Pin Configuration............................................137
Compare Mode .........................................................139
CCPx Pin Configuration....................................139
Software Interrupt Mode ........................... 137, 139
Special Event Trigger........................................139
Timer1 Mode Selection.............................137, 139
Interaction of Two CCP Modules (table) ...................135
Prescaler...................................................................137
PWM Mode ...............................................................141
Duty Cycle.........................................................142
Effects of Reset.................................................143
Example PWM Frequencies and
Resolutions, 20 MHZ ................................143
Example PWM Frequencies and
Resolutions, 8 MHz...................................143
Operation in Sleep Mode ..................................143
Setup for Operation...........................................143
System Clock Frequency Changes................... 143
PWM Period..............................................................142
Setup for PWM Operation.........................................143
Timer Resources.......................................................135
CCP. See Capture/Compare/PWM (CCP)
CCP1CON Register ............................................................24
CCP2CON Register ............................................................24
CCPR1H Register...............................................................24
CCPR1L Register................................................................24
CCPR2H Register...............................................................24
CCPR2L Register................................................................24
CCPxCON Register ..........................................................136
CKE bit......................................................................175, 187
CKP bit......................................................................174, 186
Clock Sources
External Modes ...........................................................93
EC.......................................................................93
HS.......................................................................93
LP........................................................................93
OST.....................................................................93
RC.......................................................................94
XT .......................................................................93
Code Examples
A/D Conversion.........................................................103
Call of a Subroutine in Page 1 from Page 0................30
Changing Between Capture Prescalers....................137
Indirect Addressing .....................................................31
Initializing PORTA.......................................................54
Initializing PORTB.......................................................62
Initializing PORTC.......................................................73
Initializing PORTD.......................................................80
Initializing PORTE.......................................................84
Loading the SSPBUF (SSPSR) Register..................170
Saving W, STATUS and PCLATH Registers
in RAM ................................................................45
Comparators
C2OUT as T1 Gate...................................................118
Compare Module. See Capture/Compare/PWM (CCP)
CONFIG1 Register........................................................95, 96
CPSCON0 Register ..........................................................133
CPSCON1 Register ..........................................................134
Customer Change Notification Service ............................. 299
Customer Notification Service .......................................... 299
Customer Support............................................................. 299
D
D/A bit............................................................................... 187
Data Memory ...................................................................... 20
Data/Address bit (D/A
)...................................................... 187
DC and AC Characteristics............................................... 241
DC Characteristics
Extended and Industrial............................................ 218
Industrial and Extended............................................ 212
Development Support....................................................... 207
Device Configuration .......................................................... 95
Code Protection.......................................................... 97
Configuration Word..................................................... 95
User ID ....................................................................... 97
Device Overview................................................................. 13
E
Effects of Reset
PWM mode............................................................... 143
Electrical Specifications.................................................... 211
Enhanced Capture/Compare/PWM (ECCP)
Specifications ........................................................... 230
Errata .................................................................................. 12
F
Firmware Instructions ....................................................... 197
Fixed Voltage Reference. See FVR
FSR Register ................................................................ 24, 25
Fuses. See Configuration Bits
FVR................................................................................... 109
FVRCON Register ...................................................... 25, 109
G
General Purpose Register File ........................................... 20
I
I
2
C Mode
Associated Registers................................................ 188
INDF Register............................................................... 24, 25
Indirect Addressing, INDF and FSR Registers ................... 31
Instruction Format............................................................. 197
Instruction Set................................................................... 197
ADDLW..................................................................... 199
ADDWF..................................................................... 199
ANDLW..................................................................... 199
ANDWF..................................................................... 199
MOVF ....................................................................... 202
BCF .......................................................................... 199
BSF........................................................................... 199
BTFSC...................................................................... 199
BTFSS...................................................................... 200
CALL......................................................................... 200
CLRF ........................................................................ 200
CLRW ....................................................................... 200
CLRWDT .................................................................. 200
COMF ....................................................................... 200
DECF........................................................................ 200
DECFSZ ................................................................... 201
GOTO ....................................................................... 201
INCF ......................................................................... 201
INCFSZ..................................................................... 201
IORLW...................................................................... 201
IORWF...................................................................... 201
MOVLW.................................................................... 202