p2125vps20 Renesas Electronics Corporation., p2125vps20 Datasheet - Page 439

no-image

p2125vps20

Manufacturer Part Number
p2125vps20
Description
16-bit Single-chip Microcomputer H8s Family / H8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
(1)
Figure 16.10 shows the sample flowchart for the operations in master receive mode (HNDS = 1).
Figure 16.10 Sample Flowchart for Operations in Master Receive Mode (HNDS = 1)
Receive Operation Using the HNDS Function (HNDS = 1)
No
No
Read IRIC flag in ICCR
Set HNDS = 1 in ICXR
Set ACKB = 0 in ICSR
Clear IRIC flag in ICCR
Read IRIC flag in ICCR
Clear IRIC flag in ICCR
Set ACKB = 1 in ICSR
Clear IRIC flag in ICCR
Set TRS = 0 in ICCR
Master receive mode
Set TRS = 1 in ICCR
Set BBSY = 0 and
SCP = 0 in ICCR
Last receive?
Read ICDR
Read ICDR
Read ICDR
IRIC = 1?
IRIC = 1?
End
Yes
Yes
No
Yes
[1] Select receive mode.
[2] Start receiving. The first read is a dummy read.
[5] Read the receive data (for the second and subsequent read)
[3] Wait for 1 byte to be received.
[4] Clear IRIC flag.
[6] Set acknowledge data for the last reception.
[7] Read the receive data.
[8] Wait for 1 byte to be received.
[9] Clear IRIC flag.
[10] Read the receive data.
[11] Set stop condition issuance.
(Set IRIC at the rise of the 9th clock for the receive frame)
Dummy read to start receiving if the first frame is
the last receive data.
Generate stop condition.
Rev. 1.00 Sep. 21, 2006 Page 401 of 658
Section 16 I
2
C Bus Interface (IIC)
REJ09B0310-0100

Related parts for p2125vps20