Datasheet

PIC18F87K22 FAMILY
DS39960B-page 540 Preliminary 2010 Microchip Technology Inc.
Power-on Reset (POR) ....................................................... 73
Power-up Delays.................................................................53
Power-up Timer (PWRT)............................................... 53, 74
Time-out Sequence..................................................... 74
Prescaler, Timer0.............................................................. 193
Prescaler, Timer2.............................................................. 254
PRI_IDLE Mode .................................................................. 61
PRI_RUN Mode .................................................................. 56
Program Counter................................................................. 87
PCL, PCH and PCU Registers.................................... 87
PCLATH and PCLATU Registers ............................... 87
Program Memory
Code Protection ........................................................ 425
Extended Instruction Set........................................... 105
Hard Memory Vectors .................................................86
Instructions..................................................................91
Two-Word ...........................................................91
Interrupt Vector ........................................................... 86
Look-up Tables ........................................................... 89
Memory Maps .............................................................85
Reset Vector ............................................................... 86
Program Verification and Code Protection........................ 424
Associated Registers ................................................425
Programming, Device Instructions ....................................429
PSP.
See Parallel Slave Port.
Pulse Steering...................................................................274
Pulse-Width Modulation.
See PWM (CCP Module).
PUSH ................................................................................458
PUSH and POP Instructions ............................................... 88
PUSHL .............................................................................. 474
PWM (CCP Module)
Associated Registers ................................................254
Duty Cycle.................................................................254
Example Frequencies/Resolutions ........................... 254
Period........................................................................253
Setup for PWM Operation.........................................254
TMR2 to PR2 Match .................................................253
PWM (ECCP Module)
Effects of a Reset......................................................277
Operation in Power-Managed Modes ....................... 277
Operation with Fail-Safe Clock Monitor ....................277
Pulse Steering........................................................... 274
Steering Synchronization .......................................... 276
PWM Mode.
See Enhanced Capture/
Compare/PWM ......................................................... 263
Q
Q Clock ............................................................................. 254
R
RAM. See Data Memory.
RC_IDLE Mode...................................................................62
RC_RUN Mode ................................................................... 57
RCALL...............................................................................459
RCON Register
Bit Status During Initialization .....................................76
Reader Response ............................................................. 545
Real-Time Clock and Calendar (RTCC)............................ 225
Registers...................................................................226
Reference Clock Output...................................................... 51
Register File........................................................................94
Register File Summary................................................ 96–101
Registers
ADCON0 (A/D Control 0) .......................................... 350
ADCON1 (A/D Control 1) .......................................... 351
ADCON2 (A/D Control 2) .......................................... 352
ADRESH (A/D Result High Byte,
Right Justified).................................................. 354
ADRESL (A/D Result High Byte, Left Justified)........ 354
ADRESL (A/D Result High Byte) .............................. 354
ADRESL (A/D Result Low Byte, Right Justified) ...... 354
ALRMCFG (Alarm Configuration)............................. 229
ALRMDAY (Alarm Day Value).................................. 233
ALRMHR (Alarm Hours Value)................................. 234
ALRMMIN (Alarm Minutes Value)............................. 234
ALRMMNTH (Alarm Month Value) ........................... 233
ALRMRPT (Alarm Repeat) ....................................... 230
ALRMSEC (Alarm Seconds Value) .......................... 234
ALRMWD (Alarm Weekday Value)........................... 233
ANCON0 (A/D Port Configuration 0) ........................ 355
ANCON1 (A/D Port Configuration 1) ........................ 355
ANCON2 (A/D Port Configuration 2) ........................ 356
BAUDCONx (Baud Rate Control) ............................. 328
CCPPRxL (CCPx Period Low Byte) ......................... 246
CCPRxH (CCPx Period High Byte) .......................... 246
CCPTMRS0 (CCP Timer Select 0)........................... 259
CCPTMRS1 (CCP Timer Select 1)........................... 244
CCPTMRS2 (CCP Timer Select 2)........................... 245
CCPxCON (CCP4-CCP10 Control) .......................... 243
CCPxCON (Enhanced Capture/Compare/
PWM x Control) ................................................ 258
CMSTAT (Comparator Status) ................................. 367
CMxCON (Comparator Control x)............................. 366
CONFIG1H (Configuration 1 High)........................... 404
CONFIG1L (Configuration 1 Low) ............................ 403
CONFIG2H (Configuration 2 High)........................... 406
CONFIG2L (Configuration 2 Low) ............................ 405
CONFIG3H (Configuration 3 High)........................... 408
CONFIG3L (Configuration 3 Low) ............................ 407
CONFIG4L (Configuration 4 Low) ............................ 409
CONFIG5H (Configuration 5 High)........................... 411
CONFIG5L (Configuration 5 Low) ............................ 410
CONFIG6H (Configuration 6 High)........................... 413
CONFIG6L (Configuration 6 Low) ............................ 412
CONFIG7H (Configuration 7 High)........................... 415
CONFIG7L (Configuration 7 Low) ............................ 414
CTMUCONH (CTMU Control High) .......................... 384
CTMUCONL (CTMU Control Low) ........................... 385
CTMUICON (CTMU Current Control)....................... 386
CVRCON (Comparator Voltage Reference
Control)............................................................. 373
DAY (Day Value) ...................................................... 231
DEVID1 (Device ID 1)............................................... 416
DEVID2 (Device ID 2)............................................... 416
ECCPxAS (ECCPx Auto-Shutdown Control)............ 271
ECCPxDEL (Enhanced PWM Control) ..................... 274
EECON1 (Data EEPROM Control 1)........................ 132
EECON1 (EEPROM Control 1) ................................ 111
HLVDCON (High/Low-Voltage Detect Control) ........ 377
HOUR (Hour Value).................................................. 232
INTCON (Interrupt Control)....................................... 141
INTCON2 (Interrupt Control 2).................................. 142
INTCON3 (Interrupt Control 3).................................. 143
IPR1 (Peripheral Interrupt Priority 1) ........................ 155
IPR2 (Peripheral Interrupt Priority 2) ........................ 156
IPR3 (Peripheral Interrupt Priority 3) ........................ 157
IPR4 (Peripheral Interrupt Priority 4) ........................ 157
IPR5 (Peripheral Interrupt Priority 5) ........................ 158
IPR6 (Peripheral Interrupt Priority 6) ........................ 159
MEMCON (External Memory Bus Control)............... 120
MINUTE (Minute Value)............................................ 232