Part Number: TMS320F280025C
Other Parts Discussed in Thread: C2000WARE
Greetings all,
I am trying to find a good sample of setting up a PWM trip function.
I want to Use CMPSS4 "high" to trip PWM3 (both A and B channels) when the analog signal going in to CMPSS4 exceeds the DtoA value on the comparator.
I'd like it to be a "cycle by cycle" trip (current limiting function) and have PWM enabled at the beginning of each PWM Period.
I have the CMPSS4 fed by the input pin 22 as called out in the analog pin mux.
PWM XBAR trip input is set to trip4 Mux6 set to CMPSS4 CTRIPH.
PWM trip zone action DCAEVT2 and DCBEVT2 are set to "low voltage state".
I've tried a bunch of different combinations for the rest of the DCAEVTx and DCBEVTx settings but the technical reference manual doesn't make a lot of sense in this realm. So, after spending 20 hours on this, I figured I'd just ask.
Anyone know the magic settings to get this to work?