
323
PD7 (input/output)
PD6 (input/output)
PD5 (input/output)
PD4 (input/output)
PD3 (input/output)
PD2 (input/output)
PD1 (input/output)
PD0 (input/output)
Port D
Figure 9-14 Port D Pin Functions (Mode 7)
9.10.4
MOS Input Pull-Up Function
Port D has a built-in MOS input pull-up function that can be controlled by software. MOS input
pull-up can be used in mode 7, and can be specified as on or off for individual bits.
With the port input pin function (mode 7), when a PDDDR bit is cleared to 0, setting the
corresponding PDPCR 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-19 summarizes the MOS input pull-up states.
Table 9-19 MOS Input Pull-Up States (Port D)
Pins
Power-On
Reset
Hardware
Standby
Mode
Manual
Reset
Software
Standby
Mode
In Other
Operations
Data input/output (modes 4 to 6),
port output (mode 7)
OFF
Port input (mode 7)
OFF
ON/OFF
Legend:
OFF:
MOS input pull-up is always off.
ON/OFF: On when PDDDR = 0 and PDPCR = 1; otherwise off.