Quote Originally Posted by NavMicroSystems
fabritio, be patient . . .

What type of PIC are you using?

what do you mean by saying:


Is this "high signal" a HIGH level for a certain period of time, or is it a short pulse?
Do you want to trigger on the rising or falling edge?

If the program has nothing else to do than sit and wait for HIGH on RB5 you wouldn't even need an interrupt.
It's a 16f876.
this "high signal" is a short pulse, (in particular there are 4 bursts, but i need to wait for the first), and has a repetion every 164 microseconds. So i can be able to trigger it on the change of status (every transition).
I know, I've already written a program that works without interrupts, but the speed of the pulse doesn't let the loop start every time, it's randomic, so I am thinking about doing with the interrupts...
Thank you!