This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is there ADC config register in nrf52?

Hi all

i'm new in both this site and nrf52

i have a question 

Is there ADC CONFIG register in nrf52?  i can't find ADC_CONFIG in nrf52

NRF_ADC->CONFIG = (ADC_CONFIG_EXTREFSEL_None << ADC_CONFIG_EXTREFSEL_Pos) // Bits 17..16 : ADC external reference pin selection.
        | (BATT_ADC << ADC_CONFIG_PSEL_Pos)                //    !< Use analog input 3 as analog input.
        | (ADC_CONFIG_REFSEL_VBG << ADC_CONFIG_REFSEL_Pos)                        //    !< Use internal 1.2V bandgap voltage as reference for conversion.
        | (ADC_CONFIG_INPSEL_AnalogInputOneThirdPrescaling << ADC_CONFIG_INPSEL_Pos) ///*!< Analog input specified by PSEL with 1/3 prescaling used as input for the conversion.
        | (ADC_CONFIG_RES_8bit << ADC_CONFIG_RES_Pos);                    //                !< 8bit ADC resolution.

and this is part of code i want to change for nrf52......

thank you for reading my question~~

belated happy new year~~ 

Related