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

no-image

HD6432160

Manufacturer Part Number
HD6432160
Description
Hitachi 16-Bit Single-Chip Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
8.12
Port B is an 8-bit I/O port. Port B pins also have XBS input/output pins, LPC input/output pins,
wakeup event interrupt input pins, and a data bus input/output function. The pin functions depend
on the operating mode. Port B has the following registers.
8.12.1
PBDDR specifies input or output for the pins of port B on a bit-by-bit basis.
Bit
7
6
5
4
3
2
1
0
Rev. 2.0, 08/02, page 198 of 788
Port B data direction register (PBDDR)
Port B output data register (PBODR)
Port B input data register (PBPIN)
Bit Name
PB7DDR
PB6DDR
PB5DDR
PB4DDR
PB3DDR
PB2DDR
PB1DDR
PB0DDR
Port B
Port B Data Direction Register (PBDDR)
Initial Value
0
0
0
0
0
0
0
0
R/W
W
W
W
W
W
W
W
W
PBDDR has the same address as P7PIN, and if
read, the port 7 pin states will be returned.
Description
Modes 1, 2, and 3 (EXPE = 1)
When the ABW bit in WSCR is cleared to 0,
port B pins automatically become data I/O pins
(D7 to D0), regardless of the input/output
direction indicated by PBDDR. When the ABW
bit is 1, a port B pin becomes an output port if
the corresponding PBDDR bit is set to 1, and
an input port if the bit is cleared to 0.
Modes 2 and 3 (EXPE = 0)
A port B pin becomes an output port if the
corresponding PBDDR bit is set to 1, and an
input port if the bit is cleared to 0.

Related parts for HD6432160