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.

Using ADC PPB limit detection to CBC tripping ePWM

Other Parts Discussed in Thread: TMS320F28377S

Hello.

I'm using TMS320F28377S. I try to trip a ePWM module cycle by cycle with the ADC PostProcessingBlock limit feature. But if my ADC values reaches the threshold the PWM is tripped permanently even if the ADC value falls under the threshold.

I think this is because the flag in ADCEVSTAT register remains set until I clear it manually. But that is not suitable for CBC tripping.

How can I solve this problem?

Thanks

BR

Christian

  • Hi Christian,

    What functionality in the PPB are you utilizing?

    It is usually best to utilize the comparator for CBC tripping (ie peak-current mode/TM type situations).  In many situations, there is a comparator path that can meet a similar need that the PPB was going to be used for.

    If you still wish to use the PPB, you could have the PPB generate an interrupt and clear the PPB flag inside that interrupt.


    Thank you,
    Brett

  • Hi Brett,

    I will try the CMPSS module instead ADC PPB.

    Thank you for your answer.

    BR

    Christian