Hi all,
I am working on FW development for an interleaved converter and as part of the converter design I am using inductor current measurements, and digitizing them with the on chip ADC in the uC. I had setup my code to use the post processing block to set a lower and upper threshold to allow me to shut off the EPWM modules if excessive current was being drawn. That works just fine, but I wanted to make the fault condition able to be cleared without having to cycle power the microcontroller. I created a macro that allowed me to send the TZCLR bits to the DCAEVT1/DCBEVT1 flags I was using. I can see that code being executed but the faults persist. I looked at my ADC configuration and I noticed in the technical reference manual for the part, there is mention of the CBCEN bit to allow the post processing block to self clear the ADCEVTSTAT bit. I would prefer to not have to manually clear that bit in addition to clearing the TZFLG bits. I'm using 8 EPWM modules, and it's a lot of extra overhead. I went to look at enabling the CBCEN functionality, but I noticed that in the header files provided for reference this particular register is omitted. Is this intentional, or an oversight? If I modify the header files to allow use of the CBCEN bit for the associated ADC, will it work? I'm just trying to figure out what my options are.
Best regards,
Lance