Hi,
Lets see if someone can help me with this.
I Can't get the I2c Loopback working..
I intialize the I2C with the following configuration:
/** - set i2c mode */
i2cREG1->MDR = (uint32)((uint32)0U << 15U) /* nack mode */
| (uint32)((uint32)1U << 14U) /* free running */
| (uint32)(0U) /* start condition - master only */
| (uint32)((uint32)0U <<11U) /* stop condition */
| (uint32)((uint32)0U <<10U) /* Master/Slave mode */
| (uint32)((uint32)I2C_TRANSMITTER) /* Transmitter/receiver */
| (uint32)((uint32)I2C_10BIT_AMODE) /* xpanded address */
| (uint32)((uint32)0U << 7U) /* repeat mode */
| (uint32)((uint32)1U << 6U) /* digital loop back */
| (uint32)((uint32)0U << 4U) /* start byte - master only */
| (uint32)(1U << 3U) /* free data format */
| (uint32)(I2C_8_BIT); /* bit count */
But when I look in the registers I can see the "H" in the send buffer (DXR) but the receive (DRR) is empty!
I've tried to force it using
i2cREG1->DRR = i2cREG1->DXR;
But the DRR keeps being empty...
Im using a RM48L952HDK.
Any idea about why this can be happening?