Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
264
13.3.2.3
IC_SAR
Name
: I
2
C Slave Address Register
Size:
32 bits
Address offset
: 0x08
Read/write access
: read/write
31
30
29
…
12
11
10
9
8
7
…
2
1
0
RSVD
IC_SAR
R/W
Bit
Name
Access
Reset
Description
31:10
RSVD
N/A
-
Reserved
9:0
IC_SAR
R/W
0x11
The IC_SAR holds the slave address when the I
2
C is operating as a slave. For 7-bit addressing,
only IC_SAR[6:0] is used.
This register can be written only when the I
2
C interface is disabled, which corresponds to the
register being set to 0. Writes at other times have no effect.
Note
: The default values cannot be any of the reserved address locations: that is, 0x00 to 0x07,
or 0x78 to 0x7f. The correct operation of the device is not guaranteed if you program the
IC_SAR
or
IC_TAR
to a reserved value.
Note
: It is not necessary to perform any write to this register if I
2
C is enabled as an I
2
C master only.
13.3.2.4
IC_HS_MADDR
Name
: I
2
C High Speed Master Mode Code Address Register
Size:
32 bits
Address offset
: 0x0C
Read/write access
: read/write
31
30
29
…
5
4
3
2
1
0
RSVD
IC_HS_MAR
R/W
Bit
Name
Access
Reset Description
31:3
RSVD
N/A
-
Reserved
2:0
IC_HS_MAR
R/W
0x0
This bit field holds the value of the I
2
C HS mode master code. HS-mode master codes are
reserved 8-bit codes (00001xxx) that are not used for slave addressing or other purposes. Each
master has its unique master code; up to eight high speed mode masters can be present on
the same I
2
C bus system. Valid values are from 0 to 7.
This register can be written only when the I
2
C interface is disabled, which corresponds to the
register being set to 0. Writes at other times have no effect.
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.
13.3.2.5
IC_DATA_CMD
Name:
I
2
C Rx/Tx Data Buffer and Command Register
Size:
32 bits
Bit[11:8] exists if
DMA_MODE
= 0
Address offset
: 0x10
Read/write access
: read/write
This is the register the CPU writes to when filling the Tx FIFO and the CPU reads from when retrieving bytes from Rx FIFO.
Note
: In order for the I
2
C to continue acknowledging reads, a read command should be written for every byte that is to be received; otherwise
the I
2
C will stop acknowledging.
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03