![](http://datasheet.mmic.net.cn/30000/M37540M2-XXXSP_datasheet_2359868/M37540M2-XXXSP_7.png)
7540 Group
Rev.4.00
Jun 21, 2004
page 7 of 82
REJ03B0011-0400Z
PIN DESCRIPTION
Table 1 Pin description
Function
Apply voltage of 2.2 to 5.5 V to Vcc, and 0 V to Vss.
Reference voltage input pin for A/D converter
Chip operating mode control pin, which is always connected to Vss.
Reset input pin for active “L”
Input and output pins for main clock generating circuit
Connect a ceramic resonator or quartz crystal oscillator between the XIN and XOUT pins.
For using RC oscillator, short between the XIN and XOUT pins, and connect the capacitor and resistor.
If an external clock is used, connect the clock source to the XIN pin and leave the XOUT pin open.
When the on-chip oscillator is selected as the main clock, connect XIN pin to VSS and leave XOUT open.
Function expect a port function
Name
Power source
(Note 1)
Analog reference
voltage
CNVss
Reset input
Clock input
I/O port P0
I/O port P1
Pin
Vcc, Vss
VREF
CNVss
RESET
XIN
P00/CNTR1
P01/TYOUT
P02/TZOUT
P03/TXOUT
P04–P07
Notes 1: VCC = 2.4 to 5.5 V for the extended operating temperature version and the extended operating temperature 125 °C version.
2: P26/AN6 and P27/AN7 do not exist for the 32-pin version, so that Port P2 is a 6-bit I/O port.
3: P35 and P36/INT1 do not exist for the 32-pin version, so that Port P3 is a 6-bit I/O port.
Key-input (key-on wake up
interrupt input) pins
Timer Y, timer Z, timer X and
timer A function pin
8-bit I/O port.
I/O direction register allows each pin to be individually pro-
grammed as either input or output.
CMOS compatible input level
CMOS 3-state output structure
Whether a built-in pull-up resistor is to be used or not can be de-
termined by program.
5-bit I/O port
I/O direction register allows each pin to be individually pro-
grammed as either input or output.
CMOS compatible input level
CMOS 3-state output structure
CMOS/TTL level can be switched for P10, P12 and P13
8-bit I/O port having almost the same function as P0
CMOS compatible input level
CMOS 3-state output structure
8-bit I/O port
P10/RxD1
P11/TxD1
P12/SCLK1/SCLK2
P13/SRDY1/SDATA2
P14/CNTR0
P20/AN0–P27/AN7
P30–P35
P36/INT1
P37/INT0
I/O port P2
(Note 2)
I/O port P3
(Note 3)
Serial I/O1 function pin
Serial I/O2 function pin
Timer X function pin
Input pins for A/D converter
Interrupt input pins
I/O direction register allows each pin to be individually programmed as either input or output.
CMOS compatible input level (CMOS/TTL level can be switched for P36 and P37).
CMOS 3-state output structure
P30 to P36 can output a large current for driving LED.
XOUT
Clock output
Whether a built-in pull-up resistor is to be used or not can be de-
termined by program.