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

nRF51822 ADC battery level detection example question

Based on nRF51822\Board\pca10001\ble\ble_app_hrs example, How nRF51822 detect ADC input? Which ADC pin?

Configuration code: NRF_ADC->CONFIG = (ADC_CONFIG_RES_8bit << ADC_CONFIG_RES_Pos) | (ADC_CONFIG_INPSEL_SupplyOneThirdPrescaling << ADC_CONFIG_INPSEL_Pos) | (ADC_CONFIG_REFSEL_VBG << ADC_CONFIG_REFSEL_Pos) | (ADC_CONFIG_PSEL_Disabled << ADC_CONFIG_PSEL_Pos) | (ADC_CONFIG_EXTREFSEL_None << ADC_CONFIG_EXTREFSEL_Pos);

From the configuration above, ADC_PSEL register is selected as DISABLE,0 and analog input pin disabled. Does it means nRF51822 take input voltage (Vcc) as ADC analog input pin?If not, how does it works?

Parents Reply Children
No Data
Related