• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Microcontrollers » Hercules™ Safety Microcontrollers » Hercules™ Safety Microcontrollers Forum » Does VIM have EDGE-Triggered Interrupt capabilities on the INTREQ Pins?
Share
Hercules™ Safety Microcontrollers
  • Forum
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

Does VIM have EDGE-Triggered Interrupt capabilities on the INTREQ Pins?

This question is not answered
Pashan None
Posted by Pashan None
on Jul 12 2012 17:53 PM
Genius3490 points

Hello Support,

Is there any way VIM can be configured to have edge-triggered INTREQ?

According to the section of

4.3.12.  Interrupt Configuration Registers (ICDICFRn)

within ARM Generic Interrupt Controller Specification

Generic Interrupt Controller Architecture Specification

Architecture version 1.0

 
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0048a/IHI0048A_gic_architecture_spec_v1_0.pdf
 
I see there is a selection mechansim between EDGE and LEVEL triggered INTREQ Lines.
 
Does VIM support only Level-Triggered?
Is there any Configuration Register in VIM to have Edge-Triggered INTREQ?
 
Thank you.
Regards
Pashan
 
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Jean-Marc Mifsud
    Posted by Jean-Marc Mifsud
    on Jul 13 2012 10:17 AM
    Genius10470 points

    Pashan,

    The VIM module supports edge triggered interrupt, but this is transparent to the end user.

    A majority of our peripheral modules are level interrupt, some are edge interrupt.
    Because of this mix, the VIM can comprehend both.

    Can you explain what are you trying to achieve?

    For information, the ARM document you are using is useless in our case. We developed our own interrupt module (VIM).
    Please refer to our TRM to see and understand how interrupt are handle within the VIM.

    Thanks and Regards,

    Jean-Marc

    Best regards,

    Jean-Marc

    Application Engineer


    If my reply answers your question please click on the green button "Verify Answer".

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pashan None
    Posted by Pashan None
    on Jul 13 2012 12:02 PM
    Genius3490 points

    Hello Jean-Marc,

    I am assuming following steps are needed in order when level-triggered INTREQ Pin is active:

    1> ISR Code starts execution because of LDR pc, [pc, #-0x1B0]  ----  Effectively reading FIQVECREG -- I am assuming FIQINDEX is not cleared

    2> ISR Processing

    3> Peripheral Interrupt Flag Clear

    4> Read FIQINDEX to clear VIM ISR Flag  -- Because Level Triggered so new INTREQ will remain active

    I am asuming Step 1 above doesn't clear FIQINDEX Register

    ****************************************************************************************************************************************

    For Edge-Triggered case of INTREQ Pin:

    1> ISR Code starts execution because of LDR pc, [pc, #-0x1B0]  ----  Effectively reading FIQVECREG -- I am assuming FIQINDEX is not cleared

    2> Read FIQINDEX to clear VIM ISR Flag  -- Because next edge of INTREQ might occur which will be missed

    3> ISR Processing

    4> Peripheral Interrupt Flag Clear

    Hence, my question is which order above should I follow during INTREQ processing?

    Any more information will be helpful for my understanding.

    Thank you.

    Regards

    Pashan

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jean-Marc Mifsud
    Posted by Jean-Marc Mifsud
    on Jul 13 2012 16:56 PM
    Genius10470 points

    Pashan,

    From a software/user point of view, level and edge trigger interrupts are used the same way.

    1] The IRQVECREG or FIQVECREG as to be accessed to get the address of the ISR routine. This will clear the hold logic within the vim module.
        The hold logic in the VIM is used is in fact an edge detector that will apply for both pulse and level interrupt request.
        The read from IRQVECREG or FIQVECREG is done during the execution of LDR pc, [pc, #-0x1B0] for the vector mode, or directly by the CPU when the VIC mode is used (To be enabled in the CPU via CP15)   

    2] In the corresponding ISR, the interrupt flag has to be cleared. (At peripheral module level) This will clear the request to the VIM module.

    The main difference between level and pulse will be during step 2,.
    Within the ISR routine, if the corresponding flag is not cleared, the request will stay active to the VIM for a level based interrupt peripheral module.
    In this case, when the CPU exits the exception mode, it will re-enter in exception again until the source interrupt is cleared.
    This is not the case for a pulse based peripheral module.
    On the EMAC (Ethernet) module, interrupt are pulse. Once the EMAC control module has issued an interrupt pulse to the VIM, it will not generate further pulses of the same type until the original pulse has been acknowledged.

    Please let me know if this clarify your question.

    Thanks and Regards,

    Jean-Marc

    Best regards,

    Jean-Marc

    Application Engineer


    If my reply answers your question please click on the green button "Verify Answer".

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pashan None
    Posted by Pashan None
    on Jul 16 2012 12:38 PM
    Genius3490 points

    Hello Jean-Marc,

    1> FIQINDEX or IRQINDEX will also be cleared automatically due to LDR pc, [pc, #-0x1B0] instruction?

    2> Other than Ethernet (EMAC), which peripherals are PULSED Mode of INTREQ to VIM?

    Thank you.

    Regards

    Pashan

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jean-Marc Mifsud
    Posted by Jean-Marc Mifsud
    on Jul 16 2012 13:53 PM
    Genius10470 points

    Pashan,

    1) Yes,

    2) EMAC, USB, EMIF, ePWM, eCAP, eQEP as top of my head. I've asked our design IP team to come up with a full list.

    Again, if the procedure to reply to interrupt is done correctly, than this is transparent.

    Regards,

    Jean-Marc

    Best regards,

    Jean-Marc

    Application Engineer


    If my reply answers your question please click on the green button "Verify Answer".

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pashan None
    Posted by Pashan None
    on Sep 03 2012 17:15 PM
    Genius3490 points

    Hello Jean-Marc,

    Did you get the full list of Peripherals having Pulsed Mode INTREQ from your design team as mentioned by you in the last mail trail above?

    Thank you.

    Regards

    Pashan

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content 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. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

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 of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content 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.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use