Registers
The abbreviations given in Column Access are explained in Section Access Types for Registers .
Base Address:
I2C0_REG : 0x41108000
I2C1_REG : 0x4110A000
Name |
Address offset |
Access |
Description |
|---|---|---|---|
000h |
R/W |
||
004h |
R/W |
||
008h |
R/W |
||
00Ch |
R/W |
||
010h |
R/W |
||
014h |
R/W |
||
018h |
R/W |
||
01Ch |
R/W |
||
020h |
R/W |
||
024h |
R/W |
||
028h |
R/W |
||
02Ch |
R |
||
030h |
R/W |
||
034h |
R |
||
038h |
R/W |
||
03Ch |
R/W |
||
040h |
R |
||
044h |
R |
||
048h |
R |
||
04Ch |
R |
||
050h |
R |
||
054h |
R |
||
058h |
R |
||
05Ch |
R |
||
060h |
R |
||
064h |
R |
||
068h |
R |
||
06Ch |
R/W |
||
070h |
R |
||
074h |
R |
||
078h |
R |
||
07Ch |
R/W |
||
080h |
R |
||
084h |
R/W |
||
088h |
R/W |
||
08Ch |
R/W |
||
090h |
R/W |
||
094h |
R/W |
||
098h |
R/W |
||
09Ch |
R |
||
0A0h |
R/W |
||
0A4h |
R/W |
||
0A8h |
R/W |
||
0ACh |
R |
||
0B0h |
R/W |
||
0B4h |
R/W |
||
0E4h |
R |
||
0E8h |
R |
||
0ECh |
R/W |
||
0F4h |
R/W |
||
0FCh |
R |
||
100h |
R |
REG_IC_CON
Name: I2C Control Register
Size: 32
Address offset: 000h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
IC_SLAVE_DISABLE_1 |
R/W |
0x0 |
This bit controls whether I2C has its slave2 (7-bit address) disabled.
|
6 |
IC_SLAVE_DISABLE_0 |
R/W |
0x0 |
This bit controls whether I2C has its slave1 (7-bit or 10-bit address) disabled.
|
5 |
IC_RESTATRT_EN |
R/W |
0x0 |
Determine whether RESTART conditions may be sent when acting as a master.
|
4 |
RSVD |
R |
- |
Reserved |
3 |
IC_10BITADDR_SLAVE |
R/W |
0x0 |
When acting as a slave, this bit controls whether the I2C responds to 7- or 10-bit addresses.
|
2:1 |
SPEED |
R/W |
0x0 |
These bits control at which speed the I2C operates; its setting is relevant only if one is operating the I2C in master mode.
|
0 |
MASTER_MODE |
R/W |
0x0 |
This bit controls whether the I2C master is enabled.
|
REG_IC_TAR
Name: I2C Target Address Register
Size: 32
Address offset: 004h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:13 |
RSVD |
R |
- |
Reserved |
12 |
IC_10BITADDR_MASTER |
R/W |
0x0 |
Control whether I2C starts its transfers in 7- or 10-bit addressing mode when acting as a master.
|
11 |
SPECIAL |
R/W |
0x0 |
This bit indicates whether software performs a General Call or START BYTE command.
|
10 |
GC_OR_START |
R/W |
0x0 |
If SPECIAL is set to 1, then this bit indicates whether a General Call or START BYTE command is to be performed by I2C. (ic_clk domain)
|
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. |
REG_IC_SAR
Name: I2C Slave Address Register
Size: 32
Address offset: 008h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:10 |
RSVD |
R |
- |
Reserved |
9:0 |
IC_SAR |
R/W |
0x11 |
The IC_SAR holds the slave address when the I2C is operating as slave1. For 7-bit addressing, only IC_SAR[6:0] is used. The register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_HS_MAR
Name: I2C High Speed Master Mode Code Address Register
Size: 32
Address offset: 00Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:3 |
RSVD |
R |
- |
Reserved |
2:0 |
IC_HS_MAR |
R/W |
0x0 |
This bit field holds the value of the I2C HS mode master code. HS-mode master codes are reserved 8-bit codes (00001xxx) that are not used for slave addressing or other purposes. This register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE register being set to 0. Write at other times have no effect. |
REG_IC_DATA_CMD
Name: I2C Rx/Tx Data Buffer and Command Register
Size: 32
Address offset: 010h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:12 |
RSVD |
R |
- |
Reserved |
11 |
NULL_DATA |
R/W |
0x0 |
|
10 |
CMD_RESTART |
R/W |
0x0 |
This bit controls whether a RESTART is issued after the byte is sent or received.
|
9 |
CMD_STOP |
R/W |
0x0 |
This bit controls whether a STOP is issued after the byte is sent or received.
|
8 |
CMD_RW |
R/W |
0x0 |
This bit controls whether a read or write is performed. This bit does not control the direction when the I2C acts as a slave. It controls only the direction when it acts as a master.
|
7:0 |
IC_DATA |
R/W |
0x0 |
This register contains the data to be transmitted or received on the I2C bus. If you are writing to this register and want to perform a read, these bits are ignored by the I2C. However, when you read this register, these bits return the value of data received on the I2C interface. |
REG_IC_SS_SCL_HCNT
Name: Standard Speed I2C Clock SCL High Count Register
Size: 32
Address offset: 014h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_SS_SCL_HCNT |
R/W |
0x0190 |
This register sets the SCL clock high-period count for standard speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_SS_SCL_LCNT
Name: Standard Speed I2C Clock SCL Low Count Register
Size: 32
Address offset: 018h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_SS_SCL_LCNT |
R/W |
0x01D6 |
This register sets the SCL clock low-period count for standard speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_FS_SCL_HCNT
Name: Fast Speed I2C Clock SCL High Count Register
Size: 32
Address offset: 01Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_FS_SCL_HCNT |
R/W |
0x003C |
This register sets the SCL clock high-period count for fast speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_FS_SCL_LCNT
Name: Fast Speed I2C Clock SCL Low Count Register
Size: 32
Address offset: 020h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_FS_SCL_LCNT |
R/W |
0x0082 |
This register sets the SCL clock low-period count for fast speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_HS_SCL_HCNT
Name: High Speed I2C Clock SCL High Count Register
Size: 32
Address offset: 024h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_HS_SCL_HCNT |
R/W |
0x0006 |
This register sets the SCL clock high-period count for high speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. The SCL High time depends on the loading of the bus. For 100pF loading, the SCL High time is 60ns; for 400pF loading, the SCL High time is 120ns. |
REG_IC_HS_SCL_LCNT
Name: High Speed I2C Clock SCL Low Count Register
Size: 32
Address offset: 028h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_HS_SCL_LCNT |
R/W |
0x0010 |
This register sets the SCL clock low-period count for high speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. The SCL Low time depends on the loading of the bus. For 100pF loading, the SCL High time is 160ns; for 400pF loading, the SCL High time is 320ns. |
REG_IC_INTR_STAT
Name: I2C Interrupt Status Register
Size: 32
Address offset: 02Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:14 |
RSVD |
R |
- |
Reserved |
13 |
R_LP_WAKE_2 |
R |
0x0 |
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of this bit. |
12 |
R_LP_WAKE_1 |
R |
0x0 |
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of this bit. |
11 |
R_GEN_CALL |
R |
0x0 |
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of this bit. |
10 |
R_START_DET |
R |
0x0 |
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of this bit. |
9 |
R_STOP_DET |
R |
0x0 |
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of this bit. |
8 |
R_ACTIVITY |
R |
0x0 |
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of this bit. |
7 |
R_RX_DONE |
R |
0x0 |
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of this bit. |
6 |
R_TX_ABRT |
R |
0x0 |
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of this bit. |
5 |
R_RD_REQ |
R |
0x0 |
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of this bit. |
4 |
R_TX_EMPTY |
R |
0x0 |
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of this bit. |
3 |
R_TX_OVER |
R |
0x0 |
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of this bit. |
2 |
R_RX_FULL |
R |
0x0 |
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of this bit. |
1 |
R_RX_OVER |
R |
0x0 |
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of this bit. |
0 |
R_RX_UNDER |
R |
0x0 |
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of this bit. |
REG_IC_INTR_MASK
Name: I2C Interrupt Mask Register
Size: 32
Address offset: 030h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:14 |
RSVD |
R |
- |
Reserved |
13 |
M_LP_WAKE_2 |
R/W |
0x0 |
This bit masks the corresponding interrupt status bit in the IC_INTR_STAT register. |
12 |
M_LP_WAKE_1 |
R/W |
0x0 |
This bit masks the corresponding interrupt status bit in the IC_INTR_STAT register. |
11 |
M_GEN_CALL |
R/W |
0x0 |
This bit masks the corresponding interrupt status bit in the IC_INTR_STAT register. |
10 |
M_START_DET |
R/W |
0x0 |
This bit masks the corresponding interrupt status bit in the IC_INTR_STAT register. |
9 |
M_STOP_DET |
R/W |
0x0 |
This bit masks the corresponding interrupt status bit in the IC_INTR_STAT register. |
8 |
M_ACTIVITY |
R/W |
0x0 |
This bit masks the corresponding interrupt status bit in the IC_INTR_STAT register. |
7 |
M_RX_DONE |
R/W |
0x0 |
This bit masks the corresponding interrupt status bit in the IC_INTR_STAT register. |
6 |
M_TX_ABRT |
R/W |
0x0 |
This bit masks the corresponding interrupt status bit in the IC_INTR_STAT register. |
5 |
M_RD_REQ |
R/W |
0x0 |
This bit masks the corresponding interrupt status bit in the IC_INTR_STAT register. |
4 |
M_TX_EMPTY |
R/W |
0x0 |
This bit masks the corresponding interrupt status bit in the IC_INTR_STAT register. |
3 |
M_TX_OVER |
R/W |
0x0 |
This bit masks the corresponding interrupt status bit in the IC_INTR_STAT register. |
2 |
M_RX_FULL |
R/W |
0x0 |
This bit masks the corresponding interrupt status bit in the IC_INTR_STAT register. |
1 |
M_RX_OVER |
R/W |
0x0 |
This bit masks the corresponding interrupt status bit in the IC_INTR_STAT register. |
0 |
M_RX_UNDER |
R/W |
0x0 |
This bit masks the corresponding interrupt status bit in the IC_INTR_STAT register. |
REG_IC_RAW_INTR_STAT
Name: I2C Raw Interrupt Status Register
Size: 32
Address offset: 034h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:14 |
RSVD |
R |
- |
Reserved |
13 |
LP_WAKE_2 |
R |
0x0 |
Set when address SAR_2 matches with address sending on I2C BUS. |
12 |
LP_WAKE_1 |
R |
0x0 |
Set when address SAR matches with address sending on I2C BUS. |
11 |
GEN_CALL |
R |
0x0 |
Set only when a General Call address is received and it is acknowledged. |
10 |
START_DET |
R |
0x0 |
Indicate whether a START or RESTART condition has occurred on the I2C interface regardless of whether I2C is operating in slave or master mode. |
9 |
STOP_DET |
R |
0x0 |
Indicate whether a STOP condition has occurred on the I2C interface regardless of whether I2C is operating in slave or master mode. |
8 |
ACTIVITY |
R |
0x0 |
This bit captures I2C activity. |
7 |
RX_DONE |
R |
0x0 |
When the I2C is acting as a slave-transmitter, this bit is set to 1 if the master does not acknowledge a transmitted byte. This occurs on the last byte of the transmission, indicating that the transmission is done. |
6 |
TX_ABRT |
R |
0x0 |
This bit indicates if I2C as a transmitter, is unable to complete the intended actions on the contents of the transmit FIFO. This situation can occur both as an I2C master or an I2C slave, and is referred to as a ‘transmit abort’.
|
5 |
RD_REQ |
R |
0x0 |
This bit is set to 1 when I2C is acting as a slave and another I2C master is attempting to read data from I2C. The I2C holds the I2C bus in a wait state (SCL=0) until this interrupt is serviced, which means that the slave has been addressed by a remote master that is asking for data to be transferred. The processor must respond to this interrupt and then write the requested data to the IC_DATA_CMD register. |
4 |
TX_EMPTY |
R |
0x0 |
This bit is set to 1 when the transmit buffer is at or below the threshold value set in the IC_TX_TL register. It is automatically cleared by hardware when the buffer level goes above the threshold. |
3 |
TX_OVER |
R |
0x0 |
Set during transmit if the transmit buffer is filled to IC_TX_BUFFER_DEPTH and the processor attempts to issue another I2C command by writing to the IC_DATA_CMD register. |
2 |
RX_FULL |
R |
0x0 |
Set when the receive buffer goes above the RX_TL threshold in the IC_RX_TL register. It is automatically cleared by hardware when buffer level is equal to or less than the threshold. |
1 |
RX_OVER |
R |
0x0 |
Not used. Set if the receive buffer is completely filled to IC_RX_BUFFER_DEPTH and an additional byte is received from an external I2C device. |
0 |
RX_UNDER |
R |
0x0 |
Set if the processor attempts to read the receive buffer when it is empty by reading from the IC_DATA_CMD register. |
REG_IC_RX_TL
Name: I2C Receive FIFO Threshold Register
Size: 32
Address offset: 038h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
IC_RX_0_TL |
R/W |
0x0 |
Receive FIFO Threshold Level. Control the level of entries (or above) that triggers the RX_FULL interrupt (bit[2] in IC_RAW_INTR_STAT register). |
REG_IC_TX_TL
Name: I2C Transmit FIFO Threshold Register
Size: 32
Address offset: 03Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
IC_TX_0_TL |
R/W |
0x0 |
Transmit FIFO Threshold Level. Control the level of entries (or below) that triggers the TX_EMPTY interrupt (bit[4] in IC_RAW_INTR_STAT register). |
REG_IC_CLR_INTR
Name: Clear Combined and Individual Interrupt Register
Size: 32
Address offset: 040h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_INRT |
R |
0x0 |
Read this register to clear the combined interrupt, all individual interrupts, and the IC_TX_ABRT_SOURCE register. This bit does not clear hardware clearable interrupts but software clearable interrupts. |
REG_IC_CLR_RX_UNDER
Name: Clear RX_UNDER Interrupt Register
Size: 32
Address offset: 044h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RX_UNDER |
R |
0x0 |
Read this register to clear the RX_UNDER interrupt (bit[0]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_RX_OVER
Name: Clear RX_OVER Interrupt Register
Size: 32
Address offset: 048h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RX_OVER |
R |
0x0 |
Read this register to clear the RX_OVER interrupt (bit[1]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_TX_OVER
Name: Clear TX_OVER Interrupt Register
Size: 32
Address offset: 04Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_TX_OVER |
R |
0x0 |
Read this register to clear the TX_OVER interrupt (bit[3]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_RD_REQ
Name: Clear RD_REQ Interrupt Register
Size: 32
Address offset: 050h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RD_REQ |
R |
0x0 |
Read this register to clear the RD_REQ interrupt (bit[5]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_TX_ABRT
Name: Clear TX_ABRT Interrupt Register
Size: 32
Address offset: 054h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_TX_ABRT |
R |
0x0 |
Read this register to clear the TX_ABRT interrupt (bit[6]) of IC_RAW_INTR_STAT register and the IC_TX_ABRT_SOURCE register. This also releases the TxFIFO from the flushed/reset state, allowing more writes to the Tx FIFO. |
REG_IC_CLR_RX_DONE
Name: Clear RX_DONE Interrupt Register
Size: 32
Address offset: 058h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RX_DONE |
R |
0x0 |
Read this register to clear the RX_DONE interrupt (bit[7]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_ACTIVITY
Name: Clear ACTIVITY Interrupt Register
Size: 32
Address offset: 05Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_ACTIVITY |
R |
0x0 |
Read this register to clear the ACTIVITY interrupt if the I2C is not active anymore. If the I2C module is still active on the bus, the ACTIVITY interrupt bit continues to be set. It is automatically cleared by hardware if the module is disabled and if there is no further activity on the bus. The value read from this register to get status of the ACTIVITY interrupt (bit[8]) of the IC_RAW_INTR_STAT register. |
REG_IC_CLR_STOP_DET
Name: Clear STOP_DET Interrupt Register
Size: 32
Address offset: 060h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_STOP_DET |
R |
0x0 |
Read this register to clear the STOP_DET interrupt (bit[9]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_START_DET
Name: Clear START_DET Interrupt Register
Size: 32
Address offset: 064h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_START_DET |
R |
0x0 |
Read this register to clear the START_DET interrupt (bit[10]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_GEN_CALL
Name: Clear GEN_ALL Interrupt Register
Size: 32
Address offset: 068h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_GEN_CALL |
R |
0x0 |
Read this register to clear the GEN_CALL interrupt (bit[11]) of IC_RAW_INTR_STAT register. |
REG_IC_ENABLE
Name: I2C Enable Register
Size: 32
Address offset: 06Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:2 |
RSVD |
R |
- |
Reserved |
1 |
FORCE |
R/W |
0x0 |
Force master I2C stop transfer immediately after IC_ENABLE set 0.
|
0 |
ENABLE |
R/W |
0x0 |
Control whether the I2C is enabled.
|
REG_IC_STATUS
Name: I2C Status Register
Size: 32
Address offset: 070h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:7 |
RSVD |
R |
- |
Reserved |
6 |
SLV_ACTIVITY |
R |
0x0 |
Slave FSM Activity Status. When the Slave FSM is not in the IDLE state, this bit is set.
|
5 |
MST_ACTIVITY |
R |
0x0 |
Master FSM Activity Status. When the Master FSM is not in the IDLE state, this bit is set.
|
4 |
RFF |
R |
0x0 |
Receive FIFO Completely Full. When the receive FIFO is completely full, this bit is set. When the receive FIFO contains one or more empty location, this bit is cleared.
|
3 |
RFNE |
R |
0x0 |
Receive FIFO Not Empty. This bit is set when the receive FIFO contains one or more entries; it is cleared when the receive FIFO is empty.
|
2 |
TFE |
R |
0x1 |
Transmit FIFO Completely Empty. When the transmit FIFO is completely empty, this bit is set. When it contains one or more valid entries, this bit is cleared. This bit field does not request an interrupt.
|
1 |
TFNF |
R |
0x1 |
Transmit FIFO Not Full. Set when the transmit FIFO contains one or more empty locations, and is cleared when the FIFO is full.
|
0 |
IC_ACTIVITY |
R |
0x0 |
I2C Activity Status. |
REG_IC_TXFLR
Name: I2C Transmit FIFO Level Register
Size: 32
Address offset: 074h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5:0 |
TXFLR |
R |
0x0 |
Transmit FIFO Level. Contains the number of valid data entries in the transmit FIFO. |
REG_IC_RXFLR
Name: I2C Receive FIFO Level Register
Size: 32
Address offset: 078h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5:0 |
RXFLR |
R |
0x0 |
Receive FIFO Level. Contains the number of valid data entries in the receive FIFO. |
REG_IC_SDA_HOLD
Name: I2C SDA Hold Time Length Register
Size: 32
Address offset: 07Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_SDA_HOLD |
R/W |
0x1 |
Set the required SDA hold time in units of ic_clk period. |
REG_IC_TX_ABRT_SOURCE
Name: I2C Transmit Abort Source Register
Size: 32
Address offset: 080h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:15 |
RSVD |
R |
- |
Reserved |
14 |
ABRT_SLV_ARBLOST |
R |
0x0 |
|
13 |
ABRT_SLVFLUSH_TXFIFO |
R |
0x0 |
|
12 |
ARBT_LOST |
R |
0x0 |
|
11 |
ABRT_MASTER_DIS |
R |
0x0 |
|
10 |
ABRT_10B_RD_NORSTRT |
R |
0x0 |
|
9 |
ABRT_SBYTE_NORSTRT |
R |
0x0 |
|
8 |
ABRT_HS_NORSTRT |
R |
0x0 |
|
7 |
ABRT_SBYTE_ACKDET |
R |
0x0 |
|
6 |
ABRT_HS_ACKDET |
R |
0x0 |
|
5 |
ABRT_GCALL_READ |
R |
0x0 |
|
4 |
ABRT_GCALL_NOACK |
R |
0x0 |
|
3 |
ABRT_TXDATA_NOACK |
R |
0x0 |
|
2 |
ABRT_10ADDR2_NOACK |
R |
0x0 |
|
1 |
ABRT_10ADDR1_NOACK |
R |
0x0 |
|
0 |
ABRT_7B_ADDR_NOACK |
R |
0x0 |
|
REG_IC_SLV_DATA_NACK_ONLY
Name: Generate Slave Data NACK Register
Size: 32
Address offset: 084h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
NACK |
R/W |
0x0 |
Generate NACK. This NACK generation only occurs when I2C is a slave-receiver. If this register is set to a value of 1, it can only generate a NACK after a data byte is received; hence, the data transfer is aborted and the data received is not pushed to the receive buffer. When the register is set to a value of 0, it generates NACK/ACK, depending on normal criteria.
|
REG_IC_DMA_CR
Name: DMA Control Register
Size: 32
Address offset: 088h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:2 |
RSVD |
R |
- |
Reserved |
1 |
TDMAE |
R/W |
0x0 |
Transmit DMA Enable. This bit enables/disables the transmit FIFO DMA channel.
|
0 |
RDMAE |
R/W |
0x0 |
Receive DMA Enable. This bit enables/disables the receive FIFO DMA channel.
|
REG_IC_DMA_TDLR
Name: DMA Transmit Data Level Register
Size: 32
Address offset: 08Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:4 |
RSVD |
R |
- |
Reserved |
3:0 |
DMATDL |
R/W |
0x0 |
Transmit Data Level. This bit field controls the level at which a DMA request is made by the transmit logic. It is equal to the watermark level; that is, the dma_tx_req signal is generated when the number of valid data entries in the transmit FIFO is equal to or below this field value, and TDMAE=1. |
REG_IC_DMA_RDLR
Name: I2C Receive Data Level Register
Size: 32
Address offset: 090h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:4 |
RSVD |
R |
- |
Reserved |
3:0 |
DMARDL |
R/W |
0x0 |
Receive Data Level. This bit field controls the level at which a DMA request is made by the receive logic. The watermark level=DMARDL+1; that is, the dma_tx_req signal is generated when the number of valid data entries in the receive FIFO is equal to or more than this field value+1, and RDMAE=1. For instance, when DMARDL is 0, the dma_rx_req is asserted when 1 or more data entries are present in the receive FIFO. |
REG_IC_SDA_SETUP
Name: I2C SDA Setup Register
Size: 32
Address offset: 094h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
IC_SDA_SETUP |
R/W |
0x5 |
Set the required SDA setup time in units of ic_clk period. |
REG_IC_ACK_GENERAL_CALL
Name: I2C ACK General Call Register
Size: 32
Address offset: 098h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
ACK_GEN_CALL |
R/W |
0x1 |
|
REG_IC_ENABLE_STATUS
Name: I2C Enable Status Register
Size: 32
Address offset: 09Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:5 |
RSVD |
R |
- |
Reserved |
4:3 |
BUSY_IN_MODE |
R |
0x0 |
|
2 |
SLV_DISABLE_WHILE_BUSY |
R |
0x0 |
Slave Disabled While Busy (Transmit, Receive). This bit indicates if a potential or active Slave operation has been aborted due to the setting of the IC_SLAVE_DISBALE register from 1 to 0. |
1 |
RSVD |
R |
- |
Reserved |
0 |
IC_EN |
R |
0x0 |
IC_EN Status. This bit always reflects the value driven on the output port IC_EN.
|
REG_IC_DMA_CMD
Name: I2C DMA Command Register
Size: 32
Address offset: 0A0h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
DMODE_RESTART |
R/W |
0x0 |
This bit controls whether a RESTART is issued after the byte is sent or received in DMA mode.
|
6 |
DMODE_STOP |
R/W |
0x0 |
This bit controls whether a STOP is issued after the byte is sent or received in DMA mode.
|
5 |
DMODE_CMD |
R/W |
0x0 |
This bit controls whether a read or write is performed in DMA mode. This bit does not control the direction when the I2C acts as a slave. It controls only the direction when it acts as a master.
|
4:1 |
RSVD |
R |
- |
Reserved |
0 |
DMODE_ENABLE |
R/W |
0x0 |
|
REG_IC_DMA_DATA_LEN
Name: I2C DMA Mode Transfer Data Length Register
Size: 32
Address offset: 0A4h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
DMA_DAT_LEN |
R/W |
0x0 |
DMA transfer data length |
REG_IC_DMA_MODE
Name: I2C DMA Mode Register
Size: 32
Address offset: 0A8h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:2 |
RSVD |
R |
- |
Reserved |
1:0 |
DMA_MODE |
R/W |
0x0 |
|
REG_IC_SLEEP
Name: I2C Sleep Mode Register
Size: 32
Address offset: 0ACh
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_DEBUG_SEL
Name: I2C Debug SEL Register
Size: 32
Address offset: 0B0h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:4 |
RSVD |
R |
- |
Reserved |
3:0 |
IC_DEBUG_SEL |
R/W |
0x0 |
|
REG_IC_OUT_SMP_DLY
Name: Sample Delay Register
Size: 32
Address offset: 0B4h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:3 |
RSVD |
R |
- |
Reserved |
2:0 |
IC_OUT_SMP_DLY |
R/W |
0x2 |
Delay cycles for sample of master derived SCL value. The sample of master derived SCL is used for slave stretch. Slave stretch is valid when master drive SCL High, but slave drive SCL low. Valid value of IC_OUT_SMP_DLY is 0-7. Inicate a delay of 1 to 8 cycles. |
REG_IC_CLR_ADDR_MATCH
Name: Clear Slave Mode Address Match Interrupt Register
Size: 32
Address offset: 0E4h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
IC_CLR_ADDR_MATCH |
R |
0x0 |
Read this register to clear the slave mode address match interrupt (bit[13:12]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_DMA_DONE
Name: Clear DMA DONE Interrupt Register
Size: 32
Address offset: 0E8h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
IC_CLR_RAW_INTR_STAT |
R |
0x0 |
Read this register to clear the DMA_DONE interrupt (bit[15]) of IC_RAW_INTR_STAT register. |
REG_IC_FILTER
Name: I2C Filter Register
Size: 32
Address offset: 0ECh
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:9 |
RSVD |
R |
- |
Reserved |
8 |
IC_DIG_FLTR_SEL |
R/W |
0x0 |
|
7:4 |
RSVD |
R |
- |
Reserved |
3:0 |
IC_DIG_FLTR_DEG |
R/W |
0x0 |
DIG_FLTR_DEG is to define frequency range of filter. A greater value of DIG_FLTR_DEG results in a slower transfer speed and hardware would be able to filter a lower frequency. |
REG_IC_SAR2
Name: I2C Slave2 Address Register
Size: 32
Address offset: 0F4h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:7 |
RSVD |
R |
- |
Reserved |
6:0 |
IC_SAR2 |
R/W |
0x12 |
The IC_SAR2 holds the slave address when the I2C is operating as slave2. Slave2 only supports 7-bit address. The register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_COMP_VERSION
Name: I2C Component Version Register
Size: 32
Address offset: 0FCh
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
IC_COMP_VERSION |
R |
0x20200702 |
I2C version number |
REG_IC_DUMMY
Name: IC Dummy Register
Size: 32
Address offset: 100h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
DUMMY |
R |
0x0 |
Reserved for HW |
Base Address:
I2C0_REG : 0x4011A000
I2C1_REG : 0x4011B000
Name |
Address offset |
Access |
Description |
|---|---|---|---|
000h |
R/W |
||
004h |
R/W |
||
008h |
R/W |
||
00Ch |
R/W |
||
010h |
R/W |
||
014h |
R/W |
||
018h |
R/W |
||
01Ch |
R/W |
||
020h |
R/W |
||
024h |
R/W |
||
028h |
R/W |
||
02Ch |
R |
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of each bit. |
|
030h |
R/W |
These bits mask their corresponding interrupt status bits in the IC_INTR_STAT register. |
|
034h |
R |
||
038h |
R/W |
||
03Ch |
R/W |
||
040h |
R |
||
044h |
R |
||
048h |
R |
||
04Ch |
R |
||
050h |
R |
||
054h |
R |
||
058h |
R |
||
05Ch |
R |
||
060h |
R |
||
064h |
R |
||
068h |
R |
||
06Ch |
R/W |
||
070h |
R |
||
074h |
R |
||
078h |
R |
||
07Ch |
R/W |
||
080h |
R |
||
084h |
R/W |
||
088h |
R |
||
08Ch |
R |
||
090h |
R |
||
094h |
R/W |
||
098h |
R/W |
||
09Ch |
R |
||
0A0h |
R |
||
0A4h |
R |
||
0A8h |
R |
||
0ACh |
R |
||
0B0h |
R/W |
||
0B4h |
R/W |
||
0E4h |
R |
||
0E8h |
R |
||
0ECh |
R/W |
||
0F4h |
R/W |
||
0FCh |
R |
REG_IC_CON
Name: I2C Control Register
Size: 32
Address offset: 000h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
IC_SLAVE_DISABLE_1 |
R/W |
0x0 |
This bit controls whether I2C has its slave2 (7-bit address) disabled.
|
6 |
IC_SLAVE_DISABLE_0 |
R/W |
0x0 |
This bit controls whether I2C has its slave1 (7-bit or 10-bit address) disabled.
|
5 |
IC_RESTATRT_EN |
R/W |
0x0 |
Determine whether RESTART conditions may be sent when acting as a master.
|
4 |
RSVD |
R |
- |
Reserved |
3 |
IC_10BITADDR_SLAVE |
R/W |
0x0 |
When acting as a slave, this bit controls whether the I2C responds to 7- or 10-bit addresses.
|
2:1 |
SPEED |
R/W |
0x0 |
These bits control at which speed the I2C operates; its setting is relevant only if one is operating the I2C in master mode.
|
0 |
MASTER_MODE |
R/W |
0x0 |
This bit controls whether the I2C master is enabled.
|
REG_IC_TAR
Name: I2C Target Address Register
Size: 32
Address offset: 004h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:13 |
RSVD |
R |
- |
Reserved |
12 |
IC_10BITADDR_MASTER |
R/W |
0x0 |
Control whether I2C starts its transfers in 7- or 10-bit addressing mode when acting as a master.
|
11 |
SPECIAL |
R/W |
0x0 |
This bit indicates whether software performs a General Call or START BYTE command.
|
10 |
GC_OR_START |
R/W |
0x0 |
If SPECIAL is set to 1, then this bit indicates whether a General Call or START BYTE command is to be performed by I2C. (ic_clk domain)
|
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. |
REG_IC_SAR
Name: I2C Slave Address Register
Size: 32
Address offset: 008h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:10 |
RSVD |
R |
- |
Reserved |
9:0 |
IC_SAR |
R/W |
0x11 |
The IC_SAR holds the slave address when the I2C is operating as slave1. For 7-bit addressing, only IC_SAR[6:0] is used. The register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE register being set to 0. Writing at other times has no effect. |
REG_IC_HS_MAR
Name: I2C High Speed Master Mode Code Address Register
Size: 32
Address offset: 00Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:3 |
RSVD |
R |
- |
Reserved |
2:0 |
IC_HS_MAR |
R/W |
0x0 |
This bit field holds the value of the I2C HS mode master code. HS-mode master codes are reserved 8-bit codes (00001xxx) that are not used for slave addressing or other purposes. This register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE register being set to 0. Writing at other times has no effect. |
REG_IC_DATA_CMD
Name: I2C Rx/Tx Data Buffer and Command Register
Size: 32
Address offset: 010h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:12 |
RSVD |
R |
- |
Reserved |
11 |
NULL_DATA |
R/W |
0x0 |
|
10 |
CMD_RESTART |
R/W |
0x0 |
This bit controls whether a RESTART is issued after the byte is sent or received.
|
9 |
CMD_STOP |
R/W |
0x0 |
This bit controls whether a STOP is issued after the byte is sent or received.
|
8 |
CMD_RW |
R/W |
0x0 |
This bit controls whether a read or write is performed. This bit does not control the direction when the I2C acts as a slave. It controls only the direction when it acts as a master.
|
7:0 |
IC_DATA |
R/W |
0x0 |
This register contains the data to be transmitted or received on the I2C bus. If you are writing to this register and want to perform a read, these bits are ignored by the I2C. However, when you read this register, these bits return the value of data received on the I2C interface. |
REG_IC_SS_SCL_HCNT
Name: Standard Speed I2C Clock SCL High Count Register
Size: 32
Address offset: 014h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_SS_SCL_HCNT |
R/W |
0x0190 |
This register sets the SCL clock high-period count for standard speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writing at other times has no effect. |
REG_IC_SS_SCL_LCNT
Name: Standard Speed I2C Clock SCL Low Count Register
Size: 32
Address offset: 018h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_SS_SCL_LCNT |
R/W |
0x01D6 |
This register sets the SCL clock low-period count for standard speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writing at other times has no effect. |
REG_IC_FS_SCL_HCNT
Name: Fast Speed I2C Clock SCL High Count Register
Size: 32
Address offset: 01Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_FS_SCL_HCNT |
R/W |
0x003C |
This register sets the SCL clock high-period count for fast speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writing at other times has no effect. |
REG_IC_FS_SCL_LCNT
Name: Fast Speed I2C Clock SCL Low Count Register
Size: 32
Address offset: 020h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_FS_SCL_LCNT |
R/W |
0x0082 |
This register sets the SCL clock low-period count for fast speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writing at other times has no effect. |
REG_IC_HS_SCL_HCNT
Name: High Speed I2C Clock SCL High Count Register
Size: 32
Address offset: 024h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_HS_SCL_HCNT |
R/W |
0x0006 |
This register sets the SCL clock high-period count for high speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writing at other times has no effect. The SCL High time depends on the loading of the bus. For 100pF loading, the SCL High time is 60ns; for 400pF loading, the SCL High time is 120ns. |
REG_IC_HS_SCL_LCNT
Name: High Speed I2C Clock SCL Low Count Register
Size: 32
Address offset: 028h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_HS_SCL_LCNT |
R/W |
0x0010 |
This register sets the SCL clock low-period count for high speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writing at other times has no effect. The SCL Low time depends on the loading of the bus. For 100pF loading, the SCL High time is 160ns; for 400pF loading, the SCL High time is 320ns. |
REG_IC_INTR_STAT
Name: I2C Interrupt Status Register
Size: 32
Address offset: 02Ch
Read/write access: R
Refer to I2C Raw Interrupt Status Register (IC_RAW_INTR_STAT) for a detailed description of each
bit.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:14 |
RSVD |
R |
- |
Reserved |
13 |
R_LP_WAKE_2 |
R |
0x0 |
|
12 |
R_LP_WAKE_1 |
R |
0x0 |
|
11 |
R_GEN_CALL |
R |
0x0 |
|
10 |
R_START_DET |
R |
0x0 |
|
9 |
R_STOP_DET |
R |
0x0 |
|
8 |
R_ACTIVITY |
R |
0x0 |
|
7 |
R_RX_DONE |
R |
0x0 |
|
6 |
R_TX_ABRT |
R |
0x0 |
|
5 |
R_RD_REQ |
R |
0x0 |
|
4 |
R_TX_EMPTY |
R |
0x0 |
|
3 |
R_TX_OVER |
R |
0x0 |
|
2 |
R_RX_FULL |
R |
0x0 |
|
1 |
R_RX_OVER |
R |
0x0 |
|
0 |
R_RX_UNDER |
R |
0x0 |
REG_IC_INTR_MASK
Name: I2C Interrupt Mask Register
Size: 32
Address offset: 030h
Read/write access: R/W
These bits mask their corresponding interrupt status bits in the IC_INTR_STAT register.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:14 |
RSVD |
R |
- |
Reserved |
13 |
M_LP_WAKE_2 |
R/W |
0x0 |
|
12 |
M_LP_WAKE_1 |
R/W |
0x0 |
|
11 |
M_GEN_CALL |
R/W |
0x0 |
|
10 |
M_START_DET |
R/W |
0x0 |
|
9 |
M_STOP_DET |
R/W |
0x0 |
|
8 |
M_ACTIVITY |
R/W |
0x0 |
|
7 |
M_RX_DONE |
R/W |
0x0 |
|
6 |
M_TX_ABRT |
R/W |
0x0 |
|
5 |
M_RD_REQ |
R/W |
0x0 |
|
4 |
M_TX_EMPTY |
R/W |
0x0 |
|
3 |
M_TX_OVER |
R/W |
0x0 |
|
2 |
M_RX_FULL |
R/W |
0x0 |
|
1 |
M_RX_OVER |
R/W |
0x0 |
|
0 |
M_RX_UNDER |
R/W |
0x0 |
REG_IC_RAW_INTR_STAT
Name: I2C Raw Interrupt Status Register
Size: 32
Address offset: 034h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:14 |
RSVD |
R |
- |
Reserved |
13 |
LP_WAKE_2 |
R |
0x0 |
Set when address SAR_2 match with address sending on I2C BUS. |
12 |
LP_WAKE_1 |
R |
0x0 |
Set when address SAR match with address sending on I2C BUS. |
11 |
GEN_CALL |
R |
0x0 |
Set only when a General Call address is received and it is acknowledged. |
10 |
START_DET |
R |
0x0 |
Indicates whether a START or RESTART condition has occurred on the I2C interface regardless of whether I2C is operating in slave or master mode. |
9 |
STOP_DET |
R |
0x0 |
Indicates whether a STOP condition has occurred on the I2C interface regardless of whether I2C is operating in slave or master mode. |
8 |
ACTIVITY |
R |
0x0 |
This bit captures I2C activity. |
7 |
RX_DONE |
R |
0x0 |
When the I2C is acting as a slave-transmitter, this bit is set to 1 if the master does not acknowledge a transmitted byte. This occurs on the last byte of the transmission, indicating that the transmission is done. |
6 |
TX_ABRT |
R |
0x0 |
This bit indicates if I2C as a transmitter, is unable to complete the intended actions on the contents of the transmit FIFO. This situation can occur both as an I2C master or an I2C slave, and is referred to as a ‘transmit abort’.
|
5 |
RD_REQ |
R |
0x0 |
This bit is set to 1 when I2C is acting as a slave and another I2C master is attempting to read data from I2C. The I2C holds the I2C bus in a wait state (SCL=0) until this interrupt is serviced, which means that the slave has been addressed by a remote master that is asking for data to be transferred. The processor must respond to this interrupt and then write the requested data to the IC_DATA_CMD register. |
4 |
TX_EMPTY |
R |
0x0 |
This bit is set to 1 when the transmit buffer is at or below the threshold value set in the IC_TX_TL register. It is automatically cleared by hardware when the buffer level goes above the threshold. |
3 |
TX_OVER |
R |
0x0 |
Set during transmit if the transmit buffer is filled to IC_TX_BUFFER_DEPTH and the processor attempts to issue another I2C command by writing to the IC_DATA_CMD register. |
2 |
RX_FULL |
R |
0x0 |
Set when the receive buffer reaches or goes above the RX_TL threshold in the IC_RX_TL register. It is automatically cleared by hardware when buffer level goes below the threshold. |
1 |
RX_OVER |
R |
0x0 |
Not used. Set if the receive buffer is completely filled to IC_RX_BUFFER_DEPTH and an additional byte is received from an external I2C device. |
0 |
RX_UNDER |
R |
0x0 |
Set if the processor attempts to read the receive buffer when it is empty by reading from the IC_DATA_CMD register. |
REG_IC_RX_TL
Name: I2C Receive FIFO Threshold Register
Size: 32
Address offset: 038h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
IC_RX_0_TL |
R/W |
0x0 |
Receive FIFO Threshold Level. Control the level of entries (or above) that triggers the RX_FULL interrupt (bit[2] in IC_RAW_INTR_STAT register). |
REG_IC_TX_TL
Name: I2C Transmit FIFO Threshold Register
Size: 32
Address offset: 03Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
IC_TX_0_TL |
R/W |
0x0 |
Transmit FIFO Threshold Level. Control the level of entries (or below) that triggers the TX_EMPTY interrupt (bit[4] in IC_RAW_INTR_STAT register). |
REG_IC_CLR_INTR
Name: Clear Combined and Individual Interrupt Register
Size: 32
Address offset: 040h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_INRT |
R |
0x0 |
Read this register to clear the combined interrupt, all individual interrupts, and the IC_TX_ABRT_SOURCE register. This bit does not clear hardware clearable interrupts but software clearable interrupts. |
REG_IC_CLR_RX_UNDER
Name: Clear RX_UNDER Interrupt Register
Size: 32
Address offset: 044h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RX_UNDER |
R |
0x0 |
Read this register to clear the RX_UNDER interrupt (bit[0]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_RX_OVER
Name: Clear RX_OVER Interrupt Register
Size: 32
Address offset: 048h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RX_OVER |
R |
0x0 |
Read this register to clear the RX_OVER interrupt (bit[1]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_TX_OVER
Name: Clear TX_OVER Interrupt Register
Size: 32
Address offset: 04Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_TX_OVER |
R |
0x0 |
Read this register to clear the TX_OVER interrupt (bit[3]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_RD_REQ
Name: Clear RD_REQ Interrupt Register
Size: 32
Address offset: 050h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RD_REQ |
R |
0x0 |
Read this register to clear the RD_REQ interrupt (bit[5]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_TX_ABRT
Name: Clear TX_ABRT Interrupt Register
Size: 32
Address offset: 054h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_TX_ABRT |
R |
0x0 |
Read this register to clear the TX_ABRT interrupt (bit[6]) of IC_RAW_INTR_STAT register, and the IC_TX_ABRT_SOURCE register. This is also releases the TX FIFO from the flushed/reset state, allowing more writes to the TX FIFO. |
REG_IC_CLR_RX_DONE
Name: Clear RX_DONE Interrupt Register
Size: 32
Address offset: 058h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RX_DONE |
R |
0x0 |
Read this register to clear the RX_DONE interrupt (bit[7]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_ACTIVITY
Name: Clear ACTIVITY Interrupt Register
Size: 32
Address offset: 05Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_ACTIVITY |
R |
0x0 |
Read this register to clear the ACTIVITY interrupt if the I2C is not active anymore. If the I2C module is still active on the bus, the ACTIVITY interrupt bit continues to be set. It is automatically cleared by hardware if the module is disabled and if there is no further activity on the bus. The value read from this register to get status of the ACTIVITY interrupt (bit[8]) of the IC_RAW_INTR_STAT register. |
REG_IC_CLR_STOP_DET
Name: Clear STOP_DET Interrupt Register
Size: 32
Address offset: 060h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_STOP_DET |
R |
0x0 |
Read this register to clear the STOP_DET interrupt (bit[9]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_START_DET
Name: Clear START_DET Interrupt Register
Size: 32
Address offset: 064h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_START_DET |
R |
0x0 |
Read this register to clear the START_DET interrupt (bit[10]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_GEN_CALL
Name: Clear GEN_ALL Interrupt Register
Size: 32
Address offset: 068h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_GEN_CALL |
R |
0x0 |
Read this register to clear the GEN_CALL interrupt (bit[11]) of IC_RAW_INTR_STAT register. |
REG_IC_ENABLE
Name: I2C Enable Register
Size: 32
Address offset: 06Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:2 |
RSVD |
R |
- |
Reserved |
1 |
FORCE |
R/W |
0x0 |
Force master I2C stop transfer immediately after IC_ENABLE set 0.
|
0 |
ENABLE |
R/W |
0x0 |
Control whether the I2C is enabled.
|
REG_IC_STATUS
Name: I2C Status Register
Size: 32
Address offset: 070h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:7 |
RSVD |
R |
- |
Reserved |
6 |
SLV_ACTIVITY |
R |
0x0 |
Slave FSM Activity Status. When the Slave FSM is not in the IDLE state, this bit is set.
|
5 |
MST_ACTIVITY |
R |
0x0 |
Master FSM Activity Status. When the Master FSM is not in the IDLE state, this bit is set.
|
4 |
RFF |
R |
0x0 |
Receive FIFO Completely Full. When the receive FIFO is completely full, this bit is set. When the receive FIFO contains one or more empty location, this bit is cleared.
|
3 |
RFNE |
R |
0x0 |
Receive FIFO Not Empty. This bit is set when the receive FIFO contains one or more entries; it is cleared when the receive FIFO is empty.
|
2 |
TFE |
R |
0x1 |
Transmit FIFO Completely Empty. When the transmit FIFO is completely empty, this bit is set. When it contains one or more valid entries, this bit is cleared. This bit field does not request an interrupt.
|
1 |
TFNF |
R |
0x1 |
Transmit FIFO Not Full. Set when the transmit FIFO contains one or more empty locations, and is cleared when the FIFO is full.
|
0 |
IC_ACTIVITY |
R |
0x0 |
I2C activity status |
REG_IC_TXFLR
Name: I2C Transmit FIFO Level Register
Size: 32
Address offset: 074h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5:0 |
TXFLR |
R |
0x0 |
Transmit FIFO Level. Contains the number of valid data entries in the transmit FIFO. |
REG_IC_RXFLR
Name: I2C Receive FIFO Level Register
Size: 32
Address offset: 078h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5:0 |
RXFLR |
R |
0x0 |
Receive FIFO Level. Contains the number of valid data entries in the receive FIFO. |
REG_IC_SDA_HOLD
Name: I2C SDA Hold Time Length Register
Size: 32
Address offset: 07Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_SDA_HOLD |
R/W |
0x1 |
Set the required SDA hold time in units of ic_clk period. |
REG_IC_TX_ABRT_SOURCE
Name: I2C Transmit Abort Source Register
Size: 32
Address offset: 080h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:15 |
RSVD |
R |
- |
Reserved |
14 |
ABRT_SLV_ARBLOST |
R |
0x0 |
|
13 |
ABRT_SLVFLUSH_TXFIFO |
R |
0x0 |
|
12 |
ARBT_LOST |
R |
0x0 |
|
11 |
ABRT_MASTER_DIS |
R |
0x0 |
|
10 |
ABRT_10B_RD_NORSTRT |
R |
0x0 |
|
9 |
ABRT_SBYTE_NORSTRT |
R |
0x0 |
|
8 |
ABRT_HS_NORSTRT |
R |
0x0 |
|
7 |
ABRT_SBYTE_ACKDET |
R |
0x0 |
|
6 |
ABRT_HS_ACKDET |
R |
0x0 |
|
5 |
ABRT_GCALL_READ |
R |
0x0 |
|
4 |
ABRT_GCALL_NOACK |
R |
0x0 |
|
3 |
ABRT_TXDATA_NOACK |
R |
0x0 |
|
2 |
ABRT_10ADDR2_NOACK |
R |
0x0 |
|
1 |
ABRT_10ADDR1_NOACK |
R |
0x0 |
|
0 |
ABRT_7B_ADDR_NOACK |
R |
0x0 |
|
REG_IC_SLV_DATA_NACK_ONLY
Name: Generate Slave Data NACK Register
Size: 32
Address offset: 084h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
NACK |
R/W |
0x0 |
Generate NACK. This NACK generation only occurs when I2C is a slave-receiver. If this register is set to a value of 1, it can only generate a NACK after a data byte is received; hence, the data transfer is aborted and the data received is not pushed to the receive buffer. When the register is set to a value of 0, it generates NACK/ACK, depending on normal criteria.
|
REG_IC_DMA_CR
Name: DMA Control Register
Size: 32
Address offset: 088h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_DMA_TDLR
Name: DMA Transmit Data Level Register
Size: 32
Address offset: 08Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_DMA_RDLR
Name: I2C Reveive Data Level Register
Size: 32
Address offset: 090h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_SDA_SETUP
Name: I2C SDA Setup Register
Size: 32
Address offset: 094h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
IC_SDA_SETUP |
R/W |
0x5 |
Set the required SDA setup time in units of ic_clk period. |
REG_IC_ACK_GENERAL_CALL
Name: I2C ACK General Call Register
Size: 32
Address offset: 098h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
ACK_GEN_CALL |
R/W |
0x1 |
|
REG_IC_ENABLE_STATUS
Name: I2C Enable Status Register
Size: 32
Address offset: 09Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:3 |
RSVD |
R |
- |
Reserved |
2 |
SLV_DISABLE_WHILE_BUSY |
R |
0x0 |
Slave Disabled While Busy (Transmit, Receive). This bit indicates if a potential or active Slave operation has been aborted due to the setting of the IC_SLAVE_DISBALE register from 1 to 0. |
1 |
RSVD |
R |
- |
Reserved |
0 |
IC_EN |
R |
0x0 |
Ic_en Status. This bit always reflects the value driven on the output port ic_en.
|
REG_IC_DMA_CMD
Name: I2C DMA Command Register
Size: 32
Address offset: 0A0h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_DMA_DATA_LEN
Name: I2C DMA Mode Transfer Data Length Register
Size: 32
Address offset: 0A4h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_DMA_MODE
Name: I2C DMA Mode Register
Size: 32
Address offset: 0A8h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_SLEEP
Name: I2C Sleep Mode Register
Size: 32
Address offset: 0ACh
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_DEBUG_SEL
Name: I2C Debug SEL Register
Size: 32
Address offset: 0B0h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:4 |
RSVD |
R |
- |
Reserved |
3:0 |
IC_DEBUG_SEL |
R/W |
0x0 |
|
REG_IC_OUT_SMP_DLY
Name: I2C Sample Delay Register
Size: 32
Address offset: 0B4h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:3 |
RSVD |
R |
- |
Reserved |
2:0 |
IC_OUT_SMP_DLY |
R/W |
0x2 |
Delay cycles for sample of master drived SCL value. The sample of master drived SCL is used for slave stretch. Slave stretch is valid when master drive SCL High, but slave drives SCL low. Valid value of IC_OUT_SMP_DLY is 0-7. Indicate a delay of 1-8 cycles. |
REG_IC_CLR_ADDR_MATCH
Name: Clear Slave Mode Address Match Interrupt Register
Size: 32
Address offset: 0E4h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
IC_CLR_ADDR_MATCH |
R |
0x0 |
Read this register to clear the slave mode address match interrupt (bit[12:13]) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_DMA_DONE
Name: Clear DMA DONE Interrupt Register
Size: 32
Address offset: 0E8h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_FILTER
Name: I2C Filter Register
Size: 32
Address offset: 0ECh
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:9 |
RSVD |
R |
- |
Reserved |
8 |
IC_DIG_FLTR_SEL |
R/W |
0x0 |
|
7:4 |
RSVD |
R |
- |
Reserved |
3:0 |
IC_DIG_FLTR_DEG |
R/W |
0x0 |
DIG_FLTR_DEG is to define frequency range of filter. A greater value of DIG_FLTR_DEG results in a slower transfer speed and hardware would be able to filter a lower frequency. |
REG_IC_SAR2
Name: I2C Slave2 Address Register
Size: 32
Address offset: 0F4h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:7 |
RSVD |
R |
- |
Reserved |
6:0 |
IC_SAR2 |
R/W |
0x12 |
The IC_SAR2 holds the slave address when the I2C is operating as slave2. Slave2 only supports 7 bit address. The register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE register being set to 0. Writing at other times has no effect. |
REG_IC_COMP_VERSION
Name: I2C Component Version Register
Size: 32
Address offset: 0FCh
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
IC_COMP_VERSION |
R |
0x20200911 |
I2C version number |
REGISTER_CONTENTS=RTL8720E
REGISTER_CONTENTS=RTL8720E
REGISTER_CONTENTS=RTL8720E
Base Address:
I2C0_REG : 0x4200F000
I2C1_REG : 0x400EF000
I2C2_REG : 0x400F0000
Name |
Address offset |
Access |
Description |
|---|---|---|---|
000h |
R/W |
||
004h |
R/W |
||
008h |
R/W |
||
00Ch |
R/W |
||
010h |
R/W |
||
014h |
R/W |
||
018h |
R/W |
||
01Ch |
R/W |
||
020h |
R/W |
||
024h |
R/W |
||
028h |
R/W |
||
02Ch |
R |
||
030h |
R/W |
||
034h |
R |
||
038h |
R/W |
||
03Ch |
R/W |
||
040h |
R |
||
044h |
R |
||
048h |
R |
||
04Ch |
R |
||
050h |
R |
||
054h |
R |
||
058h |
R |
||
05Ch |
R |
||
060h |
R |
||
064h |
R |
||
068h |
R |
||
06Ch |
R/W |
||
070h |
R |
||
074h |
R |
||
078h |
R |
||
07Ch |
R/W |
||
080h |
R |
||
084h |
R/W |
||
088h |
R |
||
08Ch |
R |
||
090h |
R |
||
094h |
R/W |
||
098h |
R/W |
||
09Ch |
R |
||
0A0h |
R |
||
0A4h |
R |
||
0A8h |
R |
||
0ACh |
R |
||
0B0h |
R/W |
||
0B4h |
R/W |
||
0E4h |
R |
||
0E8h |
R |
||
0ECh |
R/W |
||
0F4h |
R/W |
||
0FCh |
R |
REG_IC_CON
Name: I2C Control Register
Size: 32
Address offset: 000h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
IC_SLAVE_DISABLE_1 |
R/W |
0x0 |
This bit controls whether I2C has its slave2 (7-bit address) disabled.
|
6 |
IC_SLAVE_DISABLE_0 |
R/W |
0x0 |
This bit controls whether I2C has its slave1 (7-bit or 10-bit address) disabled.
|
5 |
IC_RESTATRT_EN |
R/W |
0x0 |
Determine whether RESTART conditions may be sent when acting as a master.
|
4 |
RSVD |
R |
- |
Reserved |
3 |
IC_10BITADDR_SLAVE |
R/W |
0x0 |
When acting as a slave, this bit controls whether the I2C responds to 7- or 10-bit addresses.
|
2:1 |
SPEED |
R/W |
0x0 |
These bits control at which speed the I2C operates; its setting is relevant only if one is operating the I2C in master mode.
|
0 |
MASTER_MODE |
R/W |
0x0 |
This bit controls whether the I2C master is enabled.
|
REG_IC_TAR
Name: I2C Target Address Register
Size: 32
Address offset: 004h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:13 |
RSVD |
R |
- |
Reserved |
12 |
IC_10BITADDR_MASTER |
R/W |
0x0 |
Control whether I2C starts its transfers in 7- or 10-bit addressing mode when acting as a master.
|
11 |
SPECIAL |
R/W |
0x0 |
This bit indicates whether software performs a General Call or START BYTE command.
|
10 |
GC_OR_START |
R/W |
0x0 |
If SPECIAL is set to 1, then this bit indicates whether a General Call or START BYTE command is to be performed by I2C. (ic_clk domain)
|
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. |
REG_IC_SAR
Name: I2C Slave Address Register
Size: 32
Address offset: 008h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:10 |
RSVD |
R |
- |
Reserved |
9:0 |
IC_SAR |
R/W |
0x11 |
The IC_SAR holds the slave address when the I2C is operating as slave1. For 7-bit addressing, only IC_SAR[6:0] is used. The register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_HS_MAR
Name: I2C High Speed Master Mode Code Address Register
Size: 32
Address offset: 00Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:3 |
RSVD |
R |
- |
Reserved |
2:0 |
IC_HS_MAR |
R/W |
0x0 |
This bit field holds the value of the I2C HS mode master code. HS-mode master codes are reserved 8-bit codes (00001xxx) that are not used for slave addressing or other purposes. This register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE register being set to 0. Write at other times have no effect. |
REG_IC_DATA_CMD
Name: I2C Rx/Tx Data Buffer and Command Register
Size: 32
Address offset: 010h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:12 |
RSVD |
R |
- |
Reserved |
11 |
NULL_DATA |
R/W |
0x0 |
|
10 |
CMD_RESTART |
R/W |
0x0 |
This bit controls whether a RESTART is issued after the byte is sent or received.
|
9 |
CMD_STOP |
R/W |
0x0 |
This bit controls whether a STOP is issued after the byte is sent or received.
|
8 |
CMD_RW |
R/W |
0x0 |
This bit controls whether a read or write is performed. This bit does not control the direction when the I2C acts as a slave. It controls only the direction when it acts as a master.
|
7:0 |
IC_DATA |
R/W |
0x0 |
This register contains the data to be transmitted or received on the I2C bus. If you are writing to this register and want to perform a read, these bits are ignored by the I2C. However, when you read this register, these bits return the value of data received on the I2C interface. |
REG_IC_SS_SCL_HCNT
Name: Standard Speed I2C Clock SCL High Count Register
Size: 32
Address offset: 014h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_SS_SCL_HCNT |
R/W |
0x0190 |
This register sets the SCL clock high-period count for standard speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_SS_SCL_LCNT
Name: Standard Speed I2C Clock SCL Low Count Register
Size: 32
Address offset: 018h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_SS_SCL_LCNT |
R/W |
0x01D6 |
This register sets the SCL clock low-period count for standard speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_FS_SCL_HCNT
Name: Fast Speed I2C Clock SCL High Count Register
Size: 32
Address offset: 01Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_FS_SCL_HCNT |
R/W |
0x003C |
This register sets the SCL clock high-period count for fast speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_FS_SCL_LCNT
Name: Fast Speed I2C Clock SCL Low Count Register
Size: 32
Address offset: 020h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_FS_SCL_LCNT |
R/W |
0x0082 |
This register sets the SCL clock low-period count for fast speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_HS_SCL_HCNT
Name: High Speed I2C Clock SCL High Count Register
Size: 32
Address offset: 024h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_HS_SCL_HCNT |
R/W |
0x0006 |
This register sets the SCL clock high-period count for high speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. The SCL High time depends on the loading of the bus. For 100pF loading, the SCL High time is 60ns; for 400pF loading, the SCL High time is 120ns. |
REG_IC_HS_SCL_LCNT
Name: High Speed I2C Clock SCL Low Count Register
Size: 32
Address offset: 028h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_HS_SCL_LCNT |
R/W |
0x0010 |
This register sets the SCL clock low-period count for high speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. The SCL Low time depends on the loading of the bus. For 100pF loading, the SCL High time is 160ns; for 400pF loading, the SCL High time is 320ns. |
REG_IC_INTR_STAT
Name: I2C Interrupt Status Register
Size: 32
Address offset: 02Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:14 |
RSVD |
R |
- |
Reserved |
13 |
R_LP_WAKE_2 |
R |
0x0 |
|
12 |
R_LP_WAKE_1 |
R |
0x0 |
|
11 |
R_GEN_CALL |
R |
0x0 |
|
10 |
R_START_DET |
R |
0x0 |
|
9 |
R_STOP_DET |
R |
0x0 |
|
8 |
R_ACTIVITY |
R |
0x0 |
|
7 |
R_RX_DONE |
R |
0x0 |
|
6 |
R_TX_ABRT |
R |
0x0 |
|
5 |
R_RD_REQ |
R |
0x0 |
|
4 |
R_TX_EMPTY |
R |
0x0 |
|
3 |
R_TX_OVER |
R |
0x0 |
|
2 |
R_RX_FULL |
R |
0x0 |
|
1 |
R_RX_OVER |
R |
0x0 |
|
0 |
R_RX_UNDER |
R |
0x0 |
REG_IC_INTR_MASK
Name: I2C Interrupt Mask Register
Size: 32
Address offset: 030h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:14 |
RSVD |
R |
- |
Reserved |
13 |
M_LP_WAKE_2 |
R/W |
0x0 |
|
12 |
M_LP_WAKE_1 |
R/W |
0x0 |
|
11 |
M_GEN_CALL |
R/W |
0x0 |
|
10 |
M_START_DET |
R/W |
0x0 |
|
9 |
M_STOP_DET |
R/W |
0x0 |
|
8 |
M_ACTIVITY |
R/W |
0x0 |
|
7 |
M_RX_DONE |
R/W |
0x0 |
|
6 |
M_TX_ABRT |
R/W |
0x0 |
|
5 |
M_RD_REQ |
R/W |
0x0 |
|
4 |
M_TX_EMPTY |
R/W |
0x0 |
|
3 |
M_TX_OVER |
R/W |
0x0 |
|
2 |
M_RX_FULL |
R/W |
0x0 |
|
1 |
M_RX_OVER |
R/W |
0x0 |
|
0 |
M_RX_UNDER |
R/W |
0x0 |
REG_IC_RAW_INTR_STAT
Name: I2C Raw Interrupt Status Register
Size: 32
Address offset: 034h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:14 |
RSVD |
R |
- |
Reserved |
13 |
LP_WAKE_2 |
R |
0x0 |
Set when address SAR_2 match with address sending on I2C BUS. |
12 |
LP_WAKE_1 |
R |
0x0 |
Set when address SAR match with address sending on I2C BUS. |
11 |
GEN_CALL |
R |
0x0 |
Set only when a General Call address is received and it is acknowledged. |
10 |
START_DET |
R |
0x0 |
Indicates whether a START or RESTART condition has occurred on the I2C interface regardless of whether I2C is operating in slave or master mode. |
9 |
STOP_DET |
R |
0x0 |
Indicates whether a STOP condition has occurred on the I2C interface regardless of whether I2C is operating in slave or master mode. |
8 |
ACTIVITY |
R |
0x0 |
This bit captures I2C activity. |
7 |
RX_DONE |
R |
0x0 |
When the I2C is acting as a slave-transmitter, this bit is set to 1 if the master does not acknowledge a transmitted byte. This occurs on the last byte of the transmission, indicating that the transmission is done. |
6 |
TX_ABRT |
R |
0x0 |
This bit indicates if I2C as a transmitter, is unable to complete the intended actions on the contents of the transmit FIFO. This situation can occur both as an I2C master or an I2C slave, and is referred to as a ‘transmit abort’.
|
5 |
RD_REQ |
R |
0x0 |
This bit is set to 1 when I2C is acting as a slave and another I2C master is attempting to read data from I2C. The I2C holds the I2C bus in a wait state(SCL=0) until this interrupt is serviced, which means that the slave has been addressed by a remote master that is asking for data to be transferred. The processor must respond to this interrupt and then write the requested data to the IC_DATA_CMD register. |
4 |
TX_EMPTY |
R |
0x0 |
This bit is set to 1 when the transmit buffer is at or below the threshold value set in the IC_TX_TL register. It is automatically cleared by hardware when the buffer level goes above the threshold. |
3 |
TX_OVER |
R |
0x0 |
Set during transmit if the transmit buffer is filled to IC_TX_BUFFER_DEPTH and the processor attempts to issue another I2C command by writing to the IC_DATA_CMD register. |
2 |
RX_FULL |
R |
0x0 |
Set when the receive buffer reaches or goes above the RX_TL threshold in the IC_RX_TL register. It is automatically cleared by hardware when buffer level goes below the threshold. |
1 |
RX_OVER |
R |
0x0 |
Not used. Set if the receive buffer is completely filled to IC_RX_BUFFER_DEPTH and an additional byte is received from an external I2C device. |
0 |
RX_UNDER |
R |
0x0 |
Set if the processor attempts to read the receive buffer when it is empty by reading from the IC_DATA_CMD register. |
REG_IC_RX_TL
Name: I2C Receive FIFO Threshold Register
Size: 32
Address offset: 038h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
IC_RX_0_TL |
R/W |
0x0 |
Receive FIFO Threshold Level. Control the level of entries (or above) that triggers the RX_FULL interrupt (bit 2 in IC_RAW_INTR_STAT register). |
REG_IC_TX_TL
Name: I2C Transmit FIFO Threshold Register
Size: 32
Address offset: 03Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
IC_TX_0_TL |
R/W |
0x0 |
Transmit FIFO Threshold Level. Control the level of entries (or below) that triggers the TX_EMPTY interrupt (bit 4 in IC_RAW_INTR_STAT register). |
REG_IC_CLR_INTR
Name: Clear Combined and Individual Interrupt Register
Size: 32
Address offset: 040h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_INRT |
R |
0x0 |
Read this register to clear the combined interrupt, all individual interrupts, and the IC_TX_ABRT_SOURCE register. This bit does not clear hardware clearable interrupts but software clearable interrupts. |
REG_IC_CLR_RX_UNDER
Name: Clear RX_UNDER Interrpt Register
Size: 32
Address offset: 044h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RX_UNDER |
R |
0x0 |
Read this register to clear the RX_UNDER interrupt (bit 0) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_RX_OVER
Name: Clear RX_OVER Interrpt Register
Size: 32
Address offset: 048h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RX_OVER |
R |
0x0 |
Read this register to clear the RX_OVER interrupt (bit 1) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_TX_OVER
Name: Clear TX_OVER Interrpt Register
Size: 32
Address offset: 04Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_TX_OVER |
R |
0x0 |
Read this register to clear the TX_OVER interrupt (bit 3) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_RD_REQ
Name: Clear RD_REQ Interrpt Register
Size: 32
Address offset: 050h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RD_REQ |
R |
0x0 |
Read this register to clear the RD_REQ interrupt (bit 5) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_TX_ABRT
Name: Clear TX_ABRT Interrpt Register
Size: 32
Address offset: 054h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_TX_ABRT |
R |
0x0 |
Read this register to clear the TX_ABRT interrupt (bit 6) of IC_RAW_INTR_STAT register, and the IC_TX_ABRT_SOURCE register. This is also releases the TX FIFO from the flushed/reset state, allowing more writes to the TX FIFO. |
REG_IC_CLR_RX_DONE
Name: Clear RX_DONE Interrpt Register
Size: 32
Address offset: 058h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RX_DONE |
R |
0x0 |
Read this register to clear the RX_DONE interrupt (bit 7) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_ACTIVITY
Name: Clear ACTIVITY Interrpt Register
Size: 32
Address offset: 05Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_ACTIVITY |
R |
0x0 |
Read this register to clear the ACTIVITY interrupt if the I2C is not active anymore. If the I2C module is still active on the bus, the ACTIVITY interrupt bit continues to be set. It is automatically cleared by hardware if the module is disabled and if there is no further activity on the bus. The value read from this register to get status of the ACTIVITY interrupt (bit 8) of the IC_RAW_INTR_STAT register. |
REG_IC_CLR_STOP_DET
Name: Clear STOP_DET Interrpt Register
Size: 32
Address offset: 060h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_STOP_DET |
R |
0x0 |
Ead this register to clear the STOP_DET interrupt (bit 9) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_START_DET
Name: Clear START_DET Interrpt Register
Size: 32
Address offset: 064h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_START_DET |
R |
0x0 |
Ead this register to clear the START_DET interrupt (bit 10) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_GEN_CALL
Name: Clear GEN_ALL Interrpt Register
Size: 32
Address offset: 068h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_GEN_CALL |
R |
0x0 |
Ead this register to clear the GEN_CALL interrupt (bit 11) of IC_RAW_INTR_STAT register. |
REG_IC_ENABLE
Name: I2C Enable Register
Size: 32
Address offset: 06Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:2 |
RSVD |
R |
- |
Reserved |
1 |
FORCE |
R/W |
0x0 |
Force master I2C stop transfer immediately after IC_ENABLE set 0.
|
0 |
ENABLE |
R/W |
0x0 |
Control whether the I2C is enabled.
|
REG_IC_STATUS
Name: I2C Status Register
Size: 32
Address offset: 070h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:7 |
RSVD |
R |
- |
Reserved |
6 |
SLV_ACTIVITY |
R |
0x0 |
Slave FSM Activity Status. When the Slave FSM is not in the IDLE state, this bit is set.
|
5 |
MST_ACTIVITY |
R |
0x0 |
Master FSM Activity Status. When the Master FSM is not in the IDLE state, this bit is set.
|
4 |
RFF |
R |
0x0 |
Receive FIFO Completely Full. When the receive FIFO is completely full, this bit is set. When the receive FIFO contains one or more empty location, this bit is cleared.
|
3 |
RFNE |
R |
0x0 |
Receive FIFO Not Empty. This bit is set when the receive FIFO contains one or more entries; it is cleared when the receive FIFO is empty.
|
2 |
TFE |
R |
0x1 |
Transmit FIFO Completely Empty. When the transmit FIFO is completely empty, this bit is set. When it contains one or more valid entries, this bit is cleared. This bit field does not request an interrupt.
|
1 |
TFNF |
R |
0x1 |
Transmit FIFO Not Full. Set when the transmit FIFO contains one or more empty locations, and is cleared when the FIFO is full.
|
0 |
IC_ACTIVITY |
R |
0x0 |
I2C Activity Status. |
REG_IC_TXFLR
Name: I2C Transmit FIFO Level Register
Size: 32
Address offset: 074h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5:0 |
TXFLR |
R |
0x0 |
Transmit FIFO Level. Contains the number of valid data entries in the transmit FIFO. |
REG_IC_RXFLR
Name: I2C Receive FIFO Level Register
Size: 32
Address offset: 078h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5:0 |
RXFLR |
R |
0x0 |
Receive FIFO Level. Contains the number of valid data entries in the receive FIFO. |
REG_IC_SDA_HOLD
Name: I2C SDA Hold Time Length Register
Size: 32
Address offset: 07Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_SDA_HOLD |
R/W |
0x1 |
Set the required SDA hold time in units of ic_clk period. |
REG_IC_TX_ABRT_SOURCE
Name: I2C Transmit Abort Source Register
Size: 32
Address offset: 080h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:15 |
RSVD |
R |
- |
Reserved |
14 |
ABRT_SLV_ARBLOST |
R |
0x0 |
|
13 |
ABRT_SLVFLUSH_TXFIFO |
R |
0x0 |
|
12 |
ARBT_LOST |
R |
0x0 |
|
11 |
ABRT_MASTER_DIS |
R |
0x0 |
|
10 |
ABRT_10B_RD_NORSTRT |
R |
0x0 |
|
9 |
ABRT_SBYTE_NORSTRT |
R |
0x0 |
|
8 |
ABRT_HS_NORSTRT |
R |
0x0 |
|
7 |
ABRT_SBYTE_ACKDET |
R |
0x0 |
|
6 |
ABRT_HS_ACKDET |
R |
0x0 |
|
5 |
ABRT_GCALL_READ |
R |
0x0 |
|
4 |
ABRT_GCALL_NOACK |
R |
0x0 |
|
3 |
ABRT_TXDATA_NOACK |
R |
0x0 |
|
2 |
ABRT_10ADDR2_NOACK |
R |
0x0 |
|
1 |
ABRT_10ADDR1_NOACK |
R |
0x0 |
|
0 |
ABRT_7B_ADDR_NOACK |
R |
0x0 |
|
REG_IC_SLV_DATA_NACK_ONLY
Name: Generate Slave Data NACK Register
Size: 32
Address offset: 084h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
NACK |
R/W |
0x0 |
Generate NACK. This NACK generation only occurs when I2C is a slave-receiver. If this register is set to a value of 1, it can only generate a NACK after a data byte is received; hence, the data transfer is aborted and the data received is not pushed to the receive buffer. When the register is set to a value of 0, it generates NACK/ACK, depending on normal criteria.
|
REG_IC_DMA_CR
Name: DMA Control Register
Size: 32
Address offset: 088h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_DMA_TDLR
Name: DMA Transmit Data Level Register
Size: 32
Address offset: 08Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_DMA_RDLR
Name: I2C Reveive Data Level Register
Size: 32
Address offset: 090h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_SDA_SETUP
Name: I2C SDA Setup Register
Size: 32
Address offset: 094h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
IC_SDA_SETUP |
R/W |
0x5 |
Set the required SDA setup time in units of ic_clk period. |
REG_IC_ACK_GENERAL_CALL
Name: I2C ACK General Call Register
Size: 32
Address offset: 098h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
ACK_GEN_CALL |
R/W |
0x1 |
|
REG_IC_ENABLE_STATUS
Name: I2C Enable Status Register
Size: 32
Address offset: 09Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:3 |
RSVD |
R |
- |
Reserved |
2 |
SLV_DISABLE_WHILE_BUSY |
R |
0x0 |
Slave Disabled While Busy (Transmit, Receive). This bit indicates if a potential or active Slave operation has been aborted due to the setting of the IC_SLAVE_DISBALE register from 1 to 0. |
1 |
RSVD |
R |
- |
Reserved |
0 |
IC_EN |
R |
0x0 |
Ic_en Status. This bit always reflects the value driven on the output port ic_en.
|
REG_IC_DMA_CMD
Name: I2C DMA Command Register
Size: 32
Address offset: 0A0h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_DMA_DATA_LEN
Name: I2C DMA Mode Transfer Data Length Register
Size: 32
Address offset: 0A4h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_DMA_MODE
Name: I2C DMA Mode Register
Size: 32
Address offset: 0A8h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_SLEEP
Name: I2C Sleep Mode Register
Size: 32
Address offset: 0ACh
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_DEBUG_SEL
Name: I2C Debug SEL Register
Size: 32
Address offset: 0B0h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:4 |
RSVD |
R |
- |
Reserved |
3:0 |
IC_DEBUG_SEL |
R/W |
0x0 |
|
REG_IC_OUT_SMP_DLY
Size: 32
Address offset: 0B4h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:3 |
RSVD |
R |
- |
Reserved |
2:0 |
IC_OUT_SMP_DLY |
R/W |
0x2 |
Delay cycles for sample of master drived SCL value. The sample of master drived SCL is used for slave stretch. Slave stretch is valid when master drive SCL High, but slave drive SCL low. Valid value of IC_OUT_SMP_DLY is 0-7. Inicate a delay of 1-8 cycles. |
REG_IC_CLR_ADDR_MATCH
Name: Clear Slave Mode Address Match Interrupt Register
Size: 32
Address offset: 0E4h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
IC_CLR_ADDR_MATCH |
R |
0x0 |
Read this register to clear the slave mode address match interrupt (bit 12&13) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_DMA_DONE
Name: Clear DMA DONE Interrupt Register
Size: 32
Address offset: 0E8h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_FILTER
Name: I2C Filter Register
Size: 32
Address offset: 0ECh
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:9 |
RSVD |
R |
- |
Reserved |
8 |
IC_DIG_FLTR_SEL |
R/W |
0x0 |
|
7:4 |
RSVD |
R |
- |
Reserved |
3:0 |
IC_DIG_FLTR_DEG |
R/W |
0x0 |
DIG_FLTR_DEG is to define frequency range of filter. A greater value of DIG_FLTR_DEG results in a slower transfer speed and hardware would be able to filter a lower frequency. |
REG_IC_SAR2
Name: I2C Slave2 Address Register
Size: 32
Address offset: 0F4h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:7 |
RSVD |
R |
- |
Reserved |
6:0 |
IC_SAR2 |
R/W |
0x12 |
The IC_SAR2 holds the slave address when the I2C is operating as slave2. Slave2 only supports 7 bit address. The register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_COMP_VERSION
Name: I2C Component Version Register
Size: 32
Address offset: 0FCh
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
IC_COMP_VERSION |
R |
0x20200911 |
I2C version number |
Base Address:
I2C0_REG : 0x41008000
I2C1_REG : 0x41009000
Name |
Address offset |
Access |
Description |
|---|---|---|---|
000h |
R/W |
||
004h |
R/W |
||
008h |
R/W |
||
00Ch |
R/W |
||
010h |
R/W |
||
014h |
R/W |
||
018h |
R/W |
||
01Ch |
R/W |
||
020h |
R/W |
||
024h |
R/W |
||
028h |
R/W |
||
02Ch |
R |
||
030h |
R/W |
||
034h |
R |
||
038h |
R/W |
||
03Ch |
R/W |
||
040h |
R |
||
044h |
R |
||
048h |
R |
||
04Ch |
R |
||
050h |
R |
||
054h |
R |
||
058h |
R |
||
05Ch |
R |
||
060h |
R |
||
064h |
R |
||
068h |
R |
||
06Ch |
R/W |
||
070h |
R |
||
074h |
R |
||
078h |
R |
||
07Ch |
R/W |
||
080h |
R |
||
084h |
R/W |
||
088h |
R/W |
||
08Ch |
R/W |
||
090h |
R/W |
||
094h |
R/W |
||
098h |
R/W |
||
09Ch |
R |
||
0A0h |
R/W |
||
0A4h |
R/W |
||
0A8h |
R/W |
||
0ACh |
R |
||
0B0h |
R/W |
||
0B4h |
R/W |
||
0E4h |
R |
||
0E8h |
R |
||
0ECh |
R/W |
||
0F4h |
R/W |
||
0FCh |
R |
||
100h |
R |
REG_IC_CON
Name: I2C Control Register
Size: 32
Address offset: 000h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
IC_SLAVE_DISABLE_1 |
R/W |
0x0 |
This bit controls whether I2C has its slave2 (7-bit address) disabled.
|
6 |
IC_SLAVE_DISABLE_0 |
R/W |
0x0 |
This bit controls whether I2C has its slave1 (7-bit or 10-bit address) disabled.
|
5 |
IC_RESTATRT_EN |
R/W |
0x0 |
Determine whether RESTART conditions may be sent when acting as a master.
|
4 |
RSVD |
R |
- |
Reserved |
3 |
IC_10BITADDR_SLAVE |
R/W |
0x0 |
When acting as a slave, this bit controls whether the I2C responds to 7- or 10-bit addresses.
|
2:1 |
SPEED |
R/W |
0x0 |
These bits control at which speed the I2C operates; its setting is relevant only if one is operating the I2C in master mode.
|
0 |
MASTER_MODE |
R/W |
0x0 |
This bit controls whether the I2C master is enabled.
|
REG_IC_TAR
Name: I2C Target Address Register
Size: 32
Address offset: 004h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:13 |
RSVD |
R |
- |
Reserved |
12 |
IC_10BITADDR_MASTER |
R/W |
0x0 |
Control whether I2C starts its transfers in 7- or 10-bit addressing mode when acting as a master.
|
11 |
SPECIAL |
R/W |
0x0 |
This bit indicates whether software performs a General Call or START BYTE command.
|
10 |
GC_OR_START |
R/W |
0x0 |
If SPECIAL is set to 1, then this bit indicates whether a General Call or START BYTE command is to be performed by I2C. (ic_clk domain)
|
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. |
REG_IC_SAR
Name: I2C Slave Address Register
Size: 32
Address offset: 008h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:10 |
RSVD |
R |
- |
Reserved |
9:0 |
IC_SAR |
R/W |
0x11 |
The IC_SAR holds the slave address when the I2C is operating as slave1. For 7-bit addressing, only IC_SAR[6:0] is used. The register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_HS_MAR
Name: I2C High Speed Master Mode Code Address Register
Size: 32
Address offset: 00Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:3 |
RSVD |
R |
- |
Reserved |
2:0 |
IC_HS_MAR |
R/W |
0x0 |
This bit field holds the value of the I2C HS mode master code. HS-mode master codes are reserved 8-bit codes (00001xxx) that are not used for slave addressing or other purposes. This register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE register being set to 0. Write at other times have no effect. |
REG_IC_DATA_CMD
Name: I2C Rx/Tx Data Buffer and Command Register
Size: 32
Address offset: 010h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:12 |
RSVD |
R |
- |
Reserved |
11 |
NULL_DATA |
R/W |
0x0 |
|
10 |
CMD_RESTART |
R/W |
0x0 |
This bit controls whether a RESTART is issued after the byte is sent or received.
|
9 |
CMD_STOP |
R/W |
0x0 |
This bit controls whether a STOP is issued after the byte is sent or received.
|
8 |
CMD_RW |
R/W |
0x0 |
This bit controls whether a read or write is performed. This bit does not control the direction when the I2C acts as a slave. It controls only the direction when it acts as a master.
|
7:0 |
IC_DATA |
R/W |
0x0 |
This register contains the data to be transmitted or received on the I2C bus. If you are writing to this register and want to perform a read, these bits are ignored by the I2C. However, when you read this register, these bits return the value of data received on the I2C interface. |
REG_IC_SS_SCL_HCNT
Name: Standard Speed I2C Clock SCL High Count Register
Size: 32
Address offset: 014h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_SS_SCL_HCNT |
R/W |
0x0190 |
This register sets the SCL clock high-period count for standard speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_SS_SCL_LCNT
Name: Standard Speed I2C Clock SCL Low Count Register
Size: 32
Address offset: 018h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_SS_SCL_LCNT |
R/W |
0x01D6 |
This register sets the SCL clock low-period count for standard speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_FS_SCL_HCNT
Name: Fast Speed I2C Clock SCL High Count Register
Size: 32
Address offset: 01Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_FS_SCL_HCNT |
R/W |
0x003C |
This register sets the SCL clock high-period count for fast speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_FS_SCL_LCNT
Name: Fast Speed I2C Clock SCL Low Count Register
Size: 32
Address offset: 020h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_FS_SCL_LCNT |
R/W |
0x0082 |
This register sets the SCL clock low-period count for fast speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_HS_SCL_HCNT
Name: High Speed I2C Clock SCL High Count Register
Size: 32
Address offset: 024h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_HS_SCL_HCNT |
R/W |
0x0006 |
This register sets the SCL clock high-period count for high speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. The SCL High time depends on the loading of the bus. For 100pF loading, the SCL High time is 60ns; for 400pF loading, the SCL High time is 120ns. |
REG_IC_HS_SCL_LCNT
Name: High Speed I2C Clock SCL Low Count Register
Size: 32
Address offset: 028h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_HS_SCL_LCNT |
R/W |
0x0010 |
This register sets the SCL clock low-period count for high speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. The SCL Low time depends on the loading of the bus. For 100pF loading, the SCL High time is 160ns; for 400pF loading, the SCL High time is 320ns. |
REG_IC_INTR_STAT
Name: I2C Interrupt Status Register
Size: 32
Address offset: 02Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:14 |
RSVD |
R |
- |
Reserved |
13 |
R_LP_WAKE_2 |
R |
0x0 |
|
12 |
R_LP_WAKE_1 |
R |
0x0 |
|
11 |
R_GEN_CALL |
R |
0x0 |
|
10 |
R_START_DET |
R |
0x0 |
|
9 |
R_STOP_DET |
R |
0x0 |
|
8 |
R_ACTIVITY |
R |
0x0 |
|
7 |
R_RX_DONE |
R |
0x0 |
|
6 |
R_TX_ABRT |
R |
0x0 |
|
5 |
R_RD_REQ |
R |
0x0 |
|
4 |
R_TX_EMPTY |
R |
0x0 |
|
3 |
R_TX_OVER |
R |
0x0 |
|
2 |
R_RX_FULL |
R |
0x0 |
|
1 |
R_RX_OVER |
R |
0x0 |
|
0 |
R_RX_UNDER |
R |
0x0 |
REG_IC_INTR_MASK
Name: I2C Interrupt Mask Register
Size: 32
Address offset: 030h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:14 |
RSVD |
R |
- |
Reserved |
13 |
M_LP_WAKE_2 |
R/W |
0x0 |
|
12 |
M_LP_WAKE_1 |
R/W |
0x0 |
|
11 |
M_GEN_CALL |
R/W |
0x0 |
|
10 |
M_START_DET |
R/W |
0x0 |
|
9 |
M_STOP_DET |
R/W |
0x0 |
|
8 |
M_ACTIVITY |
R/W |
0x0 |
|
7 |
M_RX_DONE |
R/W |
0x0 |
|
6 |
M_TX_ABRT |
R/W |
0x0 |
|
5 |
M_RD_REQ |
R/W |
0x0 |
|
4 |
M_TX_EMPTY |
R/W |
0x0 |
|
3 |
M_TX_OVER |
R/W |
0x0 |
|
2 |
M_RX_FULL |
R/W |
0x0 |
|
1 |
M_RX_OVER |
R/W |
0x0 |
|
0 |
M_RX_UNDER |
R/W |
0x0 |
REG_IC_RAW_INTR_STAT
Name: I2C Raw Interrupt Status Register
Size: 32
Address offset: 034h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:14 |
RSVD |
R |
- |
Reserved |
13 |
LP_WAKE_2 |
R |
0x0 |
Set when address SAR_2 match with address sending on I2C BUS. |
12 |
LP_WAKE_1 |
R |
0x0 |
Set when address SAR match with address sending on I2C BUS. |
11 |
GEN_CALL |
R |
0x0 |
Set only when a General Call address is received and it is acknowledged. |
10 |
START_DET |
R |
0x0 |
Indicates whether a START or RESTART condition has occurred on the I2C interface regardless of whether I2C is operating in slave or master mode. |
9 |
STOP_DET |
R |
0x0 |
Indicates whether a STOP condition has occurred on the I2C interface regardless of whether I2C is operating in slave or master mode. |
8 |
ACTIVITY |
R |
0x0 |
This bit captures I2C activity. |
7 |
RX_DONE |
R |
0x0 |
When the I2C is acting as a slave-transmitter, this bit is set to 1 if the master does not acknowledge a transmitted byte. This occurs on the last byte of the transmission, indicating that the transmission is done. |
6 |
TX_ABRT |
R |
0x0 |
This bit indicates if I2C as a transmitter, is unable to complete the intended actions on the contents of the transmit FIFO. This situation can occur both as an I2C master or an I2C slave, and is referred to as a ‘transmit abort’.
|
5 |
RD_REQ |
R |
0x0 |
This bit is set to 1 when I2C is acting as a slave and another I2C master is attempting to read data from I2C. The I2C holds the I2C bus in a wait state(SCL=0) until this interrupt is serviced, which means that the slave has been addressed by a remote master that is asking for data to be transferred. The processor must respond to this interrupt and then write the requested data to the IC_DATA_CMD register. |
4 |
TX_EMPTY |
R |
0x0 |
This bit is set to 1 when the transmit buffer is at or below the threshold value set in the IC_TX_TL register. It is automatically cleared by hardware when the buffer level goes above the threshold. |
3 |
TX_OVER |
R |
0x0 |
Set during transmit if the transmit buffer is filled to IC_TX_BUFFER_DEPTH and the processor attempts to issue another I2C command by writing to the IC_DATA_CMD register. |
2 |
RX_FULL |
R |
0x0 |
Set when the receive buffer goes above the RX_TL threshold in the IC_RX_TL register. It is automatically cleared by hardware when buffer level is equal to or less than the threshold. |
1 |
RX_OVER |
R |
0x0 |
Not used. Set if the receive buffer is completely filled to IC_RX_BUFFER_DEPTH and an additional byte is received from an external I2C device. |
0 |
RX_UNDER |
R |
0x0 |
Set if the processor attempts to read the receive buffer when it is empty by reading from the IC_DATA_CMD register. |
REG_IC_RX_TL
Name: I2C Receive FIFO Threshold Register
Size: 32
Address offset: 038h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
IC_RX_0_TL |
R/W |
0x0 |
Receive FIFO Threshold Level. Control the level of entries (or above) that triggers the RX_FULL interrupt (bit 2 in IC_RAW_INTR_STAT register). |
REG_IC_TX_TL
Name: I2C Transmit FIFO Threshold Register
Size: 32
Address offset: 03Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
IC_TX_0_TL |
R/W |
0x0 |
Transmit FIFO Threshold Level. Control the level of entries (or below) that triggers the TX_EMPTY interrupt (bit 4 in IC_RAW_INTR_STAT register). |
REG_IC_CLR_INTR
Name: Clear Combined and Individual Interrupt Register
Size: 32
Address offset: 040h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_INRT |
R |
0x0 |
Read this register to clear the combined interrupt, all individual interrupts, and the IC_TX_ABRT_SOURCE register. This bit does not clear hardware clearable interrupts but software clearable interrupts. |
REG_IC_CLR_RX_UNDER
Name: Clear RX_UNDER Interrupt Register
Size: 32
Address offset: 044h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RX_UNDER |
R |
0x0 |
Read this register to clear the RX_UNDER interrupt (bit 0) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_RX_OVER
Name: Clear RX_OVER Interrupt Register
Size: 32
Address offset: 048h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RX_OVER |
R |
0x0 |
Read this register to clear the RX_OVER interrupt (bit 1) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_TX_OVER
Name: Clear TX_OVER Interrupt Register
Size: 32
Address offset: 04Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_TX_OVER |
R |
0x0 |
Read this register to clear the TX_OVER interrupt (bit 3) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_RD_REQ
Name: Clear RD_REQ Interrupt Register
Size: 32
Address offset: 050h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RD_REQ |
R |
0x0 |
Read this register to clear the RD_REQ interrupt (bit 5) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_TX_ABRT
Name: Clear TX_ABRT Interrupt Register
Size: 32
Address offset: 054h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_TX_ABRT |
R |
0x0 |
Read this register to clear the TX_ABRT interrupt (bit 6) of IC_RAW_INTR_STAT register, and the IC_TX_ABRT_SOURCE register. This is also releases the TX FIFO from the flushed/reset state, allowing more writes to the TX FIFO. |
REG_IC_CLR_RX_DONE
Name: Clear RX_DONE Interrupt Register
Size: 32
Address offset: 058h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RX_DONE |
R |
0x0 |
Read this register to clear the RX_DONE interrupt (bit 7) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_ACTIVITY
Name: Clear ACTIVITY Interrupt Register
Size: 32
Address offset: 05Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_ACTIVITY |
R |
0x0 |
Read this register to clear the ACTIVITY interrupt if the I2C is not active anymore. If the I2C module is still active on the bus, the ACTIVITY interrupt bit continues to be set. It is automatically cleared by hardware if the module is disabled and if there is no further activity on the bus. The value read from this register to get status of the ACTIVITY interrupt (bit 8) of the IC_RAW_INTR_STAT register. |
REG_IC_CLR_STOP_DET
Name: Clear STOP_DET Interrupt Register
Size: 32
Address offset: 060h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_STOP_DET |
R |
0x0 |
Ead this register to clear the STOP_DET interrupt (bit 9) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_START_DET
Name: Clear START_DET Interrupt Register
Size: 32
Address offset: 064h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_START_DET |
R |
0x0 |
Ead this register to clear the START_DET interrupt (bit 10) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_GEN_CALL
Name: Clear GEN_ALL Interrupt Register
Size: 32
Address offset: 068h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_GEN_CALL |
R |
0x0 |
Ead this register to clear the GEN_CALL interrupt (bit 11) of IC_RAW_INTR_STAT register. |
REG_IC_ENABLE
Name: I2C Enable Register
Size: 32
Address offset: 06Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:2 |
RSVD |
R |
- |
Reserved |
1 |
FORCE |
R/W |
0x0 |
Force master I2C stop transfer immediately after IC_ENABLE set 0.
|
0 |
ENABLE |
R/W |
0x0 |
Control whether the I2C is enabled.
|
REG_IC_STATUS
Name: I2C Status Register
Size: 32
Address offset: 070h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:10 |
RSVD |
R |
- |
Reserved |
9:8 |
BUS_MONITOR_STATUS |
R |
0x0 |
BUS monitor status:
|
7 |
RSVD |
R |
- |
Reserved |
6 |
SLV_ACTIVITY |
R |
0x0 |
Slave FSM Activity Status. When the Slave FSM is not in the IDLE state, this bit is set.
|
5 |
MST_ACTIVITY |
R |
0x0 |
Master FSM Activity Status. When the Master FSM is not in the IDLE state, this bit is set.
|
4 |
RFF |
R |
0x0 |
Receive FIFO Completely Full. When the receive FIFO is completely full, this bit is set. When the receive FIFO contains one or more empty location, this bit is cleared.
|
3 |
RFNE |
R |
0x0 |
Receive FIFO Not Empty. This bit is set when the receive FIFO contains one or more entries; it is cleared when the receive FIFO is empty.
|
2 |
TFE |
R |
0x1 |
Transmit FIFO Completely Empty. When the transmit FIFO is completely empty, this bit is set. When it contains one or more valid entries, this bit is cleared. This bit field does not request an interrupt.
|
1 |
TFNF |
R |
0x1 |
Transmit FIFO Not Full. Set when the transmit FIFO contains one or more empty locations, and is cleared when the FIFO is full.
|
0 |
IC_ACTIVITY |
R |
0x0 |
I2C Activity Status. |
REG_IC_TXFLR
Name: I2C Transmit FIFO Level Register
Size: 32
Address offset: 074h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5:0 |
TXFLR |
R |
0x0 |
Transmit FIFO Level. Contains the number of valid data entries in the transmit FIFO. |
REG_IC_RXFLR
Name: I2C Receive FIFO Level Register
Size: 32
Address offset: 078h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5:0 |
RXFLR |
R |
0x0 |
Receive FIFO Level. Contains the number of valid data entries in the receive FIFO. |
REG_IC_SDA_HOLD
Name: I2C SDA Hold Time Length Register
Size: 32
Address offset: 07Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_SDA_HOLD |
R/W |
0x1 |
Set the required SDA hold time in units of ic_clk period. |
REG_IC_TX_ABRT_SOURCE
Name: I2C Transmit Abort Source Register
Size: 32
Address offset: 080h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:15 |
RSVD |
R |
- |
Reserved |
14 |
ABRT_SLV_ARBLOST |
R |
0x0 |
|
13 |
ABRT_SLVFLUSH_TXFIFO |
R |
0x0 |
|
12 |
ARBT_LOST |
R |
0x0 |
|
11 |
ABRT_MASTER_DIS |
R |
0x0 |
|
10 |
ABRT_10B_RD_NORSTRT |
R |
0x0 |
|
9 |
ABRT_SBYTE_NORSTRT |
R |
0x0 |
|
8 |
ABRT_HS_NORSTRT |
R |
0x0 |
|
7 |
ABRT_SBYTE_ACKDET |
R |
0x0 |
|
6 |
ABRT_HS_ACKDET |
R |
0x0 |
|
5 |
ABRT_GCALL_READ |
R |
0x0 |
|
4 |
ABRT_GCALL_NOACK |
R |
0x0 |
|
3 |
ABRT_TXDATA_NOACK |
R |
0x0 |
|
2 |
ABRT_10ADDR2_NOACK |
R |
0x0 |
|
1 |
ABRT_10ADDR1_NOACK |
R |
0x0 |
|
0 |
ABRT_7B_ADDR_NOACK |
R |
0x0 |
|
REG_IC_SLV_DATA_NACK_ONLY
Name: Generate Slave Data NACK Register
Size: 32
Address offset: 084h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
NACK |
R/W |
0x0 |
Generate NACK. This NACK generation only occurs when I2C is a slave-receiver. If this register is set to a value of 1, it can only generate a NACK after a data byte is received; hence, the data transfer is aborted and the data received is not pushed to the receive buffer. When the register is set to a value of 0, it generates NACK/ACK, depending on normal criteria.
|
REG_IC_DMA_CR
Name: DMA Control Register
Size: 32
Address offset: 088h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:2 |
RSVD |
R |
- |
Reserved |
1 |
TDMAE |
R/W |
0x0 |
Transmit DMA Enable. This bit enables/disables the transmit FIFO DMA channel.
|
0 |
RDMAE |
R/W |
0x0 |
Receive DMA Enable. This bit enables/disables the receive FIFO DMA channel.
|
REG_IC_DMA_TDLR
Name: DMA Transmit Data Level Register
Size: 32
Address offset: 08Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:4 |
RSVD |
R |
- |
Reserved |
3:0 |
DMATDL |
R/W |
0x0 |
Transmit Data Level. This bit field controls the level at which a DMA request is made by the transmit logic. It is equal to the watermark level; that is, the dma_tx_req signal is generated when the number of valid data entries in the transmit FIFO is equal to or below this field value, and TDMAE=1. |
REG_IC_DMA_RDLR
Name: I2C Reveive Data Level Register
Size: 32
Address offset: 090h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:4 |
RSVD |
R |
- |
Reserved |
3:0 |
DMARDL |
R/W |
0x0 |
Receive Data Level. This bit field controls the level at which a DMA request is made by the receive logic. The watermark level=DMARDL+1; that is, the dma_tx_req signal is generated when the number of valid data entries in the receive FIFO is equal to or more than this field value+1, and RDMAE=1. For instance, when DMARDL is 0, the dma_rx_req is asserted when 1 or more data entries are present in the receive FIFO. |
REG_IC_SDA_SETUP
Name: I2C SDA Setup Register
Size: 32
Address offset: 094h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
IC_SDA_SETUP |
R/W |
0x5 |
Set the required SDA setup time in units of ic_clk period. |
REG_IC_ACK_GENERAL_CALL
Name: I2C ACK General Call Register
Size: 32
Address offset: 098h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
ACK_GEN_CALL |
R/W |
0x1 |
|
REG_IC_ENABLE_STATUS
Name: I2C Enable Status Register
Size: 32
Address offset: 09Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:5 |
RSVD |
R |
- |
Reserved |
4:3 |
BUSY_IN_MODE |
R |
0x0 |
|
2 |
SLV_DISABLE_WHILE_BUSY |
R |
0x0 |
Slave Disabled While Busy (Transmit, Receive). This bit indicates if a potential or active Slave operation has been aborted due to the setting of the IC_SLAVE_DISBALE register from 1 to 0. |
1 |
RSVD |
R |
- |
Reserved |
0 |
IC_EN |
R |
0x0 |
Ic_en Status. This bit always reflects the value driven on the output port ic_en.
|
REG_IC_DMA_CMD
Name: I2C DMA Command Register
Size: 32
Address offset: 0A0h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
DMODE_RESTART |
R/W |
0x0 |
This bit controls whether a RESTART is issued after the byte is sent or received in DMA mode.
|
6 |
DMODE_STOP |
R/W |
0x0 |
This bit controls whether a STOP is issued after the byte is sent or received in DMA mode.
|
5 |
DMODE_CMD |
R/W |
0x0 |
This bit controls whether a read or write is performed in DMA mode. This bit does not control the direction when the I2C acts as a slave. It controls only the direction when it acts as a master.
|
4:1 |
RSVD |
R |
- |
Reserved |
0 |
DMODE_ENABLE |
R/W |
0x0 |
|
REG_IC_DMA_DATA_LEN
Name: I2C DMA Mode Transfer Data Length Register
Size: 32
Address offset: 0A4h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
DMA_DAT_LEN |
R/W |
0x0 |
DMA transfer data length |
REG_IC_DMA_MODE
Name: I2C DMA Mode Register
Size: 32
Address offset: 0A8h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:2 |
RSVD |
R |
- |
Reserved |
1:0 |
DMA_MODE |
R/W |
0x0 |
|
REG_IC_SLEEP
Name: I2C Sleep Mode Register
Size: 32
Address offset: 0ACh
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_DEBUG_SEL
Name: I2C Debug SEL Register
Size: 32
Address offset: 0B0h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:4 |
RSVD |
R |
- |
Reserved |
3:0 |
IC_DEBUG_SEL |
R/W |
0x0 |
|
REG_IC_OUT_SMP_DLY
Size: 32
Address offset: 0B4h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:3 |
RSVD |
R |
- |
Reserved |
2:0 |
IC_OUT_SMP_DLY |
R/W |
0x2 |
Delay cycles for sample of master drived SCL value. The sample of master drived SCL is used for slave stretch. Slave stretch is valid when master drive SCL High, but slave drive SCL low. Valid value of IC_OUT_SMP_DLY is 0-7. Inicate a delay of 1-8 cycles. |
REG_IC_CLR_ADDR_MATCH
Name: Clear Slave Mode Address Match Interrupt Register
Size: 32
Address offset: 0E4h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
IC_CLR_ADDR_MATCH |
R |
0x0 |
Read this register to clear the slave mode address match interrupt (bit 12&13) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_DMA_DONE
Name: Clear DMA DONE Interrupt Register
Size: 32
Address offset: 0E8h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
IC_CLR_RAW_INTR_STAT |
R |
0x0 |
Read this register to clear the DMA_DONE interrupt (bit 15) of IC_RAW_INTR_STAT register. |
REG_IC_FILTER
Name: I2C Filter Register
Size: 32
Address offset: 0ECh
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:9 |
RSVD |
R |
- |
Reserved |
8 |
IC_DIG_FLTR_SEL |
R/W |
0x0 |
|
7:6 |
RSVD |
R |
- |
Reserved |
5:0 |
IC_DIG_FLTR_DEG |
R/W |
0x0 |
DIG_FLTR_DEG is to define frequency range of filter. A greater value of DIG_FLTR_DEG results in a slower transfer speed and hardware would be able to filter a lower frequency. Valid value of IC_DIG_FLTR_DEG is 6’d0~6’d62.(RL7005 CUTB) |
REG_IC_SAR2
Name: I2C Slave2 Address Register
Size: 32
Address offset: 0F4h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:7 |
RSVD |
R |
- |
Reserved |
6:0 |
IC_SAR2 |
R/W |
0x12 |
The IC_SAR2 holds the slave address when the I2C is operating as slave2. Slave2 only supports 7 bit address. The register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_COMP_VERSION
Name: I2C Component Version Register
Size: 32
Address offset: 0FCh
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
IC_COMP_VERSION |
R |
0x20200702 |
I2C version number |
REG_IC_DUMMY
Name: IC Dummy Register
Size: 32
Address offset: 100h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
DUMMY |
R |
0x0 |
Rsvd for hw |
Base Address:
I2C0_REG : 0x401C8000
I2C1_REG : 0x401C9000
Name |
Address offset |
Access |
Description |
|---|---|---|---|
000h |
R/W |
||
004h |
R/W |
||
008h |
R/W |
||
00Ch |
R/W |
||
010h |
R/W |
||
014h |
R/W |
||
018h |
R/W |
||
01Ch |
R/W |
||
020h |
R/W |
||
024h |
R/W |
||
028h |
R/W |
||
02Ch |
R |
||
030h |
R/W |
||
034h |
R |
||
038h |
R/W |
||
03Ch |
R/W |
||
040h |
R |
||
044h |
R |
||
048h |
R |
||
04Ch |
R |
||
050h |
R |
||
054h |
R |
||
058h |
R |
||
05Ch |
R |
||
060h |
R |
||
064h |
R |
||
068h |
R |
||
06Ch |
R/W |
||
070h |
R |
||
074h |
R |
||
078h |
R |
||
07Ch |
R/W |
||
080h |
R |
||
084h |
R/W |
||
088h |
R/W |
||
08Ch |
R/W |
||
090h |
R/W |
||
094h |
R/W |
||
098h |
R/W |
||
09Ch |
R |
||
0A0h |
R/W |
||
0A4h |
R/W |
||
0A8h |
R/W |
||
0ACh |
R |
||
0B0h |
R/W |
||
0B4h |
R/W |
||
0B8h |
R/W |
||
0BCh |
R |
||
0C0h |
R/W |
||
0E4h |
R |
||
0E8h |
R |
||
0ECh |
R/W |
||
0F4h |
R/W |
||
0FCh |
R |
||
100h |
R |
REG_IC_CON
Name: I2C Control Register
Size: 32
Address offset: 000h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
IC_SLAVE_DISABLE_1 |
R/W |
0x0 |
This bit controls whether I2C has its slave2 (7-bit address) disabled.
|
6 |
IC_SLAVE_DISABLE_0 |
R/W |
0x0 |
This bit controls whether I2C has its slave1 (7-bit or 10-bit address) disabled.
|
5 |
IC_RESTATRT_EN |
R/W |
0x0 |
Determine whether RESTART conditions may be sent when acting as a master.
|
4 |
RSVD |
R |
- |
Reserved |
3 |
IC_10BITADDR_SLAVE |
R/W |
0x0 |
When acting as a slave, this bit controls whether the I2C responds to 7- or 10-bit addresses.
|
2:1 |
SPEED |
R/W |
0x0 |
These bits control at which speed the I2C operates; its setting is relevant only if one is operating the I2C in master mode.
|
0 |
MASTER_MODE |
R/W |
0x0 |
This bit controls whether the I2C master is enabled.
|
REG_IC_TAR
Name: I2C Target Address Register
Size: 32
Address offset: 004h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:13 |
RSVD |
R |
- |
Reserved |
12 |
IC_10BITADDR_MASTER |
R/W |
0x0 |
Control whether I2C starts its transfers in 7- or 10-bit addressing mode when acting as a master.
|
11 |
SPECIAL |
R/W |
0x0 |
This bit indicates whether software performs a General Call or START BYTE command.
|
10 |
GC_OR_START |
R/W |
0x0 |
If SPECIAL is set to 1, then this bit indicates whether a General Call or START BYTE command is to be performed by I2C. (ic_clk domain)
|
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. |
REG_IC_SAR
Name: I2C Slave Address Register
Size: 32
Address offset: 008h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:10 |
RSVD |
R |
- |
Reserved |
9:0 |
IC_SAR |
R/W |
0x11 |
The IC_SAR holds the slave address when the I2C is operating as slave1. For 7-bit addressing, only IC_SAR[6:0] is used. The register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_HS_MAR
Name: I2C High Speed Master Mode Code Address Register
Size: 32
Address offset: 00Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:3 |
RSVD |
R |
- |
Reserved |
2:0 |
IC_HS_MAR |
R/W |
0x0 |
This bit field holds the value of the I2C HS mode master code. HS-mode master codes are reserved 8-bit codes (00001xxx) that are not used for slave addressing or other purposes. This register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE register being set to 0. Write at other times have no effect. |
REG_IC_DATA_CMD
Name: I2C Rx/Tx Data Buffer and Command Register
Size: 32
Address offset: 010h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:12 |
RSVD |
R |
- |
Reserved |
11 |
NULL_DATA |
R/W |
0x0 |
|
10 |
CMD_RESTART |
R/W |
0x0 |
This bit controls whether a RESTART is issued after the byte is sent or received.
|
9 |
CMD_STOP |
R/W |
0x0 |
This bit controls whether a STOP is issued after the byte is sent or received.
|
8 |
CMD_RW |
R/W |
0x0 |
This bit controls whether a read or write is performed. This bit does not control the direction when the I2C acts as a slave. It controls only the direction when it acts as a master.
|
7:0 |
IC_DATA |
R/W |
0x0 |
This register contains the data to be transmitted or received on the I2C bus. If you are writing to this register and want to perform a read, these bits are ignored by the I2C. However, when you read this register, these bits return the value of data received on the I2C interface. |
REG_IC_SS_SCL_HCNT
Name: Standard Speed I2C Clock SCL High Count Register
Size: 32
Address offset: 014h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_SS_SCL_HCNT |
R/W |
0x0190 |
This register sets the SCL clock high-period count for standard speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_SS_SCL_LCNT
Name: Standard Speed I2C Clock SCL Low Count Register
Size: 32
Address offset: 018h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_SS_SCL_LCNT |
R/W |
0x01D6 |
This register sets the SCL clock low-period count for standard speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_FS_SCL_HCNT
Name: Fast Speed I2C Clock SCL High Count Register
Size: 32
Address offset: 01Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_FS_SCL_HCNT |
R/W |
0x003C |
This register sets the SCL clock high-period count for fast speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_FS_SCL_LCNT
Name: Fast Speed I2C Clock SCL Low Count Register
Size: 32
Address offset: 020h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_FS_SCL_LCNT |
R/W |
0x0082 |
This register sets the SCL clock low-period count for fast speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_HS_SCL_HCNT
Name: High Speed I2C Clock SCL High Count Register
Size: 32
Address offset: 024h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_HS_SCL_HCNT |
R/W |
0x0006 |
This register sets the SCL clock high-period count for high speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. The SCL High time depends on the loading of the bus. For 100pF loading, the SCL High time is 60ns; for 400pF loading, the SCL High time is 120ns. |
REG_IC_HS_SCL_LCNT
Name: High Speed I2C Clock SCL Low Count Register
Size: 32
Address offset: 028h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_HS_SCL_LCNT |
R/W |
0x0010 |
This register sets the SCL clock low-period count for high speed. This register must be set before any I2C bus transaction can take place to ensure proper I/O timing. This register can be written only when the I2C interface is disabled which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. The SCL Low time depends on the loading of the bus. For 100pF loading, the SCL High time is 160ns; for 400pF loading, the SCL High time is 320ns. |
REG_IC_INTR_STAT
Name: I2C Interrupt Status Register
Size: 32
Address offset: 02Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:15 |
RSVD |
R |
- |
Reserved |
14 |
R_RXFIFO_TIMEOUT |
R |
0x0 |
|
13 |
R_LP_WAKE_2 |
R |
0x0 |
|
12 |
R_LP_WAKE_1 |
R |
0x0 |
|
11 |
R_GEN_CALL |
R |
0x0 |
|
10 |
R_START_DET |
R |
0x0 |
|
9 |
R_STOP_DET |
R |
0x0 |
|
8 |
R_ACTIVITY |
R |
0x0 |
|
7 |
R_RX_DONE |
R |
0x0 |
|
6 |
R_TX_ABRT |
R |
0x0 |
|
5 |
R_RD_REQ |
R |
0x0 |
|
4 |
R_TX_EMPTY |
R |
0x0 |
|
3 |
R_TX_OVER |
R |
0x0 |
|
2 |
R_RX_FULL |
R |
0x0 |
|
1 |
R_RX_OVER |
R |
0x0 |
|
0 |
R_RX_UNDER |
R |
0x0 |
REG_IC_INTR_MASK
Name: I2C Interrupt Mask Register
Size: 32
Address offset: 030h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:15 |
RSVD |
R |
- |
Reserved |
14 |
M_RXFIFO_TIMEOUT |
R/W |
0x0 |
|
13 |
M_LP_WAKE_2 |
R/W |
0x0 |
|
12 |
M_LP_WAKE_1 |
R/W |
0x0 |
|
11 |
M_GEN_CALL |
R/W |
0x0 |
|
10 |
M_START_DET |
R/W |
0x0 |
|
9 |
M_STOP_DET |
R/W |
0x0 |
|
8 |
M_ACTIVITY |
R/W |
0x0 |
|
7 |
M_RX_DONE |
R/W |
0x0 |
|
6 |
M_TX_ABRT |
R/W |
0x0 |
|
5 |
M_RD_REQ |
R/W |
0x0 |
|
4 |
M_TX_EMPTY |
R/W |
0x0 |
|
3 |
M_TX_OVER |
R/W |
0x0 |
|
2 |
M_RX_FULL |
R/W |
0x0 |
|
1 |
M_RX_OVER |
R/W |
0x0 |
|
0 |
M_RX_UNDER |
R/W |
0x0 |
REG_IC_RAW_INTR_STAT
Name: I2C Raw Interrupt Status Register
Size: 32
Address offset: 034h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:15 |
RSVD |
R |
- |
Reserved |
14 |
RXFIFO_TIMEOUT |
R |
0x0 |
This intr occurs when rxdma owner is I2C and I2C rx idle time counter greater than RXFIFO_TIMEOUT_TH. |
13 |
LP_WAKE_2 |
R |
0x0 |
Set when address SAR_2 match with address sending on I2C BUS. |
12 |
LP_WAKE_1 |
R |
0x0 |
Set when address SAR match with address sending on I2C BUS. |
11 |
GEN_CALL |
R |
0x0 |
Set only when a General Call address is received and it is acknowledged. |
10 |
START_DET |
R |
0x0 |
Indicates whether a START or RESTART condition has occurred on the I2C interface regardless of whether I2C is operating in slave or master mode. |
9 |
STOP_DET |
R |
0x0 |
Indicates whether a STOP condition has occurred on the I2C interface regardless of whether I2C is operating in slave or master mode. |
8 |
ACTIVITY |
R |
0x0 |
This bit captures I2C activity. |
7 |
RX_DONE |
R |
0x0 |
When the I2C is acting as a slave-transmitter, this bit is set to 1 if the master does not acknowledge a transmitted byte. This occurs on the last byte of the transmission, indicating that the transmission is done. |
6 |
TX_ABRT |
R |
0x0 |
This bit indicates if I2C as a transmitter, is unable to complete the intended actions on the contents of the transmit FIFO. This situation can occur both as an I2C master or an I2C slave, and is referred to as a ‘transmit abort’.
|
5 |
RD_REQ |
R |
0x0 |
This bit is set to 1 when I2C is acting as a slave and another I2C master is attempting to read data from I2C. The I2C holds the I2C bus in a wait state(SCL=0) until this interrupt is serviced, which means that the slave has been addressed by a remote master that is asking for data to be transferred. The processor must respond to this interrupt and then write the requested data to the IC_DATA_CMD register. |
4 |
TX_EMPTY |
R |
0x0 |
This bit is set to 1 when the transmit buffer is at or below the threshold value set in the IC_TX_TL register. It is automatically cleared by hardware when the buffer level goes above the threshold. |
3 |
TX_OVER |
R |
0x0 |
Set during transmit if the transmit buffer is filled to IC_TX_BUFFER_DEPTH and the processor attempts to issue another I2C command by writing to the IC_DATA_CMD register. |
2 |
RX_FULL |
R |
0x0 |
Set when the receive buffer goes above the RX_TL threshold in the IC_RX_TL register. It is automatically cleared by hardware when buffer level is equal to or less than the threshold. |
1 |
RX_OVER |
R |
0x0 |
Not used. Set if the receive buffer is completely filled to IC_RX_BUFFER_DEPTH and an additional byte is received from an external I2C device. |
0 |
RX_UNDER |
R |
0x0 |
Set if the processor attempts to read the receive buffer when it is empty by reading from the IC_DATA_CMD register. |
REG_IC_RX_TL
Name: I2C Receive FIFO Threshold Register
Size: 32
Address offset: 038h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
IC_RX_0_TL |
R/W |
0x0 |
Receive FIFO Threshold Level. Control the level of entries (or above) that triggers the RX_FULL interrupt (bit 2 in IC_RAW_INTR_STAT register). |
REG_IC_TX_TL
Name: I2C Transmit FIFO Threshold Register
Size: 32
Address offset: 03Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
IC_TX_0_TL |
R/W |
0x0 |
Transmit FIFO Threshold Level. Control the level of entries (or below) that triggers the TX_EMPTY interrupt (bit 4 in IC_RAW_INTR_STAT register). |
REG_IC_CLR_INTR
Name: Clear Combined and Individual Interrupt Register
Size: 32
Address offset: 040h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_INRT |
R |
0x0 |
Read this register to clear the combined interrupt, all individual interrupts, and the IC_TX_ABRT_SOURCE register. This bit does not clear hardware clearable interrupts but software clearable interrupts. |
REG_IC_CLR_RX_UNDER
Name: Clear RX_UNDER Interrupt Register
Size: 32
Address offset: 044h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RX_UNDER |
R |
0x0 |
Read this register to clear the RX_UNDER interrupt (bit 0) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_RX_OVER
Name: Clear RX_OVER Interrupt Register
Size: 32
Address offset: 048h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RX_OVER |
R |
0x0 |
Read this register to clear the RX_OVER interrupt (bit 1) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_TX_OVER
Name: Clear TX_OVER Interrupt Register
Size: 32
Address offset: 04Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_TX_OVER |
R |
0x0 |
Read this register to clear the TX_OVER interrupt (bit 3) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_RD_REQ
Name: Clear RD_REQ Interrupt Register
Size: 32
Address offset: 050h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RD_REQ |
R |
0x0 |
Read this register to clear the RD_REQ interrupt (bit 5) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_TX_ABRT
Name: Clear TX_ABRT Interrupt Register
Size: 32
Address offset: 054h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_TX_ABRT |
R |
0x0 |
Read this register to clear the TX_ABRT interrupt (bit 6) of IC_RAW_INTR_STAT register, and the IC_TX_ABRT_SOURCE register. This is also releases the TX FIFO from the flushed/reset state, allowing more writes to the TX FIFO. |
REG_IC_CLR_RX_DONE
Name: Clear RX_DONE Interrupt Register
Size: 32
Address offset: 058h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RX_DONE |
R |
0x0 |
Read this register to clear the RX_DONE interrupt (bit 7) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_ACTIVITY
Name: Clear ACTIVITY Interrupt Register
Size: 32
Address offset: 05Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_ACTIVITY |
R |
0x0 |
Read this register to clear the ACTIVITY interrupt if the I2C is not active anymore. If the I2C module is still active on the bus, the ACTIVITY interrupt bit continues to be set. It is automatically cleared by hardware if the module is disabled and if there is no further activity on the bus. The value read from this register to get status of the ACTIVITY interrupt (bit 8) of the IC_RAW_INTR_STAT register. |
REG_IC_CLR_STOP_DET
Name: Clear STOP_DET Interrupt Register
Size: 32
Address offset: 060h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_STOP_DET |
R |
0x0 |
Read this register to clear the STOP_DET interrupt (bit 9) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_START_DET
Name: Clear START_DET Interrupt Register
Size: 32
Address offset: 064h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_START_DET |
R |
0x0 |
Read this register to clear the START_DET interrupt (bit 10) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_GEN_CALL
Name: Clear GEN_ALL Interrupt Register
Size: 32
Address offset: 068h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_GEN_CALL |
R |
0x0 |
Read this register to clear the GEN_CALL interrupt (bit 11) of IC_RAW_INTR_STAT register. |
REG_IC_ENABLE
Name: I2C Enable Register
Size: 32
Address offset: 06Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:2 |
RSVD |
R |
- |
Reserved |
1 |
FORCE |
R/W |
0x0 |
Force master I2C stop transfer immediately after IC_ENABLE set 0.
|
0 |
ENABLE |
R/W |
0x0 |
Control whether the I2C is enabled.
|
REG_IC_STATUS
Name: I2C Status Register
Size: 32
Address offset: 070h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:10 |
RSVD |
R |
- |
Reserved |
9:8 |
BUS_MONITOR_STATUS |
R |
0x0 |
BUS monitor status:
|
7 |
RSVD |
R |
- |
Reserved |
6 |
SLV_ACTIVITY |
R |
0x0 |
Slave FSM Activity Status. When the Slave FSM is not in the IDLE state, this bit is set.
|
5 |
MST_ACTIVITY |
R |
0x0 |
Master FSM Activity Status. When the Master FSM is not in the IDLE state, this bit is set.
|
4 |
RFF |
R |
0x0 |
Receive FIFO Completely Full. When the receive FIFO is completely full, this bit is set. When the receive FIFO contains one or more empty location, this bit is cleared.
|
3 |
RFNE |
R |
0x0 |
Receive FIFO Not Empty. This bit is set when the receive FIFO contains one or more entries; it is cleared when the receive FIFO is empty.
|
2 |
TFE |
R |
0x1 |
Transmit FIFO Completely Empty. When the transmit FIFO is completely empty, this bit is set. When it contains one or more valid entries, this bit is cleared. This bit field does not request an interrupt.
|
1 |
TFNF |
R |
0x1 |
Transmit FIFO Not Full. Set when the transmit FIFO contains one or more empty locations, and is cleared when the FIFO is full.
|
0 |
IC_ACTIVITY |
R |
0x0 |
I2C Activity Status. |
REG_IC_TXFLR
Name: I2C Transmit FIFO Level Register
Size: 32
Address offset: 074h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5:0 |
TXFLR |
R |
0x0 |
Transmit FIFO Level. Contains the number of valid data entries in the transmit FIFO. |
REG_IC_RXFLR
Name: I2C Receive FIFO Level Register
Size: 32
Address offset: 078h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:6 |
RSVD |
R |
- |
Reserved |
5:0 |
RXFLR |
R |
0x0 |
Receive FIFO Level. Contains the number of valid data entries in the receive FIFO. |
REG_IC_SDA_HOLD
Name: I2C SDA Hold Time Length Register
Size: 32
Address offset: 07Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
IC_SDA_HOLD |
R/W |
0x1 |
Set the required SDA hold time in units of ic_clk period. |
REG_IC_TX_ABRT_SOURCE
Name: I2C Transmit Abort Source Register
Size: 32
Address offset: 080h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:15 |
RSVD |
R |
- |
Reserved |
14 |
ABRT_SLV_ARBLOST |
R |
0x0 |
|
13 |
ABRT_SLVFLUSH_TXFIFO |
R |
0x0 |
|
12 |
ARBT_LOST |
R |
0x0 |
|
11 |
ABRT_MASTER_DIS |
R |
0x0 |
|
10 |
ABRT_10B_RD_NORSTRT |
R |
0x0 |
|
9 |
ABRT_SBYTE_NORSTRT |
R |
0x0 |
|
8 |
ABRT_HS_NORSTRT |
R |
0x0 |
|
7 |
ABRT_SBYTE_ACKDET |
R |
0x0 |
|
6 |
ABRT_HS_ACKDET |
R |
0x0 |
|
5 |
ABRT_GCALL_READ |
R |
0x0 |
|
4 |
ABRT_GCALL_NOACK |
R |
0x0 |
|
3 |
ABRT_TXDATA_NOACK |
R |
0x0 |
|
2 |
ABRT_10ADDR2_NOACK |
R |
0x0 |
|
1 |
ABRT_10ADDR1_NOACK |
R |
0x0 |
|
0 |
ABRT_7B_ADDR_NOACK |
R |
0x0 |
|
REG_IC_SLV_DATA_NACK_ONLY
Name: Generate Slave Data NACK Register
Size: 32
Address offset: 084h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
NACK |
R/W |
0x0 |
Generate NACK. This NACK generation only occurs when I2C is a slave-receiver. If this register is set to a value of 1, it can only generate a NACK after a data byte is received; hence, the data transfer is aborted and the data received is not pushed to the receive buffer. When the register is set to a value of 0, it generates NACK/ACK, depending on normal criteria.
|
REG_IC_DMA_CR
Name: DMA Control Register
Size: 32
Address offset: 088h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:4 |
RSVD |
R |
- |
Reserved |
3 |
TDMA_OWNER |
R/W |
0x0 |
Tx DMA flow controller:
|
2 |
RDMA_OWNER |
R/W |
0x0 |
Rx DMA flow controller:
|
1 |
TDMAE |
R/W |
0x0 |
Transmit DMA Enable. This bit enables/disables the transmit FIFO DMA channel.
|
0 |
RDMAE |
R/W |
0x0 |
Receive DMA Enable. This bit enables/disables the receive FIFO DMA channel.
|
REG_IC_DMA_TDLR
Name: DMA Transmit Data Level Register
Size: 32
Address offset: 08Ch
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:4 |
RSVD |
R |
- |
Reserved |
3:0 |
DMATDL |
R/W |
0x0 |
Transmit Data Level. This bit field controls the level at which a DMA request is made by the transmit logic. It is equal to the watermark level; that is, the dma_tx_req signal is generated when the number of valid data entries in the transmit FIFO is equal to or below this field value, and TDMAE=1. |
REG_IC_DMA_RDLR
Name: I2C Reveive Data Level Register
Size: 32
Address offset: 090h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:4 |
RSVD |
R |
- |
Reserved |
3:0 |
DMARDL |
R/W |
0x0 |
Receive Data Level. This bit field controls the level at which a DMA request is made by the receive logic. The watermark level=DMARDL+1; that is, the dma_tx_req signal is generated when the number of valid data entries in the receive FIFO is equal to or more than this field value+1, and RDMAE=1. For instance, when DMARDL is 0, the dma_rx_req is asserted when 1 or more data entries are present in the receive FIFO. |
REG_IC_SDA_SETUP
Name: I2C SDA Setup Register
Size: 32
Address offset: 094h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
IC_SDA_SETUP |
R/W |
0x5 |
Set the required SDA setup time in units of ic_clk period. |
REG_IC_ACK_GENERAL_CALL
Name: I2C ACK General Call Register
Size: 32
Address offset: 098h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
ACK_GEN_CALL |
R/W |
0x1 |
|
REG_IC_ENABLE_STATUS
Name: I2C Enable Status Register
Size: 32
Address offset: 09Ch
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:5 |
RSVD |
R |
- |
Reserved |
4:3 |
BUSY_IN_MODE |
R |
0x0 |
|
2 |
SLV_DISABLE_WHILE_BUSY |
R |
0x0 |
Slave Disabled While Busy (Transmit, Receive). This bit indicates if a potential or active Slave operation has been aborted due to the setting of the IC_SLAVE_DISBALE register from 1 to 0. |
1 |
RSVD |
R |
- |
Reserved |
0 |
IC_EN |
R |
0x0 |
Ic_en Status. This bit always reflects the value driven on the output port ic_en.
|
REG_IC_DMA_CMD
Name: I2C DMA Command Register
Size: 32
Address offset: 0A0h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7 |
DMODE_RESTART |
R/W |
0x0 |
This bit controls whether a RESTART is issued after the byte is sent or received in DMA mode.
|
6 |
DMODE_STOP |
R/W |
0x0 |
This bit controls whether a STOP is issued after the byte is sent or received in DMA mode.
|
5 |
DMODE_CMD |
R/W |
0x0 |
This bit controls whether a read or write is performed in DMA mode. This bit does not control the direction when the I2C acts as a slave. It controls only the direction when it acts as a master.
|
4:1 |
RSVD |
R |
- |
Reserved |
0 |
DMODE_ENABLE |
R/W |
0x0 |
|
REG_IC_DMA_DATA_LEN
Name: I2C DMA Mode Transfer Data Length Register
Size: 32
Address offset: 0A4h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
DMA_DAT_LEN |
R/W |
0x0 |
Tx DMA transfer data length |
REG_IC_DMA_MODE
Name: I2C DMA Mode Register
Size: 32
Address offset: 0A8h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:2 |
RSVD |
R |
- |
Reserved |
1:0 |
DMA_MODE |
R/W |
0x0 |
|
REG_LL
Size: 32
Address offset: 0ACh
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
RSVD |
R |
- |
Reserved |
REG_IC_DEBUG_SEL
Name: I2C Debug SEL Register
Size: 32
Address offset: 0B0h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:4 |
RSVD |
R |
- |
Reserved |
3:0 |
IC_DEBUG_SEL |
R/W |
0x0 |
|
REG_IC_OUT_SMP_DLY
Size: 32
Address offset: 0B4h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:3 |
RSVD |
R |
- |
Reserved |
2:0 |
IC_OUT_SMP_DLY |
R/W |
0x2 |
Delay cycles for sample of master drived SCL value. The sample of master drived SCL is used for slave stretch. Slave stretch is valid when master drive SCL High, but slave drive SCL low. Valid value of IC_OUT_SMP_DLY is 0-7. Inicate a delay of 1-8 cycles. |
REG_IC_RDMA_DAT_LEN
Name: I2C RDMA Mode Transfer Data Length Register
Size: 32
Address offset: 0B8h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RDMA_REMAIN_LEN |
R |
0x0 |
Rx DMA transfer remain data counter |
15:0 |
RDMA_DAT_LEN |
R/W |
0x0 |
Rx DMA transfer data max length |
REG_IC_CLR_RXFIFO_TIMEOUT
Name: Clear RXFIFO TIMEOUT Interrupt Register
Size: 32
Address offset: 0BCh
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
CLR_RXFIFO_TIMEOUT |
R |
0x0 |
Read this register to clear the RXFIFO_TIMEOUT interrupt (bit 14) of IC_RAW_INTR_STAT register. |
REG_IC_RXFIFO_TIMEOUT_CTRL
Name: RXFIFO TIMEOUT control Register
Size: 32
Address offset: 0C0h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
RXFIFO_TIMEOUT_EN |
R/W |
0x0 |
Enable rxfifo timeout counter |
30 |
RSVD |
R |
- |
Reserved |
29:0 |
RXFIFO_TIMEOUT_TH |
R/W |
0x0 |
When rxfifo timeout counter is greater than RXFIFO_TIMEOUT_TH, rxfifo timeout intr occurs |
REG_IC_CLR_ADDR_MATCH
Name: Clear Slave Mode Address Match Interrupt Register
Size: 32
Address offset: 0E4h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
IC_CLR_ADDR_MATCH |
R |
0x0 |
Read this register to clear the slave mode address match interrupt (bit 12&13) of IC_RAW_INTR_STAT register. |
REG_IC_CLR_DMA_DONE
Name: Clear DMA DONE Interrupt Register
Size: 32
Address offset: 0E8h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:1 |
RSVD |
R |
- |
Reserved |
0 |
IC_CLR_RAW_INTR_STAT |
R |
0x0 |
Read this register to clear the DMA_DONE interrupt (bit 15) of IC_RAW_INTR_STAT register. |
REG_IC_FILTER
Name: I2C Filter Register
Size: 32
Address offset: 0ECh
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:9 |
RSVD |
R |
- |
Reserved |
8 |
IC_DIG_FLTR_SEL |
R/W |
0x0 |
|
7:6 |
RSVD |
R |
- |
Reserved |
5:0 |
IC_DIG_FLTR_DEG |
R/W |
0x0 |
DIG_FLTR_DEG is to define frequency range of filter. A greater value of DIG_FLTR_DEG results in a slower transfer speed and hardware would be able to filter a lower frequency. Valid value of IC_DIG_FLTR_DEG is 6’d0~6’d62. |
REG_IC_SAR2
Name: I2C Slave2 Address Register
Size: 32
Address offset: 0F4h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:7 |
RSVD |
R |
- |
Reserved |
6:0 |
IC_SAR2 |
R/W |
0x12 |
The IC_SAR2 holds the slave address when the I2C is operating as slave2. Slave2 only supports 7 bit address. The register can be written only when the I2C interface is disabled, which corresponds to the IC_ENABLE register being set to 0. Writes at other times have no effect. |
REG_IC_COMP_VERSION
Name: I2C Component Version Register
Size: 32
Address offset: 0FCh
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
IC_COMP_VERSION |
R |
0x20200702 |
I2C version number |
REG_IC_DUMMY
Name: IC Dummy Register
Size: 32
Address offset: 100h
Read/write access: R
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:16 |
RSVD |
R |
- |
Reserved |
15:0 |
DUMMY |
R |
0x0 |
Rsvd for hw |