PIC18F87J10 FAMILY
DS39663F-page 400 © 2009 Microchip Technology Inc.
Pin Functions
AVDD .......................................................................... 16
AVDD .......................................................................... 25
AVSS .......................................................................... 16
AVSS .......................................................................... 25
ENVREG .............................................................. 16, 25
MCLR ................................................................... 10, 17
OSC1/CLKI .......................................................... 10, 17
OSC2/CLKO ........................................................ 10, 17
RA0/AN0 .............................................................. 10, 17
RA1/AN1 .............................................................. 10, 17
RA2/AN2/VREF- .................................................... 10, 17
RA3/AN3/VREF+ ................................................... 10, 17
RA4/T0CKI ........................................................... 10, 17
RA5/AN4 .............................................................. 10, 17
RB0/INT0/FLT0 .................................................... 11, 18
RB1/INT1 ............................................................. 11, 18
RB2/INT2 ............................................................. 11, 18
RB3/INT3 ...................................................................11
RB3/INT3/ECCP2/P2A .............................................. 18
RB4/KBI0 ............................................................. 11, 18
RB5/KBI1 ............................................................. 11, 18
RB6/KBI2/PGC .................................................... 11, 18
RB7/KBI3/PGD .................................................... 11, 18
RC0/T1OSO/T13CKI ...........................................12, 19
RC1/T1OSI/ECCP2/P2A ...................................... 12, 19
RC2/ECCP1/P1A ................................................. 12, 19
RC3/SCK1/SCL1 ................................................. 12, 19
RC4/SDI1/SDA1 .................................................. 12, 19
RC5/SDO1 ........................................................... 12, 19
RC6/TX1/CK1 ...................................................... 12, 19
RC7/RX1/DT1 ...................................................... 12, 19
RD0/AD0/PSP0 .......................................................... 20
RD0/PSP0 .................................................................. 13
RD1/AD1/PSP1 .......................................................... 20
RD1/PSP1 .................................................................. 13
RD2/AD2/PSP2 .......................................................... 20
RD2/PSP2 .................................................................. 13
RD3/AD3/PSP3 .......................................................... 20
RD3/PSP3 .................................................................. 13
RD4/AD4/PSP4/SDO2 ............................................... 20
RD4/PSP4/SDO2 ....................................................... 13
RD5/AD5/PSP5/SDI2/SDA2 ...................................... 20
RD5/PSP5/SDI2/SDA2 .............................................. 13
RD6/AD6/PSP6/SCK2/SCL2 ..................................... 20
RD6/PSP6/SCK2/SCL2 ............................................. 13
RD7/AD7/PSP7/SS2 .................................................. 20
RD7/PSP7/SS2 ..........................................................13
RE0/AD8/RD/P2D ......................................................21
RE0/RD/P2D ..............................................................14
RE1/AD9/WR/P2C .....................................................21
RE1/WR/P2C ............................................................. 14
RE2/AD10/CS/P2B .................................................... 21
RE2/CS/P2D .............................................................. 14
RE3/AD11/P3C .......................................................... 21
RE3/P3C .................................................................... 14
RE4/AD12/P3B .......................................................... 21
RE4/P3B .................................................................... 14
RE5/AD13/P1C .......................................................... 21
RE5/P1C .................................................................... 14
RE6/AD14/P1B .......................................................... 21
RE6/P1B .................................................................... 14
RE7/AD15/ECCP2/P2A .............................................21
RE7/ECCP2/P2A ....................................................... 14
RF1/AN6/C2OUT ................................................. 15, 22
RF2/AN7/C1OUT ................................................. 15, 22
RF3/AN8 .............................................................. 15, 22
RF4/AN9 .............................................................. 15, 22
RF5/AN10/CVREF ................................................ 15, 22
RF6/AN11 ............................................................ 15, 22
RF7/SS1 .............................................................. 15, 22
RG0/ECCP3/P3A ................................................. 16, 23
RG1/TX2/CK2 ...................................................... 16, 23
RG2/RX2/DT2 ...................................................... 16, 23
RG3/CCP4/P3D ................................................... 16, 23
RG4/CCP5/P1D ................................................... 16, 23
RH0/A16 .................................................................... 24
RH1/A17 .................................................................... 24
RH2/A18 .................................................................... 24
RH3/A19 .................................................................... 24
RH4/AN12/P3C .......................................................... 24
RH5/AN13/P3B .......................................................... 24
RH6/AN14/P1C .......................................................... 24
RH7/AN15/P1B .......................................................... 24
RJ0/ALE .................................................................... 25
RJ1/OE ...................................................................... 25
RJ2/WRL ................................................................... 25
RJ3/WRH ................................................................... 25
RJ4/BA0 .................................................................... 25
RJ5/CE ...................................................................... 25
RJ6/LB ....................................................................... 25
RJ7/UB ...................................................................... 25
VDD ............................................................................ 16
VDD ............................................................................ 25
VDDCORE/VCAP ..................................................... 16, 25
VSS ............................................................................ 16
VSS ............................................................................ 25
Pinout I/O Descriptions
PIC18F6XJ10/6XJ15 ................................................. 10
PIC18F8XJ10/8XJ15 ................................................. 17
Pins
ENVREG ................................................................... 29
External Oscillator ...................................................... 30
ICSP .......................................................................... 29
Master Clear (MCLR .................................................. 28
Power Supply ............................................................ 28
VCAP/VDDCORE ........................................................... 29
PIR Registers ................................................................... 114
PLL .................................................................................... 33
ECPLL Oscillator Mode ............................................. 33
HSPLL Oscillator Mode ............................................. 33
POP ................................................................................. 322
POR. See Power-on Reset.
PORTA
Associated Registers ............................................... 127
LATA Register ......................................................... 126
PORTA Register ...................................................... 126
TRISA Register ........................................................ 126
PORTB
Associated Registers ............................................... 130
LATB Register ......................................................... 128
PORTB Register ...................................................... 128
RB7:RB4 Interrupt-on-Change Flag (RBIF Bit) ........ 128
TRISB Register ........................................................ 128
PORTC
Associated Registers ............................................... 133
LATC Register ......................................................... 131
PORTC Register ...................................................... 131
RC3/SCKx/SCLx Pin ............................................... 211
TRISC Register ........................................................ 131