Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > Few questions on interrupt.

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Few questions on interrupt.
Moderator:
ANCY

Post Reply
Follow this topic



Few questions on interrupt.

AkashGupta posted on 15 Feb 2013 7:52 AM PST
Top Contributor
24 Forum Posts

 

1)What is the delay after which the interrupt starts executing, and also what happens when 2 interrupts of same priority trigger simultaneously?

2) Which is the register which has to be looked for to know the current interrupt which is executing?

3) Interrupts with level trigger- What is the time duration for which the signal level has to be held high to generate two interrupts out of one signal? This is not a requirement but want to know at what time after the first interrupt is triggered second interrupt will trigger.

regards

Akash




Re: Few questions on interrupt.

danaaknight posted on 15 Feb 2013 08:52 AM PST
Top Contributor
1773 Forum Posts

1) From TRM -

 

Case 2 – During the simultaneous occurrence of inter-
rupts:
❐ If INT A has lower priority than INT B, then INT B
wins arbitration and begins to execute.
❐ If INT A has higher priority than INT B, then INT A
wins arbitration and begins to execute.
❐ If INT A and INT B have equal priority, then the inter-
rupt with the lower index number wins arbitration and
begins to execute.

 

From Cortex Manual -

 

2.3.6. Interrupt priority grouping

To increase priority control in systems with interrupts, the NVIC supports priority grouping. This divides each interrupt priority register entry into two fields:

  • an upper field that defines the group priority

  • a lower field that defines a subpriority within the group.

Only the group priority determines preemption of interrupt exceptions. When the processor is executing an interrupt exception handler, another interrupt with the same group priority as the interrupt being handled does not preempt the handler,

If multiple pending interrupts have the same group priority, the subpriority field determines the order in which they are processed. If multiple pending interrupts have the same group priority and subpriority, the interrupt with the lowest IRQ number is processed first.

 

Regards, Dana.



Re: Few questions on interrupt.

danaaknight posted on 15 Feb 2013 08:56 AM PST
Top Contributor
1773 Forum Posts

2) From TRM

 

 

Regards, Dana.



Re: Few questions on interrupt.

danaaknight posted on 15 Feb 2013 09:02 AM PST
Top Contributor
1773 Forum Posts

3) This might be useful http://www.cypress.com/?docID=41145

 

and this http://www.arm.com/files/pdf/introToCortex-M3.pdf page 7

 

Regards, Dana.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20