Datasheet

PIC18F6520/8520/6620/8620/6720/8720
DS39609C-page 370 2003-2013 Microchip Technology Inc.
RH1/A17 ....................................................................19
RH2/A18 ....................................................................19
RH3/A19 ....................................................................19
RH4/AN12 ..................................................................19
RH5/AN13 ..................................................................19
RH6/AN14 ..................................................................19
RH7/AN15 ..................................................................19
RJ0/ALE .....................................................................20
RJ1/OE
......................................................................20
RJ2/WRL
....................................................................20
RJ3/WRH
...................................................................20
RJ4/BA0 .....................................................................20
RJ5/CE
....................................................................... 20
RJ6/LB
....................................................................... 20
RJ7/UB
....................................................................... 20
V
DD .............................................................................20
V
SS .............................................................................20
PIR Registers .....................................................................92
PLL Clock Timing Specifications ......................................321
PLL Lock Time-out .............................................................30
Pointer, FSR .......................................................................57
POP ..................................................................................288
POR. See Power-on Reset.
PORTA
Associated Registers ...............................................105
Functions .................................................................105
LATA Register ..........................................................103
PORTA Register ......................................................103
TRISA Register ........................................................103
PORTB
Associated Registers ...............................................108
Functions .................................................................108
LATB Register ..........................................................106
PORTB Register ......................................................106
RB0/INT Pin, External ..............................................102
TRISB Register ........................................................106
PORTC
Associated Registers ...............................................110
Functions .................................................................110
LATC Register .........................................................109
PORTC Register ......................................................109
RC3/SCK/SCL Pin ...................................................171
TRISC Register ................................................ 109, 197
PORTD .............................................................................128
Associated Registers ...............................................113
Functions .................................................................113
LATD Register .........................................................111
Parallel Slave Port (PSP) Function ..........................111
PORTD Register ......................................................111
TRISD Register ........................................................111
PORTE
Analog Port Pins ......................................................128
Associated Registers ...............................................116
Functions .................................................................116
LATE Register ..........................................................114
PORTE Register ......................................................114
PSP Mode Select (PSPMODE Bit) ..................111, 128
RE0/RD
/AN5 Pin ......................................................128
RE1/WR
/AN6 Pin .....................................................128
RE2/CS
/AN7 Pin ......................................................128
TRISE Register ........................................................114
PORTF
Associated Registers ...............................................119
Functions .................................................................119
LATF Register ..........................................................117
PORTF Register ...................................................... 117
TRISF Register ........................................................ 117
PORTG
Associated Registers ............................................... 121
Functions ................................................................. 121
LATG Register ......................................................... 120
PORTG Register ...................................................... 120
TRISG Register ............................................... 120, 197
PORTH
Associated Registers ............................................... 124
Functions ................................................................. 124
LATH Register ......................................................... 122
PORTH Register ...................................................... 122
TRISH Register ........................................................ 122
PORTJ
Associated Registers ............................................... 127
Functions ................................................................. 127
LATJ Register .......................................................... 125
PORTJ Register ....................................................... 125
TRISJ Register ........................................................ 125
Postscaler, WDT
Assignment (PSA Bit) .............................................. 133
Rate Select (T0PS2:T0PS0 Bits) ............................. 133
Switching Between Timer0 and WDT ...................... 133
Power-down Mode. See Sleep.
Power-on Reset (POR) ...................................................... 30
Oscillator Start-up Timer (OST) ................................. 30
Power-up Timer (PWRT) ........................................... 30
Time-out Sequence ................................................... 30
Prescaler, Capture ........................................................... 151
Prescaler, Timer0 ............................................................ 133
Assignment (PSA Bit) .............................................. 133
Rate Select (T0PS2:T0PS0 Bits) ............................. 133
Switching Between Timer0 and WDT ...................... 133
Prescaler, Timer2 ............................................................ 154
Product Identification System .......................................... 377
Program Counter
PCL, PCLATH and PCLATU Registers ..................... 44
Program Memory ............................................................... 39
Access for PIC18F8X20 Program Memory Modes .... 40
Instructions ................................................................ 45
Interrupt Vector .......................................................... 39
Map and Stack for PIC18FXX20 ................................ 40
Maps for PIC18F8X20 Program Memory Modes ....... 41
PIC18F8X20 Modes .................................................. 39
Reset Vector .............................................................. 39
Program Memory Write Timing Requirements ................ 324
Program Verification and Code Protection ...................... 253
Associated Registers ............................................... 253
Configuration Register Protection ............................ 257
Data EEPROM Code Protection .............................. 257
Memory Code Protection ......................................... 255
Programming, Device Instructions ................................... 259
PSP.See Parallel Slave Port.
Pulse Width Modulation. See PWM (CCP Module).
PUSH ............................................................................... 288
PWM (CCP Module) ........................................................ 154
Associated Registers ............................................... 155
CCPR1H:CCPR1L Registers ................................... 154
Duty Cycle ............................................................... 154
Example Frequencies/Resolutions .......................... 155
Period ...................................................................... 154
Setup for PWM Operation ........................................ 155
TMR2 to PR2 Match ........................................ 141, 154
TMR4 to PR4 Match ................................................ 147