Tool/software: TI C/C++ Compiler
I am trying to use compareter to detect motor short circuit protection. For this I activated all relevant functions in
void HAL_setupAfe(HAL_Handle handle) function in Hal.c file. The comparetor is properly activated. I have enabled both output GPIO 15 to see trip status on CRO & actual trip taking all precautions as per data sheet. I also activated filter comparetor clocks.
Things are working fine, but I have two querries
1. To stop PWM, am I required to set any bits in trip zone register? If yes, which register?
2. If digital filter is activated then
In CTRIPM1STS register, which shows comparetor status, bits CTRIPOUTM1FLG(bit 15) and CTRIPA3FLG(bit 9) bits operate as expected, but
CTRIPOUTMISTS(bit 7) and CTRIPA3STS(bit 1) keep fluctuating between 1 and 0 inside realtime watch window of CCS. & GPIO 15 configured as comparetor status shows high frequency square wave on out put when low and output as high when high (as expected)
however, if digital filter is not used by fluctuating stops.
In view of above, is there any initialization part which I might be missing?