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.

CC2541 IIC引脚作普通IO,

Other Parts Discussed in Thread: CC2541

大家好

   CC2541 IIC引脚作普通IO口输出是没有问题,我目前就是想让SDC与SCK两个引脚都做为按键输入,我的程序如下:

  I2CCFG= 0;//disable i2c
  I2CWC = 0X80; //input
 // I2CIO|=0x03;//set 11

if((I2CIO&0x03)!=0x03)

{

P1_0=1;

}

else P1_0=0;

当此程序运行时, 没有任何反应, 是什么原因,