English
Language : 

HD64F2145 Datasheet, PDF (490/829 Pages) Renesas Technology Corp – Hitachi 16-Bit Single-Chip Microcomputer
Automatic switching is performed from formatless mode to the I2C bus format when the SW bit in
DDCSWR is automatically cleared to 0 on detection of a falling edge on the SCL pin. Switching
from the I2C bus format to formatless mode is achieved by setting the SW bit in DDCSWR to 1 by
software.
In formatless mode, bits (such as MSL and TRS) that control the I2C bus interface operating mode
must not be modified. When switching from the I2C bus format to formatless mode, set the TRS
bit to 1 or clear it to 0 according to the transfer direction (transmission or reception) in formatless
mode, then set the SW bit to 1. After automatic switching from formatless mode to the I2C bus
format (slave mode), the TRS bit is automatically cleared to 0 in order to wait for slave address
reception.
If a falling edge is detected on the SCL pin during formatless operation, the mode of the I2C bus
interface is immediately switched to I2C bus format before a stop condition is detected.
16.4.9 Operation Using DTC
This LSI provides the DTC to allow continuous data transfer. The DTC is initiated when the IRTR
flag is set to 1, which is one of the two interrupt flags (IRTR and IRIC). When the ACKE bit is 0,
the ICDRE, IRIC, and IRTR flags are set at the end of data transmission regardless of the
acknowledge bit value. If the ACKE bit is 1, the ICDRE, IRIC, and IRTR flags are set when data
transmission is completed with the acknowledge bit value of 0, and if the ACKE bit is 1, only the
IRIC flag is set when data transmission is completed with the acknowledge bit value of 1.
When initiated, the DTC transfers specified number of bytes, clears the ICDRE, IRIC, and IRTR
flags to 0. Therefore, no interrupt is generated during continuous data transfer; however, if data
transmission is completed with the acknowledge bit value of 1 when the ACKE bit is 1, the DTC
is not initiated, thus allowing an interrupt to be generated if enabled.
The acknowledge bit may indicate specific events such as completion of receive data processing
for some receiving devices, and for other receiving devices, the acknowledge bit may be fixed at
1, indicating no specific events.
The I2C bus format provides for selection of the slave device and transfer direction by means of
the slave address and the R/: bit, confirmation of reception with the acknowledge bit, indication
of the last frame, and so on. Therefore, continuous data transfer using the DTC must be carried out
in conjunction with CPU processing by means of interrupts.
Table 16.7 shows some examples of processing using the DTC. These examples assume that the
number of transfer data bytes is known in slave mode.
Rev. 2.0, 08/02, page 450 of 788