|
M37270MF Datasheet, PDF (40/94 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER | |||
|
◁ |
MITSUBISHI MICROCOMPUTERS
M37270MF-XXXSP
M37270EF-XXXSP, M37270EFSP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER
and ON-SCREEN DISPLAY CONTROLLER
s Bit 3: Arbitration lostV detecting flag (AL)
In the master transmission mode, when the SDA is made âLâ by any
other device, arbitration is judged to have been lost, so that this bit is
set to â1.â At the same time, the TRX bit is set to â0,â so that immedi-
ately after transmission of the byte whose arbitration was lost is com-
pleted, the MST bit is set to â0.â In the case arbitration is lost during
slave address transmission, the TRX bit is set to â0â and the recep-
tion mode is set. Consequently, it becomes possible to receive and
recognize its own slave address transmitted by another master de-
vice.
VArbitration lost: The status in which communication as a master is
disabled.
s Bit 4: I2C-BUS interface interrupt request bit (PIN)
This bit generates an interrupt request signal. Each time 1-byte data
is transmitted, the state of the PIN bit changes from â1â to â0.â At the
same time, an interrupt request signal occurs to the CPU. The PIN
bit is set to â0â in synchronization with a falling of the last clock (in-
cluding the ACK clock) of an internal clock and an interrupt request
signal occurs in synchronization with a falling of the PIN bit. When
the PIN bit is â0,â the SCL is kept in the â0â state and clock generation
is disabled. Figure 42 shows an interrupt request signal generating
timing chart.
The PIN bit is set to â1â in one of the following conditions.
⢠Executing a write instruction to the I2C data shift register (address
00F616).
⢠When the ES0 bit is â0â
⢠At reset
The conditions in which the PIN bit is set to â0â are shown below:
⢠Immediately after completion of 1-byte data transmission (includ-
ing when arbitration lost is detected)
⢠Immediately after completion of 1-byte data reception
⢠In the slave reception mode, with ALS = â0â and immediately after
completion of slave address or general call address reception
⢠In the slave reception mode, with ALS = â1â and immediately after
completion of address data reception
s Bit 5: Bus busy flag (BB)
This bit indicates the status of use of the bus system. When this bit is
set to â0,â this bus system is not busy and a START condition can be
generated. When this bit is set to â1,â this bus system is busy and the
occurrence of a START condition is disabled by the START condi-
tion duplication prevention function (Note).
This flag can be written by software only in the master transmission
mode. In the other modes, this bit is set to â1â by detecting a START
condition and set to â0â by detecting a STOP condition. When the
ES0 bit of the I2C control register (address 00F916) is â0â and at
reset, the BB flag is kept in the â0â state.
s Bit 6: Communication mode specification bit (transfer direction
specification bit: TRX)
This bit decides a direction of transfer for data communication. When
this bit is â0,â the reception mode is selected and the data of a trans-
mitting device is received. When the bit is â1,â the transmission mode
is selected and address data and control data are output onto the
SDA in synchronization with the clock generated on the SCL.
When the ALS bit of the I2C control register (address 00F916) is â0â
in the slave reception mode is selected, the TRX bit is set to â1â
(transmit) if the least significant bit (R/W bit) of the address data trans-
mitted by the master is â1.â When the ALS bit is â0â and the R/W bit is
â0,â the TRX bit is cleared to â0â (receive).
The TRX bit is cleared to â0â in one of the following conditions.
⢠When arbitration lost is detected.
⢠When a STOP condition is detected.
⢠When occurence of a START condition is disabled by the START
condition duplication preventing function (Note).
⢠With MST = â0â and when a START condition is detected.
⢠With MST = â0â and when ACK non-return is detected.
⢠At reset
s Bit 7: Communication mode specification bit (master/slave speci-
fication bit: MST)
This bit is used for master/slave specification for data communica-
tion. When this bit is â0,â the slave is specified, so that a START
condition and a STOP condition generated by the master are re-
ceived, and data communication is performed in synchronization 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 gener-
ated, and also the clocks required for data communication are gen-
erated on the SCL.
The MST bit is cleared to â0â in one of the following conditions.
⢠Immediately after completion of 1-byte data transmission when ar-
bitration lost is detected
⢠When a STOP condition is detected.
⢠When occurence of a START condition is disabled by the START
condition duplication preventing function (Note).
⢠At reset
Note: The START condition duplication prevention function disables
the occurence of a START condition, reset of bit counter and
SCL output when the following condition is satisfied:
⢠a START condition is set by another master device.
40
|
▷ |