Edge triggered interrupts

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello all,

   

 

   

I'm using Psoc 5 LE with 68 pins (not the 100 pin chip). I read somewhere that the device has up to 32 available interrupts.

   

I want to use several edge triggered interrupts on some of my digital input pins. I understood that I only can use a single interrupt per port:

   

P0, P1, P2, P3, P12, P15.

   

Overall 7 edge triggered interrupts.

   

Am I wrong and there are other available interrupts (not talking about SPI interrupts and such) for digital inputs pins?

   

 

   

Thanks in advance,

   

Igal

0 Likes
5 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

This might help -

   

 

   

http://www.cypress.com/documentation/application-notes/an54460-psoc-3-and-psoc-5lp-interrupts     AN54460 - PSoC® 3, PSoC 4, and PSoC 5LP Interrupts

   

 

   

http://www.cypress.com/documentation/application-notes/an72382-using-psoc-3-and-psoc-5lp-gpio-pins      AN72382 - Using PSoC® 3 and PSoC 5LP GPIO Pins

   

 

   

Regards, Dana.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hey Dana,

   

This surely helped.

   

Could you please clarify the reason to having contiguous pins? I've attached a quote from AN45381 document.

   

Plus, I need two different interrupts for 2 digital input pins. Does the attached picture configuration allows me to get it or I have to separate the pins so each will have it's own port?

   

 

   

Best regards,

   

Igal

0 Likes
Anonymous
Not applicable

Sorry, I meant AN72382 document

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I think the contiguous issue is a limitation of the way the component was designed,

   

rather than a HW limitation.

   

 

   

If you want a different priority for interrupts you would have

   

to assign them to different ports, otherwise no reason to not place

   

them all in one port. Reading the status register in ISR and use of

   

masks  will tell you what specific pins are generating interrupts.

   

 

   

Regards, Dana.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Additionally you may connect an isr component to the signal of a pin which then will trigger an interrupt on the desired edge.

   

 

   

Bob

0 Likes