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

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
Section 17 I
13. Note on ICDR read in transmit mode and ICDR write in receive mode
14. Note on ACKE and TRS bits in slave mode
Rev. 3.00 Jan 25, 2006 page 548 of 872
REJ09B0286-0300
To receive the address in slave mode, clear the TRS bit to 0 during the time indicated as (a) in
figure 17.27.
To release the SCL low level that is held by means of the wait function in slave mode, clear the
TRS bit to and then dummy-read ICDR.
When ICDR is read in transmit mode (TRS = 1) or ICDR is written to in receive mode (TRS =
0), the SCL pin may not be held low in some cases after transmit/receive operation has been
completed, thus inconveniently allowing clock pulses to be output on the SCL bus line before
ICDR is accessed correctly.
To access ICDR correctly, read the ICDR after setting receive mode or write to the ICDR after
setting transmit mode.
In the I
mode (TRS = 1) and then the address is received in slave mode without performing appropriate
processing, interrupt handling may start at the rising edge of the 9th clock pulse even when the
address does not match.
Similarly, if the start condition or address is transmitted from the master device in slave
transmit mode (TRS = 1) and 1 is received as the acknowledge bit value (ACKB = 1), the IRIC
flag may be set thus causing an interrupt source even when the address does not match.
To use the I
SDA
TRS
SCL
2
transmission
C bus interface, if 1 is received as the acknowledge bit value (ACKB = 1) in transmit
2
C Bus Interface (IIC)
Data
The rise of the 9th clock is detected
8
2
C bus interface module in slave mode, be sure to follow the procedures below.
9
TRS bit setting
(a)
Figure 17.27 TRS Bit Set Timing in Slave Mode
ICDR dummy read
Restart condition
TRS bit setting is suspended in this period
1
Address reception
2
(b)
3
4
5
6
7
The rise of the 9th clock is detected
8
9
A

Related parts for h8s-2158