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.

CC2530芯片字定义某一I/O引脚做为输出引脚无效,不知道为什么??

跑的ZigBee 2007的协议栈,在SampleApp_Init()初始化函数里,执行如下代码

P1SEL &=~0x04; 
P1DIR |= 0x04;
P1INP &=~ 0x04;
IOENABLE = 0;

(注:#define   IOENABLE  P1_2在前面已经定义好  ),想实现的目的是让P1.2引脚,作为通用IO口,输出模式,上拉/下拉,输出为0 ,低电平,可是不知道为什么????P1.2引脚一直输出3.3V高电平,用万用表测了一下,发现其他其他好多未用到的IO口也都输出3.3v高电平。不知道是不是在协议栈的某个地方,已经初始化为高电平的原因,请各位前辈多多指教,谢谢。