1) My question is regarding ADC . for reading a ADC value can we use ADC without interrupt . because in sample code they are using for reading the adc as an interrupt can we use adc without an interrupt .
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
1) My question is regarding ADC . for reading a ADC value can we use ADC without interrupt . because in sample code they are using for reading the adc as an interrupt can we use adc without an interrupt .
Hi Aryan,
You can use the ADC without having an interrupt. The interrupt helps the MCU know when an ADC channel has finished sampling and converting the value.
Generally, I recommend using an interrupt because you can put the CPU in sleep mode or do other tasks while waiting for the ADC sample. Otherwise you'll have to have a specific process flow surrounding the ADC routine to keep track of when to start the ADC and when it is done sampling and converting.
Regards,
Luke