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.

ZigBee协议栈AD配置

我想使ZigBee协议栈中AD转换的函数,但不知道怎么配置成自己需要的,例如参考电压,有效数字!尤其是,我看到HalAdcRead函数中,好像是几个通道的使用!我只要选择一个通道,具体该怎么用?????

  • 你要看数据手册,里面讲得很清楚。

    12.2.6 ADC Reference Voltage

    The positive reference voltage for analog-to-digital conversions is selectable as either an internally
    generated voltage, the AVDD5 pin, an external voltage applied to the AIN7 input pin, or a differential
    voltage applied to the AIN6–AIN7 inputs.
    The accuracy of the conversion results depend on the stability and noise properties of the reference
    voltage. Offset from the wanted voltage introduces a gain error in the ADC proportional to the ratio of the
    wanted voltage and the actual voltage. Noise on the reference must be lower than quantization noise of
    the ADC to ensure the specified SNR is achieved.