I'm checking out the demo_apps_adc16_low_power sample application and I found something odd. The application is reading the internal temp sensor via the ADC0 which has the hardware trigger enabled and set to be the LPTMR overflow. If I understand correctly, this means that the conversion for the internal chip temp sensor will not be triggered until LPTMR overflows.
The example application has a main loop where the internal temp sensor is checked based on the conversionCompleted variable which is set to true on the DEMO_ADC16_IRQ_HANDLER_FUNC periodically.
My question is, how come this is working if the LPTMR is not set to free-running? Doesn't this mean that there would be just one conversion?
I understand that if a timer is NOT free-running then it will just overflow once and if another cycle is needed it should be started explicitly by software. So, how is this example working?