Hi all,
- I'm using bi-direction hall sensor for current sense. (When current = 0A, hall sensor output = 0.8V)
- Can I set cycle by cycle current limit when current is negative, which is, when hall sensor output goes form 0.8V and below?
- I'm using ACOMP_D and want to do CBC current limit when hall sensor output drop below 0.25V.
FaultMuxRegs.ACOMPCTRL1.bit.ACOMP_D_SEL = 0; // THRESH
FaultMuxRegs.ACOMPCTRL1.bit.ACOMP_D_THRESH = 20; // 0.25V
FaultMuxRegs.ACOMPCTRL1.bit.ACOMP_D_POL = 0; // Falling
FaultMuxRegs.DPWM1CLIM.bit.ACOMP_D_EN = 1;
- When I removed the code above, the DPWM outputs PWM for gate drive normally. However, when I enable the code above, DPWM outputs nothing.
Please help! Thank you!