Programming: ADC (Analog to Digital Converter) Creating the ISR Interrupt Service Routine
Share
To use the interrupt for the ADC, an ISR (Interrupt Service Routine) must be established. This is just a function that resides outside of the main function that will run whenever the ADC completes a conversion. Once completed and the function is started, make sure the have code in that function that starts a new conversion. The ISR requires a parameter of the ISR vector. The vector for the ADC is ADC_vect.