Datasheet
© 2009 Microchip Technology Inc. DS39775C-page 471
PIC18F87J50 FAMILY
PORTG
Associated Registers ............................................... 160
LATG Register ......................................................... 158
PORTG Register ...................................................... 158
TRISG Register ........................................................ 158
PORTH
Associated Registers ............................................... 163
LATH Register ......................................................... 161
PORTH Register ...................................................... 161
TRISH Register ........................................................ 161
PORTJ
Associated Registers ............................................... 165
LATJ Register .......................................................... 164
PORTJ Register ....................................................... 164
TRISJ Register ......................................................... 164
Power-Managed Modes ..................................................... 47
and EUSART Operation ........................................... 283
and SPI Operation ................................................... 241
Clock Transitions and Status Indicators ..................... 48
Entering ...................................................................... 47
Exiting Idle and Sleep Modes .................................... 53
By Interrupt ........................................................ 53
By Reset ............................................................ 53
By WDT Time-out .............................................. 53
Without an Oscillator Start-up Delay .................. 53
Idle Modes ................................................................. 51
PRI_IDLE ........................................................... 52
RC_IDLE ............................................................ 53
SEC_IDLE ......................................................... 52
Multiple Sleep Commands ......................................... 48
Run Modes ................................................................. 48
PRI_RUN ........................................................... 48
RC_RUN ............................................................ 50
SEC_RUN .......................................................... 48
Selecting .................................................................... 47
Sleep Mode ................................................................ 51
Summary (table) ........................................................ 47
Power-on Reset (POR) ...................................................... 57
Power-up Delays ................................................................ 46
Power-up Timer (PWRT) ............................................. 46, 58
Time-out Sequence .................................................... 58
Prescaler
Timer2 ...................................................................... 222
Prescaler, Timer0 ............................................................. 193
Prescaler, Timer2 (Timer4) .............................................. 215
PRI_IDLE Mode ................................................................. 52
PRI_RUN Mode ................................................................. 48
Program Counter ............................................................... 73
PCL, PCH and PCU Registers ................................... 73
PCLATH and PCLATU Registers .............................. 73
Program Memory
ALU
Status ................................................................. 89
Extended Instruction Set ............................................ 92
Flash Configuration Words ........................................ 70
Hard Memory Vectors ................................................ 70
Instructions ................................................................. 77
Two-Word .......................................................... 77
Interrupt Vector .......................................................... 70
Look-up Tables .......................................................... 75
Memory Maps ............................................................ 69
Hard Vectors and Configuration Words ............. 70
Modes ................................................................ 72
Modes ........................................................................ 71
Extended Microcontroller ................................... 71
Extended Microcontroller (Address Shifting) ..... 72
Memory Access (table) ...................................... 72
Microcontroller ................................................... 71
Reset Vector .............................................................. 70
Program Verification and Code Protection ...................... 364
Programming, Device Instructions ................................... 365
Pulse-Width Modulation. See PWM (CCP Module) and PWM
(ECCP Module).
PUSH ............................................................................... 394
PUSH and POP Instructions .............................................. 74
PUSHL ............................................................................. 410
PWM (CCP Module)
Associated Registers ............................................... 216
Duty Cycle ............................................................... 214
Example Frequencies/Resolutions .......................... 215
Operation Setup ...................................................... 215
Period ...................................................................... 214
PR2/PR4 Registers ................................................. 214
TMR2 (TMR4) to PR2 (PR4) Match ........................ 214
TMR2 to PR2 Match ................................................ 221
TMR4 to PR4 Match ................................................ 207
PWM (ECCP Module) ...................................................... 221
CCPR1H:CCPR1L Registers .................................. 221
Direction Change in Full-Bridge Output Mode ......... 226
Duty Cycle ............................................................... 222
Effects of a Reset .................................................... 231
Enhanced PWM Auto-Shutdown ............................. 228
Example Frequencies/Resolutions .......................... 222
Full-Bridge Mode ..................................................... 225
Full-Bridge Output Application Example .................. 226
Half-Bridge Mode ..................................................... 224
Half-Bridge Output Mode Applications Example ..... 224
Output Configurations .............................................. 222
Output Relationships (Active-High) ......................... 223
Output Relationships (Active-Low) .......................... 223
Period ...................................................................... 221
Programmable Dead-Band Delay ............................ 228
Setup for PWM Operation ....................................... 231
Start-up Considerations ........................................... 229
Q
Q Clock .................................................................... 215, 222
R
RAM. See Data Memory.
RC_IDLE Mode .................................................................. 53
RC_RUN Mode .................................................................. 50
RCALL ............................................................................. 395
RCON Register
Bit Status During Initialization .................................... 60
Reader Response ............................................................ 478
Register File ....................................................................... 80
Register File Summary ................................................ 83–88
Registers
ADCON0 (A/D Control 0) ......................................... 301
ADCON1 (A/D Control 1) ......................................... 302
ANCON0 (A/D Port Configuration 2) ....................... 303
ANCON1 (A/D Port Configuration 1) ....................... 303
BAUDCONx (Baud Rate Control) ............................ 282
BDnSTAT (Buffer Descriptor n Status, CPU Mode) 321
BDnSTAT (Buffer Descriptor n Status, SIE Mode) .. 322
CCPxCON (CCPx Control) ...................................... 209
CCPxCON (ECCPx Control) ................................... 217
CMSTAT (Comparator Status) ................................ 339
CMxCON (Comparator Control x) ........................... 338
CONFIG1H (Configuration 1 High) .......................... 352