请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:CC2530 主题中讨论的其他器件:TIMAC、
工具与软件:
我使用 TIMAC。
电源打开时、从设置为数字输出的引脚将输出2V 的电压并持续50ms。
因此、 每次接通电源时、连接到输出引脚的继电器都会打开。
它可以通过 向继电器板添加抖动消除电路来解决。
是否可以通过仅在 CC2530中设置而不添加抖动消除电路来消除它?
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.
感谢您的回答。 我的系统电压为3.3V。所有引脚都 具有相同的行为。
请参阅以下代码。 第3行、P1=0xff;该设置会产生电压输出。
该设置 旨在将 P1的所有引脚用作 DIO。
initUART(); //p0.2,p0.3 is uart ,other is ADC (p0.0,p0.1) //P1 AND P2 IS DIO P1=0xFF; //SEL : 0(base),1(special) , DIR : (0 :INPUT,1:OUTPUT) P1SEL = 0;//ALL DIO //--------p1 is all output setting---- //P1DIR = 0; //P1.0~7 D_INPUT P1DIR|=0xff;//P1.0is output . AUTOMATIC AT HAL_I2C.C