Part Number: CC2538
Could someone point me to the necessary portions of the loop back test you would use for I2C slave? Is there some example available for the same to use the CC2538 I2C as slave.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: CC2538
Could someone point me to the necessary portions of the loop back test you would use for I2C slave? Is there some example available for the same to use the CC2538 I2C as slave.
I have already tried that, but I dont see any slave only examples. I only see the master slave loopback. I am thinking of which Hardware registers to set.
Now, I am setting these:
SYS_CTRL_RCGCI2C - run mode
SYS_CTRL_SRI2C - reset position and then normal
Setting the SCL, SDA pins/ ports in the peripheral mode
Setting the I2CM_CR, I2CS_CTRL to I2CS_CTRL_DA (ie the enable slave function)
Am I doing this right? Or are there other registers I need to set?
When I tried with these, the example didnt work.