Datasheet

Table Of Contents
 2010 Microchip Technology Inc. Preliminary DS39979A-page 471
PIC18F87J72 FAMILY
RF7/AN5/SS/SEG25................................................... 18
RG0/LCDBIAS0 .......................................................... 19
RG1/TX2/CK2 ............................................................. 19
RG2/RX2/DT2/V
LCAP1................................................ 19
RG3/V
LCAP2................................................................ 19
RG4/SEG26/RTCC ..................................................... 19
SAV
DD......................................................................... 20
SAV
SS ......................................................................... 20
SCKA .......................................................................... 20
SDIA............................................................................ 20
SDOA.......................................................................... 20
SV
DD ........................................................................... 20
SV
SS ........................................................................... 20
V
DD ............................................................................. 19
V
DDCORE/VCAP............................................................ 19
V
SS.............................................................................. 19
Pinout I/O Descriptions ....................................................... 13
PLL...................................................................................... 30
HSPLL and ECPLL Oscillator Modes ......................... 30
Use with INTOSC........................................................ 30
POP .................................................................................. 363
POR. See Power-on Reset.
PORTA
Associated Registers ................................................ 107
LATA Register........................................................... 106
PORTA Register ....................................................... 106
TRISA Register ......................................................... 106
PORTB
Associated Registers ................................................ 110
LATB Register........................................................... 108
PORTB Register ....................................................... 108
RB7:RB4 Interrupt-on-Change Flag (RBIF Bit)......... 108
TRISB Register ......................................................... 108
PORTC
Associated Registers ................................................ 113
LATC Register .......................................................... 111
PORTC Register ....................................................... 111
RC3/SCK/SCL/SEG17 Pin........................................ 211
TRISC Register......................................................... 111
PORTD
Associated Registers ................................................ 115
LATD Register .......................................................... 114
PORTD Register ....................................................... 114
TRISD Register......................................................... 114
PORTE
Associated Registers ................................................ 117
LATE Register........................................................... 116
PORTE Register ....................................................... 116
TRISE Register ......................................................... 116
PORTF
Associated Registers ................................................ 120
LATF Register........................................................... 118
PORTF Register ....................................................... 118
TRISF Register ......................................................... 118
PORTG
Associated Registers ................................................ 122
LATG Register .......................................................... 121
PORTG Register....................................................... 121
TRISG Register......................................................... 121
Power-Managed Modes...................................................... 35
and SPI Operation .................................................... 203
Clock Sources............................................................. 35
Clock Transitions and Status Indicators...................... 36
Entering....................................................................... 35
Exiting Idle and Sleep Modes ..................................... 41
By Interrupt ......................................................... 41
By Reset............................................................. 41
By WDT Time-out ............................................... 41
Without an Oscillator Start-up Delay .................. 41
Idle Modes .................................................................. 39
PRI_IDLE ........................................................... 40
RC_IDLE ............................................................ 41
SEC_IDLE .......................................................... 40
Multiple Sleep Commands.......................................... 36
Run Modes ................................................................. 36
PRI_RUN............................................................ 36
RC_RUN............................................................. 38
SEC_RUN .......................................................... 36
Selecting..................................................................... 35
Sleep Mode ................................................................ 39
OSC1 and OSC2 Pin States............................... 33
Summary (table) ......................................................... 35
Power-on Reset (POR)....................................................... 45
Power-up Delays ................................................................ 33
Power-up Timer (PWRT) .............................................. 33, 46
Time-out Sequence .................................................... 46
Prescaler, Capture............................................................ 160
Prescaler, Timer0 ............................................................. 125
Prescaler, Timer2 ............................................................. 164
PRI_IDLE Mode.................................................................. 40
PRI_RUN Mode.................................................................. 36
Program Counter ................................................................ 57
PCL, PCH and PCU Registers ................................... 57
PCLATH and PCLATU Registers ............................... 57
Program Memory
Extended Instruction Set ............................................ 73
Flash Configuration Words ......................................... 56
Hard Memory Vectors................................................. 56
Instructions ................................................................. 61
Two-Word ........................................................... 61
Interrupt Vector........................................................... 56
Look-up Tables........................................................... 59
Memory Maps ............................................................. 55
Hard Vectors and Configuration Words.............. 56
Reset Vector............................................................... 56
Program Verification and Code Protection ....................... 331
Programming, Device Instructions.................................... 333
Pulse-Width Modulation. See PWM (CCP Module).
PUSH................................................................................ 363
PUSH and POP Instructions............................................... 58
PUSHL.............................................................................. 379
PWM (CCP Module)
Associated Registers ................................................ 165
Duty Cycle ................................................................ 164
Example Frequencies/Resolutions ........................... 164
Period ....................................................................... 163
Setup for PWM Operation ........................................ 165
TMR2 to PR2 Match ................................................. 163
Q
Q Clock............................................................................. 164
R
RAM. See Data Memory.
RC_IDLE Mode................................................................... 41
RC_RUN Mode................................................................... 38
RCALL .............................................................................. 364
RCON Register
Bit Status During Initialization..................................... 48