Toshiba H1 SERIES TLCS-900 User Manual
Page 197

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
= 1 then loop.
JR NZ,
STEST1
STEST2 :
BIT
0, (P9)
; If SCK
= 0 then loop.
JR
Z,
STEST2
LD
(SBI0CR1),
00000111B
;
← 0
b
b7
*
(a) Internal clock
a2
a1
a4
a3
a6
a5
b0
a7
b2
b1
b4
b3
b6
b5
a0
Clear
SCK pin (Output)
a
Writing transmission data
SO pin
INTSBE0
interrupt request
SBI0DBR
(b) External clock
Clear
SCK pin (Input)
Writing transmission data
SO pin
INTSBE0
interrupt request
SBI0DBR
b7
*
a2
a1
a4
a3
a6
a5
b0
a7
b2
b1
b4
b3
b6
b5
a0
b
a
This manual is related to the following products: