Can Analogue value be used to trigger an interrupt?
Posted: Wed Aug 10, 2011 2:36 pm
Hi,
Just curiosity as I am trying to learn how to use iterrupts for a small project. (Using 16F876 on internal oscillator at 4Mhz)
I need to know if an analogue value into ADC can be used to trigger an interrupt. For example, a mid rail voltage that falls below or above a threshold whilst executing other parts of a program, calls an iterrupt to perform a variable update or something like this.
Is there a way of doing this.
Thanks
Dave
Just curiosity as I am trying to learn how to use iterrupts for a small project. (Using 16F876 on internal oscillator at 4Mhz)
I need to know if an analogue value into ADC can be used to trigger an interrupt. For example, a mid rail voltage that falls below or above a threshold whilst executing other parts of a program, calls an iterrupt to perform a variable update or something like this.
Is there a way of doing this.
Thanks
Dave