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.

TMDSCNCD28P65X: Control Card F28P65X

Part Number: TMDSCNCD28P65X
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi Everyone, I hope everyone is doing well I am trying to achieve the following requirement to handle the PWM ON/OFF state using Comparator Subsystem where I have one 1 CMPSS used for both High and Low Voltage state configured with the CMPSSH and CMPSSL to verify it's state with the DAC reference voltage here (1.65v). I have configured Two Trip State here Trip 10 as for the High Trip State and Trip 9 for the Low Trip State. I am using Inputxbar with both trip10,CMPSSH and trip9, CMPSSL state for the EPWM High and Low state, I configured the Trip actions in following below 

FOR PWM4 Trip state action configuration:

TZA Event 3 Low voltage state

TZB Event 2 High voltage state

DCAEVT1 Event 2 High voltage state

DCAEVT2 Event 1 High Impedance

DCBEVT1 Event 1 High Impedance

DCBEVT2 Event 1 High Impedance

Using one shot source for TZ1 and DCAEVT1 to achieve the required state for the PWMS4

 

TZA Event 1 High Impedance for the PWM5

TZB Event 3 Low Voltage

DCAEVT1 Event 1 High Impedance

DCAEVT2 Event 1 High Impedance

DCBEVT1 Event 1 High Impedance

DCBEVT2 Event 1 High Impedance

Using one shot source for TZ1 and DCAEVT1 to achieve the required state for the PWMS5

Goal is to achieve:

PWM4A : Constant or Fixed high state based on the High voltage of "1"

PWM4B : Constant or Fixed Low state based on the High voltage of "0"

PWM5A : Constant or Fixed Low state based on the High voltage of "0"

PWM5B : Constant or Fixed High state based on the High voltage of "1"

At the Moment I am able to achieve the First three with above configuration But for the PWM5B it's Turning PWM at high state of generating Signal instead of Constant value. It's confusing me here. When I am not using GPIO trip High and Low in the main function it give the following below.

Can anyone help me or suggest me anything here. Kindly Thank you.

PWM08 -------> PWMTRIPH

PWM07 -------> PWMTRIPL 

PWM0 -------> PWM4A

PWM1 -------> PWM4B

PWM2 -------> PWM5A

PWM0 -------> PWM5B

I have new account here in forum. Please share your kind suggestions or follow up example or post implemented projects to understand handling of inverting pwm switching state based on the comparator and the trip zone

  • Hi Ahmad,

    Please refer to the C2000Ware example to see how the trip zone feature works.

    But for the PWM5B it's Turning PWM at high state of generating Signal instead of Constant value

    I didn't understand what you are wanting to do ? What do you mean by constant Value ?

    PWM5B : Constant or Fixed High state based on the High voltage of "1"

    What do you mean by "High Voltage of 1" ?

    Thanks

  • Hi Prarthan, I appreciate your valuable comment and time. Thank you, I am trying to achieve basically a over current, under current and No current state with using the one Comparator with two modules both including the High and Low Comparator configuration to verify against the DAC reference voltage state of CMPSSH and CMPSSL. I am able to achieve the first two peak and under current with using DCEVTA and DCEVTB registers by setting up the High/LOW State for DCAEVT1/DCBEVT2 and DCAEVT2/DCBEVT1 with using trip zone state for both Digital Compare module. I am trying to achieve the no current state. At the moment, my low comparator connect to the GND and the DAC reference pin. It's showing the  same constant state for Low pin (GND state) and the DAC reference. The goal is to verify the voltage rating against the DAC reference pin which is 1.65v. My Comparator values are CMPSSH = 2048 and CMPSSL = 1024. So when the CMP pin connected with the DAC pin it need to give a Low voltage state for all pins. No CMPSS including High and Low should be triggered and PWM's should behavior normal at the synchronous mode with it's dedicated Frequency, Duty Cycle and Dead Band state together. i hope you get my point clear right now. If you have any questions to clear. Please let me know Thank you.