Interesting....to have a PIC ADC act as a fast sw comparator, would require the PIC to do nothing else but continually check ADC samples (samples sourced from the special event trigger).....else trapping the condition would be time dependent on how often you checked in your main program.
I guess you could use a very basic PIC programmed to do this...and then raise an interrupt to the main pic via a logic level change/IOC pin (but then there's not much win then over using a std external hw comparator)
I actually wish they did multi processor low end PICs! (something like an SOIC16 package but with two PIC MCUs inside!), where simple background tasks could run on one PIC, with it interrupting the other partner PIC when something of interest happened!





Bookmarks