Inter-integrated Circuit (I2C) Interface
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
263
3
IC_10BITADDR_SLAVE
R/W
0x0
When acting as a slave, this bit controls whether the I
2
C responds to 7- or 10-bit
addresses.
0: 7-bit addressing. The I
2
C ignores transactions that involve 10-bit
addressing; for 7-bit addressing, only the lower 7 bits of the IC_SAR register
are compared.
1: 10-bit addressing. The I
2
C responds to only 10-bit addressing transfers
that match the full 10 bits of the IC_SAR register.
2:1
SPEED
R/W
0x0
These bits control at which speed the I
2
C operates; its setting is relevant only if
one is operating the I
2
C in master mode. Hardware protects against illegal values
being programmed by software.
1: Standard mode (0 to 100Kbit/s)
2: Fast mode (≤ 400Kbit/s)
3: High speed mode (≤ 3.4Mbit/s)
0
MASTER_MODE
R/W
0x0
This bit controls whether the I
2
C master is enabled.
0: Master disabled
1: Master enabled
Note
: Software should ensure that if this bit is written with ‘1,’ then bit 6 should
also be written with a ‘1’.
13.3.2.2
IC_TAR
Name
: I
2
C Target Address Register
Size:
32 bits
Address
offset
: 0x04
Read/write
access
: read/write
Writes to IC_TAR succeed when one of the following conditions are true:
I
2
C is NOT enabled (IC_ENABLE is set to 0); or I
2
C is enabled (IC_ENABLE is set to 1); AND
I
2
C is NOT engaged in any master (tx, rx) operation (IC_STATUS[5]=0); AND I
2
C is enabled to operate in master mode (IC_CON[0]=1); AND
there are NO entries in the Tx FIFO (IC_STATUS[2]=1)
31
30
…
14
13
12
11
10
9
8
…
1
0
RSVD
IC_10BITAD
DR_MASTER
SPECIAL
GC_OR_S
TART
IC_TAR
R/W
R/W
R/W
R/W
Bit
Name
Access Reset Description
31:13
RSVD
N/A
-
Reserved
12
IC_10BITADDR_MASTER R/W
0x0
This bit controls whether the I
2
C starts its transfers in 7-or 10-bit addressing mode
when acting as a master.
0: 7-bit addressing
1: 10-bit addressing
11
SPECIAL
R/W
0x0
This bit indicates whether software performs a General Call or START BYTE command.
0: Ignore bit 10 (
GC_OR_START)
and use IC_TAR normally
1: Perform special I
2
C command as specified in bit 10 (
GC_OR_START)
10
GC_OR_START
R/W
0x0
If bit 11 (
SPECIAL
) is set to 1, then this bit indicates whether a General Call or START
byte command is to be performed by the I
2
C.
0: General Call Address – after issuing a General Call, only writes may be
performed. Attempting to issue a read command results in setting bit 6
(
TX_ABRT
) of the IC_RAW_INTR_STAT
register. The I
2
C remains in General Call
mode until the
SPECIAL
bit (bit 11) value is cleared.
1: START BYTE
9:0
IC_TAR
R/W
0x10
This is the target address for any master transaction. When transmitting a General
Call, these bits are ignored. To generate a START BYTE, the CPU needs to write only
once into these bits.
Note
: It is not necessary to perform any write to this register if I
2
C is enabled as an I
2
C slave only.
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03