GreyGnome / PinChangeInt

Pin Change Interrupt library for the Arduino
Apache License 2.0
173 stars 70 forks source link

Maximum simultaneous Interrupts attachments? #3

Open abhaysjuneja opened 8 years ago

abhaysjuneja commented 8 years ago

I am currently working on a project which requires 8 Interrupt Attachments and obviously each with an exclusive ISR (Interrupt Service Routine). I was wondering if it is possible using this library? I read somewhere that pins are defined, to be used as interrupt pins, in groups. And each group can function on a single ISR only.

GreyGnome commented 8 years ago

Sorry this has taken me so long to reply, I missed it.

Yes it is possible. It is true that the pin change interrupts are defined in groups, but the library uses software to determine which ISR to call. Use it to add a separate ISR to each pin that you want, it will handle it.

On Sat, May 21, 2016 at 3:26 PM, abhaysjuneja notifications@github.com wrote:

I am currently working on a project which requires 8 Interrupt Attachments and obviously each with an exclusive ISR (Interrupt Service Routine). I was wondering if it is possible using this library? I read somewhere that pins are defined, to be used as interrupt pins, in groups. And each group can function on a single ISR only.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/GreyGnome/PinChangeInt/issues/3

-Mike Schwager

GreyGnome commented 8 years ago

BTW, use the EnableInterrupt library. The PinChangeInt library is deprecated.

On Wed, Jun 1, 2016 at 10:25 AM, Michael Schwager mschwage@gmail.com wrote:

Sorry this has taken me so long to reply, I missed it.

Yes it is possible. It is true that the pin change interrupts are defined in groups, but the library uses software to determine which ISR to call. Use it to add a separate ISR to each pin that you want, it will handle it.

On Sat, May 21, 2016 at 3:26 PM, abhaysjuneja notifications@github.com wrote:

I am currently working on a project which requires 8 Interrupt Attachments and obviously each with an exclusive ISR (Interrupt Service Routine). I was wondering if it is possible using this library? I read somewhere that pins are defined, to be used as interrupt pins, in groups. And each group can function on a single ISR only.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/GreyGnome/PinChangeInt/issues/3

-Mike Schwager

-Mike Schwager

abhaysjuneja commented 8 years ago

Okay thanks..It's Working.!.. :+1: and yeah.. i'll try the EnableInterrupt library too. :+1: