![](http://datasheet.mmic.net.cn/280000/M37902F8CHP_datasheet_16084061/M37902F8CHP_6.png)
M37902FCCHP, M37902FGCHP, M37902FJCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
6
Vcc, Vss
MD0
MD1
RESET
X
IN
X
OUT
BYTE
V
CONT
AVcc,
AVss
V
REF
P0
0
–
P0
7
P1
0
–
P1
7
P2
0
–
P2
7
P3
0
–
P3
3
P4
0
–
P4
7
Power supply input
MD0
MD1
Reset input
Clock input
Clock output
External data bus width
select input
Filter circuit connection
Analog power supply input
Reference voltage input
I/O port P0
I/O port P1
I/O port P2
I/O port P3
I/O port P4
—
Input
Input
Input
Input
Output
Input
—
—
Input
I/O
I/O
I/O
I/O
Apply 5 V±0.5 V to Vcc, and 0 V to Vss.
This pin controls the processor mode. Connect this pin to V
SS
for the single-chip
mode or memory expansion mode, and V
CC
for the microprocessor mode.
Connect this pin to Vss.
The microcomputer is reset when
“
L
”
level is applied to this pin.
These are input and output pins of the internal clock generating circuit. Connect a
ceramic or quartz- crystal resonator between the X
IN
and X
OUT
pins. When an
external clock is used, the clock source should be connected to the X
IN
pin, and the
X
OUT
pin should be left open.
This pin determines whether the external data bus has an 8-bit width or 16-bit width
for the memory expansion mode or microprocessor mode. The width is 16 bits when
“
L
”
signal is input, and 8 bits when
“
H
”
signal is input. When BYTE = Vss level, by
the register setting, the external data bus for each of areas CS
1
to CS
3
can have a
width of 8 bits.
When using the PLL frequency multiplier, connect this pin to the filter circuit. When
not using, this pin should be left open.
Power supply input pins for the A-D converter and the D-A converter. Connect AVcc
to Vcc, and AVss to Vss externally.
This is the reference voltage input pin for the A-D converter and the D-A converter.
I
In single-chip mode
Port P0 is an 8-bit I/O port. This port has an I/O direction register, and each pin
can be programmed for input or output. These pins enter the input mode at
reset.
I
In memory expansion and microprocessor modes
Address (A
16
–
A
23
) is output. These pins also function as I/O port pins according
to the register setting.
I
In single-chip mode
These pins have the same functions as port P0.
I
In memory expansion and microprocessor modes
The low-order 8 bits of data (D
0
–
D
7
) are input/output. When the external data bus
has an 8-bit width, address (LA
0
–
LA
7
) output and data (D
0
–
D
7
) input/output can
be performed with the time-sharing method, according to the register setting.
I
In single-chip mode or When 8-bit external data bus is used in memory expansion
mode and microprocessor mode
These pins have the same functions as port P0.
I
When the 16-bit external data bus is used in memory expansion or microproce-
ssor mode
The high-order 8 bits of data (D
8
–
D
15
) are input or output.
I
In single-chip mode
These pins have the same functions as port P0.
I
In memory expansion mode
P3
0
functions as an I/O port pin; and P3
1
, P3
2
, and P3
3
function as the output
pins of RD, BLW, BHW, respectively. P3
0
also functions as an output pin of RDY
according to the register setting. When the external data bus has a width of 8 bits,
the BHW pin functions as an I/O port pin (P3
3
).
I
In microprocessor mode
P3
0
functions as an input pin of RDY; and P3
1
,P3
2
, P3
3
function as the output
pins of RD, BLW, BHW, respectively. P3
0
also functions as an I/O port pin accord-
ing to the register setting. When the external data bus has a width of 8 bits,
the BHW pin functions as an I/O port pin (P3
3
).
I
In single-chip mode
These pins have the same functions as port P0.
I
In memory expansion mode
P4
0
–
P4
7
function as I/O port pins. According to the register setting, these pins
function as output pins or input pins of ALE,
φ
1
, HLDA, HOLD, CS
0
–
CS
3
, respec-
tively.
I
In microprocessor mode
P4
0
–
P4
4
function as output or input pins of ALE,
φ
1
, HLDA, HOLD, CS
0
, and
P4
5
–
P4
7
as I/O port pins, respectively. According to the register setting, P4
0
–
P4
3
also function as I/O port pins, and P4
5
–
P4
7
as output pins of CS
1
–
CS
3
.
PIN DESCRIPTION (MICROCOMPUTER MODE)
Functions
Input/
Output
Name
Pin