HD404054 Series/HD404094 Series
32
Input/Output
The MCU has 27 input/output pins (D
0
–D
9
, R0
0
–R4
3
) and 8 input pins (D
12
, D
13,
RC
0,
RD
0
– RD
3
, RE
0
). The
features are described below. Some input/output pins have different features between the HD404054 Series
and HD404094 Series. The differences between the HD404054 Series and HD404094 Series are listed in
table 19.
A maximum current of 15 mA is allowed for each of the pins D
4
to D
9
with a total maximum current of
less than 105 mA. In addition, D
0
–D
3
can each act as a 10-mA maximum current source.
Some input/output pins are multiplexed with peripheral function pins such as for the timers or serial
interface. For these pins, the peripheral function setting is done prior to the D or R port setting.
Therefore, when a peripheral function is selected for a pin, the pin function and input/output selection
are automatically switched according to the setting.
Input or output selection for input/output pins and port or peripheral function selection for multiplexed
pins are set by software.
Peripheral function output pins are CMOS output pins. Only the R4
3
/SO
1
pin can be set to NMOS open-
drain output by software.
In stop mode, the MCU is reset, and therefore peripheral function selection is cancelled. Input/output
pins are in high-impedance state.
Pins D
0
–D
3
have built-in pull-down MOSs, and other input/output pins have built-in pull-up MOSs,
which can be individually turned on or off by software.
I/O buffer configuration is shown in figure 19 programmable I/O circuits are listed in table 20, and I/O pin
circuit types are shown in table 21.
Table 19
The differences between HD404054 Series and HD404094 Series
HD404054 Series
HD404094 Series
Large-current source pins (15 mA)
D
0
–D
3
D
4
–D
9
D
0
–D
3
D
8
, D
9
D
4
–D
7
(output only)
Large-current sink pins (10 mA)
Intermediate voltage NMOS open-drain
pins (12 V)
Pull-down MOS current pins
D
0
–D
3
D
4
–D
9
, R0–R4
D
0
–D
3
D
8
, D
9
, R0–R4
Pull-up MOS current pins