PIC18FXX20
TABLE 10-7: PORTD FUNCTIONS
Name
Bit#
Buffer Type
Function
RD0/PSP0/AD0
RD1/PSP1/AD1
RD2/PSP2/AD2
RD3/PSP3/AD3
RD4/PSP4/AD4
RD5/PSP5/AD5
RD6/PSP6/AD6
RD7/PSP7/AD7
bit0
bit1
bit2
bit3
bit4
bit5
bit6
bit7
ST/TTL(1)
ST/TTL(1)
ST/TTL(1)
ST/TTL(1)
ST/TTL(1)
ST/TTL(1)
ST/TTL(1)
ST/TTL(1)
Input/output port pin, parallel slave port bit0 or address/data bus bit0.
Input/output port pin, parallel slave port bit1 or address/data bus bit1.
Input/output port pin, parallel slave port bit2 or address/data bus bit2.
Input/output port pin, parallel slave port bit3 or address/data bus bit3.
Input/output port pin, parallel slave port bit4 or address/data bus bit4.
Input/output port pin, parallel slave port bit5 or address/data bus bit5.
Input/output port pin, parallel slave port bit6 or address/data bus bit6.
Input/output port pin, parallel slave port bit7 or address/data bus bit7.
Legend: ST = Schmitt Trigger input, TTL = TTL input
Note 1: Input buffers are Schmitt Triggers when in I/O mode and TTL buffers when in System Bus or Parallel Slave
Port mode.
TABLE 10-8: SUMMARY OF REGISTERS ASSOCIATED WITH PORTD
Value on
Value on
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
all other
RESETS
POR, BOR
PORTD
RD7
RD6
RD5
RD4
RD3
RD2
RD1
RD0
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
1111 1111 1111 1111
0000 ---- 0000 ----
LATD
TRISD
PSPCON
LATD Data Output Register
PORTD Data Direction Register
IBF
OBF
—
IBOV PSPMODE
WAIT1 WAIT0
—
—
—
—
—
WM1
—
MEMCON EBDIS
WM0 0-00 --00 0-00 --00
Legend: x= unknown, u= unchanged, - = unimplemented, read as '0'. Shaded cells are not used by PORTD.
2003 Microchip Technology Inc.
Advance Information
DS39609A-page 113