Section 17 I
2
C Bus Interface (IIC)
Rev. 3.00 Jan 25, 2006 page 531 of 872
REJ09B0286-0300
17.5.7
Operation Using DTC
This LSI provides the DTC to allow continuous data transfer. The DTC is activated 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. When the ACKE bit is 1, the ICDRE, IRIC, and IRTR flags are set if data
transmission is completed with the acknowledge bit value of 0, and when the ACKE bit is 1, only
the IRIC flag is set if data transmission is completed with the acknowledge bit value of 1.
When initiated, the DTC transfers specified number of bytes, and then 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 activated, 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 held to 1,
indicating no specific events.
The I
2
C bus format provides selection of the slave device and transfer direction by means of the
slave address and the R/
W
bit, and confirmation of reception and display of the last frame with the
acknowledge bit. Therefore, continuous data transfer using the DTC must be carried out in
conjunction with CPU processing by means of interrupts.
For transfer operations by the operation reservation adapter, a stop condition is automatically
issued when transfer of the number of transfer data bytes set by the DTC ends in master mode.
Table 17.8 shows some examples of processing using the DTC. Table 17.9 shows some examples
of operation reservation adapter processing using the DTC. These examples assume that the
number of transfer data bytes is known in slave mode.
Summary of Contents for H8S/2158
Page 10: ...Rev 3 00 Jan 25 2006 page viii of lii...
Page 36: ...Rev 3 00 Jan 25 2006 page xxxiv of lii B Product Lineup 863 C Package Dimensions 864 Index 865...
Page 47: ...Rev 3 00 Jan 25 2006 page xlv of lii Appendix Figure C 1 Package Dimensions TBP 112A 864...
Page 54: ...Rev 3 00 Jan 25 2006 page lii of lii...
Page 70: ...Section 1 Overview Rev 3 00 Jan 25 2006 page 16 of 872 REJ09B0286 0300...
Page 118: ...Section 3 MCU Operating Modes Rev 3 00 Jan 25 2006 page 64 of 872 REJ09B0286 0300...
Page 126: ...Section 4 Exception Handling Rev 3 00 Jan 25 2006 page 72 of 872 REJ09B0286 0300...
Page 198: ...Section 6 Bus Controller Rev 3 00 Jan 25 2006 page 144 of 872 REJ09B0286 0300...
Page 326: ...Section 10 8 Bit PWM Timer PWM Rev 3 00 Jan 25 2006 page 272 of 872 REJ09B0286 0300...
Page 440: ...Section 15 Watchdog Timer WDT Rev 3 00 Jan 25 2006 page 386 of 872 REJ09B0286 0300...
Page 606: ...Section 17 I 2 C Bus Interface IIC Rev 3 00 Jan 25 2006 page 552 of 872 REJ09B0286 0300...
Page 742: ...Section 19 Multimedia Card Interface MCIF Rev 3 00 Jan 25 2006 page 688 of 872 REJ09B0286 0300...
Page 750: ...Section 21 D A Converter Rev 3 00 Jan 25 2006 page 696 of 872 REJ09B0286 0300...
Page 768: ...Section 22 A D Converter Rev 3 00 Jan 25 2006 page 714 of 872 REJ09B0286 0300...
Page 770: ...Section 23 RAM Rev 3 00 Jan 25 2006 page 716 of 872 REJ09B0286 0300...
Page 824: ...Section 26 Clock Pulse Generator Rev 3 00 Jan 25 2006 page 770 of 872 REJ09B0286 0300...
Page 844: ...Section 27 Power Down Modes Rev 3 00 Jan 25 2006 page 790 of 872 REJ09B0286 0300...
Page 878: ...Section 28 List of Registers Rev 3 00 Jan 25 2006 page 824 of 872 REJ09B0286 0300...
Page 926: ...Index Rev 3 00 Jan 25 2006 page 872 of 872 REJ09B0286 0300...