h8s-2158 Renesas Electronics Corporation., h8s-2158 Datasheet - Page 589

no-image

h8s-2158

Manufacturer Part Number
h8s-2158
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Figure 17.19 Sample Flowchart for Master Receive Mode
No
No
No
No
Master receive operation
Set WAIT = 1 in ICMR
Set ACKB = 0 in ICSR
Clear IRIC = 1 in ICCR
Set ACKB = 1 in ICSR
Set WAIT = 0 in ICMR
Set TRS = 0 in ICCR
Set TRS = 1 in ICCR
Clear IRIC in ICCR
Read IRIC in ICCR
Read IRIC in ICCR
Clear IRIC in ICCR
Read IRIC in ICCR
Clear IRIC in ICCR
Read IRIC in ICCR
Clear IRIC in ICCR
Clear IRIC in ICCR
Set BBSY = 0 and
SCP = 0 in ICCR
Last receive?
Last receive?
Read ICDR
Read ICDR
Read ICDR
IRIC = 1?
IRIC = 1?
IRIC = 1?
IRIC = 1?
End
Yes
Yes
No
Yes
Yes
No
Yes
Yes
[1] Select receive mode.
[2] Start receiving. The first read
[3] Wait for 1 byte to be received.
[4] Clear IRIC.
[5] Wait for 1 byte to be received.
[6] Read the receive data.
[7] Clear IRIC.
[8] Wait for the data for the second
[9] Clear IRIC.
[10] Set acknowledge data for
[11] Clear IRIC.
[12] Wait for 1 byte to be received.
[13] Clear wait mode.
[14] Stop condition issuance.
(to end the wait insertion)
is a dummy read. (After reading from
ICDR, clear IRIC continuously.)
and subsequent bytes to be received.
(to end the wait insertion)
(to end the wait insertion)
the last reception.
Read receive data.
Clear IRIC.
( IRIC should be cleared to 0
after setting WAIT = 0.)
Rev. 3.00 Jan 25, 2006 page 537 of 872
Section 17 I
2
C Bus Interface (IIC)
REJ09B0286-0300

Related parts for h8s-2158