English
Language : 

PIC18F2331 Datasheet, PDF (130/396 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PIC18F2331/2431/4331/4431
TABLE 10-7: PORTD FUNCTIONS
Name
Bit # Buffer Type
Function
RD0/T0CKI/T5CKI bit 0
ST
Input/output port pin.
RD1/SDO
bit 1
ST
Input/output port pin.
RD2/SDI/SDA
bit 2
ST
Input/output port pin.
RD3/SCK/SCL
bit 3
ST
Input/output port pin.
RD4/FLTA
bit 4
ST
Input/output port pin.
RD5/PWM4
bit 5
ST
Input/output port pin, or PCPWM output PWM4.
RD6/PWM6
bit 6
ST
Input/output port pin, or PCPWM output PWM6.
RD7/PWM7
bit 7
ST
Input/output port pin, or PCPWM output PWM7.
Legend: ST = Schmitt Trigger input, TTL = TTL input
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
PORTD
LATD
TRISD
Legend:
RD7
RD6
RD5
RD4
RD3
RD2
RD1
RD0
xxxx xxxx
LATD Data Output Register
xxxx xxxx
PORTD Data Direction Register
1111 1111
x = unknown, u = unchanged, – = unimplemented, read as ‘0’. Shaded cells are not used by PORTD.
Value on
all other
Resets
uuuu uuuu
uuuu uuuu
1111 1111
DS39616B-page 128
Preliminary
 2003 Microchip Technology Inc.