M37221M4H/M6H/M8H/MAH–XXXSP/FP M37221EASP/FP
7. PIN DESCRIPTION
Table 7.1 Pin Description
Input/
Output
Pin
VCC,
Name
Name
Power source
Apply voltage of 5 V ± 10 % (typical) to VCC, and 0 V to VSS.
VSS.
CNVSS
RESET
CNVSS
This is connected to VSS.
Reset input
Input
To enter the reset state, the reset input pin must be kept at a “L” for 2 µs or more (under
normal VCC conditions).
If more time is needed for the quartz-crystal oscillator to stabilize, this “L” condition should
be maintained for the required time.
XIN
Clock input
Input
This is the input pin for the main clock generating circuit. To control generating frequency,
an external ceramic resonator or a quartz-crystal oscillator is connected between pins XIN
and XOUT. If an external clock is used, the clock source should be connected to the XIN pin
and the XOUT pin should be left open.
XOUT
Clock output
Output
P00/PWM0– I/O port P0
P05/PWM5,
P06/INT2/
I/O
Port P0 is an 8-bit I/O port with a direction register allowing each I/O bit to be individually
programmed as input or output. At reset, this port is set to input mode. The output structure
is N-channel open-drain output (See note 1.)
A-D4,
PWM output
P07/INT1
Output
Input
Output Pins P00 to P05 are also used as PWM output pins PWM0 to PWM4, respectively.
The output structure is N-channel open-drain output.
External interrupt
Pins P06, P07 are also used as external interrupt input pins INT2 and INT1 respectively.
input
Analog input
I/O port P1
Input
I/O
P06 pin is also used as analog input pin A-D4.
I/O Port P1 is a 8-bit I/O port and has basically the same functions as port P0. The output
structure is CMOS output (See note 1.)
P10/OUT2,
P11/SCL1,
P12/SCL2,
P13/SDA1,
P14/SDA2,
P15/A-D1/
INT3,
OSD output
Multi-master
Output
I/O
Pins P10 is also used as OSD output pin OUT2. The output structure is CMOS output.
Pins P11–P14 are used as SCL1, SCL2, SDA1 and SDA2 respectively, when multi-master
2
2
I C-BUS interface
I C-BUS interface is used. The output structure is N-channel open-drain output.
Analog input
Input
Input
Pins P15–P17 are also used as analog input pins A-D1 to A-D3 respectively.
P15 pin is also used as external interrupt input pin INT3.
P16/A-D2,
P17/A-D3
External interrupt
input
P20/SCLK,
P21/SOUT,
P22/SIN,
P23/TIM3,
P24/TIM2,
P25–P27
I/O port P2
I/O
Port P2 is an 8-bit I/O port and has basically the same functions as port P0. The output
structure is CMOS output. The output structure is CMOS output (See note 1.)
Pins P23, P24 are also used as timer external clock input pins TIM3, TIM2 respectively.
Timer external clock input
Input
I/O
P20 pin is also used as serial I/O synchronizing clock input/output pin SCLK. The output
structure is N-channel open-drain output.
Serial I/O synchro-
nizing clock input/
output
Pins P21, P22 are also used as serial I/O data input/output pins SOUT, SIN respectively.
The output structure is N-channel open-drain output.
Serial I/O data
input/output
I/O
I/O
Ports P30–P32 are a 3-bit I/O port and has basically the same functions as port P0. Either
CMOS output or N-channel open-drain output structure can be selected as the port P30
and P31. The output structure of port P32 is N-channel open-drain output. (See notes 1, 2)
I/O port P3
P30/A-D5/
DA1,
P31/A-D6/
DA2,
P32
Pins P30, P31 are also used as analog input pins A-D5, A-D6 respectively.
Analog input
Input
Pins P30, P31 are also used as D-A conversion output pins DA1, DA2 respectively. (See
note 3)
D-A conversion
output
Output
P33/OSC1,
P34/OSC2
Ports P33, P34 are a 2-bit input port.
Input port P3
Input
Input
P33 pin is also used as OSD clock input pin OSC1.
Clock input for
OSD
P34 pin is also used as OSD clock output pin OSC2. The output structure is CMOS output.
Clock output for
OSD
Output
Rev.1.00 Oct 01, 2002 page 8 of 110
REJ03B0134-0100Z