![](http://datasheet.mmic.net.cn/390000/M38207M8-051_datasheet_16817049/M38207M8-051_31.png)
1-15
3820 GROUP USER’S MANUAL
MITSUBISHI MICROCOMPUTERS
3820 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Related SFRs
PULL register A
Segment output
enable register
PULL register A
Segment output
enable register
PULL register A
Interrupt control
register 2
PULL register A
Segment output
enable register
PULL register B
φ
output control
register
PULL register B
Interrupt edge selection
register
PULL register B
Serial I/O1 control register
Serial I/O1 status register
UART control register
PULL register B
Serial I/O2 control
register
PULL register B
Timer X mode register
PULL register B
Timer Y mode register
PULL register B
Timer 123 mode register
PULL register B
Interrupt edge
selection register
PULL register B
Timer X mode register
Interrupt edge
selection register
PULL register B
Timer X mode register
PULL register A
CPU mode register
LCD mode register
Pin
P0
0
/SEG
24
–
P0
7
/SEG
31
P1
0
/SEG
32
–
P1
7
/SEG
39
P2
0
– P2
7
P3
0
/SEG
16
–
P3
7
/SEG
23
P4
0
P4
1
/
φ
P4
2
/INT
0
,
P4
3
/INT
1
P4
4
/R
X
D
P4
5
/T
X
D
P4
6
/S
CLK1
P4
7
/S
RDY1
P5
0
/S
IN2
P5
1
/S
OUT2
P5
2
/S
CLK2
P5
3
/S
RDY2
P5
4
/CNTR
0
P5
5
/CNTR
1
P5
6
/T
OUT
P5
7
/INT
2
P6
0
/INT
3
/RTP
0
P6
1
/RTP
1
P7
0
/X
COUT
P7
1
/X
CIN
COM
0
-COM
3
SEG
0
-SEG
15
Name
Port P0
Port P1
Port P2
Port P3
Port P4
Port P5
Port P6
Port P7
Common
Segment
Input/Output
Input/output,
individual ports
Input/output,
individual ports
Input/output,
individual bits
Input
Input
Input/output,
individual bits
Input/output,
individual bits
Input/output,
individual bits
Input/output,
individual bits
output
output
I/O Format
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS compatible
input level
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS 3-state output
LCD common output
LCD segment output
Non-Port Function
LCD segment output
LCD segment output
Key input(Key-on
wake up) interrupt
input
LCD segment output
φ
clock output
External interrupt input
Serial I/O1 function I/O
Serial I/O2 function I/O
Timer I/O
Timer I/O
Timer output
External interrupt input
External interrupt input
Real time port
function output
Real time port
function output
Sub-clock
generating circuit
I/O
Diagram No.
(1)
(2)
(3)
(4)
(5)
(2)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(10)
(15)
(2)
(16)
(17)
(18)
(19)
(20)
Table 6. I/O ports functions
Note
: Make sure that the input level at each pin is either 0 V or V
CC
during execution of the STP instruction.
When an input level is at an intermediate potential, a current will flow from V
CC
to V
SS
through the input-stage gate.