Datasheet

Section 9 I/O Ports
Rev.6.00 Mar. 18, 2009 Page 375 of 980
REJ09B0050-0600
9.9.4 Port B MOS Pull-Up Control Register (PBPCR)
PBPCR controls the on/off state of MOS input pull-up 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
When PBDDR = 0 (input port), setting the
corresponding bit to 1 turns on the MOS input pull-
up for that pin.
3 PB3PCR 0 R/W
2 PB2PCR 0 R/W
1 PB1PCR 0 R/W
0 PB0PCR 0 R/W
9.9.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