what is minimum clock at which adc can operate in nrf51??. can anyone tell me?? how to change adc clock in nrf51??. i am using sdk11
what is minimum clock at which adc can operate in nrf51??. can anyone tell me?? how to change adc clock in nrf51??. i am using sdk11
All peripherals use the 16 MHz clock for their operation, including the ADC. The ADC accuracy improves when you use the 16 MHz crystal instead of the RC oscillator.
So there is no clock configuration required for the ADC in nRF51.
I commented out the printfs at the start, and commented out the nrf_delay_ms, and I measured 1.48mA on a nRF51-DK. Note that you are continuously sampling the ADC. If you don't need continuous sampling of the ADC, I recommend setting up a app-timer that starts the ADC sample e.g. every 100ms. This will decrease the power consumption further.
I commented out the printfs at the start, and commented out the nrf_delay_ms, and I measured 1.48mA on a nRF51-DK. Note that you are continuously sampling the ADC. If you don't need continuous sampling of the ADC, I recommend setting up a app-timer that starts the ADC sample e.g. every 100ms. This will decrease the power consumption further.