TMP91C824
91C824-178
2008-02-20
Example: Program to stop data transmission (when an external clock is used)
Figure 3.10.26 Transfer Mode
STEST1: BIT
2,
(SBI0SR)
; If <SEF>
=
1 then loop
JR
NZ,
STEST1
STEST2: BIT
0,
(P7)
; If SCK
=
0 then loop
JR
Z,
STEST2
LD
(SBI0CR1),
00000111B
; <SIOS>
←
0
SBI0DBR
INTSBI interrupt
request
<SIOS>
<SIOF>
<SEF>
SCK pin (Output)
SO pin
b
a
0
a
1
a
2
a
3
a
4
a
5
a
6
a
7
b
0
b
1
b
2
b
3
b
4
b
5
b
6
b
7
*
Clear <SIOS>
a
Write transmitted data
(a) Internal clock
SBI0DBR
INTSBI interrupt
request
<SIOS>
<SIOF>
<SEF>
SCK pin (Input)
SO pin
b
a
0
a
1
a
2
a
3
a
4
a
5
a
6
a
7
b
0
b
1
b
2
b
3
b
4
b
5
b
6
b
7
*
Clear <SIOS>
a
Write transmitted data
(b) External clock