Datasheet
© 2009 Microchip Technology Inc. DS39663F-page 401
PIC18F87J10 FAMILY
PORTD
Associated Registers ............................................... 136
LATD Register ......................................................... 134
PORTD Register ...................................................... 134
TRISD Register ........................................................ 134
PORTE
Analog Port Pins ...................................................... 148
Associated Registers ............................................... 139
LATE Register .......................................................... 137
PORTE Register ...................................................... 137
PSP Mode Select (PSPMODE Bit) .......................... 148
RE0/RD
Pin .............................................................. 148
RE1/WR
Pin ............................................................. 148
RE2/CS
Pin .............................................................. 148
TRISE Register ........................................................ 137
PORTF
Associated Registers ............................................... 141
LATF Register .......................................................... 140
PORTF Register ...................................................... 140
TRISF Register ........................................................ 140
PORTG
Associated Registers ............................................... 143
LATG Register ......................................................... 142
PORTG Register ...................................................... 142
TRISG Register ........................................................ 142
PORTH
Associated Registers ............................................... 145
LATH Register ......................................................... 144
PORTH Register ...................................................... 144
TRISH Register ........................................................ 144
PORTJ
Associated Registers ............................................... 147
LATJ Register .......................................................... 146
PORTJ Register ....................................................... 146
TRISJ Register ......................................................... 146
Power-Managed Modes ..................................................... 39
and EUSART Operation ........................................... 243
and SPI Operation ................................................... 201
Clock Transitions and Status Indicators ..................... 40
Entering ...................................................................... 39
Exiting Idle and Sleep Modes .................................... 45
By Interrupt ........................................................ 45
By Reset ............................................................ 45
By WDT Time-out .............................................. 45
Without an Oscillator Start-up Delay .................. 45
Idle Modes ................................................................. 43
PRI_IDLE ........................................................... 44
RC_IDLE ............................................................ 45
SEC_IDLE ......................................................... 44
Multiple Sleep Commands ......................................... 40
Run Modes ................................................................. 40
PRI_RUN ........................................................... 40
RC_RUN ............................................................ 42
SEC_RUN .......................................................... 40
Selecting .................................................................... 39
Sleep Mode ................................................................ 43
Summary (table) ........................................................ 39
Power-on Reset (POR) ...................................................... 49
Power-up Delays ................................................................ 37
Power-up Timer (PWRT) ............................................. 37, 50
Time-out Sequence .................................................... 50
Prescaler
Timer2 ...................................................................... 182
Prescaler, Timer0 ............................................................. 153
Prescaler, Timer2 (Timer4) .............................................. 175
PRI_IDLE Mode ................................................................. 44
PRI_RUN Mode ................................................................. 40
Program Counter ............................................................... 63
PCL, PCH and PCU Registers .................................. 63
PCLATH and PCLATU Registers .............................. 63
Program Memory
Extended Instruction Set ........................................... 81
Flash Configuration Words ........................................ 60
Hard Memory Vectors ................................................ 60
Instructions ................................................................ 67
Two-Word .......................................................... 67
Interrupt Vector .......................................................... 60
Look-up Tables .......................................................... 65
Memory Maps ............................................................ 59
Hard Vectors and Configuration Words ............. 60
Modes
Extended Microcontroller ................................... 61
Extended Microcontroller (Address Shifting) ..... 62
Memory Access (table) ...................................... 62
Microcontroller ................................................... 61
Modes (PIC18F8XJ10/8XJ15) ................................... 61
Reset Vector .............................................................. 60
Program Verification and Code Protection ...................... 292
Programming, Device Instructions ................................... 293
PSP.See Parallel Slave Port.
Pulse-Width Modulation. See PWM (CCP Module)
and PWM (ECCP Module).
PUSH ............................................................................... 322
PUSH and POP Instructions .............................................. 64
PUSHL ............................................................................. 338
PWM (CCP Module)
Associated Registers ............................................... 176
Duty Cycle ............................................................... 174
Example Frequencies/Resolutions .......................... 175
Operation Setup ...................................................... 175
Period ...................................................................... 174
PR2/PR4 Registers ................................................. 174
TMR2 (TMR4) to PR2 (PR4) Match ........................ 174
TMR2 to PR2 Match ................................................ 181
TMR4 to PR4 Match ................................................ 167
PWM (ECCP Module) ...................................................... 181
CCPR1H:CCPR1L Registers .................................. 181
Direction Change in Full-Bridge Output Mode ......... 186
Duty Cycle ............................................................... 182
Effects of a Reset .................................................... 191
Enhanced PWM Auto-Shutdown ............................. 188
Example Frequencies/Resolutions .......................... 182
Full-Bridge Application Example .............................. 186
Full-Bridge Mode ..................................................... 185
Half-Bridge Mode ..................................................... 184
Half-Bridge Output Mode Applications Example ..... 184
Output Configurations .............................................. 182
Output Relationships (Active-High) ......................... 183
Output Relationships (Active-Low) .......................... 183
Period ...................................................................... 181
Programmable Dead-Band Delay ............................ 188
Setup for PWM Operation ....................................... 191
Start-up Considerations ........................................... 189
Q
Q Clock .................................................................... 175, 182
R
RAM. See Data Memory.
RC_IDLE Mode .................................................................. 45
RC_RUN Mode .................................................................. 42
RCALL ............................................................................. 323