没有用到的端口怎样处理才省电

[复制链接]
1715|20
 楼主| zhanghqi 发表于 2015-8-22 16:56 | 显示全部楼层 |阅读模式
430的MCU 没有用到的端口怎样处理才省电啦。设置成什么状态才省电啦?
zhenykun 发表于 2015-8-22 16:57 | 显示全部楼层
你给它接电或接地,相应的拉高或拉低,主要耗电还是在功能模块开启的时候。。。
wyjie 发表于 2015-8-22 16:57 | 显示全部楼层
嗯 二楼说的很对
jlyuan 发表于 2015-8-22 16:57 | 显示全部楼层
端口设置成输入状态
yszong 发表于 2015-8-22 16:58 | 显示全部楼层
设置为输入状态   同时内部电阻设置为高阻态   这样比较省电   呵呵   
 楼主| zhanghqi 发表于 2015-8-22 16:58 | 显示全部楼层

1.接地或接电源,相应的把它置低和置高.
2.把它设置成输入.
其中第二种方法,I/O是接地还是接电源?
这两种方法那一种省电?
yszong 发表于 2015-8-22 16:58 | 显示全部楼层
IO口设置成输入状态后,再将IO口设置成高阻态,就无所谓接GND还是电源了都可以实现省电的
dengdc 发表于 2015-8-22 16:59 | 显示全部楼层
Unused I/O pins should be configured as I/O function, output direction, and left unconnected on the PC
board, to prevent a floating input and reduce power consumption. The value of the PxOUT bit is irrelevant,
since the pin is unconnected. Alternatively, the integrated pullup/pulldown resistor can be enabled by
setting the PxREN bit of the unused pin to prevent the floating input. See the System Resets, Interrupts,
and Operating Modes chapter for termination of unused pins.
heweibig 发表于 2015-8-22 16:59 | 显示全部楼层
最省电的还是置为三态的高阻态
wuhany 发表于 2015-8-22 16:59 | 显示全部楼层
接地也是会产生电流的,消耗资源的
 楼主| zhanghqi 发表于 2015-8-22 17:00 | 显示全部楼层
嗯,晓得了,多谢大家
vivilzb1985 发表于 2015-8-23 09:52 | 显示全部楼层
模拟输入的状态的,这样IO的电流就降到最低了。
shenmu2012 发表于 2015-8-26 15:16 | 显示全部楼层
都设置成模拟输入状态的吧。
zhangbo1985 发表于 2015-8-27 11:29 | 显示全部楼层
zhanghqi 发表于 2015-8-22 16:58
1.接地或接电源,相应的把它置低和置高.
2.把它设置成输入.
其中第二种方法,I/O是接地还是接电源?

直接设置成输入状态的吧
yirongfu 发表于 2015-8-27 12:32 | 显示全部楼层

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
可可球 发表于 2015-9-8 22:03 | 显示全部楼层
设置为高阻态比较好
冰河w 发表于 2015-9-9 20:51 | 显示全部楼层
一般都是接地的,置高阻更好
309030 发表于 2015-9-9 21:36 | 显示全部楼层
Unused I/O pins should be configured as I/O function, output direction, and left unconnected on the PC
board

配置成IO,输出,什么都不连
迪卡 发表于 2015-9-9 21:42 | 显示全部楼层
to prevent a floating input and reduce power consumption

主要目的是阻止不稳定的输入,实现这个就好
Snow7 发表于 2015-9-9 21:53 | 显示全部楼层
我都是悬空的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

852

主题

11757

帖子

5

粉丝
快速回复 在线客服 返回列表 返回顶部
0