HD6417320 RENESAS [Renesas Technology Corp], HD6417320 Datasheet - Page 736

no-image

HD6417320

Manufacturer Part Number
HD6417320
Description
Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7700 Series
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Section 20
Rev. 3.00 Jan. 18, 2008 Page 674 of 1458
REJ09B0033-0300
I
No
No
Clear ACKBT in ICIER to 0
2
C Bus Interface (IIC)
Set ACKBT in ICIER to 1
Dummy-read ICDRR
Read RDRF in ICSR
Read RDRF in ICSR
Slave receive mode
Clear AAS in ICSR
Read ICDRR
Read ICDRR
Read ICDRR
Figure 20.17
RDRF=1 ?
RDRF=1 ?
Last receive
End
- 1?
Yes
Yes
No
Yes
Sample Flowchart for Slave Receive Mode
Note: When one byte is received, steps [2] to [6] are skipped; step [7]
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
is executed after step [1]. Setp [8] is ICDRR dummy read.
[1] Clear the AAS flag.*
[2] Set acknowledge to the transmit device.
[3] Dummy-read ICDRR.
[4] Wait for 1 byte to be received.
[5] Check whether it is the (last receive - 1).
[6] Read the receive data.
[7] Set acknowledge of the last byte.
[8] Read the (last byte - 1) of receive data.
[9] Wait the last byte to be received.
[10] Read for the last byte of receive data.

Related parts for HD6417320