tmp88cs38ng TOSHIBA Semiconductor CORPORATION, tmp88cs38ng Datasheet - Page 108

no-image

tmp88cs38ng

Manufacturer Part Number
tmp88cs38ng
Description
Cmos 8-bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
c.
8-bit transmit/receive mode
After the data is written, set the SIOS to “1” to start transmitting/receiving. When
transmitting, the data is output from the SO pin on the leading edges in
synchronous with the serial clock, starting from the least significant bit (LSB).
When receiving, the data is input to the SI pin on the trailing edges of the serial
clock. 8-bit data is transferred from the shift register to the SBIDBR, and the
INTSBI interrupt request occurs. The interrupt service program reads the
received data from the data buffer register and writes data to be transmitted. The
SBIDBR is used for both transmitting and receiving. Transmitted data should
always be written after received data is read.
received data is read and next data is written.
the external clock, received data is read and transmitted data is written before
new shift operation is executed. The maximum transfer speed when the external
clock is used is determined by the delay time between the time when an interrupt
request is generated and the time when received data is read and transmitted
data is written.
transmitted data is output from the time SIOF is set to “1” until the falling edge of
interrupt service program or setting the SIONH to “1”. When the SIOS is cleared,
received data is transferred to the SBIDBR in complete blocks. The
transmit/receive mode ends when the transfer is complete. In order to confirm if
data is surely transmitted/received by the program, set the SIOF (Bit3 in
SBISRB) to be sensed. The SIOF becomes “0” after transmitting/receiving is
complete. When the SIONH is set, transmitting/receiving data stops. The SIOF
turns “0”.
Note: When the transfer mode is switched, the SBIDBR contents are lost. In case
SCK
Set a control register to a transmit/receive mode and write data to the SBIDBR.
When the internal clock is used, automatic-wait function is initiated until
When the external clock is used, since the shift operation is synchronized with
When transmission starts, a value which is the same as the last bit of previously
Transmitting/receiving data is ended by cleaning the SIOS to “0” by the INTSBI
occurs.
that the mode needs to be switched, conclude transmitting/receiving data by
clearing the SIOS to “0”, read the last data, and then switch the transfer mode.
88CS38-108
TMP88CS38/CM38A/CP38A
2007-09-12

Related parts for tmp88cs38ng