有用,但是不同的芯片还是有一些不一样,比如IO口外围电路设计,门道我觉得挺多的,必须看IO口内部电路是什么样子的,有些芯片有三态门。比如CC2530,但是官方资料却建议:1.上拉且设置为通用IO输入2.通用IO输出。
原文如下:
One way to do this is to leave the pin unconnected and configure the pin as a general purpose I/O input with pull-up resistor. Alternatively the pin can be configured as a general purpose I/O output. In both cases the pin should not be connected directly to VDD or GND
in order to avoid excessive power consumption.
这个应该也是很有借鉴的吧 |