example code of analog to digital conversion interrupts