HI,ALL
with ' nRF51_Series_Reference_manual v3.0.pdf ' , i want to know which pins can i used for adc purpose.
in the sample code.
void adc_config(void)
{
const nrf_adc_config_t nrf_adc_config = NRF_ADC_CONFIG_DEFAULT;
// Initialize and configure ADC
nrf_adc_configure( (nrf_adc_config_t *)&nrf_adc_config);
nrf_adc_input_select(NRF_ADC_CONFIG_INPUT_2); NRF_ADC_CONFIG_INPUT_2 = 4UL
nrf_adc_int_enable(ADC_INTENSET_END_Enabled << ADC_INTENSET_END_Pos);
NVIC_SetPriority(ADC_IRQn, NRF_APP_PRIORITY_HIGH);
NVIC_EnableIRQ(ADC_IRQn);
}
the reference vol is 1.2v , and the value print in uart is '171' , what is the meaning of the 171,and which pin is NRF_ADC_CONFIG_INPUT_2.
thank you very much!!!!