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

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
Figure 16.14 Flowchart for Master Transmit Mode (Example)
No
No
No
No
No
Write transmit data in ICDR
Write transmit data in ICDR
and SCP = 0 in ICCR
and SCP = 0 in ICCR
Read BBSY in ICCR
Read ACKB in ICSR
Read ACKB in ICSR
End of transmission
Read IRIC in ICCR
Read IRIC in ICCR
Read IRIC in ICCR
Clear IRIC in ICCR
Clear IRIC in ICCR
Clear IRIC in ICCR
Set MST = 1 and
TRS = 1 in ICCR
Transmit mode?
Write BBSY = 1
Write BBSY = 0
or ACKB = 1?
BBSY = 0?
ACKB = 0?
Yes
IRIC = 1?
IRIC = 1?
IRIC = 1?
Initialize
Start
End
Yes
Yes
Yes
Yes
Yes
Yes
Section 16 I
No
No
Master receive mode
[1] Initialize
[2] Test the status of the SCL and SDA lines.
[3] Select master transmit mode.
[4] Start condition issuance
[5] Wait for a start condition generation
[6] Set transmit data for the first byte (slave
[7] Wait for 1 byte to be transmitted.
[8] Test the acknowledge bit, transferred from
[9] Set transmit data for the second and
[10] Wait for 1 byte to be transmitted.
[11] Test for end of transfer
[12] Stop condition issuance
address + R/W).
(After writing ICDR, clear IRIC
immediately)
slave device.
subsequent bytes.
(After writing ICDR, clear IRIC
immediately)
Rev. 4.00 Jun 06, 2006 page 501 of 1004
2
C Bus Interface [H8S/2138 Group Option]
REJ09B0301-0400

Related parts for h8s-2138