English
Language : 

PIC18F87J10 Datasheet, PDF (128/394 Pages) Microchip Technology – 64/80-Pin High-Performance, 1-Mbit Flash Microcontrollers with nanoWatt Technology
PIC18F87J10 FAMILY
TABLE 10-9: PORTD FUNCTIONS (CONTINUED)
Pin Name
Function
TRIS
Setting
I/O
I/O
Type
Description
RD6/AD6/
RD6
0
O
DIG LATD<6> data output.
PSP6/SCK2/
1
I
ST PORTD<6> data input.
SCL2
AD6(2)
x
O DIG-3 External memory interface, address/data bit 6 output.(1)
x
I
TTL External memory interface, data bit 6 input.(1)
PSP6
x
O
DIG PSP read output data (LATD<6>); takes priority over port data.
x
I
TTL PSP write data input.
SCK1
0
O
DIG SPI™ clock output (MSSP2 module); takes priority over port data.
1
I
ST SPI clock input (MSSP2 module).
SCL1
0
O
DIG I2C™ clock output (MSSP2 module); takes priority over port data.
1
I
ST I2C clock input (MSSP2 module); input type depends on module
setting.
RD7/AD7/
PSP7/SS2
RD7
0
O
DIG LATD<7> data output.
1
I
ST PORTD<7> data input.
AD7(2)
x
O
DIG External memory interface, address/data bit 7 output.(1)
x
I
TTL External memory interface, data bit 7 input.(1)
PSP7
x
O
DIG PSP read output data (LATD<7>); takes priority over port data.
x
I
TTL PSP write data input.
SS2
x
I
TTL Slave select input for SSP (MSSP2 module).
Legend:
Note 1:
2:
PWR = Power Supply, O = Output, I = Input, ANA = Analog Signal, DIG = Digital Output, ST = Schmitt Buffer Input,
TTL = TTL Buffer Input, x = Don’t care (TRIS bit does not affect port direction or is overridden for this option).
External memory interface I/O takes priority over all other digital and PSP I/O.
Available on 80-pin devices only.
TABLE 10-10: SUMMARY OF REGISTERS ASSOCIATED WITH PORTD
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
PORTD
RD7
RD6
RD5
RD4
LATD
LATD7 LATD6 LATD5 LATD4
TRISD
PORTG
TRISD7 TRISD6 TRISD5 TRISD4
RDPU
REPU RJPU(1)
RG4
Legend: Shaded cells are not used by PORTD.
Note 1: Unimplemented on 64-pin devices; read as ‘0’.
RD3
LATD3
TRISD3
RG3
RD2
LATD2
TRISD2
RG2
RD1
LATD1
TRISD1
RG1
Bit 0
RD0
LATD0
TRISD0
RG0
Reset
Values
on page
52
52
52
52
DS39663A-page 126
Advance Information
 2005 Microchip Technology Inc.