I currently have a project which checks for changes on a trim pot as part of the main loop (the trim pot/ADC value then controls the brightness of a LED). It samples 16 readings and then sorts them and takes the average of the middle 8. This works well for getting a pretty stable ADC value but I'm wondering if I can move this to an interrupt-on-change interrupt routine to free up the main loop to do other stuff (that might include PAUSE). Does it make sense to use Darrel's DT_INTS-14.bas & IOC_INT with ADC or would it just be firing way too often?
Bookmarks