English
Language : 

PIC18F6X2X Datasheet, PDF (117/386 Pages) Microchip Technology – 64/80-Pin High Performance, 64-Kbyte Enhanced FLASH Microcontrollers with A/D
PIC18F6X2X/8X2X
TABLE 10-7: PORTD FUNCTIONS
Name
Bit# Buffer Type
Function
RD0/AD0/PSP0 bit 0
RD1/AD1/PSP1 bit 1
RD2/AD2/PSP2 bit 2
RD3/AD3/PSP3 bit 3
RD4/AD4/PSP4 bit 4
RD5/AD5/PSP5 bit 5
RD6/AD6/PSP6 bit 6
RD7/AD7/PSP7 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, address/data bus bit 0 or parallel slave port bit 0.
Input/output port pin, address/data bus bit 1 or parallel slave port bit 1.
Input/output port pin, address/data bus bit 2 or parallel slave port bit 2.
Input/output port pin, address/data bus bit 3 or parallel slave port bit 3.
Input/output port pin, address/data bus bit 4 or parallel slave port bit 4.
Input/output port pin, address/data bus bit 5 or parallel slave port bit 5.
Input/output port pin, address/data bus bit 6 or parallel slave port bit 6.
Input/output port pin, address/data bus bit 7 or parallel slave port 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.
 2003 Microchip Technology Inc.
Advance Information
DS39612A-page 115