
7540 Group User
’
s Manual
APPLICATION
2-113
2.6 Serial I/O1
Fig. 2.6.16 Setting method for UART of serial I/O1 (1)
(2) UART setting method
Figure 2.6.16 and Figure 2.6.17 show the setting method for UART of serial I/O1.
b
7
b0
0
b
1 0
7
b
0
b
7
b0
0 0
0
In
t
e
r
r
u
p
t
c
o
n
t
r
o
l
r
e
g
i
s
t
e
r
1
(
I
C
O
N
1
)
[
A
d
d
r
e
s
s
3
E
1
6
]
S
S
e
r
r
i
i
a
a
l
l
I
I
/
/
O
O
1
1
r
t
e
r
c
e
n
i
v
m
e
t
i
n
i
t
e
t
r
r
r
u
r
p
u
t
t
d
i
s
i
a
s
b
a
l
e
l
d
e
e
a
s
i
n
e
p
d
b
d
P
r
o
c
e
s
s
1
:
S
t
o
p
a
n
d
i
n
i
t
i
a
l
i
z
e
s
e
r
i
a
l
I
/
O
.
S
e
r
i
a
l
I
/
O
1
c
o
n
t
r
o
l
r
e
g
i
s
t
e
r
(
S
I
O
1
C
O
N
)
[
A
d
d
r
e
s
s
1
A
1
6
]
Transmit operation stop and initialization
Receive operation stop and initialization
BRG count source selected (set in internal clock selected)
0: f(X
IN
)
1: f(X
IN
)/4
Serial I/O1 synchronous clock selected (
Note 1
)
0: BRG output/16
1: External clock input/16
Transmit interrupt source selected
0: When transmit buffer has emptied
1: When transmit shift operation is completed
Transmit enable selected
0: Transmit disabled (at half-duplex communication receive)
1: Transmit enabled (at full-duplex communication) (
Note 2
)
Receive enable selected
0: Receive disabled (at half-duplex communication transmit)
1: Receive enabled (at full-duplex communication) (
Note 2
)
Clock asynchronous serial I/O
Serial I/O1 enabled (P1
0
–
P1
2
pins operate as serial I/O1 pins)(
Note 3
)
Serial I/O1 control register (SIO1CON) [Address 1A
16
]
P
r
o
c
e
s
s
3
:
S
e
t
s
e
r
i
a
l
I
/
O
1
c
o
n
t
r
o
l
r
e
g
i
s
t
e
r
.
N
o
t
e
1
:
S
“
“
a
n
e
0
1
W
s
W
o
t
:
:
h
t
h
r
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