SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
Table 46-33 lists the memory-mapped registers for the CM_I2C_WRITE_REGS registers. All register offset addresses not listed in Table 46-33 should be considered as reserved locations and the register contents should not be modified.
| Offset | Acronym | Register Name | Write Protection | Section |
|---|---|---|---|---|
| 4h | I2CMCS_WRITE | I2C Master Control/Status | Go | |
| 804h | I2CSCSR_WRITE | I2C Slave Control/Status | Go | |
| F00h | I2CFIFODATATX | I2C FIFO Data TX | Go |
Complex bit access types are encoded to fit into small table cells. Table 46-34 shows the codes that are used for access types in this section.
| Access Type | Code | Description |
|---|---|---|
| Read Type | ||
| R | R | Read |
| R-0 | R -0 | Read Returns 0s |
| Write Type | ||
| W | W | Write |
| Reset or Default Value | ||
| -n | Value after reset or the default value | |
| Register Array Variables | ||
| i,j,k,l,m,n | When these variables are used in a register name, an offset, or an address, they refer to the value of a register array where the register is part of a group of repeating registers. The register groups form a hierarchical structure and the array is represented with a formula. | |
| y | When this variable is used in a register name, an offset, or an address it refers to the value of a register array. | |
I2CMCS_WRITE is shown in Figure 46-43 and described in Table 46-35.
Return to the Summary Table.
I2C Master Control/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 | BURST | QCMD | HS | ACK | STOP | START | RUN |
| R-0h | R-0/W-0h | R-0/W-0h | R-0/W-0h | R-0/W-0h | R-0/W-0h | R-0/W-0h | R-0/W-0h |
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-7 | RESERVED | R | 0h | Reserved |
| 6 | BURST | R-0/W | 0h | Burst Enable Value Description 0 Burst operation is disabled. 1 The master is enabled to burst using the receive and transmit FIFOs. See field decoding in . Note that the BURST and RUN bits are mutually exclusive. Reset type: PER.RESET |
| 5 | QCMD | R-0/W | 0h | Quick Command Value Description 0 Bus transaction is not a quick command. 1 The bus transaction is a quick command. To execute a quick command, the START, STOP and RUN bits also need to be set. After the quick command is issued, the master generates a STOP. Reset type: PER.RESET |
| 4 | HS | R-0/W | 0h | High-Speed Enable Value Description 0 The master operates in Standard, Fast mode, or Fast mode plus as selected by using a value in the I2CMTPR register that results in an SCL frequency of 100 kbps for Standard mode, 400 kbps for Fast mode, or 1 Mpbs for Fast mode plus. 1 The master operates in High-Speed mode with transmission speeds up to 3.33 Mbps. Reset type: PER.RESET |
| 3 | ACK | R-0/W | 0h | Data Acknowledge Enable Value Description 0 The received data byte is not acknowledged automatically by the master. 1 The received data byte is acknowledged automatically by the master. See field decoding in . Reset type: PER.RESET |
| 2 | STOP | R-0/W | 0h | Generate STOP Value Description 0 The controller does not generate the STOP condition. 1 The controller generates the STOP condition. See field decoding in . Reset type: PER.RESET |
| 1 | START | R-0/W | 0h | Generate START Value Description 0 The controller does not generate the START condition. 1 The controller generates the START or repeated START condition. See field decoding in . Reset type: PER.RESET |
| 0 | RUN | R-0/W | 0h | I2C Master Enable Value Description 0 In standard and high speed mode, this encoding means the master is unable to transmit or receive data. In Burst mode, this bit is not used and must be set to 0. 1 The master is able to transmit or receive data. Note that this bit cannot be set in Burst mode. See field decoding in . Note that the BURST and RUN bits are mutually exclusive. Reset type: PER.RESET |
I2CSCSR_WRITE is shown in Figure 46-44 and described in Table 46-36.
Return to the Summary Table.
I2C Slave Control/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 | RXFIFO | TXFIFO | DA | ||||
| R-0h | R-0/W-0h | R-0/W-0h | R-0/W-0h | ||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-3 | RESERVED | R | 0h | Reserved |
| 2 | RXFIFO | R-0/W | 0h | RX FIFO Enable Value Description 0 Disables RX FIFO 1 Enables RX FIFO Reset type: PER.RESET |
| 1 | TXFIFO | R-0/W | 0h | TX FIFO Enable Value Description 0 Disables TX FIFO 1 Enables TX FIFO Reset type: PER.RESET |
| 0 | DA | R-0/W | 0h | Device Active Value Description 0 Disables the I2C slave operation. 1 Enables the I2C slave operation. Once this bit has been set, it should not be set again unless it has been cleared by writing a 0 or by a reset, otherwise transfer failures may occur. Reset type: PER.RESET |
I2CFIFODATATX is shown in Figure 46-45 and described in Table 46-37.
Return to the Summary Table.
I2C FIFO Data TX
| 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-0/W-0h | ||||||||||||||||||||||||||||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved |
| 7-0 | DATA | R-0/W | 0h | I2C TX FIFO Write Data Byte This field contains the current byte written to the TX FIFO. For back to back transmit operations, the application should not switch between writing to the I2CSDR register and the I2CFIFODATA. Reset type: PER.RESET |