reconfiguring adc registers. Stuck in an interrupt while loop.