HD643303x Hitachi, HD643303x Datasheet - Page 177

no-image

HD643303x

Manufacturer Part Number
HD643303x
Description
Hitachi Microcomputer
Manufacturer
Hitachi
Datasheet
Port B Data Direction Register (PBDDR): PBDDR is an 8-bit write-only register that can select
input or output for each pin in port B.
A pin in port B becomes an output pin if the corresponding PBDDR bit is set to 1, and an input pin
if this bit is cleared to 0.
PBDDR is a write-only register. Its value cannot be read. All bits return 1 when read.
PBDDR is initialized to H'00 by a reset and in hardware standby mode. In software standby mode it
retains its previous setting. If a PBDDR bit is set to 1, the corresponding pin maintains its output
state in software standby mode.
Port B Data Register (PBDR): PBDR is an 8-bit readable/writable register that stores data for pins
PB7 to PB0.
When a bit in PBDDR is set to 1, if port B is read the value of the corresponding PBDR bit is
returned directly. When a bit in PBDDR is cleared to 0, if port B is read the corresponding pin level
is read.
PBDR is initialized to H'00 by a reset and in hardware standby mode. In software standby mode it
retains its previous setting.
When port B pins are used for TPC output, PBDR stores output data for TPC output groups 2 and
3. If a bit in the next data enable register (NDERB) is set to 1, the corresponding PBDR bit cannot
be written. In this case, PBDR can be updated only when data is transferred from NDRB.
Bit
Initial value
Read/Write
Bit
Initial value
Read/Write
PB DDR
PB
R/W
7
W
0
7
0
7
7
PB DDR
PB
R/W
6
W
0
6
0
6
6
PB DDR
PB
R/W
5
W
0
5
0
5
Port B data direction 7 to 0
These bits select input or output for port B pins
5
Port B data 7 to 0
These bits store data for port B pins
PB DDR
162
PB
R/W
4
W
0
4
0
4
4
PB DDR
PB
R/W
3
W
0
3
0
3
3
PB DDR
R/W
PB
2
W
2
0
0
2
2
PB DDR
PB
R/W
1
W
0
1
0
1
1
PB DDR
PB
R/W
0
W
0
0
0
0
0

Related parts for HD643303x