Datasheet
Section 10 I/O Ports
Rev. 6.00 Mar. 18, 2010 Page 333 of 982
REJ09B0054-0600
• Port B pull-up MOS control register (PBPCR)
10.7.1 Port B Data Direction Register (PBDDR)
PBDDR specifies input or output the port B pins using the individual bits. PBDDR cannot be read;
if it is, an undefined value will be read. This register is a write-only register, and cannot be written
by bit manipulation instruction. For details, see section 2.9.4, Access Methods for Registers with
Write-Only Bits.
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
When a pin is specified as a general purpose I/O port,
setting the bit to 1 makes the corresponding port B pin
an output pin. Clearing the bit to 0 makes the pin an
input pin.
0 PB0DDR 0 W
10.7.2 Port B Data Register (PBDR)
PBDR stores output data for 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
Output data for a pin is stored when the pin is
specified as a general purpose output port.
0 PB0DR 0 R/W