h8s-2138 Renesas Electronics Corporation., h8s-2138 Datasheet - Page 556

no-image

h8s-2138

Manufacturer Part Number
h8s-2138
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 16 I
Rev. 4.00 Jun 06, 2006 page 502 of 1004
REJ09B0301-0400
2
C Bus Interface [H8S/2138 Group Option]
Figure 16.15 Flowchart for Master Receive Mode (Example)
No
No
No
No
Set WAIT = 1 in ICMR
Set ACKB = 0 in ICSR
Set ACKB = 1 in ICSR
and SCP = 0 in ICCR
Set WAIT = 0 in ICMR
Master receive mode
Set TRS = 1 in ICCR
Set TRS = 0 in ICCR
Clear 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
Read IRIC in ICCR
Clear IRIC in ICCR
Write BBSY = 0
Last receive ?
Last receive ?
Read ICDR
Read ICDR
Read ICDR
IRIC = 1?
IRIC = 1?
IRIC = 1?
IRIC=1?
End
Yes
No
Yes
Yes
No
Yes
Yes
Yes
[1] Select receive mode
[2] Start receiving. The first read is a dummy
[3] Wait for 1 byte to be received.
[4] Clear IRIC to trigger the 9th clock.
[5] Wait for 1 byte to be received.
[6] Read the received data.
[7] Clear IRIC
[8] Wait for the next data to be received.
[9] Clear IRIC
[10] Set ACKB = 1 so as to return no
[11] Clear IRIC
[12] Wait for 1 byte to be received.
[13] Set WAIT = 0.
[14] Stop condition issuance.
read. After reading ICDR, please clear
IRIC immediately.
(8th clock falling edge)
(to end the wait insertion)
(9th clock rising edge)
(8th clock falling edge)
(to end the wait insertion)
acknowledge, and set TRS = 1 so as not
to issue extra clock.
(to end the wait insertion)
Read ICDR.
Clear IRIC.
(Note: After setting WAIT = 0, IRIC
should be cleared to 0)

Related parts for h8s-2138