Hi everyone,
It's possible to use a PIC ADC like a fast comparator?
For example, on AN0, I got 4 volts, which corresponds approximately to 819. My trigger value is set to 800. 819>800, so the output equals 1, and this executes an "emergency" ISR. But this has to be as fast as an interrupt (few µs).
How I can do that, for example with DT Interrupts system?
Actually I use an "IF AN0>800 THEN goto Emergency_ISR:" in a very loaded loop.
I'm using a PIC18F4431 running at 40MHz.
Bookmarks