Datasheet
PIC18(L)F1XK22
DS41365E-page 392 2009-2011 Microchip Technology Inc.
Prescaler................................................................... 113
Software Interrupt ..................................................... 112
Timer1/Timer3 Mode Selection ................................. 112
Capture/Compare/PWM (CCP)
Capture Mode. See Capture.
CCP Mode and Timer Resources ............................. 112
Compare Mode. See Compare.
CCP1CON Register .......................................................... 111
Clock Accuracy with Asynchronous Operation ................. 184
Clock Sources
Associated registers.................................................... 24
External Modes
HS ....................................................................... 15
LP........................................................................ 15
XT ....................................................................... 15
CLRF.................................................................................289
CLRWDT........................................................................... 289
CM1CON0 Register .......................................................... 223
CM2CON0 Register .......................................................... 224
CM2CON1 Register .......................................................... 227
Code Examples
16 x 16 Signed Multiply Routine ................................. 62
16 x 16 Unsigned Multiply Routine ............................. 62
8 x 8 Signed Multiply Routine ..................................... 61
8 x 8 Unsigned Multiply Routine ................................. 61
A/D Conversion......................................................... 208
Changing Between Capture Prescalers .................... 113
Clearing RAM Using Indirect Addressing.................... 41
Computed GOTO Using an Offset Value.................... 28
Data EEPROM Read .................................................. 59
Data EEPROM Refresh Routine................................. 60
Data EEPROM Write .................................................. 59
Erasing a Flash Program Memory Row ...................... 52
Fast Register Stack.....................................................28
Implementing a Timer1 Real-Time Clock.................. 104
Initializing PORTA....................................................... 78
Initializing PORTB....................................................... 83
Initializing PORTC.......................................................88
Loading the SSPBUF (SSPSR) Register.................. 136
Reading a Flash Program Memory Word ................... 51
Saving Status, WREG and BSR Registers in RAM .... 75
Writing to Flash Program Memory ........................54–55
Code Protection ................................................................ 257
COMF................................................................................ 290
Comparator
Associated Registers ................................................ 228
Operation ..................................................................217
Operation During Sleep ............................................ 222
Response Time ......................................................... 220
Comparator Module .......................................................... 217
C1 Output State Versus Input Conditions ................. 220
Comparator Voltage Reference (CV
REF)
Associated Registers ................................................ 243
Effects of a Reset.............................................. 222, 239
Operation During Sleep ............................................ 239
Overview ................................................................... 239
Comparator Voltage Reference (CV
REF)
Response Time ......................................................... 220
Comparators
Effects of a Reset......................................................222
Compare (CCP Module).................................................... 114
CCPRx Register........................................................ 114
Pin Configuration ...................................................... 114
Software Interrupt ..................................................... 114
Special Event Trigger........................................ 110, 114
Timer1/Timer3 Mode Selection................................. 114
Computed GOTO................................................................ 28
CONFIG1H Register......................................................... 259
CONFIG2H Register......................................................... 261
CONFIG2L Register ......................................................... 260
CONFIG3H Register......................................................... 262
CONFIG4L Register ......................................................... 262
CONFIG5H Register......................................................... 263
CONFIG5L Register ......................................................... 263
CONFIG6H Register......................................................... 264
CONFIG6L Register ......................................................... 264
CONFIG7H Register......................................................... 265
CONFIG7L Register ......................................................... 265
Configuration Bits ............................................................. 258
Configuration Register Protection..................................... 272
Context Saving During Interrupts........................................ 75
CPFSEQ........................................................................... 290
CPFSGT ........................................................................... 291
CPFSLT ............................................................................ 291
Customer Change Notification Service............................. 401
Customer Notification Service .......................................... 401
Customer Support............................................................. 401
CV
REF Voltage Reference Specifications ......................... 355
D
Data Addressing Modes ..................................................... 41
Comparing Addressing Modes with the
Extended Instruction Set Enabled ...................... 44
Direct .......................................................................... 41
Indexed Literal Offset ................................................. 43
Instructions Affected ........................................... 43
Indirect ........................................................................ 41
Inherent and Literal..................................................... 41
Data EEPROM
Code Protection ........................................................ 272
Data EEPROM Memory...................................................... 57
Associated Registers .................................................. 60
EEADR Register......................................................... 57
EECON1 and EECON2 Registers .............................. 57
Operation During Code-Protect .................................. 60
Protection Against Spurious Write .............................. 60
Reading ...................................................................... 59
Using .......................................................................... 60
Write Verify ................................................................. 59
Writing ........................................................................ 59
Data Memory ...................................................................... 31
Access Bank............................................................... 35
Access RAM ............................................................... 31
and the Extended Instruction Set ............................... 43
Bank Select Register (BSR) ....................................... 31
General Purpose Registers ........................................ 35
Map for PIC18F13K50/PIC18LF13K50 ...................... 32
Map for PIC18F14K50/PIC18LF14K50 ...................... 33
Special Function Registers ......................................... 35
DAW ................................................................................. 292
DC and AC Characteristics
Graphs and Tables ................................................... 363
DC Characteristics
Extended and Industrial............................................ 341
Industrial and Extended............................................ 331
DCFSNZ ........................................................................... 293
DECF ................................................................................ 292
DECFSZ ........................................................................... 293
Development Support....................................................... 323
Device Differences............................................................ 389
Device Overview................................................................... 7