Datasheet

PIC18F87K90 FAMILY
DS39957D-page 562 2009-2011 Microchip Technology Inc.
Multiple Sleep Commands .......................................... 54
Run Modes.................................................................. 54
PRI_RUN ............................................................ 54
RC_RUN ............................................................. 55
SEC_RUN........................................................... 54
Selecting ..................................................................... 53
Sleep Mode................................................................. 58
OSC1, OSC2 Pin States..................................... 52
Summary (table) .........................................................53
Power-on Reset (POR) .......................................................71
Power-up Delays................................................................. 52
Power-up Timer (PWRT)............................................... 52, 72
Time-out Sequence..................................................... 72
Prescaler, Timer0.............................................................. 185
Prescaler, Timer2.............................................................. 248
PRI_IDLE Mode .................................................................. 59
PRI_RUN Mode .................................................................. 54
Program Counter (PC) ........................................................ 87
PCL, PCH and PCU Registers.................................... 87
PCLATH and PCLATU Registers ............................... 87
Program Memory
Extended Instruction Set........................................... 106
Hard Memory Vectors .................................................86
Instructions..................................................................91
Two-Word ........................................................... 91
Interrupt Vector ...........................................................86
Look-up Tables ........................................................... 89
Memory Maps
Hard Vectors and Configuration Words .............. 86
Reset Vector ...............................................................86
Program Verification.......................................................... 447
Programming, Device Instructions .................................... 451
Pulse Steering...................................................................268
Pulse-Width Modulation.
See PWM (CCP Module).
PUSH ................................................................................480
PUSH and POP Instructions ............................................... 88
PUSHL ..............................................................................496
PWM (CCP Module)
Associated Registers with PWM and Timers ............ 249
Duty Cycle................................................................. 248
Example Frequencies/Resolutions, 40 MHz ............. 248
Period........................................................................ 248
Setup for Operation................................................... 249
TMR12 to PR12 Match Flag (TMR12IF Bit) .............. 138
TMR2 to PR2 Match ................................................. 248
TMRx to PRx Match.................................................. 213
PWM (ECCP Module)
Effects of a Reset......................................................271
Operation in Power-Managed Modes ....................... 271
Operation with Fail-Safe Clock Monitor .................... 271
Pulse Steering........................................................... 268
Steering Synchronization .......................................... 270
PWM Mode.
See Enhanced Capture/Compare/PWM.
Q
Q Clock ............................................................................. 248
R
RAM. See Data Memory.
RC Oscillator ....................................................................... 47
RC_IDLE Mode ................................................................... 60
RC_RUN Mode ................................................................... 55
RCALL............................................................................... 481
RCON Register
Bit Status During Initialization ..................................... 74
Reader Response............................................................. 567
Real-Time Clock and Calendar (RTCC) ........................... 217
Alarm ........................................................................ 232
Configuring ....................................................... 232
Interrupt ............................................................ 233
Mask Settings ................................................... 233
Alarm Value Registers (ALRMVAL).......................... 226
Clock Source ............................................................ 230
Control Registers...................................................... 219
Digit Carry Rules....................................................... 230
Operation.................................................................. 229
Calibration ........................................................ 232
General Functionality........................................ 231
Leap Year ......................................................... 231
Register Mapping ............................................. 231
Register Reads/Writes, Safety Window............ 231
Write Lock......................................................... 231
Register Interface ..................................................... 229
Register Maps........................................................... 235
Alarm Value ...................................................... 235
RTCC Control ................................................... 235
RTCC Value ..................................................... 235
Registers .................................................................. 218
Reset ........................................................................ 234
Device............................................................... 234
Power-on Reset (POR)..................................... 234
RTCEN Bit, Write...................................................... 229
Sleep Mode .............................................................. 234
Value Registers (RTCVAL)....................................... 222
Reference Clock Output ..................................................... 51
Register File........................................................................ 94
Register File Summary ............................................... 97–102
Registers
ADCON0 (A/D Control 0).......................................... 374
ADCON1 (A/D Control 1).......................................... 375
ADCON2 (A/D Control 2).......................................... 376
ADRESH (A/D Result High Byte Left Justified,
ADFM = 0) ........................................................ 378
ADRESH (A/D Result High Byte Right Justified,
ADFM = 1) ........................................................ 379
ADRESL (A/D Result Low Byte Left Justified,
ADFM = 0) ........................................................ 378
ADRESL (A/D Result Low Byte Right Justified,
ADFM = 1) ........................................................ 379
ALRMCFG (Alarm Configuration) ............................. 221
ALRMDAY (Alarm Day Value).................................. 226
ALRMHR (Alarm Hours Value)................................. 227
ALRMMIN (Alarm Minutes Value)............................. 228
ALRMMNTH (Alarm Month Value) ........................... 226
ALRMRPT (Alarm Repeat) ....................................... 222
ALRMSEC (Alarm Seconds Value) .......................... 228
ALRMWD (Alarm Weekday Value)........................... 227
ANCON0 (A/D Port Configuration 0) ........................ 380
ANCON1 (A/D Port Configuration 1) ........................ 380
ANCON2 (A/D Port Configuration 2) ........................ 381
BAUDCONx (Baud Rate Control) ............................. 352
CCPRxH (CCPx Period High Byte) .......................... 240
CCPRxL (CCPx Period Low Byte)............................ 240
CCPTMRS0 (CCP Timer Select 0)........................... 253
CCPTMRS1 (CCPx Timer Select 1)......................... 238
CCPTMRS2 (CCPx Timer Select 2)......................... 239
CCPxCON (CCPx Control, CCP4-CCP10)............... 237
CCPxCON (Enhanced Capture/Compare/
PWM x Control) ................................................ 252