• 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 » Dynamic changing of IRQ_EN within HET Control Field
Share
Hercules™ Safety Microcontrollers
  • Forum
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

Dynamic changing of IRQ_EN within HET Control Field

This question is answered
Pashan None
Posted by Pashan None
on May 09 2012 07:53 AM
Genius3490 points

Hello Support,

In spnu199d.pdf [TMS470R1x device HET], I found the following section [Section 4.6, Page 41 First Paragraph]

Note:

Enabling or disabling the interrupt generation of certain instructions (BR,

ECNT, SHFT, WCAP) when the HET is turned on could falsify the operation

of these instructions. This effect is due to the possible modification of the

PRV bit by the HET during the read/modify/write of the CPU to modify the

control field.

I am unable to find similar comments in the spnu499.pdf.

Please help me understand why?

Does the above comments not appy for TMS570 NHET parts?

If not, then why?

Any better explanation will help me understand more about NHET.

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
  • Charles Tsai
    Posted by Charles Tsai
    on May 09 2012 09:10 AM
    Prodigy550 points

    Hi Pashan,

      If you look at these instructions such as BR, ECNT, SHFT and WCAP they all have the interrupt enable bit and the previous bit in the same control field. The previous bit is used as a status field by the HET to indicate the previous state of the specified pin. HET will compare the current pin state with the previous bit to know if a specifed edge (rise or fall) is detected before the instruction can take action for it. If you are dynamically writing to the interrupt enable bit during a read-modify-write operation you can accidently overwrite the previous bit. For example, right after you read the control field, the previous bit is modified by the HET and later on you write back to the control field will overwrite the previous bit. Since the previous bit is altered the instruction will not be able to do proper edge detection when the next time a real edge occurs at the pin.

     In NHET, the logic does not look at the previous bit stored at the control field anymore. It relies on an internal flip flop sticky bit to store the previous pin state. So this will not be a problem to NHET. In addition, in NHET there is interrupt enable register that is memory mapped which can be used by the users to enable or dsiable the interrupt dynamically.

    Please let me know if this answers your questions.

    regards,

    Charles

     

     

    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 May 09 2012 09:41 AM
    Genius3490 points

    Hello Charles,

    That means in NHET, Prv bit of Control Field is only Read_Only by CPU/HTU  and NHET never uses it for any internal action/decision?

    NHET always writes to PRV Bit of Control Field and never Read that bit from Control field. Is this statement correct?

    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.
  • Charles Tsai
    Posted by Charles Tsai
    on May 09 2012 09:57 AM
    Verified Answer
    Verified by Pashan None
    Prodigy550 points

    Hello Pashan,

      You understanding is correct that the NHET will still update the previous bit in the control field for compatbility reason but never really used the bit for any decision making. There is nothing to block the CPU from overwriting to the previous bit in the control field in NHET just like in HET. If CPU writes to the control field it can overwrite the previous bit. It is just that the NHET does not look at the previous bit for any decision making and hence there will not be any ill effect like in HET.

    regards,

    Charles

    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