I read up a bit on DT's wonderful instant interrupts. How cool is that!? I had heard of it here often but now I see just how powerful that thing is!

I understand that an interrupt can be generated from the comparator using "CMP_INT -- Comparator Interrupt" from his include.

So, conceptually, it is simply comparing to zero volts. Whenever that changes (not zero anymore,) then interrupt. Am I on the right path here?

OR maybe simply using the port change interrupt will work? Hmm, it needs to see a certain voltage before it is considered "on" though, huh?

Here is what I need it to do:
As V rises above zero, generate an interrupt. Then I'll tell the PIC to turn on a pin.
As V falls to zero, generate an (different?) interrupt. Then I'll tell the PIC to turn the above pin off and turn on a different one.

I'm just confused about the rising/falling or comparing part of it.

Anyone have a snippet related? (Is that kind of shameless asking allowed?)

Thanks everyone.

Chris