English
Language : 

HD6432633 Datasheet, PDF (889/1453 Pages) Renesas Technology Corp – Series of Microcomputers (MCUs: microcomputer units)
Master receive mode
Set TRS = 0 (ICCR)
Set ACKB = 0 (ICSR)
Clear IRIC flag in ICCR
Set WAIT = 1 (ICMR)
Read ICDR
[1] Set to receive mode
[2] Receive start, dummy read.
Read IRIC flag in ICCR
No
IRIC = 1?
Yes
Set ACKB = 1 (ICSR)
Set TRS = 1 (ICCR)
Clear IRIC flag in ICCR
[3] Receive wait state (IRIC set at falling edge
of 8th clock cycle) or
Wait for end of reception of 1 byte
(IRIC set at rising edge of 9th clock cycle).
[7] Set acknowledge data for final receive.
[9] Set TRS to generate stop condition.
[11] Clear IRIC flag (cancel wait state).
Read IRIC flag in ICCR
No
IRIC = 1?
Yes
Set WAIT = 0 (ICMR)
Clear IRIC flag in ICCR
Read ICDR
Write BBSY = 0
and SCP = 0 (ICCR)
End
[12] Wait for end of reception of 1 byte.
(IRIC set at rising edge of 9th clock cycle)
[15] Cancel wait mode
Clear IRIC flag. (IRIC flag should be
cleared when WAIT = 0.)
[16] Read final receive data.
[17] Generate stop condition.
Figure 18-11 Flowchart for Master Receive Mode (Receiving 1 Byte) (WAIT = 1)
(Example)
The procedure for receiving data sequentially, using the wait states (WAIT bit) for
synchronization with ICDR (ICDRR) read operations, is described below.
The procedure below describes the operation for receiving multiple bytes. Note that some of the
steps are omitted when receiving only 1 byte. Refer to figure 18-11 for details.
[1] Clear the TRS bit in ICCR to 0 to switch from transmit mode to receive mode. Clear the
ACKB bit in ICSR to 0 (acknowledge data setting). Clear the HNDS bit in ICXR to 0 (cancel
handshake function). Clear the IRIC flag to 0, then set the WAIT bit in ICMR to 1.
835