
10
3851 Group
(Built-in 16 KB ROM)
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
Fig. 8 Port block diagram (2)
(10) Ports P3
0
–P3
4
r
e
c
t
o
n
r
e
g
i
s
t
e
r
D
a
t
a
b
u
s
Port latch
(11) Port P4
0
C
N
T
R
1
i
n
t
e
r
r
u
p
t
i
n
p
u
t
Data bus
Port latch
r
e
c
t
o
n
r
e
g
i
s
t
e
r
(
9
)
P
o
r
t
P
2
7
D
a
t
a
b
u
s
P
o
r
t
l
a
t
c
h
r
e
c
t
o
n
r
e
g
i
s
t
e
r
Timer output
S
e
r
i
a
l
I
/
O
e
n
a
b
l
e
b
i
t
S
R
D
Y
o
u
t
p
u
t
e
n
a
b
l
e
b
i
t
S
e
r
i
a
l
I
/
O
m
o
d
e
s
e
l
e
c
t
i
o
n
b
i
C
N
T
R
0
i
n
t
e
r
r
u
p
t
i
n
p
u
t
S
e
r
i
a
l
r
e
a
d
y
o
u
t
p
u
A
-
D
c
o
n
v
e
r
t
e
r
i
n
p
u
t
A
n
a
l
o
g
i
n
p
u
t
p
i
n
s
e
l
e
c
t
i
o
n
b
i
t
(12) Ports P4
1
–P4
3
r
e
c
t
o
n
r
e
g
i
s
t
e
r
Data bus
Port latch
Interrupt input
P
u
l
s
e
o
u
t
p
u
t
m
o
d
e
T
i
m
e
r
o
u
t
p
u
t
(
1
3
)
P
o
r
t
P
4
4
P
W
M
o
u
t
p
u
D
a
t
a
b
u
s
P
o
r
t
l
a
t
c
h
rect
on
re
ister
P
W
M
o
u
t
p
u
t
e
n
a
b
l
e
b
i
t
P
u
l
s
e
o
u
t
p
u
t
m
o
d
e
P
u
l
s
e
o
u
t
p
u
t
m
o
d
e
Interrupt input
Kommentare zu diesen Handbüchern