element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum Interrupts in custom componants?
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Cypress Kits to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 2 replies
  • Subscribers 26 subscribers
  • Views 244 views
  • Users 0 members are here
Related

Interrupts in custom componants?

Former Member
Former Member over 12 years ago

How are interrupts handled in custom PSOC 4 components? Normally I have had to comment out the interrupt handler in the isr.c file in order to use the isr_StartEx() and put the ISR code in my main.c. However, as far as I can tell, when you make a custom componant the API code for included componants isn't generated until runtime. How should this be handled?

  • Sign in to reply
  • Cancel

Top Replies

  • jesusantoniocar
    jesusantoniocar over 12 years ago +1
    Hello Double-click the TopDesign.ctl file to open it for editing. The attribute keyword is used in the control file to specify the interrupt vector number for each interrupt component. The method of specifying…
  • Former Member
    Former Member over 12 years ago in reply to jesusantoniocar +1
    Thanks! It might take me a little bit to read through this and get a handle on it. I'll let you know if I have any more questions.
Parents
  • jesusantoniocar
    jesusantoniocar over 12 years ago

    Hello

    Double-click the TopDesign.ctl file to open it for editing. The attribute keyword is used in the control file to specify the interrupt vector number for each interrupt component. The method of specifying the interrupt vector number depends on whether the interrupt component has been placed by the user on the example schematic or the interrupt component is used internally in a PSoC Creator component in the schematic. The  method is as follows:

    a) For the interrupt components placed by the user on the schematic, the syntax is:.

    attribute placement_force of instance_name : label is "Intr(0, DesiredVectorNumber)";

    Here instance_name refers to the name of the Interrupt Component in the schematic and DesiredVectorNumber is the vector number (0 to 31). For example, to assign vector 17 to the Interrupt Component isr_1:

    attribute placement_force of isr_1 : label is "Intr(0, 17)";

     

    You can read the AN54460

     

    I hope my answer can help you.

     

    best regards,

     

    Jesus Antonio.

    Attachments:
    imageAN54460.pdf
    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to jesusantoniocar

    Thanks! It might take me a little bit to read through this and get a handle on it. I'll let you know if I have any more questions.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 12 years ago in reply to jesusantoniocar

    Thanks! It might take me a little bit to read through this and get a handle on it. I'll let you know if I have any more questions.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube