English
Language : 

PIC18F1XK22 Datasheet, PDF (376/388 Pages) Microchip Technology – 20-Pin Flash Microcontrollers with nanoWatt XLP Technology
PIC18F1XK22/LF1XK22
Prescaler ................................................................... 115
Software Interrupt ..................................................... 115
Timer1/Timer3 Mode Selection ................................. 115
Capture/Compare/PWM (CCP)
Capture Mode. See Capture.
CCP Mode and Timer Resources ............................. 114
Compare Mode. See Compare.
CCP1CON Register .......................................................... 113
Clock Accuracy with Asynchronous Operation ................. 188
Clock Sources
Associated registers.................................................... 26
External Modes
HS ....................................................................... 17
LP........................................................................ 17
XT ....................................................................... 17
CLRF................................................................................. 293
CLRWDT........................................................................... 293
CM1CON0 Register .......................................................... 227
CM2CON0 Register .......................................................... 228
CM2CON1 Register .......................................................... 231
Code Examples
16 x 16 Signed Multiply Routine ................................. 64
16 x 16 Unsigned Multiply Routine ............................. 64
8 x 8 Signed Multiply Routine ..................................... 63
8 x 8 Unsigned Multiply Routine ................................. 63
A/D Conversion ......................................................... 212
Changing Between Capture Prescalers .................... 115
Clearing RAM Using Indirect Addressing.................... 43
Computed GOTO Using an Offset Value .................... 30
Data EEPROM Read .................................................. 61
Data EEPROM Refresh Routine ................................. 62
Data EEPROM Write .................................................. 61
Erasing a Flash Program Memory Row ...................... 55
Fast Register Stack..................................................... 30
Implementing a Timer1 Real-Time Clock.................. 106
Initializing PORTA ....................................................... 80
Initializing PORTB ....................................................... 85
Initializing PORTC....................................................... 90
Loading the SSPBUF (SSPSR) Register .................. 138
Reading a Flash Program Memory Word ................... 54
Saving Status, WREG and BSR Registers in RAM .... 77
Writing to Flash Program Memory ........................ 57–58
Code Protection ................................................................ 261
COMF................................................................................ 294
Comparator
Associated Registers ................................................ 232
Operation .................................................................. 221
Operation During Sleep ............................................ 226
Response Time ......................................................... 224
Comparator Module .......................................................... 221
C1 Output State Versus Input Conditions ................. 224
Comparator Specifications ................................................ 358
Comparator Voltage Reference (CVREF)
Associated Registers ................................................ 247
Effects of a Reset.............................................. 226, 243
Operation During Sleep ............................................ 243
Overview ................................................................... 243
Comparator Voltage Reference (CVREF)
Response Time ......................................................... 224
Comparators
Effects of a Reset...................................................... 226
Compare (CCP Module).................................................... 116
CCPRx Register........................................................ 116
Pin Configuration ...................................................... 116
Software Interrupt ..................................................... 116
Special Event Trigger ....................................... 112, 116
Timer1/Timer3 Mode Selection................................. 116
Computed GOTO................................................................ 30
CONFIG1H Register......................................................... 263
CONFIG2H Register......................................................... 265
CONFIG2L Register ......................................................... 264
CONFIG3H Register......................................................... 266
CONFIG4L Register ......................................................... 266
CONFIG5H Register......................................................... 267
CONFIG5L Register ......................................................... 267
CONFIG6H Register......................................................... 268
CONFIG6L Register ......................................................... 268
CONFIG7H Register......................................................... 269
CONFIG7L Register ......................................................... 269
Configuration Bits ............................................................. 262
Configuration Register Protection..................................... 276
Context Saving During Interrupts........................................ 77
CPFSEQ ........................................................................... 294
CPFSGT ........................................................................... 295
CPFSLT ............................................................................ 295
Customer Change Notification Service............................. 385
Customer Notification Service .......................................... 385
Customer Support............................................................. 385
CVREF Voltage Reference Specifications ......................... 358
D
Data Addressing Modes ..................................................... 43
Comparing Addressing Modes with the
Extended Instruction Set Enabled ...................... 46
Direct .......................................................................... 43
Indexed Literal Offset ................................................. 45
Instructions Affected ........................................... 45
Indirect ........................................................................ 43
Inherent and Literal..................................................... 43
Data EEPROM
Code Protection ........................................................ 276
Data EEPROM Memory...................................................... 59
Associated Registers .................................................. 62
EEADR Register ......................................................... 59
EECON1 and EECON2 Registers .............................. 59
Operation During Code-Protect .................................. 62
Protection Against Spurious Write .............................. 62
Reading ...................................................................... 61
Using .......................................................................... 62
Write Verify ................................................................. 61
Writing ........................................................................ 61
Data Memory ...................................................................... 33
Access Bank ............................................................... 37
Access RAM ............................................................... 33
and the Extended Instruction Set ............................... 45
Bank Select Register (BSR) ....................................... 33
General Purpose Registers ........................................ 37
Map for PIC18F13K50/PIC18LF13K50 ...................... 34
Map for PIC18F14K50/PIC18LF14K50 ...................... 35
Special Function Registers ......................................... 37
DAW ................................................................................. 296
DC and AC Characteristics
Graphs and Tables ................................................... 365
DC Characteristics
Extended and Industrial ............................................ 345
Industrial and Extended ............................................ 335
DCFSNZ ........................................................................... 297
DECF ................................................................................ 296
DECFSZ ........................................................................... 297
Development Support ....................................................... 327
Device Differences............................................................ 373
DS41365D-page 376
Preliminary
 2010 Microchip Technology Inc.