HD6432160 RENESAS [Renesas Technology Corp], HD6432160 Datasheet - Page 210

no-image

HD6432160

Manufacturer Part Number
HD6432160
Description
Hitachi 16-Bit Single-Chip Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
8.5.1
P4DDR specifies input or output for the pins of port 4 on a bit-by-bit basis.
Bit
7
6
5
4
3
2
1
0
8.5.2
P4DR stores output data for port 4.
Bit
7
6
5
4
3
2
1
0
Rev. 2.0, 08/02, page 170 of 788
Bit Name
P47DDR
P46DDR
P45DDR
P44DDR
P43DDR
P42DDR
P41DDR
P40DDR
Bit Name
P47DR
P46DR
P45DR
P44DR
P43DR
P42DR
P41DR
P40DR
Port 4 Data Direction Register (P4DDR)
Port 4 Data Register (P4DR)
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Initial Value
Initial Value
R/W
W
W
W
W
W
W
W
W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Description
When a bit in P4DDR is set to 1, the corresponding
pin functions as an output port, and when cleared to
0, as an input port.
As 14-bit PWM and SCI_2 are initialized in software
standby mode, the pin states are determined by the
TMR_0, TMR_1, XBS, IIC_1, P4DDR, and P4DR
specifications.
Description
If a port 4 read is performed while P4DDR bits are
set to 1, the P4DR values are read directly,
regardless of the actual pin states. If a port 4 read is
performed while P4DDR bits are cleared to 0, the
pin states are read.

Related parts for HD6432160