Toshiba H1 SERIES TLCS-900 User Manual

Page 197

Advertising
background image

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

b7

*

<SIOS>

(a) Internal clock

a2

a1

a4

a3

a6

a5

b0

a7

b2

b1

b4

b3

b6

b5

a0

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

b7

*

a2

a1

a4

a3

a6

a5

b0

a7

b2

b1

b4

b3

b6

b5

a0

b

a

Advertising
This manual is related to the following products: