Hi,
We are developing a totem-pole PFC based on UCD3138. We use the example code from the PFC EVM.
We are having a problem tracking down why the MCU sometimes stops the DPWM module.
We notice that each time this happens the DPWMOVERFLOW bits PWM_A_CHECK and PWM_B_CHECK go high.
Is there any TI documentation explaining when and why this happens?
The only explanation we can find is that "1 = Failed check (override required to enable output)".
It may be relevant that we have paired the outputs DPWM0 and DPWM1 so that we can use the A side of DPWM0 for switching the primary FET during the positive line half-cycle and the A side of DPWM1 for switching the primary FET during the negative line half-cycle.
In other words DPWM0A and DPWM1B are tied together, as are DPWM0B and DPWM1A. The unused channels are set as inputs.
Thanks for the assistance.