CC2541 IO上电状态
时间:10-02
整理:3721RD
点击:
各位大侠:
请问CC2541 的IO上电的什么状态。
我用P0_6作为输出,发现每次上电都会输出短暂的高脉冲。
仿真时,程序还没跑就输出高电平;设置断点看,发现一直初始化IO才不会输出高电平
看数据手册,复位时,是输入并有内部上拉
When the device is in reset all pins are configured as inputs with internal pull-ups. As soon as the device leaves reset the pins will be configured to whatever register settings you have defined in your SW.
除了P1.0 and P1.1, that do not have internal pull-up/pull down
说的对,上电后该引脚为输入上拉。