
312
Pin
Pin Functions and Selection Method
PB0/A8
The pin function is switched as shown below according to the combination of the
operating mode, PFCR setting, bit PB1DDR.
Operating mode
Modes 4 to 6
AE3 to AE0 in
PFCR
B'0000
Other than B'0000
P30DDR
0
1
—
Pin function
PB0 input
PB0 output
A8 output
Operating mode
Mode 7
AE3 to AE0 in
PFCR
—
PB0DDR
0
1
Pin function
PB0 input
PB0 output
9.8.4
MOS Input Pull-Up Function
Port B has a built-in MOS input pull-up function that can be controlled by software. MOS input
pull-up can be specified as on or off for individual bits.
With port input pins, when a PBDDR bit is cleared to 0, setting the corresponding PBPCR bit to 1
turns on the MOS input pull-up for that pin.
The MOS input pull-up function is in the off state after a power-on reset and in hardware standby
mode. The previous state is retained after a manual reset and in software standby mode.
Table 9-15 summarizes the MOS input pull-up states.
Table 9-15 MOS Input Pull-Up States (Port B)
Pins
Power-On
Reset
Hardware
Standby
Mode
Manual
Reset
Software
Standby
Mode
In Other
Operations
Address output, port output
OFF
Port input
OFF
ON/OFF
Legend:
OFF:
MOS input pull-up is always off.
ON/OFF: On when PBDDR = 0 and PBPCR = 1; otherwise off.