Datasheet

Section 10 I/O Ports
Rev.7.00 Mar. 18, 2009 page 515 of 1136
REJ09B0109-0700
10.10.4 Port B Pull-Up MOS Control Register (PBPCR)
PBPCR controls the on/off state of input pull-up MOS of port B. PBPCR is valid in modes 4 and
7.
Bit Bit Name Initial Value R/W Description
7 PB7PCR 0 R/W
6 PB6PCR 0 R/W
5 PB5PCR 0 R/W
4 PB4PCR 0 R/W
3 PB3PCR 0 R/W
2 PB2PCR 0 R/W
1 PB1PCR 0 R/W
When PBDDR = 0 (input port), setting the
corresponding bit to 1 turns on the input pull-up
MOS for that pin.
0 PB0PCR 0 R/W
10.10.5 Pin Functions
Port B pins also function as the pins for address outputs. The correspondence between the register
specification and the pin functions is shown below.
PB7/A15, PB6/A14, PB5/A13, PB4/A12, PB3/A11, PB2/A10, PB1/A9, PB0/A8
The pin function is switched as shown below according to the operating mode, bit EXPE, and
bit PBDDR.
Operating
mode
1, 2 4 7
EXPE 0 1
PBnDDR 0 1 0 1 0 1
Pin function Address
output
PBn
input
Address
output
PBn
input
PBn
output
PBn
input
Address
output
Legend: n = 7 to 0