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.

TM4C Fault Handling with Auto Retry

Hello,

Is there a way to use the automatic retry function on M0PWM0 without compromising the signal of M0PWM1 when a fault occurs? I am using both of the PWM pins off of PMW Gen 0. One is set up with the fault handling configuration seen below, the other does not have/need fault handling. When I run both channels at the same time, if the one channel sees a fault, I notice 'noise' from the auto retry function on my other M0PWM1 channel. The noise follows the frequency of the auto retry on M0PWM0, but the voltage delta on the functional channel is only 2.16 volts, so it is not shutting off completely as seen with the faulting channel. I would have either expected the non-fault channel to continue functioning with no disruption from the other faulting channel or I would have thought the non-faulting channel would have had the same auto retry signal during the fault, but I did not expect this 'noise' result. Any further understanding of the auto retry function would be greatly appreciated.

ROM_PWMGenConfigure(PWM0_BASE, PWM_GEN_0, (PWM_GEN_MODE_UP_DOWN |

PWM_GEN_MODE_NO_SYNC |

PWM_GEN_MODE_FAULT_EXT | PWM_GEN_MODE_FAULT_MINPER |

PWM_GEN_MODE_DBG_STOP));

ROM_PWMGenFaultConfigure(PWM0_BASE, PWM_GEN_0, 25000, PWM_FAULT0_SENSE_LOW);

ROM_PWMGenFaultTriggerSet(PWM0_BASE, PWM_GEN_0, PWM_FAULT_GROUP_0, PWM_FAULT_FAULT0);

ROM_PWMOutputFault(PWM0_BASE, PWM_OUT_0_BIT, TRUE);

ROM_PWMOutputFaultLevel(PWM0_BASE, PWM_OUT_0_BIT, FALSE);

  • Simple minded suggestion (specialty of this reporter) follows:

    As you don't need fault handling (Ch 2) - would not switch of that 2nd PWM channel - to a separate PWM Generator - solve? You may have to "sync" those - should this alternative appeal...

    Believe that I was the first/earliest proponent of such PWM "shut-down" (via minper) - yet we always killed all six of our PWM outputs - and each behaved...

    You may wish to (experimentally/systematically) reduce the length/value of "minper" - such may reduce the "ghosting" your report suggests...

  • Thank you for the suggestions.

    I would agree with your assessment that moving ch2 to a different generator would be a valid solution to such problem; however, my system sets up with a independently fault handled output on every generator. Therefore, I do not have the option of moving generators without experiencing the same issue.

    I will try experimenting with the 'minper' to see if that alters the results in any way.
  • KM01 said:
    I will try experimenting with the 'minper' to see if that alters the results in any way.

    We employed that mechanism to develop great "cycle by cycle" current limiting control.    And - it was fully, "self releasing" - when the transient condition - causing the over-current released - the PWM onslaught restored quickly/smartly!    And required no (further) SW intervention.    (regulatory agencies like that)

    For giggles - suggest that you simply move those same 2 channels to another channel pair - and see if that "ghost/noise" condition "reappears" - and to the same magnitude.   Knowing little about your circuit/system - there may be sub-optimal board layout - or non MCU issues - which prove causal...