
7540 Group
Rev.4.00 Jun 21, 2004 page 18 of 82
REJ03B0011-0400Z
Fig. 17 Block diagram of ports (1)
(6)Port P11
Data bus
Port latch
S
e
r
i
a
l
I
/
O
1
o
u
t
p
u
t
P1
1
/T
x
D
1
P-channel output disable bit
(
5
)
P
o
r
t
P
10
(
4
)
P
o
r
t
s
P
04
–P
07
(
1
)
P
o
r
t
P
00
D
i
r
e
c
t
i
o
n
r
e
g
i
s
t
e
r
Data bus
P
o
r
t
l
a
t
c
h
P
u
l
l
-
u
p
c
o
n
t
r
o
l
T
o
k
e
y
i
n
p
u
t
i
n
t
e
r
r
u
p
t
g
e
n
e
r
a
t
i
n
g
c
i
r
c
u
i
t
C
N
T
R
1
i
n
t
e
r
r
u
p
t
i
n
p
u
t
(
2
)
P
o
r
t
s
P
01
,
P
02
P
r
o
g
r
a
m
m
a
b
l
e
w
a
v
e
f
o
r
m
g
e
n
e
r
a
t
i
o
n
m
o
d
e
Timer output
(
7
)
P
o
r
t
P
12
Serial I/O1, serial I/O2 clock output
S
e
r
i
a
l
I
/
O
1
m
o
d
e
s
e
l
e
c
t
i
o
n
b
i
t
S
e
r
i
a
l
I
/
O
1
e
n
a
b
l
e
b
i
t
Serial I/O1 enable bit
S
e
r
i
a
l
I
/
O
1
s
y
n
c
h
r
o
n
o
u
s
c
l
o
c
k
s
e
l
e
c
t
i
o
n
b
i
t
S
CLK2
pin
selection bit
(
3
)
P
o
r
t
P
03
Direction
register
Data bus
P
o
r
t
l
a
t
c
h
P
u
l
l
-
u
p
c
o
n
t
r
o
l
To key input interrupt
generating circuit
D
i
r
e
c
t
i
o
n
r
e
g
i
s
t
e
r
D
a
t
a
b
u
s
P
o
r
t
l
a
t
c
h
P
u
l
l
-
u
p
c
o
n
t
r
o
l
To key input interrupt
generating circuit
T
i
m
e
r
o
u
t
p
u
t
P
0
3
/
T
X
O
U
T
o
u
t
p
u
t
v
a
l
i
d
Direction
register
Data bus
P
o
r
t
l
a
t
c
h
P
u
l
l
-
u
p
c
o
n
t
r
o
l
To key input interrupt
generating circuit
D
i
r
e
c
t
i
o
n
r
e
g
i
s
t
e
r
D
a
t
a
b
u
s
Port latch
Serial I/O1 enable bi
Receive enable bi
S
e
r
i
a
l
I
/
O
1
i
n
p
u
t
P1
0
, P1
2
, P1
3
input level
selection bit
D
i
r
e
c
t
i
o
n
r
e
g
i
s
t
e
r
Serial I/O1 enable bi
Transmit enable bi
Direction
register
D
a
t
a
b
u
s
P
o
r
t
l
a
t
c
h
Serial I/O1, serial I/O2 clock input
P
1
0
,
P
1
2
,
P
1
3
i
n
p
u
t
l
e
v
e
l
s
e
l
e
c
t
i
o
n
b
i
t
*
*
*
P1
0
, P1
2
, P1
3
, P3
6
, and P3
7
input level are switched to the CMOS/TTL level by the port P1P3 control register.
P
0
0
k
e
y
-
o
n
w
a
k
e
u
p
s
e
l
e
c
t
i
o
n
b
i
t
W
h
e
n
t
h
e
T
T
L
l
e
v
e
l
i
s
s
e
l
e
c
t
e
d
,
t
h
e
r
e
i
s
n
o
h
y
s
t
e
r
e
s
i
s
c
h
a
r
a
c
t
e
r
i
s
t
i
c
s
.
*
*
*
*
P0
2
/TZ
OUT
;
Programmable waveform generation mode
P
r
o
g
r
a
m
m
a
b
l
e
o
n
e
-
s
h
o
t
g
e
n
e
r
a
t
i
o
n
m
o
d
e
P
r
o
g
r
a
m
m
a
b
l
e
w
a
i
t
o
n
e
-
s
h
o
t
g
e
n
e
r
a
t
i
o
n
m
o
d
e
Comentarios a estos manuales