Hi
I want to implement hysterisis current controller and i use the analog comparators to get the set and reset signals. I know i can use the external flip flops and drive this flipflops from the comparator output.
But i want to eliminate the external flip flop and tried to use the PWM trip zone. Here comes the problem. Inorder to pull the pin either to high or low need one shot trip (OSHT). I need to use Digital compare submodule to generate the trip events. Digital compare module shall force events (DCAEVT1/2) based on the output signals from the comparators. DCxEVT1 is connected to the OSTH and DCxEVT2 is connected to the CBC. But DCAEVTx is connected to the trip event of ePWMxA module and DCBEVTx is connected to the trip event of ePWMxB module. This means only one event can control the PWM output and it’s not possible to add another event to control the same PWM output. This brings the bottle neck to set or reset the signal on signal changes in comparator submodule.
On the bottom line, i need to realize SR flip flop logic with in the micro controller where the S and R inputs are driven by the high and low comparators of the CMPSS module. Is there any possibility to do this with F28075.