![](http://datasheet.mmic.net.cn/30000/M30280M6-XXXHP_datasheet_2358793/M30280M6-XXXHP_271.png)
M16C/28 Group
Under development Preliminary specification
Specifications in this manual are tentative and subject to change.
16. MULTI-MASTER I2C bus INTERFACE
Rev.0.60 2004.02.01
page 253 of N
REJ09B0047-0060Z
16.5.8 Bit 7: Communication mode select bit (master/slave select bit: MST)
This bit is used for the master/slave select bit for the data communication. When this bit is “0”, the slave is
specified, so that a START condition and a STOP condition are generated by the master are received. The
data communication is performed synchronized with the clock generated by the master. When this bit is
“1”, the master is specified and a START condition and a STOP condition are generated.
Additionally, the clocks required for the data communication are generated on the SCL.
This bit is set to “0” by hardware in one of the following conditions.
Immediately after the completion of 1-byte data transfer,which lost the arbitration, when arbitration lost is
detected.
When a STOP condition is detected.
When a START condition is detected.
Writing a start condition is disabled by the start condition duplicate protect function(Note 1).
At reset
Note 1. START condition duplicate protect function
The MST, TRX, and BB bits are set to “1” at the same time after confirming that the BB flag is “0”
in the procedure of a START condition generation. However, when a START condition generation
by other master devices and the BB flag is set to “1” immediately after the contents of the BB flag
are confirmed, the START condition duplicate protect function makes the writing to the MST and
TRX bits invalid. The duplicate protect function becomes valid from the rising of the BB flag to
receive completion of the slave address. Refer to Section 16.9 START Condition Generation
Method for details.
16.5.7 Bit 6: Communication mode select bit (transfer direction select bit: TRX)
This bit decides a transfer direction for the data communication. When this bit is “0”, receive mode is
selected and the data from a transmit device is received. When the bit is “1”, transmit mode is selected
and the address data and the control data are output onto the SDA synchronized with the clock gener-
ated on the SCL. This bit can be set/reset by software or hardware. This bit is set to “1” by hardware in the
following condition:
In slave mode with the ALS = 0, if the AAS flag is set to “1” after the address data receive and the
___
received R/W bit is “1”.
This bit is set to “0” by hardware in one of the following conditions:
When an arbitration lost is detected.
When a STOP condition is detected.
When a START condition is detected.
When a start condition is disabled by the START condition duplicate protect function (1).
When a start condition is detected with MST = 0.
When ACK non-return is detected with MST = 0.
ES0 = 0.
At reset