MB90420G/5G (A) Series
33
s
s PERIPHERAL FUNCTIONS
1.
I/O Ports
The I/O ports function is to send data from the CPU to be output from I/O pins and load input signals at the I/O
pins into the CPU, according to the port data register (PDR) . Port input/output at I/O pins can be controlled in
bit units by the port direction register (DDR) as required. The following list shows each of the functions as well
as the shared peripheral function for each port.
Port 0 : General purpose I/O port, shared with peripheral functions (external interrupt/UART/PPG)
Port 1 : General purpose I/O port, shared with peripheral functions (PPG/reload timer/clock timer/ICU)
Port 3 : General purpose I/O port, shared with peripheral functions (LCD)
Port 4 : General purpose I/O port, shared with peripheral functions (LCD)
Port 5 : General purpose I/O port, shared with peripheral functions (External interrupt/CAN/SG)
Port 6 : General purpose I/O port, shared with peripheral functions (A/D converter)
Port 7 : General purpose I/O port, shared with peripheral functions (Stepping motor controller)
Port 8 : General purpose I/O port, shared with peripheral functions (Stepping motor controller)
Port 9 : General purpose I/O port, shared with peripheral functions (LCD)
(1) List of Functions
Port
Pin name
Input
format
Output
format
Function
bit15
bit14
bit13
bit12
Port 0
P00/SIN0/INT4
to P07/PPG1
CMOS
(hysteresis)
CMOS
General purpose I/O port
Peripheral function
Port 1
P10/PPG2 to
P15/IN0
General purpose I/O port
P15
P14
Peripheral function
IN0
IN1
Port 3
P36/SEG12 to
P37/SEG13
General purpose I/O port
P37
P36
Peripheral function
SEG13 SEG12
Port 4
P40/SEG14 to
P47/SEG21
General purpose I/O port
Peripheral function
Port 5
P50/INT0 to
P57/SGA
General purpose I/O port
P57
P56
P55
P54
Peripheral function
SGA
SGO
RX0
TX0
FRCK
Port 6
P60/AN0 to
P67/AN7
Analog
CMOS
(hysteresis)
General purpose I/O port
Peripheral function
Port 7
P70/PWM1P0 to
P77/PWM2M1
CMOS
(hysteresis)
General purpose I/O port
P77
P76
P75
P74
Peripheral function
PWM2M1
PWM2P1
PWM1M1
PWM1P1
Port 8
P80/PWM1P2 to
P87/PWM2M3
General purpose I/O port
Peripheral function
Port 9
P90/SEG22 to
P91/SEG23
General purpose I/O port
Peripheral function