Download Print this page

Advertisement

8.1.13

Port D

Port D is an 8-bit I/O port. Port D pins can also function as the IIC_5 input/output and LPC
input/output pins. The output format of PD7 and PD6 pins is NMOS push-pull output. Port D has
the following registers.
• Port D data direction register (PDDDR)
• Port D output data register (PDODR)
• Port D input data register (PDPIN)
(1)
Port D Data Direction Register (PDDDR)
The individual bits of PDDDR specify input or output for the port D pins.
Bit
Bit Name
7
PD7DDR
6
PD6DDR
5
PD5DDR
4
PD4DDR
3
PD3DDR
2
PD2DDR
1
PD1DDR
0
PD0DDR
Initial Value
R/W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
Description
If port D pins are specified for use as the general I/O
port, the corresponding pins function as output port
when the PDDDR bits are set to 1, and as input port
when cleared to 0.
Since this register is allocated to the same address as
PDPIN, the states of the port D pins are returned
when this register is read.
Rev. 1.00 Mar. 12, 2008 Page 257 of 1178
Section 8 I/O Ports
REJ09B0403-0100

Advertisement

loading

This manual is also suitable for:

R4f2472R4f2462H8s/2462H8s/2400 seriesH8s/2472