You have to introduce timer (interrupt) which starts ADC sequence each 5 minutes. Also you shall understand that after setting ADC12SC bit, result of sampling both ADC channels is not immediately available. You shall introduce some waiting for ADC conversion completion. Studying source code examples usually helps.
↧