• 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 » HET Problen after power on reset!
Share
Hercules™ Safety Microcontrollers
  • Forum
  • E2E Wiki
Options
  • Subscribe via RSS

HET Problen after power on reset!

HET Problen after power on reset!

This question is answered
Dan Perlid
Posted by Dan Perlid
on Mar 08 2012 06:31 AM
Prodigy30 points

When the program starts from power on reset the HET-pins used as pure inputs does not work. But if i start the program with my debugger the HET inputs will work OK.

The code used to initialize the HET is generated from HalCoGen. I'm using IAR Enbedded Workbench for ARM version 6.30.6 (The latest).

Pleace help me.

/Dan

TMS470M
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Luc Baudoin
    Posted by Luc Baudoin
    on Mar 08 2012 16:56 PM
    Intellectual1145 points

    Hello Dan,

    There are no differences with running the code after power on reset or after loading it with the JTAG. The HET pins are set as inputs or outputs via the HET register HETDIR, can you confirm the value and give us more information? How do you test the pins as inputs?

    Best regards,

    Luc

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dan Perlid
    Posted by Dan Perlid
    on Mar 09 2012 01:07 AM
    Prodigy30 points

    Hello Luc.

     

    HETDIR register is set to 0x0FFF8E, HET0 as input. When I start from power on reset HET0 is allways read as 0, but if I start via the debugger and JTAG

    I can read bouth 1 and 0 on the input.

    Here are the code for reading the pin:

    if  ((HETDIN & 1) == 1) {

     do something...

    }

    else {

      do something else...

    }

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Luc Baudoin
    Posted by Luc Baudoin
    on Mar 09 2012 17:39 PM
    Intellectual1145 points

    Hi Dan,

    Can you let me know how your PULL registers are set? It seems from your message that the pins are left floating.

    Thanks,

    Luc

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dan Perlid
    Posted by Dan Perlid
    on Mar 12 2012 04:38 AM
    Prodigy30 points

    Hi Luc,

    I have now find out what was the problem when starting from power on reset.

    It has nothing to do with my software, it´s related to JTAG and JTAG reset pin TRST.

    On the evaluatin kit there is a 100kohm pullup resistor on this pin. If we change this to 10k all seems to be working fine.

    It is also possible to solve the problem by putting the jumper at JP1 in the ARM position. In this case you will get a pullup of 1k.

    The reason for this I do not know, perhaps TI may explain it?

    It looks as if HET is involved in the JTAG intrface.

     

    /Dan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Richard Watts
    Posted by Richard Watts
    on Nov 13 2012 13:51 PM
    Prodigy140 points

    I've just had a similar problem and I was able to fix it by turning on the pullups (i.e. set the relevant het->PULDIS bits to 0) - it would appear that in my case at least, the HET records all input bits as 0 unless the pull-up is enabled.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chuck Davenport
    Posted by Chuck Davenport
    on Nov 13 2012 14:13 PM
    Suggested Answer
    Expert6475 points

    Hello Dan and Richard,

    In the 470M devices, there is a feaure implemented to allow the input buffers to be disabled which will cause the inputs to always read as zero. Please refer to the verified answer in the following thread for details.

    http://e2e.ti.com/support/microcontrollers/hercules/f/407/p/223401/786457.aspx#786457

    Although, this other thread is regarding the DCAN pins, all IO on the divece have the same feature to disable the input buffers based on the settings for DIR, PULDIS, and PULSEL. Given the default pull direction on the HET pins is a pull down, it is very easy to inadvertantly enter this input buffer disable mode by simply setting the DIR to input and disabling the internal pull. Getting around this is equally as easy by just setting the pull direction to a pull up in conjunction with DIR = input and pull disable = disabled.

     

    Thanks and Regards,

    Chuck Davenport


    If this response answers your question, please indicate it by verifying the suggested answer when provided.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Richard Watts
    Posted by Richard Watts
    on Nov 13 2012 14:16 PM
    Prodigy140 points

    A-ha! That explains it - thank you. It might be worth explaining this a bit more clearly in the TRM ..?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chuck Davenport
    Posted by Chuck Davenport
    on Nov 13 2012 14:25 PM
    Suggested Answer
    Expert6475 points

    Glad to hear that this resolves your issue, Richard. Can you verify the answer above so others that use the forum can know this resolved your issue

     

    Dan,

    Part of what you are seeing with HET inputs working during a JTAG session and not when running stand alone, is that this input disable feature is not available during an active debug session on JTAG. This means the input buffer will be enabled during JTAG and disabled during stand alone.

    Thanks and Regards,

    Chuck Davenport


    If this response answers your question, please indicate it by verifying the suggested answer when provided.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Richard Watts
    Posted by Richard Watts
    on Nov 13 2012 15:06 PM
    Verified Answer
    Verified by Luc Baudoin
    Prodigy140 points

    I'd love to but I'm afraid I'm not the person who asked the question and it appears that only the person who asked the question can verify the answer (is that still true? I'm afraid I could only find http://e2e.ti.com/group/helpcentral/f/301/p/64759/246696.aspx#246696 on the help forums) - I don't have the relevant verify answer button, anyway - sorry!

    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