English
Language : 

PIC18LF2X_13 Datasheet, PDF (548/560 Pages) Microchip Technology – PIC18(L)F2X/45K50 USB Flash MCU Product Brief
PIC18(L)F2X/4XK22
MPLAB C18 ............................................................. 424
CALL ................................................................................ 388
CALLW ............................................................................. 417
Capture Module. See Enhanced Capture/Compare/
PWM(ECCP)
Capture/Compare/PWM ................................................... 179
Capture/Compare/PWM (CCP)
Associated Registers w/ Capture ..................... 181, 182
Associated Registers w/ Compare ................... 184, 185
Associated Registers w/ Enhanced PWM ................ 204
Associated Registers w/ PWM ......................... 189, 203
Associated Registers w/ Standard PWM ................. 189
Capture Mode .......................................................... 180
CCPx Pin Configuration ........................................... 180
Compare Mode ........................................................ 183
CCPx Pin Configuration ................................... 183
Software Interrupt Mode .......................... 180, 183
Special Event Trigger ....................................... 184
Timer1 Mode Resource ........................... 180, 183
Prescaler .................................................................. 181
PWM Mode
Duty Cycle ........................................................ 187
Effects of Reset ................................................ 188
Example PWM Frequencies and
Resolutions, 20 MHZ ............................... 188
Example PWM Frequencies and
Resolutions, 32 MHZ ............................... 188
Example PWM Frequencies and
Resolutions, 8 MHz .................................. 188
Operation in Sleep Mode ................................. 188
Resolution ........................................................ 188
System Clock Frequency Changes .................. 188
PWM Operation ....................................................... 186
PWM Overview ........................................................ 186
PWM Period ............................................................. 187
PWM Setup .............................................................. 186
CCPTMRS0 Register ....................................................... 208
CCPTMRS1 Register ....................................................... 208
CCPxCON (ECCPx) Register .......................................... 205
Clock Accuracy with Asynchronous Operation ................ 276
Clock Sources
External Modes .......................................................... 34
EC ...................................................................... 34
HS ...................................................................... 35
LP ....................................................................... 35
OST .................................................................... 34
RC ...................................................................... 36
XT ...................................................................... 35
Internal Modes ........................................................... 36
Frequency Selection .......................................... 38
INTOSC ............................................................. 36
INTOSCIO .......................................................... 36
LFINTOSC ......................................................... 38
Selecting the 31 kHz Source ...................................... 29
Selection Using OSCCON Register ........................... 29
Clock Switching .................................................................. 41
CLRF ................................................................................ 389
CLRWDT .......................................................................... 389
CM1CON0 Register ......................................................... 317
CM2CON1 Register ......................................................... 318
Code Examples
16 x 16 Signed Multiply Routine .............................. 112
16 x 16 Unsigned Multiply Routine .......................... 112
8 x 8 Signed Multiply Routine .................................. 111
8 x 8 Unsigned Multiply Routine .............................. 111
A/D Conversion ........................................................ 303
Capacitance Calibration Routine ............................. 328
Capacitive Touch Switch Routine ............................ 330
Changing Between Capture Prescalers ................... 181
Clearing RAM Using Indirect Addressing .................. 90
Computed GOTO Using an Offset Value ................... 73
Current Calibration Routine ..................................... 326
Data EEPROM Read ............................................... 107
Data EEPROM Refresh Routine .............................. 108
Data EEPROM Write ............................................... 107
Erasing a Flash Program Memory Row ................... 100
Fast Register Stack ................................................... 73
Initializing PORTA .................................................... 135
Initializing PORTB .................................................... 140
Initializing PORTC ................................................... 144
Initializing PORTD ................................................... 148
Initializing PORTE .................................................... 151
Reading a Flash Program Memory Word .................. 99
Saving Status, WREG and BSR Registers in RAM . 132
Setup for CTMU Calibration Routines ..................... 325
Writing to Flash Program Memory ................... 102–103
Code Protection ............................................................... 355
COMF .............................................................................. 390
Comparator
Associated Registers ............................................... 319
Operation ................................................................. 311
Operation During Sleep ........................................... 315
Response Time ........................................................ 313
Comparator Module
C1 Output State Versus Input Conditions ................ 313
Comparator Specifications ............................................... 444
Comparator Voltage Reference (CVREF)
Effects of a Reset .................................................... 315
Comparator Voltage Reference (CVREF)
Response Time ........................................................ 313
Comparators
C2OUT as T1/3/5 Gate ............................................ 166
Effects of a Reset .................................................... 315
Compare Module. See Enhanced Capture/Compare/
PWM (ECCP)
Computed GOTO ............................................................... 73
CONFIG1H Register ........................................................ 357
CONFIG2H Register ........................................................ 359
CONFIG2L Register ........................................................ 358
CONFIG3H Register ........................................................ 360
CONFIG4L Register ........................................................ 361
CONFIG5H Register ........................................................ 362
CONFIG5L Register ........................................................ 361
CONFIG6H Register ........................................................ 363
CONFIG6L Register ........................................................ 362
CONFIG7H Register ........................................................ 364
CONFIG7L Register ........................................................ 363
Configuration Bits ............................................................ 355
Configuration Register Protection .................................... 371
Context Saving During Interrupts ..................................... 132
CPFSEQ .......................................................................... 390
CPFSGT .......................................................................... 391
CPFSLT ........................................................................... 391
CTMU
Associated Registers ............................................... 335
Calibrating ............................................................... 324
Creating a Delay with ............................................... 332
Effects of a Reset .................................................... 333
Initialization .............................................................. 323
Measuring Capacitance with .................................... 329
DS41412F-page 548
 2010-2012 Microchip Technology Inc.