English
Language : 

SH7144_08 Datasheet, PDF (550/930 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperHTM RISC engine Family/SH7144 Series
14. I2C Bus Interface (IIC) Option
Master receive mode
Set TRS = 0 (ICCR)
Set ACKB = 0 (ICSR)
Set HNDS = 0 (SCRX)
Clear the IRIC flag in ICCR
Set WAIT = 1 (ICMR)
Read ICDR
Read the IRIC flag in ICCR
No
IRIC = 1?
Yes
Set ACKB = 1 (ICSR)
Set TRS = 1 (ICCR)
Clear the IRIC flag in ICCR
[1] Set receive mode.
[2] Start receiving. Dummy read.
[3] Wait for a receive wait
(set IRIC at the falling edge of the 8th cycle).
[7] Set acknowledge data for the final reception.
[9] Set TRS for stop condition issuance.
[11] Clear the IRIC flag (to cancel wait).
Read the IRIC flag in ICCR
No
IRIC = 1?
Yes
Set WAIT = 0 (ICMR)
Clear the IRIC flag in ICCR
Read ICDR
Write 0 to BBSY and SCP
(ICCR)
[12] Wait for 1 byte to be received
(set IRIC at the rising edge of the 9th cycle).
[15] Cancel wait mode. Clear the IRIC flag.
(IRIC should be cleared to 0 after setting WAIT = 0)
[16] Read the final receive data.
[17] Issue stop condition
End
Figure 14.14 Example: Flowchart of Operations in Master Receive Mode
(One Byte Reception) (WAIT = 1)
Rev.4.00 Mar. 27, 2008 Page 506 of 882
REJ09B0108-0400