Toshiba H1 SERIES TLCS-900 User Manual
Page 196
TMP92CM22
2007-02-16
92CM22-194
(2) Transfer modes
The SBI0CR1
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
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
SO pin holds final bit of the last data until falling edge of the SCK.
For stopping data transmission, when the
INTSBE0 interrupt service program or when the
the
In order to confirm whether data is being transmitted properly by the program,
the
has been completed. When the
The
When the external clock is used, it is also necessary to clear the
before new data is shifted; otherwise, dummy data is transmitted and operation
ends.