PDA

View Full Version : Instant Interrupts Sources.



BobEdge
- 11th May 2011, 14:18
Hi,

I am thinking about using Darrel's excelent instant interrupts for a project. My question is can I use 2 external interrupt sources? i.e. Pic18F4550 INT0, and INT1.

Regards
Bob...

Bruce
- 11th May 2011, 14:25
Yep. Those and a lot more....:D

BobEdge
- 11th May 2011, 14:50
Hi Bruce,

Thank you for the prompt reply.

In darrels example there is the line to enable the external interrupt.

INT_LIST macro ; IntSource, Label, Type, ResetFlag?
INT_Handler INT_INT, _ToggleLED1, PBP, yes

So would I just use INT0_INT, and another with INT1_INT?

Bob...

Bruce
- 11th May 2011, 15:15
So would I just use INT0_INT, and another with INT1_INT?
Yes. INT_INT and INT0_INT are the same thing, but I prefer to be a bit specific.

See this page for details: http://darreltaylor.com/DT_INTS-18/home.html

You will be quite happy with his routines once you learn to use them.

BobEdge
- 11th May 2011, 15:22
Ahh I had only found the site for INTS 14. This makes things clear :)
Thanks Bruce.

Regards
Bob...