beautypg.com

Toshiba H1 SERIES TLCS-900 User Manual

Page 196

background image

TMP92CM22

2007-02-16

92CM22-194

(2) Transfer modes

The SBI0CR1 is used to select a transmit, receive or transmit/receive

mode.

1. 8-bit transmit mode

Set a control register to a transmit mode and write transmission data to the

SBI0DBR.

After the transmit data has been written, set the SBI0CR1 to “1” to

start data transfer. The transmitted data is transferred from the SBI0DBR to the
shift register and output, starting with the least significant bit (LSB), via the SO
pin and synchronized with the serial clock. When the transmission data has been
transferred to the shift register, the SBI0DBR becomes empty. The INTSBE0
(Buffer empty) interrupt request is generated to request new data.

When the internal clock is used, the serial clock will stop and the automatic

wait function will be initiated if new data is not loaded to the data buffer register
after the specified 8-bit data is transmitted. When new transmission data is
written, the automatic wait function is canceled.

When the external clock is used, data should be written to the SBI0DBR before

new data is shifted. The transfer speed is determined by the maximum delay time
between the time when an interrupt request is generated and the time when data
is written to the SBI0DBR by the interrupt service program.

When the transmit is started, after the SBI0SR goes “1” output from the

SO pin holds final bit of the last data until falling edge of the SCK.

For stopping data transmission, when the is cleared to “0” by the

INTSBE0 interrupt service program or when the is set to “1”. When
the is cleared to “0”, the transmitted mode ends when all data is output.
In order to confirm whether data is being transmitted properly by the program,
the to be sensed. The SBI0SR is cleared to “0” when transmission
has been completed. When the is set to “1”, transmitting datat stops.
The turns “0”.

When the external clock is used, it is also necessary to clear the to “0”

before new data is shifted; otherwise, dummy data is transmitted and operation
ends.

This manual is related to the following products: