TMP91C824
91C824-159
(6) Transmitter/Receiver
selection
Set the SBI0CR2<TRX> to “1” for operating the TMP91C824F as a transmitter. Clear the <TRX>
to “0” for operation as a receiver. When data with an addressing format is transferred in Slave Mode,
when a slave address with the same value that an I2C0AR or a GENERAL CALL is received (all
8-bit data are “0” after a start condition), the <TRX> is set to “1” by the hardware if the direction bit
(
W
/
R
) sent from the master device is “1”, and is cleared to “0” by the hardware if the bit is “0”. In
the Master Mode, after an Acknowledge signal is returned from the slave device, the <TRX> is
cleared to “0” by the hardware if a transmitted direction bit is “1”, and is set to “1” by the hardware
if it is “0”. When an Acknowledge signal is not returned, the current condition is maintained.
The <TRX> is cleared to “0” by the hardware after a stop condition on the I
2
C bus is detected or
arbitration is lost.
(7) Start/Stop
condition
generation
When the SBI0SR<BB> is “0”, 8-bit data which are set to SBI0DBR are output on a bus after
generating a start condition by writing “1” to the SBI0CR2 <MST,TRX,BB,PIN>. It is necessary to
set transmitted data to the data buffer register (SBI0DBR) and set “1” to <ACK> beforehand.
SCL line
Start condition
A6
Slave address and the direction bit
Acknowledge
signal
1
SDA line
2
3
4
5
6
7
8
9
A5
A4
A3
A2
A1
A0
R/ W
Figure 3.10.9
Start condition generation and slave address generation
When the <BB> is “1”, a sequence of generating a stop condition is started by writing “1” to the
<MST,TRX,PIN>, and “0” to the <BB>. Do not modify the contents of <MST,TRX,BB,PIN> until
a stop condition is generated on a bus.
Stop condition
SCL line
SDA line
Figure 3.10.10
Stop condition generation
The state of the bus can be ascertained by reading the contents of SBI0SR<BB>. SBI0SR<BB>
will be set to 1 if a start condition has been detected on the bus, and will be cleared to 0 if a stop
condition has been detected.
And about generation of stop condition in master mode, there are some limitation point. Please
refer to “ 3.10.6(4) Stop condition generation “.