English
Language : 

PIC18F6520-I Datasheet, PDF (115/380 Pages) Micrel Semiconductor – 64/80-Pin High-Performance, 256 Kbit to 1 Mbit Enhanced Flash Microcontrollers with A/D
PIC18F6520/8520/6620/8620/6720/8720
TABLE 10-7: PORTD FUNCTIONS
Name
Bit# Buffer Type
Function
RD0/PSP0/AD0 bit 0
RD1/PSP1/AD1 bit 1
RD2/PSP2/AD2 bit 2
RD3/PSP3/AD3 bit 3
RD4/PSP4/AD4 bit 4
RD5/PSP5/AD5 bit 5
RD6/PSP6/AD6 bit 6
RD7/PSP7/AD7 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.
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.
DS39609B-page 113