Hello,
I am trying to use the ePWM module in a very particular way but I am not 100% that my design will in fact work.
Basically, we use two comparators to generate TRIP events based on a high and low threshold of a same analog input.
When the analog input goes above the high treshold, the comparator output is latched after a filtering period.
When the analog input goes below the low threshold, we are trying to reset the latched output on the first comparator.
For that, we thought we could be forwarding the TRIP event of the low threshold comparator (we inverted the output in the cmpss module), towards the digital subcompare module.
Then we were thinking we would redirect the digital subcompare module even to the EPWMSYNCO output of the EPWM module thanks to the Time Base submodule as this sync signal can be used to reset the latched comparator output.
So in our configuration, the inverted output of the low threshold comparator will be remain active as long as the analog input stays below the treshold.
However what I am unsure of is, will it generate successive reset pulses on the DCxEVT.sync output of the submodule which we configured as being triggered when DCxH is high and DCxL don't care ? Or will it generate only a pulse on rising edge of DCxH ?
Note that when thinking about it, as our low threshold is below the high one successive reset would not be an issue but I want to clarify the behavior.
Clément