Quote Originally Posted by starwick View Post
Hi,
the AN0 input is 0 unless a key is pressed
If that's the case then why not generate an interrupt when the key (switch?) is pressed & then do an ADC in your interrupt routine.