LS_I2C controller
RM0082
624/844
Doc ID 018672 Rev 1
28.6.5 IC_SAR
register(0x008)
The IC_SAR is the 10 bit RW register which holds the slave address. The I
2
C controller
responds to this address when it is operating as a slave. In case of 7 bit addressing
(IC_10BITADDR_SLAVE bit set to ‘b0 in IC_CON register,
), only bits [6:0]
are used. The IC_SAR bit assignments are given in
.
Note:
This register can be written only when the I
2
C controller is disabled, which corresponds to
the IC_ENABLE (
) register being set to ’b0. Write at other times has no
effect.
Table 543.
IC_TAR register bit assignments
Bit
Name
Type
Reset
value
Description
[15:13]
Reserved
-
Read: undefined. Write: should be zero.
[12]
IC_10BITADDR_MAST
ER
RW
1’h0
10 bit addressing mode (when acting as
master).
this bit controls whether DW_apb_i2c starts its
transfer in 10 bit addressing mode when acting
as a master according to the encoding below:
1‘b0 = 7.
1‘b1 = 10.
[11]
SPECIAL
RW
1’h0
Perform a general call or start byte I
2
C
command.
This bit indicates whether software would like
to either perform a general call or start byte I
2
C
command, according to the encoding:
1‘b0 = Ignore bit[10], GC_OR_START, in this
register and use IC_TAR normally.
1‘b1 = Perform special I
2
C command as
specified in GC_OR_START bit.
[10]
GC_OR_START
RW
1’h0
Indicates when a general call or start byte I
2
C
command is to be performed.
If bit[11], SPECIAL, in this register is set to ‘b1,
the GC_OR_START bit indicates whether a
general call or start byte command is to be
performed by the I
2
C controller, according to
the encoding below:
1‘b0 = General Call Address: after issuing a
general call, only writes may be performed.
Attempting to issue a read command result in
setting TX_ABRT. The I
2
C controller remains in
general call mode until the SPECIAL bit value
is cleared.
1‘b1 = Start byte.
[09:00]
IC_TAR
RW
10’h0
55
Target address.
This 10 bit field is the target address for any
master transactions. Its reset value indicates
loopback mode.