新手上路
- 积分
- 44
- 金钱
- 44
- 注册时间
- 2014-12-29
- 在线时间
- 0 小时
|
楼主 |
发表于 2014-12-30 09:40:08
|
显示全部楼层
晕,关于上面GPIO DETECT的说明贴错了,更正如下:<br />
Pins can be individually configured, through the pin sense mechanism, to detect either a high level or a low<br />
level on their input. When the correct level is detected, the sense mechanism raises the DETECT signal line,<br />
which can then be read by other peripherals in the system, see Figure 15. This mechanism is functional in<br />
both ON and OFF mode.<br />
The input buffer of a GPIO pin can be disconnected from the pin to enable power savings when the pin is<br />
not used as an input, see Figure 15. Inputs must be connected in order to get a valid input value in the IN<br />
register and for the sense mechanism to get access to the pin.<br />
Other peripherals in the system can attach themselves to GPIO pins and override their output value and<br />
configuration, or read their analog or digital input value, see Figure 15.<br />
Selected PINs also support analog input signals, see ANAIN in Figure 15 on page 55. Pins that support analog<br />
input signals vary between devices, see the product specification for your device for more details.<br />
Pin direction can be configured both in the DIR register as well as through the individual PIN_CNF[n]<br />
registers. A change in one register will automatically be reflected in the other register.<br /> |
|