Part Number: TMS320F28377D
I have configured the Comparator as Window Comparator to trip when the AC current is over range. The offset of AC current sensor is constant:
Offset = 2026;
Cmpss1Regs.DACHVALS.bit.DACVAL = 2212
Cmpss1Regs.DACLVALS.bit.DACVAL = 1839
When I try to test trip using DC power supply the trip occur with about 13A offset. The trip occur below 2212 -> 2138 which means 13A difference! With the reverse polarity is the same problem.
The solution is shifting Cmpss1Regs.DACHVALS.bit.DACVAL and Cmpss1Regs.DACLVALS.bit.DACVAL to get trip in the right place but it does not satisfy me.
Why it occurs?