English
Language : 

PIC18F-LF1XK50 Datasheet, PDF (408/420 Pages) Microchip Technology – 20-Pin USB Flash Microcontrollers
PIC18F/LF1XK50
C
C Compilers
MPLAB C18 ............................................................. 360
CALL ................................................................................ 324
CALLW ............................................................................. 353
Capture (CCP Module) ..................................................... 119
CCP Pin Configuration ............................................. 119
CCPRxH:CCPRxL Registers ................................... 119
Prescaler .................................................................. 119
Software Interrupt .................................................... 119
Timer1/Timer3 Mode Selection ................................ 119
Capture/Compare/PWM (CCP)
Capture Mode. See Capture.
CCP Mode and Timer Resources ............................ 118
Compare Mode. See Compare.
CCP1CON Register ......................................................... 117
Clock Accuracy with Asynchronous Operation ................ 190
Clock Sources
Associated registers ................................................... 27
External Modes
HS ...................................................................... 17
LP ....................................................................... 17
XT ...................................................................... 17
CLRF ................................................................................ 325
CLRWDT .......................................................................... 325
CM1CON0 Register ......................................................... 229
CM2CON0 Register ......................................................... 230
CM2CON1 Register ......................................................... 233
Code Examples
16 x 16 Signed Multiply Routine ................................ 66
16 x 16 Unsigned Multiply Routine ............................ 66
8 x 8 Signed Multiply Routine .................................... 65
8 x 8 Unsigned Multiply Routine ................................ 65
A/D Conversion ........................................................ 214
Changing Between Capture Prescalers ................... 119
Clearing RAM Using Indirect Addressing ................... 46
Computed GOTO Using an Offset Value ................... 32
Data EEPROM Read ................................................. 63
Data EEPROM Refresh Routine ................................ 64
Data EEPROM Write ................................................. 63
Erasing a Flash Program Memory Row ..................... 56
Fast Register Stack .................................................... 32
Implementing a Timer1 Real-Time Clock ................. 109
Initializing PORTA ...................................................... 84
Initializing PORTB ...................................................... 89
Initializing PORTC ...................................................... 94
Loading the SSPBUF (SSPSR) Register ................. 142
Reading a Flash Program Memory Word .................. 55
Saving Status, WREG and BSR Registers in RAM ... 80
Writing to Flash Program Memory ....................... 58–59
Code Protection ............................................................... 291
COMF ............................................................................... 326
Comparator
Associated Registers ............................................... 234
Operation ................................................................. 223
Operation During Sleep ........................................... 228
Response Time ........................................................ 226
Comparator Module ......................................................... 223
C1 Output State Versus Input Conditions ................ 226
Comparator Specifications ............................................... 389
Comparator Voltage Reference (CVREF)
Associated Registers ............................................... 249
Effects of a Reset ............................................. 228, 245
Operation During Sleep ........................................... 245
Overview .................................................................. 245
Comparator Voltage Reference (CVREF)
Response Time ........................................................ 226
Comparators
Effects of a Reset .................................................... 228
Compare (CCP Module) .................................................. 120
CCPRx Register ...................................................... 120
Pin Configuration ..................................................... 120
Software Interrupt .................................................... 120
Special Event Trigger ...................................... 116, 120
Timer1/Timer3 Mode Selection ................................ 120
Computed GOTO ............................................................... 32
CONFIG1H Register ................................................ 293, 294
CONFIG1L Register ........................................................ 293
CONFIG2H Register ........................................................ 296
CONFIG2L Register ........................................................ 295
CONFIG3H Register ........................................................ 297
CONFIG4L Register ........................................................ 297
CONFIG5H Register ........................................................ 298
CONFIG5L Register ........................................................ 298
CONFIG6H Register ........................................................ 299
CONFIG6L Register ........................................................ 299
CONFIG7H Register ........................................................ 300
CONFIG7L Register ........................................................ 300
Configuration Bits ............................................................ 292
Configuration Register Protection .................................... 307
Context Saving During Interrupts ....................................... 80
CPFSEQ .......................................................................... 326
CPFSGT .......................................................................... 327
CPFSLT ........................................................................... 327
Customer Change Notification Service ............................ 417
Customer Notification Service ......................................... 417
Customer Support ............................................................ 417
CVREF Voltage Reference Specifications ........................ 389
D
Data Addressing Modes .................................................... 46
Comparing Addressing Modes with the Extended In-
struction Set Enabled ........................................ 49
Direct ......................................................................... 46
Indexed Literal Offset ................................................ 48
Instructions Affected .......................................... 48
Indirect ....................................................................... 46
Inherent and Literal .................................................... 46
Data EEPROM
Code Protection ....................................................... 307
Data EEPROM Memory ..................................................... 61
Associated Registers ................................................. 64
EEADR Register ........................................................ 61
EECON1 and EECON2 Registers ............................. 61
Operation During Code-Protect ................................. 64
Protection Against Spurious Write ............................. 64
Reading ..................................................................... 63
Using ......................................................................... 64
Write Verify ................................................................ 63
Writing ....................................................................... 63
Data Memory ..................................................................... 35
Access Bank .............................................................. 39
and the Extended Instruction Set .............................. 48
Bank Select Register (BSR) ...................................... 35
General Purpose Registers ....................................... 39
Map for PIC18F13K50/PIC18LF13K50 ..................... 36
Map for PIC18F14K50/PIC18LF14K50 ..................... 37
Special Function Registers ........................................ 39
USB RAM .................................................................. 35
DAW ................................................................................ 328
DC and AC Characteristics
DS41350E-page 408
Preliminary
 2010 Microchip Technology Inc.