Toshiba TMP92CM22FG Computer Hardware User Manual


 
TMP92CM22
2007-02-16
92CM22-195
Figure 3.10.25 Transmission Mode
Example: Program to stop data transmission (when an external clock is used)
STEST1 : BIT 2, (SBI0SR) ; If <SEF> = 1 then loop.
JR NZ, STEST1
STEST2 : BIT 0, (P9) ; If SCK = 0 then loop.
JR Z, STEST2
LD (SBI0CR1), 00000111B ; <SIOS> 0
b
b
7
*
<SIOS>
(a) Internal clock
a
2
a
1
a
4
a
3
a
6
a
5
b
0
a
7
b
2
b
1
b
4
b
3
b
6
b
5
a
0
Clear <SIOS>
<SIOF>
<SEF>
SCK pin (Output)
a
Writing transmission data
SO pin
INTSBE0
interrupt request
SBI0DBR
<SIOS>
(b) External clock
Clear <SIOS>
<SIOF>
<SEF>
SCK pin (Input)
Writing transmission data
SO pin
INTSBE0
interrupt request
SBI0DBR
b
7
*
a
2
a
1
a
4
a
3
a
6
a
5
b
0
a
7
b
2
b
1
b
4
b
3
b
6
b
5
a
0
b a