Tool/software: Code Composer Studio
For over current protection respond quickly, use the anlog compartor. when the output voltage under a value or the output current above a value, it is define that the over current protection occur. The output voltage use the anlog compartor of C and the output current use the anlog compartor of D. And the initinal code is as follow:
FaultMuxRegs.ACOMPCTRL1.bit.ACOMP_D_THRESH = OCP_CMP_REF;
FaultMuxRegs.ACOMPCTRL1.bit.ACOMP_D_SEL = 0;
FaultMuxRegs.ACOMPCTRL1.bit.ACOMP_D_POL = 1;
FaultMuxRegs.ACOMPCTRL1.bit.ACOMP_C_THRESH = UVP_CMP_REF;
FaultMuxRegs.ACOMPCTRL1.bit.ACOMP_C_SEL = 0;
FaultMuxRegs.ACOMPCTRL1.bit.ACOMP_C_POL = 0;
If the fault happen, it will be done in the fast interrupt. It will see the flag of CimRegs.FIQIVEC.all and FaultMuxRegs.FAULTMUXINTSTAT.all.
1. I could not find the list of CimRegs.FIQIVEC.all. where can i get it?
2. when the over current occur twice times and recover it, the module could not start up. I see some information through PMBUS. The register of FaultMuxRegs.ACOMPCTRL1.bit.ACOMP_C_INT_EN,Dpwm2Regs.DPWMINT.bit.PRD_INT_EN,Dpwm0Regs.DPWMCTRL1.bit.GPIO_A_EN are all right.
If disable the anlog compartor of C(Vout UVP), the module can start up after the over current occur lots of times. why? And I use debug i/o for see the fault if always happen. But the debug i/o only change sometime. And the wave is as follow:(ch2:debug i/o ch3: current) If the debug i/o change happen, it express that the flaut have been detected.