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.

Benefits of "Extended PWM Fault Handling"



Note: Cut/Pasted Search Results w/in the Stellaris driverlib (a png file) here - refuses to post.

PWM_GEN_MODE_LATCH_FAULT is listed several times as a valid parameter w/in SW-DRL-UG-8555.  This appears to be not the case.  Search above - w/in Stellaris driverlib - shows no recognition of this parameter name.

Instead - believe an "old standby" from earlier SW-DRL-UGs does work:  PWM_GEN_MODE_FAULT_LATCHED.

Stellaris MCU's w/this Extended PWM Fault Handling may contain multiple, PWM Fault Pins - each able to exert control over its "mated' PWM Generator along with the very welcome ability to control other PWM Generators - as well.  (even all of them - via a single PWM Fault Pin!)  This capability yields many enhancements to design - which previously required external, add-on gating hardware and control signals from the MCU.  Much - if not all of these enhancements - may now be achieved solely w/in the Stellaris MCU.  (note - I am not paid endorser of these/related products)

Using the latter (Fault_Latched) I was able to nicely have even a brief fault signal - on an M4F's "fault pin" - cause immediate cessation of PWM activity across all 3 of my running PWM Generators - just as hoped.   The MCU's latch mechanism held all generators OFF - till the function, "ROM_PWMFaultIntClearExt()" was later, properly called.  (this done after my code identified the fault's cause - and determined that it was transient in nature.)  Without such an "automatic" Output ON/OFF mechanism - we would have been forced to "shut-down - and then Re-Start!"   (Not an especially graceful method of recovery)   Instead we now can "kill" the outputs (briefly/programmably)  and then test/measure to determine if the Fault's Cause has cleared - and often Continue w/out unnecessary shut-downs. (or even slow-down)

Rare that so elegant and robust a solution can be so quickly & easily developed - look for Stellaris MCU's supporting, "Extended PWM Fault Handling."  Slight word mangling w/in 516 pg doc - hereby ID'ed/corrected - may save you search time/head-scratching...