You are here

PSoC3 and PSoC5 Interrupts | Cypress Semiconductor

PSoC3 and PSoC5 Interrupts

Interrupts are an important part of any embedded application. They free the CPU from having to continuously poll the occurrence of a specific event and, instead, notify the CPU only when that event occurs. In system-on-chip (SoC) architectures, such as PSoC 3 and PSoC 5, interrupts are frequently used to communicate the status of the different on-chip peripherals to the CPU.

Unique Features of PSoC 3 and PSoC 5 Interrupts

PSoC 3 and PSoC 5 provide the following enhanced interrupt features that are not supported by the other traditional microcontrollers:

  • Configurable Interrupt Vector Address: In PSoC 3 and PSoC 5, you can dynamically configure the interrupt vector address. The CPU execution can be directly branched to any ISR code when the interrupt occurs. In traditional microcontrollers, the interrupt vector address is fixed for each interrupt line. Typically, a JUMP instruction is placed in that fixed address to branch the CPU execution to the actual ISR code. This unique feature reduces the interrupt execution latency in PSoC 3 and PSoC 5 compared to the traditional microcontrollers.
  • Flexible Interrupt Sources:In traditional microcontrollers, the interrupt source is fixed for each interrupt line. PSoC 3 and PSoC 5, give you the flexibility to choose the interrupt source for each interrupt line. This flexible architecture enables any digital signal to be configured as an interrupt source.

Interrupt Support in PSoC Creator

PSoC Creator supports interrupts by providing them as a component. The Interrupt component is available under the System tab in the Component Catalog window as shown infigure below. Each instance of the interrupt component is an interrupt line. The interrupt source should be connected to the interrupt component in the schematic.

 

For more information on interrupts in PSoC3 and PSoC5, please refer Application note AN54460 PSoC3 and PSoC5 Interrupts, which introduces you to the interrupt architecture, and explains the support for interrupts in the PSoC Creator Software, the development tool for PSoC 3 and PSoC 5. Advanced interrupt concepts such as handling re-entrant functions and fixed function interrupts are also explained in detail. Code examples are provided to explain the different use cases of interrupts. Please access the application note webpage for document and zip file containing the example projects.

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.