3
3851 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
V
CC
, V
SS
PIN DESCRIPTION
Table 1 Pin description
Functions
Name
Pin
Apply voltage of 2.7 V – 5.5 V to Vcc, and 0 V to Vss.
This pin controls the operation mode of the chip.
Normally connected to V
SS
.
Reset input pin for active “L.”
Input and output pins for the clock generating circuit.
Connect a ceramic resonator or quartz-crystal oscillator between the X
IN
and X
OUT
pins to set
the oscillation frequency.
When an external clock is used, connect the clock source to the X
IN
pin and leave the X
OUT
pin open.
8-bit CMOS I/O port.
I/O direction register allows each pin to be individually programmed as either input or output.
CMOS compatible input level.
CMOS 3-state output structure.
P1
3
to P1
7
(5 bits) are enabled to output large current for LED drive.
8-bit CMOS I/O port.
I/O direction register allows each pin to be individually
programmed as either input or output.
CMOS compatible input level.
P2
2
to P2
5
can be switched between CMOS compat-
ible input level or SMBUS input level in the I
2
C-BUS
interface function.
P2
0
, P2
1
, P2
4
to P2
7
: CMOS3-state output structure.
P2
4
, P2
5
: N-channel open-drain structure in the I
2
C-
BUS interface function.
P2
2
, P2
3
: N-channel open-drain structure.
8-bit CMOS I/O port with the same function as port P0.
CMOS compatible input level.
CMOS 3-state output structure.
8-bit CMOS I/O port with the same function as port P0.
CMOS compatible input level.
CMOS 3-state output structure.
Power source
Function except a port function
Sub-clock generating circuit I/O
pins (connect a resonator)
Clock input
Clock output
I/O port P0
I/O port P1
I/O port P2
CNV
SS
input
CNV
SS
RESET
Reset input
X
IN
X
OUT
P0
0
–P0
7
P1
0
–P1
7
P2
0
/X
COUT
P2
1
/X
CIN
P2
2
/SDA
1
P2
3
/SCL
1
P2
4
/SDA
2
/RxD
P2
5
/SCL
2
/TxD
P2
6
/S
CLK
P2
7
/CNTR
0
/
S
RDY
I/O port P3
I/O port P4
I
2
C-BUS interface function pins
I
2
C-BUS interface function pin/
Serial I/O function pins
Serial I/O function pin
Serial I/O function pin/
Timer X function pin
A-D converter input pin
Timer Y function pin
Interrupt input pins
Interrupt input pin
PWM output pin
P3
0
/AN
0
–
P3
4
/AN
4
P4
0
/CNTR
1
P4
1
/INT
0
–
P4
3
/INT
2
P4
4
/INT
3
/PWM