3路输入,并把采样的值存下
输入3.3V和5.5V得到一个值,输入电压有要求?
|
3个引脚输入 |
得到数组 |
|
0V 0V 0V |
00 00 00 |
|
3.3V 0V 0V |
FF 00 00 |
|
0.0V 3.3V 3.3V |
00 FF FF |
|
0.0V 5V 3.3V |
00 FF FF |
一个异常情况:当最低通道超过某值,会导致3个引脚输入都不准
5.5V 0V 0V 3B 45 13
为什么会导致这样,请问是我操作哪里没注意到吗?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
3路输入,并把采样的值存下
输入3.3V和5.5V得到一个值,输入电压有要求?
|
3个引脚输入 |
得到数组 |
|
0V 0V 0V |
00 00 00 |
|
3.3V 0V 0V |
FF 00 00 |
|
0.0V 3.3V 3.3V |
00 FF FF |
|
0.0V 5V 3.3V |
00 FF FF |
一个异常情况:当最低通道超过某值,会导致3个引脚输入都不准
5.5V 0V 0V 3B 45 13
为什么会导致这样,请问是我操作哪里没注意到吗?
参考数据手册 https://www.ti.com/lit/ds/symlink/msp430g2553.pdf?&ts=1589330359251
10-Bit ADC, Power Supply and Input Range Conditions (MSP430G2x53 Only)
另外请注意
The analog input voltage range must be within the selected reference voltage range VR+ to VR– for valid conversion results.