sougata,
I'm glad it's working out for you. And yes, it is more managable. Kinda the whole idea behind it.
Squibcakes,
No, it doesn't work that way.
The AD_INT is fired on the completion of an A/D conversion. Not when the value changes.
So, in your AD_INT handler, you could test to see if the recent A/D reading differs from the previous A/D value. If it does, call a subroutine.
Then start another conversion before exiting the handler.
Added: Or like sougata said, have a timer periodicaly start a conversion, then do the same.
HTH,
Bookmarks