This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GPIO Input draws around 40mA when driven with 5V (TM4c123AE6PM)

Other Parts Discussed in Thread: TM4C123AE6PM

Accoding to data sheet the used inputs should be compatible with 5V. When I drive this inputs with a logic gate supplied by 5V sometimes the Signal is pulled down to arond 1.3V and latches at this state. The driver (logic gate) gets hot. The micricontroller gets warm but still runs. When i stop the debugger and check the statuf of the GPIO registers these inputs are still programmed as inputs. That happens randomly on inputs: PB2, PB6, PF2, PF4. Sometimes on 1 input and sometimes on 2 inputs at the same time.

Any Idea what could be wrong or what coud be checked?

  • Hello Norbert

    There is a known errata for the 5V tolerant GPIOs to latch up and draw high current pulling down the 5V supply. This is referred to as GPIO#10 errata in TM4C123 errata sheet. If you can slow down the edge using an external RC filter then it would be take care of the issue.

    Regards
    Amit
  • Thank you. I've read this errata and got some more questions.
    Is this problem related with 5V operation of the input?
    Will it help if we drive this inputs with 3.3V? For example if we put a high ohmic voltage divider at the output of the driver which divides the 5V to 3.3V. Will that help? This would limit the current from the driver to erroneous input.
    If this high current occures will this input still function?

    This errata recommends in the workaround that unconnected inputs should be connected to GND with a 1kOhm resistor. If we don't what can happen? If unused GPIO's arn't connected ther's no driver which can source high currents so maybe this inputs are in an erroneous state but because this inputs arn't driven that doesn't matter. Right?
  • Norbert Gassner said:
    ...unconnected inputs should be connected to GND with a 1kOhm resistor.   If we dont - what may happen?

    If i may - it is never wise to allow an MCU input to "float."  (not be terminated)   As the inputs float randomly - current draw increases - and if these pins are (already) challenged that cannot be good.

    The suggestion of adding a 1KΩ R to ground is bothersome - vendor rep here should advise as to why this method has replaced the more normal/customary method of employing the MCU's internal, weak pull-up/down Rs.  (such is a sure cost/space/labor saving)

    If it's the GPIO "inputs" only which are plagued - perhaps shifting those unused MCU pins to outputs (set to your desired level) provides a better alternative...

  • Thanks,

    Sorry i should have written "unconnected GPIO's" instead of "unconnected inputs".

    What you describe is the usual way - programm the unconnected GPIO's as outputs or select a internal pull-up.

    Think TI's recommandation was a hasty reaction.
  • I'd not be so quick to call, "hasty." Give vendor's Amit some time to arrive & consider - their recommendation is severe - surely has some basis. (I'd bet)
  • cb1_mobile said:
    surely has some basis. (I'd bet)

    As would I.

    I would also say

    • It is wise to consider GPIO inputs since they will be until powered on. Yes I would put pull-up/dn on outputs as well to ensure a known state before the SW configures them
    • I don't trust internal pull-ups, particularly since they are usually rather weak. However, since internal pull-up/dns are disabled until configured I'd also add external pull-up/dns on any inputs in any case (see don't trust). To be really effective the pull-up/dn has to be present at all times, otherwise you are accepting a risk of latchup until you 'get around' to initializing the GPIO. Consider what happens if reset is held for a long period. Note that latchup risk is not unique to this device, it is a common characteristic of all CMOS devices. They have become less susceptible to it as designs have improved but the risk is still present
    • 1k does seem exceptionally strong and pull-dn seems unusual as well. The historical values have been 4k7 pull-ups and recently manufacturers have been suggesting 10k.
    • SMT resistor arrays are small and inexpensive. Really the insurance (even if you use discrete resistors rather than arrays) costs you little.

    I'm quite curious as to why a pull-dn rather than a pull-up, the margin is usually higher on the high side.

    Robert

  • Hello Nrobert,

    The issue is not with the use of 5V signals but due to the nature of the signal slope. A fast rise and fall time trigger the ESD protection and causes the latch up. So it is required that the signal slope be increased so that the ESD is not triggered by a fast moving signal.

    Note that the ESD protection is applicable for unused pins as well A stray noise from the board can cause an unused IO to latch up as well.

    Regards
    Amit
  • Amit Ashara said:
    A fast rise and fall time trigger the ESD protection and causes the latch up. So it is required that the signal slope be increased so that the ESD is not triggered by a fast moving signal.   

    Hi Amit,

    Glad that you've responded - yet the response generates much concern.

    Poster specified TM4C123AE6PM - is this GPIO "latch up" errata confined to that MCU, only?   (we doubt that)

    We're long term users of past LX4F - and have regularly introduced "normal/customary" 3V3 level, external signals, into thousands of those MCUs - w/out noting this (unwanted) latch-up issue!   

    May we ask the following:

    • As we've long been told that "TM4C123 = LX4F" (in general) has our avoidance of this latch-up been "luck?" 
    • Are all TM4C123x MCUs subject to this GPIO latch-up errata?
    • Were the past LX4F MCUs subject to the same?   (such never appeared in LX4F errata)

    Thanks much for your time & attention.

  • Hello cb1

    Yes, TM4C123 are subject to the latch up.

    Regards
    Amit
  • Hi Amit,

    And - as past LX4F is (substantially) the same - are they too subject to that same GPIO latch up?
    Again - no such errata appeared when LX4F "ruled the land."
  • Hello cb1

    As per the errata the condition is only on the TM4C12x series.

    Regards
    Amit
  • Hi Amit,

    Then it cannot be true that TM4C is, "true equivalent" of past LX4F - which if I recall correctly - has long been proclaimed...
  • And I'm still concerned about the work-around being a strong pull-dn. Both the strength and direction seem odd.

    Robert
  • Yes - agreed - and (thus far) not well explained.

    MCU vendors (most all) over-promote/promise w/"internal pull-up/down Rs" - and due to these internal's too high resistance they often prove ineffective. (just as you note)

    Novice users - seeking to save "pennies" - condemn their (I2C most often + general GPIO) development to hours/days of (easily avoided) trouble-shooting - all prevented w/proper, external pull-up/down resistors...

  • The timings a bit fortuitous actually. We are just starting a re-spin and I wasn't aware of this addition to the errata.

    I suspect from the appearance of the description the 1k recommendation is an overreaction but I'm still parsing. Certainly the text of the errata doesn't appear to justify the recommendation.

    Robert
  • Our small firm purchased a good volume of (past) LX4F (predecessor to TM4C) and thus - thru blind "luck" - escaped this GPIO misfortune...

    Adding an R-C to each every GPIO Input - Oy my head. (hurts even worse when CPA/investors review BOM...)
  • Hello Robert, cb1,

    The Pull Down effectively removed the current source that can sustain a latch up. If a Pull Up is used then in case of a latch up current shall be drained via the Pull Up causing a sustained latch up.

    Regards
    Amit
  • Still, 0.06 per input is easier to explain than the processor burning up.

    Robert

    Quad LC filter (might be sufficient, might not)

    www.digikey.com/.../2523476
  • Amit/Robert,

    Thank you Amit - now the cure makes more sense.

    Believe this vendor produces even beyond 4 channel "filter."

    Even though posters Robert & cb1 demonstrate (some) activity here - both are "caught by surprise" by this (unfortunate) errata which is SO broad (and unwanted) in scope.

  • Hello Amit / All

    For me a key issue is the 85°C which the errata says.

    I see my problem at room temperature. So for me the important question is: "Is this statement is reliable?". If it is, the problem i see has another cause and i have to search further.

    The question to all is: Does anyone else see this problem at RT?

    We have a new design where we see the problem now and we have six or seven old designs, which go in low quantitys, where we need to replace the luminaries. One of them is still finnishred. If we need to add pulldowns to all unused pads our redesign cost (material cost isn't the issue) will blow up.

    Regards Norbert 

  • Norbert, it also says high noise environments are more sensitive. (Only above 85C in "normal operating use" )

    That's why I'm concerned, I consider our environment high noise (but noisy environment isn't explained either) but we probably don't get above 60C

    Robert

  • cb1, absolutely. It was just the first one I found with relatively high capacitance. Many others exist with lower capacitance and similar bandwidths. Probably more with similar capacitance too.

    It'd be a lot easier to provide proper protection if we had some sort of model of the parasitic structure we were trying to avoid triggering. I'm assuming the capacitive recommendation was to provide an alternate path to the internal parasitic capacitance.

    I can appreciate that it may be vague because it's new but I'd really like it to be fleshed out a little more so we can have some assurance we are dealing this properly.

    Robert
  • Robert,

    Mystery to my small firm is, "Why the past LX4F GPIO input structure (apparently) escaped this issue - and was "changed/improved"(?) and now this unfortunate issue lurks!
  • I observed in other discussions that the 5V tolerance has changed between them. The TM4C has higher tolerance when powered off IIRC. That would require a change in the I/O pads.

    Robert
  • Robert Adsett said:
    The TM4C has higher tolerance when powered off IIRC.

    OMG Robert - I too recall that (now) - yet was "lulled" into sleep-walk by vendor's (oft repeated) statement, "MCU's are identical - simply a Re-Brand/Paint Job!"

    In our case - we try our best to "never/ever" allow signals to pass to our LX4F MCU board when board is unpowered...   (i.e. MCU "awakens" each/every external board - and powers them all down - (and checks) prior to the MCU's powering down...)

  • Hello Norbert

    As the errata says "The condition is more likely to occur at high temperatures or in noisy environments". It does not mean that it will not occur at room temp.

    We have not seen a room temp failure under lab conditions, but it may be possible.

    Regards
    Amit
  • As an (independent) confirmation of Amit's writing (09:37, above) our firm has run GPIO tests on 10 TM4C123 devices, @ ±20°C beyond "normal" room temp. w/in our lab, and have not noted any ill effects...

  • Similar results. We've soaked to probably 50C or more and in a relatively noisy environment. Noisy enough to override a badly routed pull-up on some I/O chips.

    Robert
  • cb1- said:
    In our case - we try our best to "never/ever" allow signals to pass to our LX4F MCU board when board is unpowered...

    I don't have the same external board setup as you but most of our inputs are in isolated power domains, the others do not have a path to the power rails. So it should have the same effect.

    Norbert, any chance the micro is unpowered when this happens?  That would increase the chance of latching occurring I would expect.

    Robert

  • Robert Adsett said:
    badly routed pull-up on some I/O chips.

    By badly routed - was the pull-up too far from the MCU's GPIO pin to be truly effective?

  • It was an external chip (not the MCU) and yes too far away, also a somewhat meandering route. Shorting it eliminated the effect from noise.

    It is essentially a DC line (the input is not tied to anything that would change it) so it didn't draw any attention previously.

    Robert
  • Hello Robert, cb1,

    The issue is sensitive to device process and temperature, so its occurrence may not always be true. We have seen a very small % of device immune and a small % of device very susceptible as well.

    Regards
    Amit