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.

Using CC2541 I2C SCL (pin2) and SDA (pin3) as GPIO

Other Parts Discussed in Thread: CC2541

Hello,

 

I am  trying to use the CC2541 I2C clock and data lines as GPIO output.  It is not working and don't know where the problem is.  Configuration looks straight forward.  Could someone confirm this is correct and this is all that is needed to configure?

12CCFG = 0;   // disable I2C module

I2CWC = 0X80;   // configure as GPIO.  SDA, SCL output enable, no pull-ups

I2CIO bit 0 set or clear for SDA output high/low

I2CIO bit 1 set or clear fpr SCL output high/low