![Toshiba TMPM3V4 Manual Download Page 326](http://html.mh-extra.com/html/toshiba/tmpm3v4/tmpm3v4_manual_428626326.webp)
13.8.2 Transfer Modes
The transmit mode, the receive mode or the transmit/receive mode can be selected by programming
SBICR1<SIOM[1:0]>.
13.8.2.1 8-bit transmit mode
Set the control register to the transmit mode and write the transmit data to SBIDBR.
After writing the transmit data, writing "1" to SBICR1<SIOS> starts the transmission. The transmit da-
ta is moved from SBIDBR to a shift register and output to the SO pin, with the least-significant bit
(LSB) first, in synchronization with the serial clock. Once the transmit data is transferred to the shift regis-
ter, SBIDBR becomes empty, and the INTSBI (buffer-empty) interrupt is generated, requesting the next
transmit data.
In the internal clock mode, the serial clock will be stopped and automatically enter the wait state, if
next data is not loaded after the 8-bit data has been fully transmitted. The wait state will be cleared when
SBIDBR is loaded with the next transmit data.
In the external clock mode, SBIDBR must be loaded with data before the next data shift operation is star-
ted. Therefore, the data transfer rate varies depending on the maximum latency between when the inter-
rupt request is generated and when SBIDBR is loaded with data in the interrupt service program.
At the beginning of transmission, the same value as in the last bit of the previously transmitted data is out-
put in a period from setting SBISR<SIOF> to "1" to the falling edge of SCK.
Transmission can be terminated by clearing <SIOS> to "0" or setting <SIOINH> to "1" in the INTSBI in-
terrupt service program. If <SIOS> is cleared, remaining data is output before transmission ends. The pro-
gram checks SBISR<SIOF> to determine whether transmission has come to an end. <SIOF> is cleared to
"0" at the end of transmission. If <SIOINH> is set to "1", the transmission is aborted immediately and
<SIOF> is cleared to "0".
When in the external clock mode, <SIOS> must be cleared to "0" before next data shifting. If <SIOS>
does not be cleared to "0" before next data shifting, SBI output dummy data and stopped.
7
6
5
4
3
2
1
0
SBICR1
←
0
1
0
0
0
X
X
X
Selects the transmit mode.
SBIDBR
←
X
X
X
X
X
X
X
X
Writes the transmit data.
SBICR1
←
1
0
0
0
0
X
X
X
Starts transmission.
INTSBI interrupt
SB
I
DBR
←
X
X
X
X
X
X
X
X
Writes the transmit data.
TMPM3V6/M3V4
13. Serial Bus Interface (I2C/SIO)
13.8 Control in SIO mode
Page 304
2019-02-06
Summary of Contents for TMPM3V4
Page 1: ...32 Bit RISC Microcontroller TX03 Series TMPM3V6 M3V4 ...
Page 2: ... 2019 Toshiba Electronic Devices Storage Corporation ...
Page 7: ...Revision History Date Revision Comment 2019 02 06 1 First Release ...
Page 8: ......
Page 22: ...xiv ...
Page 52: ...TMPM3V6 M3V4 3 Processor Core 3 6 Exclusive access Page 30 2019 02 06 ...
Page 148: ...TMPM3V6 M3V4 7 Exceptions 7 6 Exception Interrupt Related Registers Page 126 2019 02 06 ...
Page 178: ...TMPM3V6 M3V4 9 Input Output port 9 2 Block Diagrams of Ports Page 156 2019 02 06 ...
Page 354: ...TMPM3V6 M3V4 14 Synchronous Serial Port SSP 14 6 Frame Format Page 332 2019 02 06 ...
Page 419: ...TMPM3V6 M3V4 Page 397 2019 02 06 ...
Page 462: ...TMPM3V6 M3V4 21 Watchdog Timer WDT 21 5 Control register Page 440 2019 02 06 ...
Page 544: ......