SWCU192 November 2021 CC1312R7 , CC1352P7 , CC2652P7 , CC2652R7
#I2C_I2C_MAP1_TABLE_1 lists the memory-mapped registers for the I2C registers. All register offset addresses not listed in #I2C_I2C_MAP1_TABLE_1 should be considered as reserved locations and the register contents should not be modified.
Offset | Acronym | Register Name | Section |
---|---|---|---|
0h | SOAR | Slave Own Address | #I2C_I2C_MAP1_I2C_ALL_SOAR |
4h | SSTAT | Slave Status | #I2C_I2C_MAP1_I2C_ALL_SSTAT |
4h | SCTL | Slave Control | #I2C_I2C_MAP1_I2C_ALL_SCTL |
8h | SDR | Slave Data | #I2C_I2C_MAP1_I2C_ALL_SDR |
Ch | SIMR | Slave Interrupt Mask | #I2C_I2C_MAP1_I2C_ALL_SIMR |
10h | SRIS | Slave Raw Interrupt Status | #I2C_I2C_MAP1_I2C_ALL_SRIS |
14h | SMIS | Slave Masked Interrupt Status | #I2C_I2C_MAP1_I2C_ALL_SMIS |
18h | SICR | Slave Interrupt Clear | #I2C_I2C_MAP1_I2C_ALL_SICR |
800h | MSA | Master Salve Address | #I2C_I2C_MAP1_I2C_ALL_MSA |
804h | MSTAT | Master Status | #I2C_I2C_MAP1_I2C_ALL_MSTAT |
804h | MCTRL | Master Control | #I2C_I2C_MAP1_I2C_ALL_MCTRL |
808h | MDR | Master Data | #I2C_I2C_MAP1_I2C_ALL_MDR |
80Ch | MTPR | I2C Master Timer Period | #I2C_I2C_MAP1_I2C_ALL_MTPR |
810h | MIMR | Master Interrupt Mask | #I2C_I2C_MAP1_I2C_ALL_MIMR |
814h | MRIS | Master Raw Interrupt Status | #I2C_I2C_MAP1_I2C_ALL_MRIS |
818h | MMIS | Master Masked Interrupt Status | #I2C_I2C_MAP1_I2C_ALL_MMIS |
81Ch | MICR | Master Interrupt Clear | #I2C_I2C_MAP1_I2C_ALL_MICR |
820h | MCR | Master Configuration | #I2C_I2C_MAP1_I2C_ALL_MCR |
Complex bit access types are encoded to fit into small table cells. #I2C_I2C_MAP1_LEGEND shows the codes that are used for access types in this section.
Access Type | Code | Description |
---|---|---|
Read Type | ||
R | R | Read |
Write Type | ||
W | W | Write |
Reset or Default Value | ||
-n | Value after reset or the default value |
SOAR is shown in #I2C_I2C_MAP1_I2C_ALL_SOAR_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_SOAR_TABLE.
Return to the Summary Table.
Slave Own Address
This register consists of seven address bits that
identify this I2C device on the I2C bus.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | OAR | ||||||||||||||||||||||||||||||
R-0h | R/W-0h | ||||||||||||||||||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-7 | RESERVED | R | 0h | Reserved |
6-0 | OAR | R/W | 0h | I2C slave own address This field specifies bits a6 through a0 of the slave address. |
SSTAT is shown in #I2C_I2C_MAP1_I2C_ALL_SSTAT_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_SSTAT_TABLE.
Return to the Summary Table.
Slave Status
Note: This register shares address with SCTL, meaning
that this register functions as a control register when written, and a status
register when read.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | FBR | TREQ | RREQ | ||||
R-0h | R-0h | R-0h | R-0h | ||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-3 | RESERVED | R | 0h | Reserved |
2 | FBR | R | 0h | First byte received 0: The first byte has not been received. 1: The first byte following the slave's own address has been received. This bit is only valid when the RREQ bit is set and is automatically cleared when data has been read from the SDR register. Note: This bit is not used for slave transmit operations. |
1 | TREQ | R | 0h | Transmit request 0: No outstanding transmit request. 1: The I2C controller has been addressed as a slave transmitter and is using clock stretching to delay the master until data has been written to the SDR register. |
0 | RREQ | R | 0h | Receive request 0: No outstanding receive data 1: The I2C controller has outstanding receive data from the I2C master and is using clock stretching to delay the master until data has been read from the SDR register. |
SCTL is shown in #I2C_I2C_MAP1_I2C_ALL_SCTL_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_SCTL_TABLE.
Return to the Summary Table.
Slave Control
Note: This register shares address with SSTAT, meaning
that this register functions as a control register when written, and a status
register when read.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||||||||||
W-0h | |||||||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | DA | ||||||||||||||
W-0h | W-0h | ||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-1 | RESERVED | W | 0h | Software should not rely on the value of a reserved field. Writing any other value may result in undefined behavior. |
0 | DA | W | 0h | Device active 0: Disables the I2C slave operation 1: Enables the I2C slave operation |
SDR is shown in #I2C_I2C_MAP1_I2C_ALL_SDR_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_SDR_TABLE.
Return to the Summary Table.
Slave Data
This register contains the data to be transmitted when in the Slave Transmit
state, and the data received when in the Slave Receive state.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | DATA | ||||||||||||||||||||||||||||||
R-0h | R/W-0h | ||||||||||||||||||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-8 | RESERVED | R | 0h | Reserved |
7-0 | DATA | R/W | 0h | Data for transfer This field contains the data for transfer during a slave receive or transmit operation. When written the register data is used as transmit data. When read, this register returns the last data received. Data is stored until next update, either by a system write for transmit or by an external master for receive. |
SIMR is shown in #I2C_I2C_MAP1_I2C_ALL_SIMR_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_SIMR_TABLE.
Return to the Summary Table.
Slave Interrupt Mask
This register controls whether a raw interrupt is
promoted to a controller interrupt.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | STOPIM | STARTIM | DATAIM | ||||
R-0h | R/W-0h | R/W-0h | R/W-0h | ||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-3 | RESERVED | R | 0h | Reserved |
2 | STOPIM | R/W | 0h | Stop condition interrupt mask 0: The SRIS.STOPRIS interrupt is suppressed and not sent to the interrupt controller. 1: The SRIS.STOPRIS interrupt is enabled and sent to the interrupt controller. 0h = Disable Interrupt 1h = Enable Interrupt |
1 | STARTIM | R/W | 0h | Start condition interrupt mask 0: The SRIS.STARTRIS interrupt is suppressed and not sent to the interrupt controller. 1: The SRIS.STARTRIS interrupt is enabled and sent to the interrupt controller. 0h = Disable Interrupt 1h = Enable Interrupt |
0 | DATAIM | R/W | 0h | Data interrupt mask 0: The SRIS.DATARIS interrupt is suppressed and not sent to the interrupt controller. 1: The SRIS.DATARIS interrupt is enabled and sent to the interrupt controller. |
SRIS is shown in #I2C_I2C_MAP1_I2C_ALL_SRIS_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_SRIS_TABLE.
Return to the Summary Table.
Slave Raw Interrupt Status
This register shows the unmasked interrupt status.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | STOPRIS | STARTRIS | DATARIS | ||||
R-0h | R-0h | R-0h | R-0h | ||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-3 | RESERVED | R | 0h | Reserved |
2 | STOPRIS | R | 0h | Stop condition raw interrupt status 0: No interrupt 1: A Stop condition interrupt is pending. This bit is cleared by writing a 1 to SICR.STOPIC. |
1 | STARTRIS | R | 0h | Start condition raw interrupt status 0: No interrupt 1: A Start condition interrupt is pending. This bit is cleared by writing a 1 to SICR.STARTIC. |
0 | DATARIS | R | 0h | Data raw interrupt status 0: No interrupt 1: A data received or data requested interrupt is pending. This bit is cleared by writing a 1 to the SICR.DATAIC. |
SMIS is shown in #I2C_I2C_MAP1_I2C_ALL_SMIS_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_SMIS_TABLE.
Return to the Summary Table.
Slave Masked Interrupt Status
This register show which interrupt is active (based on
result from SRIS and SIMR).
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | STOPMIS | STARTMIS | DATAMIS | ||||
R-0h | R-0h | R-0h | R-0h | ||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-3 | RESERVED | R | 0h | Reserved |
2 | STOPMIS | R | 0h | Stop condition masked interrupt status 0: An interrupt has not occurred or is masked/disabled. 1: An unmasked Stop condition interrupt is pending. This bit is cleared by writing a 1 to the SICR.STOPIC. |
1 | STARTMIS | R | 0h | Start condition masked interrupt status 0: An interrupt has not occurred or is masked/disabled. 1: An unmasked Start condition interrupt is pending. This bit is cleared by writing a 1 to the SICR.STARTIC. |
0 | DATAMIS | R | 0h | Data masked interrupt status 0: An interrupt has not occurred or is masked/disabled. 1: An unmasked data received or data requested interrupt is pending. This bit is cleared by writing a 1 to the SICR.DATAIC. |
SICR is shown in #I2C_I2C_MAP1_I2C_ALL_SICR_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_SICR_TABLE.
Return to the Summary Table.
Slave Interrupt Clear
This register clears the raw interrupt SRIS.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | STOPIC | STARTIC | DATAIC | ||||
R-0h | W-0h | W-0h | W-0h | ||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-3 | RESERVED | R | 0h | Reserved |
2 | STOPIC | W | 0h | Stop condition interrupt clear Writing 1 to this bit clears SRIS.STOPRIS and SMIS.STOPMIS. |
1 | STARTIC | W | 0h | Start condition interrupt clear Writing 1 to this bit clears SRIS.STARTRIS SMIS.STARTMIS. |
0 | DATAIC | W | 0h | Data interrupt clear Writing 1 to this bit clears SRIS.DATARIS SMIS.DATAMIS. |
MSA is shown in #I2C_I2C_MAP1_I2C_ALL_MSA_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_MSA_TABLE.
Return to the Summary Table.
Master Salve Address
This register contains seven address bits of the slave
to be accessed by the master (a6-a0), and an RS bit determining if the next
operation is a receive or transmit.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||||||||||
R-0h | |||||||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SA | RS | |||||||||||||
R-0h | R/W-0h | R/W-0h | |||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-8 | RESERVED | R | 0h | Reserved |
7-1 | SA | R/W | 0h | I2C master slave address Defines which slave is addressed for the transaction in master mode |
0 | RS | R/W | 0h | Receive or Send This bit-field specifies if the next operation is a receive (high) or a transmit/send (low) from the addressed slave SA. 0h = Transmit/send data to slave 1h = Receive data from slave |
MSTAT is shown in #I2C_I2C_MAP1_I2C_ALL_MSTAT_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_MSTAT_TABLE.
Return to the Summary Table.
Master Status
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | BUSBSY | IDLE | ARBLST | DATACK_N | ADRACK_N | ERR | BUSY |
R-0h | R-0h | R-1h | R-0h | R-0h | R-0h | R-0h | R-0h |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-7 | RESERVED | R | 0h | Reserved |
6 | BUSBSY | R | 0h | Bus busy 0: The I2C bus is idle. 1: The I2C bus is busy. The bit changes based on the MCTRL.START and MCTRL.STOP conditions. |
5 | IDLE | R | 1h | I2C idle 0: The I2C controller is not idle. 1: The I2C controller is idle. |
4 | ARBLST | R | 0h | Arbitration lost 0: The I2C controller won arbitration. 1: The I2C controller lost arbitration. |
3 | DATACK_N | R | 0h | Data Was Not Acknowledge 0: The transmitted data was acknowledged. 1: The transmitted data was not acknowledged. |
2 | ADRACK_N | R | 0h | Address Was Not Acknowledge 0: The transmitted address was acknowledged. 1: The transmitted address was not acknowledged. |
1 | ERR | R | 0h | Error 0: No error was detected on the last operation. 1: An error occurred on the last operation. |
0 | BUSY | R | 0h | I2C busy 0: The controller is idle. 1: The controller is busy. When this bit-field is set, the other status bits are not valid. Note: The I2C controller requires four SYSBUS clock cycles to assert the BUSY status after I2C master operation has been initiated through MCTRL register. Hence after programming MCTRL register, application is requested to wait for four SYSBUS clock cycles before issuing a controller status inquiry through MSTAT register. Any prior inquiry would result in wrong status being reported. |
MCTRL is shown in #I2C_I2C_MAP1_I2C_ALL_MCTRL_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_MCTRL_TABLE.
Return to the Summary Table.
Master Control
This register accesses status bits when read and
control bits when written. When read, the status register indicates the state of the
I2C bus controller as stated in MSTAT. When written, the control
register configures the I2C controller operation.
To generate a single transmit cycle, the
I2C Master Slave Address (MSA) register is written with the desired
address, the MSA.RS bit is cleared, and this register is written with
* ACK=X (0 or 1),
*
STOP=1,
* START=1,
*
RUN=1
to perform the operation and stop.
When the operation is completed (or aborted due an
error), an interrupt becomes active and the data may be read from the MDR register.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | ACK | STOP | START | RUN | |||
R-0h | W-0h | W-0h | W-0h | W-0h | |||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-4 | RESERVED | R | 0h | Reserved |
3 | ACK | W | 0h | Data acknowledge enable 0: The received data byte is not acknowledged automatically by the master. 1: The received data byte is acknowledged automatically by the master. This bit-field must be cleared when the I2C bus controller requires no further data to be transmitted from the slave transmitter. 0h = Disable acknowledge 1h = Enable acknowledge |
2 | STOP | W | 0h | This bit-field determines if the cycle stops at the
end of the data cycle or continues on to a repeated START
condition. 0: The controller does not generate the Stop condition. 1: The controller generates the Stop condition. 0h = Disable STOP 1h = Enable STOP |
1 | START | W | 0h | This bit-field generates the Start or Repeated Start
condition. 0: The controller does not generate the Start condition. 1: The controller generates the Start condition. 0h = Disable START 1h = Enable START |
0 | RUN | W | 0h | I2C master enable 0: The master is disabled. 1: The master is enabled to transmit or receive data. 0h = Disable Master 1h = Enable Master |
MDR is shown in #I2C_I2C_MAP1_I2C_ALL_MDR_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_MDR_TABLE.
Return to the Summary Table.
Master Data
This register contains the data to be transmitted when
in the Master Transmit state and the data received when in the Master Receive
state.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | DATA | ||||||||||||||||||||||||||||||
R-0h | R/W-0h | ||||||||||||||||||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-8 | RESERVED | R | 0h | Reserved |
7-0 | DATA | R/W | 0h | When Read: Last RX Data is returned When Written: Data is transferred during TX transaction |
MTPR is shown in #I2C_I2C_MAP1_I2C_ALL_MTPR_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_MTPR_TABLE.
Return to the Summary Table.
I2C Master Timer Period
This register specifies the period of the SCL
clock.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
TPR_7 | TPR | ||||||
R/W-0h | R/W-1h | ||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-8 | RESERVED | R | 0h | Reserved |
7 | TPR_7 | R/W | 0h | Must be set to 0 to set TPR. If set to 1, a write to TPR will be ignored. |
6-0 | TPR | R/W | 1h | SCL clock period This field specifies the period of the SCL clock. SCL_PRD = 2*(1+TPR)*(SCL_LP + SCL_HP)*CLK_PRD where: SCL_PRD is the SCL line period (I2C clock). TPR is the timer period register value (range of 1 to 127) SCL_LP is the SCL low period (fixed at 6). SCL_HP is the SCL high period (fixed at 4). CLK_PRD is the system clock period in ns. |
MIMR is shown in #I2C_I2C_MAP1_I2C_ALL_MIMR_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_MIMR_TABLE.
Return to the Summary Table.
Master Interrupt Mask
This register controls whether a raw interrupt is
promoted to a controller interrupt.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||||||||||
R-0h | |||||||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | IM | ||||||||||||||
R-0h | R/W-0h | ||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-1 | RESERVED | R | 0h | Reserved |
0 | IM | R/W | 0h | Interrupt mask 0: The MRIS.RIS interrupt is suppressed and not sent to the interrupt controller. 1: The master interrupt is sent to the interrupt controller when the MRIS.RIS is set. 0h = Disable Interrupt 1h = Enable Interrupt |
MRIS is shown in #I2C_I2C_MAP1_I2C_ALL_MRIS_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_MRIS_TABLE.
Return to the Summary Table.
Master Raw Interrupt Status
This register show the unmasked interrupt status.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||||||||||
R-0h | |||||||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | RIS | ||||||||||||||
R-0h | R-0h | ||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-1 | RESERVED | R | 0h | Reserved |
0 | RIS | R | 0h | Raw interrupt status 0: No interrupt 1: A master interrupt is pending. This bit is cleared by writing 1 to the MICR.IC bit . |
MMIS is shown in #I2C_I2C_MAP1_I2C_ALL_MMIS_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_MMIS_TABLE.
Return to the Summary Table.
Master Masked Interrupt Status
This register show which interrupt is active (based on
result from MRIS and MIMR).
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||||||||||
R-0h | |||||||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | MIS | ||||||||||||||
R-0h | R-0h | ||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-1 | RESERVED | R | 0h | Reserved |
0 | MIS | R | 0h | Masked interrupt status 0: An interrupt has not occurred or is masked. 1: A master interrupt is pending. This bit is cleared by writing 1 to the MICR.IC bit . |
MICR is shown in #I2C_I2C_MAP1_I2C_ALL_MICR_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_MICR_TABLE.
Return to the Summary Table.
Master Interrupt Clear
This register clears the raw and masked interrupt.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||||||||||
R-0h | |||||||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | IC | ||||||||||||||
R-0h | W-0h | ||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-1 | RESERVED | R | 0h | Reserved |
0 | IC | W | 0h | Interrupt clear Writing 1 to this bit clears MRIS.RIS and MMIS.MIS . Reading this register returns no meaningful data. |
MCR is shown in #I2C_I2C_MAP1_I2C_ALL_MCR_FIGURE and described in #I2C_I2C_MAP1_I2C_ALL_MCR_TABLE.
Return to the Summary Table.
Master Configuration
This register configures the mode (Master or Slave)
and sets the interface for test mode loopback.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SFE | MFE | RESERVED | LPBK | |||
R-0h | R/W-0h | R/W-0h | R-0h | R/W-0h | |||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-6 | RESERVED | R | 0h | Reserved |
5 | SFE | R/W | 0h | I2C slave function enable 0h = Slave mode is disabled. 1h = Slave mode is enabled. |
4 | MFE | R/W | 0h | I2C master function enable 0h = Master mode is disabled. 1h = Master mode is enabled. |
3-1 | RESERVED | R | 0h | Reserved |
0 | LPBK | R/W | 0h | I2C loopback 0: Normal operation 1: Loopback operation (test mode) 0h = Disable Test Mode 1h = Enable Test Mode |