Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® Software > PSoC Pins Component Interrupt

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



PSoC Pins Component Interrupt
Moderator:
JFMD

Post Reply
Follow this topic



PSoC Pins Component Interrupt

smuraski posted on 11 Aug 2010 9:24 AM PST
Senior Member
17 Forum Posts

How does the pins component interrupt generation function when the number of pins is set > 1 and mulptiple pins are set to generate interrupts?




Re: PSoC Pins Component Interrupt

Terrence posted on 16 Aug 2010 08:08 AM PST
Top Contributor
43 Forum Posts

You can use the interrupt component (Systems Tab), and connect one to each pin requiring an interrupt.

Then you can use the interrupt API, and the Design Wide Resources tab, to change interrupt priorities etc.



Re: PSoC Pins Component Interrupt

smuraski posted on 22 Aug 2010 10:55 AM PST
Senior Member
17 Forum Posts

I was really trying to find out how does the hardware side deal with multiple sources of interrupts if more than one were active at the same time? Does the API resolve this some how? If an interrupt is being serviced, but has not yet released the request at the pin and another request is activated, is the newer request recognized? Is there a detailed description of this somewhere?



Re: PSoC Pins Component Interrupt

Terrence posted on 22 Aug 2010 02:00 PM PST
Top Contributor
43 Forum Posts

Interrupts are handled in hardware by the Interrupt Controller. It can handle 32 interrupts and allows the user to assign eight levels of interrupt priority, 0 to 7.

Priority 0 is the highest and 7 the lowest. Priorities can be set at design time and changed/set dynamically at runtime.

If two interrupts occur at the same time the interrupt with the highest priority (lowest number) is serviced first.

If an interrupt is being serviced and a higher priority interrupt occurs, then the current interrupt service is suspended and the higher priority interrupt gets serviced, and when done the lower level one will resume.


For more detail of the interrupt hardware, see chapter 8 (Interrupt Controller) of the TRM here http://www.cypress.com/?docID=18266 www.cypress.com/



Re: PSoC Pins Component Interrupt

smuraski posted on 24 Aug 2010 01:08 PM PST
Senior Member
17 Forum Posts

I must not be wording the question properly...

If I place a pins component on a schematic sheet and set the number of pins to a value greater than 1 and set each pin to generate interrupts, I only have a single interrupt which connects to the interrupt controller. How does the hardware/API deal with multiple sources connected to this single interrupt source? How do I know which pin generated the interrupt? What happens when the interrupt for one of the lines is generated and is being serviced and another line connected to the same pins component should cause an interrupt? Will it happen? Creator will not permit multiple pins components for the same group of port pins to have individual interrupts. So my question is...How does the port/pins component deal with multiple pins attached to a single pins component that can generate interrupts? I looked through the documentation and cannot find this topic dealt with...I understand the priorities and the interrupt controller, but this occurs before that point in the hardware.

Thanks.



Re: PSoC Pins Component Interrupt

Terrence posted on 24 Aug 2010 01:37 PM PST
Top Contributor
43 Forum Posts

Hi smurask,

I think you may be missing a step. This is how to do it.


Place the pins component, and configure for the number of pins required.
Then, as you have done before, configure the pins component, for the interrupts on each pin.
Now, place the Interrupt component, as many times as you have pins, and wire one to each pin.

Now you can configure the interrupt priorities on the Interrupts Tab of DWR.
Hope this works for you.
 


 

 



Re: PSoC Pins Component Interrupt

smuraski posted on 24 Aug 2010 01:44 PM PST
Senior Member
17 Forum Posts

OK...I guess I thought that the pins component was able to multiplex the interrupt requests somehow and that was the purpose of the interrupt output from the pins component??? I guess that is only for a single pin interrupt application. Thanks.






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: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20