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.

TIDM-02002: Setting comparator output inversion for an inverted Rogowski coil

Part Number: TIDM-02002

Assuming that I put the Rogowski coil on the secondary side in reverse, should I invert the output from the comparator from this:

void CLLLC_HAL_setupSynchronousRectificationAction(uint16_t powerFlow)
{
    if(powerFlow == CLLLC_POWER_FLOW_PRIM_SEC)
    {
        ...
        ...

        CMPSS_configHighComparator(CLLLC_ISEC_TANK_CMPSS_BASE, CMPSS_INSRC_DAC | CMPSS_INV_INVERTED);
        CMPSS_configLowComparator(CLLLC_ISEC_TANK_CMPSS_BASE, CMPSS_INSRC_DAC);
        
        ...
        ...
    }
}

to this:

void CLLLC_HAL_setupSynchronousRectificationAction(uint16_t powerFlow)
{
    if(powerFlow == CLLLC_POWER_FLOW_PRIM_SEC)
    {
        ...
        ...

        CMPSS_configHighComparator(CLLLC_ISEC_TANK_CMPSS_BASE, CMPSS_INSRC_DAC);
        CMPSS_configLowComparator(CLLLC_ISEC_TANK_CMPSS_BASE, CMPSS_INSRC_DAC | CMPSS_INV_INVERTED);
        
        ...
        ...
    }
}

or it will always give incorrect (inverted signal for tripping EPWM?