is it possible a isr component directly to detect a rising edge from a digital input pin?

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

cross mob
Anonymous
Not applicable

I would like to simplify my hardware design for raising 2 interrupts events with a single digital input pin to detect pulse edges.  So my idea is to use digital input hardware pin to detect pulse falling edge while a isr component to detect a rising edge by connecting to the digital input pin. This trys to raise 2 seperated interrupt events. Make clear that it is not to raise a single event with detecting rising and falling edge. The topdesign is shown as following diagram. Is this going to work? Has anyone have any this experience?

   

   

Qingshan

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

Note there is only one IRQ vector associated with each port, code would have

   

to determine which pin was responsible.

   

 

   

If you need individual pin capability, the way you are approaching it looks OK.

   

 

   

Regards, Dana.

View solution in original post

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

This ap note will give you all you need on setting up ISR -

   

 

   

www.cypress.com/

   

 

   

Regards, Dana.

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

Note there is only one IRQ vector associated with each port, code would have

   

to determine which pin was responsible.

   

 

   

If you need individual pin capability, the way you are approaching it looks OK.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Thanks Dana for your recongnising my idea.

   

I have made my idea work.

   

Qingshan

0 Likes