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.

What is Reference Voltage for ADC in ZNP

Other Parts Discussed in Thread: CC2530

Hi,

I am using ZNP-ZAP approach for my application. I want use ADC with CC2530 using command SYS_ADC_READ. Using this command I can  select the particular channel and resolution of the ADC but what is reference voltage used here. How can I modify that voltage?

With Regards,

Harshal

  • Hi,

    This is only my guess, since you can read voltage level the refernce

    should be ADC internal reference voltage, which is 1.15 volt.

    I don't know how can you change this.

    Hope this helps you somehow

  • Hi Igor,

    I go theright answer in ZNP workspace. By default it is AVDD, you can select different values as defined in hal_adc.c Below one example

    adcRef = HAL_ADC_REF_VOLT; and HAL_ADC_REF_VOLT is defined as #define HAL_ADC_REF_VOLT    HAL_ADC_REF_AVDD

    With Regards,

    Harshal

    ADCCON3 = channel | resbits | adcRef;