Datasheet
Section 10 I/O Ports
Rev. 3.00 Mar 17, 2006 page 490 of 926
REJ09B0283-0300
10.10.1 Port B Data Direction Register (PBDDR)
The individual bits of PBDDR specify input or output for the pins of port B.
PBDDR cannot be read; if it is, an undefined value will be read.
Bit Bit Name Initial Value R/W Description
7 PB7DDR 0 W
6 PB6DDR 0 W
5 PB5DDR 0 W
4 PB4DDR 0 W
3 PB3DDR 0 W
2 PB2DDR 0 W
1 PB1DDR 0 W
0 PB0DDR 0 W
• Modes 1, 2, 5, and 6
Port B pins are address outputs regardless of the
PBDDR settings.
• Modes 3
*
(EXPE = 1), 4, and 7 (when EXPE =
1)
Setting a PBDDR bit to 1 makes the corresponding
port B pin an address output, while clearing the bit
to 0 makes the pin an input port.
• Modes 3
*
(EXPE = 1) and 7 (when EXPE = 0)
Port B is an I/O port, and its pin functions can be
switched with PBDDR.
Note: * Only in H8S/2678R Group.
10.10.2 Port B Data Register (PBDR)
PBDR is stores output data for the port B pins.
Bit Bit Name Initial Value R/W Description
7 PB7DR 0 R/W
6 PB6DR 0 R/W
5 PB5DR 0 R/W
4 PB4DR 0 R/W
3 PB3DR 0 R/W
2 PB2DR 0 R/W
1 PB1DR 0 R/W
0 PB0DR 0 R/W
An output data for a pin is stored when the pin
function is specified to a general purpose I/O.










