English
Language : 

HD64F2168 Datasheet, PDF (516/874 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer
[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 to set the acknowledge data.
Clear the HNDS bit in ICXR to 0 to cancel the handshake function.
Clear the IRIC flag to 0, and then set the WAIT bit in ICMR to 1.
[2] When ICDR is read (dummy data is read), reception is started, and the receive clock is
output, and data received, in synchronization with the internal clock.
[3] The IRIC flag is set to 1 in either of the following cases. If the IEIC bit in ICCR has been
set to 1, an interrupt request is sent to the CPU.
(1) At the fall of the 8th receive clock pulse for one frame
SCL is automatically fixed low in synchronization with the internal clock until the IRIC
flag clearing.
(2) At the rise of the 9th receive clock pulse for one frame
The IRTR and ICDRF flags are set to 1, indicating that one frame of data has been
received. The master device outputs the receive clock continuously to receive the next
data.
[4] Read the IRTR flag in ICSR.
If the IRTR flag is 0, execute step [6] to clear the IRIC flag to 0 to release the wait state.
If the IRTR flag is 1 and the next data is the last receive data, execute step [7] to halt
reception.
[5] If IRTR flag is 1, read ICDR receive data.
[6] Clear the IRIC flag. When the flag is set as (1) in step [3], the master device outputs the 9th
clock and drives SDA low at the 9th receive clock pulse to return an acknowledge signal.
Data can be received continuously by repeating steps [3] to [6].
[7] Set the ACKB bit in ICSR to 1 so as to return the acknowledge data for the last reception.
[8] After the IRIC flag is set to 1, wait for at least one clock pulse until the rise of the first
clock pulse for the next receive data.
[9] Set the TRS bit in ICCR to 1 to switch from receive mode to transmit mode. The TRS bit
value becomes valid when the rising edge of the next 9th clock pulse is input.
[10] Read the ICDR receive data.
[11] Clear the IRIC flag to 0.
[12] The IRIC flag is set to 1 in either of the following cases.
(1) At the fall of the 8th receive clock pulse for one frame
SCL is automatically fixed low in synchronization with the internal clock until the IRIC
flag is cleared.
(2) At the rise of the 9th receive clock pulse for one frame
The IRTR and ICDRF flags are set to 1, indicating that one frame of data has been
received.
Rev. 3.00, 03/04, page 476 of 830