问题1:低功耗中未用到的IO应该配置为什么状态?
问题2:我的板子刚上电后即进入standby模式、发现电流从几uA很快上升到40uA左右,然后就稳定在这个数值左右变化。每次从新上电都是如此。去掉所有外围器件基本保留最小系统时也是如此,请专家帮我分析下可能原因?
谢谢各位老师^-^
Viki Shi:
见手册原文:
11.6 Unused I/O Pins
By default, the I/O driver (output) and input buffer (input) are disabled (tri-state mode) at power on or reset, and thus the I/O pin can safely be left unconnected (floating).
If the I/O pin is placed in the tri-state condition and connected to a node with a different voltage potential; there might be a small leakage current going through the pin. The same applies to an I/O pin configured as input, where the pin is connected to a voltage source (for example VDD / 2). The input is then an undefined value of either 0 or 1.
user5925450:
回复 Viki Shi:
文档是复位状态下为三态且会产生漏电流,那请问未连接的引脚低功耗状态下我该配置为什么状态呢?
Viki Shi:
回复 user5925450:
If you have any unused pins in your design make sure to either not initialize them (leave them floating with input+output buffer disabled) or enable pull up/down to ensure a defined logical input level.
YiKai Chen:
回复 user5925450:
未连接的引脚只要在board file裡面設置為PIN_UNASSIGNED就好