HD6412373R RENESAS [Renesas Technology Corp], HD6412373R Datasheet - Page 866

no-image

HD6412373R

Manufacturer Part Number
HD6412373R
Description
Renesas 16-Bit Single-Chip Microcomputer H8S Family/H8S/2300 Series
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Section 16 I
Rev.7.00 Mar. 18, 2009 page 798 of 1136
REJ09B0109-0700
Note: * Ensure that no interrupts are received while steps [1] through [3] are being processed.
Additional information: If only one byte is received, steps [2] through [6] are omitted following step [1],
No
No
No
Set ACKBT = 0 (ICIER)
Set ACKBT = 1 (ICIER)
Set RCVD = 0 (ICCRA)
Set RCVD - 1 (ICCRA)
Clear ACKBT in ICIER
Set MST = 0 (ICCRA)
Set TRS = 0 (ICCRA)
Clear TEND in ICSR
Clear TDRE of ICSR
Dummy read ICDRR
Read RDRF in ICSR
Read RDRF in ICSR
Clear STOP of ICSR
Read STOP of ICSR
Mater receive mode
2
C Bus Interface 2 (IIC2) (Option)
Write BBSY = 0
Read ICDRR
Read ICDRR
Read ICDRR
(Last receive
and SCP = 0
RDRF=1 ?
RDRF=1 ?
STOP=1 ?
- 1)?
End
Figure 16.15 Sample Flowchart for Master Receive Mode
Yes
Yes
Yes
No
and processing jumps to step [7].
Yes
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
[11]
[12]
[13]
[14]
[15]
[16]
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10] Clear STOP flag.
[11] Stop condition issuance.
[12] Wait for the creation of stop condition.
[13] Read the receive data of the final byte, and clear RDRF to 0.
[14] Clear RCVD to 0.
[15] Clear ACKBT.
[16] Set slave receive mode.
Clear TEND, select master receive mode, and then clear TDRE. *
Set acknowledge to the transmitting device. *
Dummy read ICDDR. *
Wait for 1 byte to be received.
Check if (last receive - 1).
Read the receive data, and clear RDRF to 0.
Set acknowledge of the final byte. Disable continuous receive (RCVD = 1).
Read receive data of (final byte - 1), and clear RDRF to 0.
Wait for the final byte to be received.

Related parts for HD6412373R