How to measure Lithium battery voltage with the nRF51 ADC
The ADC samples the voltage on the ADC input pin and outputs the result in the ADC->RESULT register. The example outputs the result to pins 8-15 as an 8-bit binary number. If you have the nRF51822/nRF51422 development kit and the nRFgo motherboard, and you have the default setup of the motherboard where PORT1 pins are connected to LEDS pins, then you should see the 8 bit number on the 8 leds on the motherboard. You can also put a breakpoint in the ADC interrupt handler in the example to see the number in the ADC->RESULT register.
The ADC samples the voltage on the ADC input pin and outputs the result in the ADC->RESULT register. The example outputs the result to pins 8-15 as an 8-bit binary number. If you have the nRF51822/nRF51422 development kit and the nRFgo motherboard, and you have the default setup of the motherboard where PORT1 pins are connected to LEDS pins, then you should see the 8 bit number on the 8 leds on the motherboard. You can also put a breakpoint in the ADC interrupt handler in the example to see the number in the ADC->RESULT register.