Programming: ADC (Analog to Digital Converter) Creating the ISR Interrupt Service Routine
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.
Comments and Additional Information
Have some code to share? Or additional information? Respond here:
You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.