![](http://datasheet.mmic.net.cn/30000/M30218MC-AXXXFP_datasheet_2358657/M30218MC-AXXXFP_396.png)
381
Programmable I/O Ports
Mitsubishi microcomputers
M30218 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
(5) I/O functions of built-in peripheral devices
Table 2.15.1 shows relation between ports and I/O functions of built-in peripheral devices.
Table 2.15.1. Relation between ports and I/O functions of built-in peripheral devices
(6) Examples of working on non-used pins
Table 2.15.2 contains examples of working on non-used pins. There are shown here for mere ex-
amples. In practical use, make suitable changes and perform sufficient evaluation in compliance with
you application.
(a) Single-chip mode
Table 2.15.2. Examples of working on unused pins in single-chip mode
Port
P0 to P3
Internal peripheral device I/O pins
FLD controller output pins
P40 to P43
P5, P6
P70 to P72
Timer B0 to B2 input pins
P73
Timer A0 I/O pin
P74 to P77
Timer A1 to A4 input pins/UART1 I/O pins
P80 to P85
External interrupt input pins
P86, P87
Sub-clock input pins
P90 to P95
P96
A-D converter input pins
P97
D-A converter output pin/ X IN division clock output pin
/ DIM signal output pin of FLD controller
FLD controller output pins/UART0 I/O pins
P44 to P47
P100 to P107
D-A converter output pin/Clock I/O pin of serial I/O with automatic transfer function
FLD controller output pins
I/O pins of serial I/O with automatic transfer function
Pin name
Connection
Ports P3, P4, P7 to P10
XOUT (Note 2), VEE
After setting for input mode, connect every pin to V SS or VCC via a
resistor; or after setting for output mode, leave these pins open.
(Note 1)
Open
AVSS, VREF
Connect to V SS
If setting these pins in output mode and opening them, ports are in input mode until switched into
output mode by use of software after reset. Thus the voltage levels of the pins become unstable,
and there can be instances in which the power source current increases while the ports are in
input mode.
In view of an instance in which the contents of the direction registers change due to a runaway
generated by noise or other causes, setting the contents of the direction registers periodically by
use of software increases program reliability.
When an external clock is input to the X IN pin.
Note 1:
Note 2:
Ports P0 to P2, P5, P6
Open