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.

TMS320F28388D: Digital Compare and Trip Zone interaction - example?

Part Number: TMS320F28388D
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE

Hello,

I am using a TMS320F28388D controlCARD to develop a peak current control buck converter. I require Cycle-by-Cycle (CBC) trip on the current feedback for control, and One-Shot-Trip (OST) on overcurrent on the same signal.

I am using Mathworks Embedded Coder Support Package for C2000.

Configuring the system, I can get CMPSS1H for the peak control on MUX0/TRIP5 and CMPSS1L for the overcurrent on MUX1/TRIP4, confirmed by monitoring on GPIO.

For Digital Compare, I have

TRIP5 to DCAH

TRIP4 to DCAL

DCAEVT2 to DCAH=H DCAL=x

DCAEVT1 to DCAL=H DCAH=x

For Trip Zone I have

CBC trip on DCAEVT2, force output Low

OST trip on DCAEVT1, force output Low

However, the PWM output never trips even with High asserted on MUX0 or MUX 1.

I'm trying to verify the code output by MATLAB, but the TRM is very confusing, with references like 26.11.4.1 talking about using TZCTL, TZCTLDCA, TZCTLDCB or TZSEL, TZCTL, TZCTL2 but not indicating why one should be used over the other.

Can anyone point me to a example code (specific to the F28388D) which initializes a Type 4 ePWM for the full CMPSS/DC/TZ signal chain?

Thanks in advance.