English
Language : 

PIC18F6585 Datasheet, PDF (137/496 Pages) Microchip Technology – 64/68/80-Pin High-Performance, 64-Kbyte Enhanced Flash Microcontrollers with ECAN Module
PIC18F6585/8585/6680/8680
TABLE 10-7: PORTD FUNCTIONS
Name
Bit# Buffer Type
Function
RD0/PSP0/AD0(2) bit 0
RD1/PSP1/AD1(2) bit 1
RD2/PSP2/AD2(2) bit 2
RD3/PSP3/AD3(2) bit 3
RD4/PSP4/AD4(2) bit 4
RD5/PSP5/AD5(2) bit 5
RD6/PSP6/AD6(2) bit 6
RD7/PSP7/AD7(2) bit 7
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 bit 0 or address/data bus bit 0.
Input/output port pin, Parallel Slave Port bit 1 or address/data bus bit 1.
Input/output port pin, Parallel Slave Port bit 2 or address/data bus bit 2.
Input/output port pin, Parallel Slave Port bit 3 or address/data bus bit 3.
Input/output port pin, Parallel Slave Port bit 4 or address/data bus bit 4.
Input/output port pin, Parallel Slave Port bit 5 or address/data bus bit 5.
Input/output port pin, Parallel Slave Port bit 6 or address/data bus bit 6.
Input/output port pin, Parallel Slave Port bit 7 or address/data bus bit 7.
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.
2: Available in PIC18F8X8X devices only.
TABLE 10-8: SUMMARY OF REGISTERS ASSOCIATED WITH PORTD
Name Bit 7 Bit 6 Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
POR, BOR
Value on
all other
Resets
PORTD
RD7 RD6 RD5
RD4
RD3 RD2 RD1 RD0 xxxx xxxx uuuu uuuu
LATD
LATD Data Output Register
xxxx xxxx uuuu uuuu
TRISD PORTD Data Direction Register
1111 1111 1111 1111
PSPCON IBF OBF IBOV PSPMODE —
—
—
— 0000 ---- 0000 ----
MEMCON EBDIS — WAIT1 WAIT0
—
— WM1 WM0 0-00 --00 0-00 --00
Legend: x = unknown, u = unchanged, – = unimplemented, read as ‘0’. Shaded cells are not used by PORTD.
 2004 Microchip Technology Inc.
DS30491C-page 135