Download Print this page

Register Descriptions - Renesas H8S Family Hardware Manual

Advertisement

18.3

Register Descriptions

2
The I
C bus interface has the following registers. Registers ICDR and SARX and registers ICMR
and SAR are allocated to the same addresses. Accessible registers differ depending on the ICE bit
in ICCR. When the ICE bit is cleared to 0, SAR and SARX can be accessed, and when the ICE bit
is set to 1, ICMR and ICDR can be accessed.
• I
2
C bus data register (ICDR)
• Slave address register (SAR)
• Second slave address register (SARX)
• I
2
C bus mode register (ICMR)
• I
2
C bus transfer rate select register (IICX3)
• I
2
C bus control register (ICCR)
• I
2
C bus status register (ICSR)
• I
2
C bus extended control register (ICXR)
• I
2
C SMbus control register (ICSMBCR)
2
18.3.1
I
C Bus Data Register (ICDR)
ICDR is an 8-bit readable/writable register that is used as a transmit data register when
transmitting and a receive data register when receiving. ICDR is divided internally into a shift
register (ICDRS), receive buffer (ICDRR), and transmit buffer (ICDRT). Data transfers among the
three registers are performed automatically in accordance with changes in the bus state, and they
affect the status of internal flags such as ICDRE and ICDRF.
In master transmit mode with the I
performed after start condition detection. When the start condition is detected, previous write data
is ignored. In slave transmit mode, writing should be performed after the slave addresses match
and the TRS bit is automatically changed to 1.
If IIC is in transmit mode (TRS=1) and the next data is in ICDRT (the ICDRE flag is 0), data is
transferred automatically from ICDRT to ICDRS, following transmission of one frame of data
using ICDRS. When the ICDRE flag is 1 and the next transmit data writing is waited, data is
transferred automatically from ICDRT to ICDRS by writing to ICDR. If IIC is in receive mode
(TRS=0), no data is transferred from ICDRT to ICDRS. Note that data should not be written to
ICDR in receive mode.
Reading receive data from ICDR is performed after data is transferred from ICDRS to ICDRR.
2
C bus format, writing transmit data to ICDR should be
2
Section 18 I
C Bus Interface (IIC)
Rev. 1.00 Mar. 12, 2008 Page 589 of 1178
REJ09B0403-0100

Advertisement

loading

This manual is also suitable for:

R4f2472R4f2462H8s/2462H8s/2400 seriesH8s/2472