13.6.3 Transferring a Data Word
At the end of a data word transfer, the INTSBI interrupt is generated to test <MST> to determine whether
the SBI is in the master or slave mode.
13.6.3.1 Master mode (<MST> = "1")
Test <TRX> to determine whether the SBI is configured as a transmitter or a receiver.
(1)
Transmitter mode (<TRX> = "1")
Test <LRB>. If <LRB> is "1", that means the receiver requires no further data.
The master then generates the stop condition as described later to stop transmission.
If <LRB> is "0", that means the receiver requires further data.If the next data to be transmitted
has eight bits, the data is written into SBIDBR. If the data has different length, <BC[2:0]> and
<ACK> are programmed and the transmit data is written into SBIDBR.Writing the data makes
<PIN> to "1", causing the SCL pin to generate a serial clock for transferring a next data word, and
the SDA pin to transfer the data word.
After the transfer is completed, the INTSBI interrupt request is generated, <PIN> is cleared to
"0", and the SCL pin is pulled to the "Low" level.
To transmit more data words, test <LRB> again and repeat the above procedure.
INTSBI interrupt
if MST = 0
Then go to the slave-mode processing.
if TRX = 0
Then go to the receiver-mode processing.
if LRB = 0
Then go to processing for generating the stop condition.
SBICR1
←
X
X
X
X
0
X
X
X
Specifies the number of bits to be transmitted and
specify whether ACK is required.
SBIDBR
←
X
X
X
X
X
X
X
X
Writes the transmit data.
End of interrupt processing.
Note:
X; Don’t care
TMPM3V6/M3V4
Page 289
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: ......