I’m trying to build a hysteretic current controller using KSKelvin’s ideal comparator.
When I test the hysteresis comparator with a sinusoidal input, it works perfectly. However, when I integrate the controller into a branch that emulates a buck converter, the system no longer behaves correctly.
I would appreciate any help or suggestions on what might be causing this issue.
There are at least two types of hysteresis comparator circuits. I think you have to use the HMITT comparator to build that instead of my ideal comparator. I saw that you used HMITT with Vt and Vh, so do you specifically want to build it with a resistor network?
Thank you very much, Kelvin. Changing to the HMITT comparator solved the issue and the circuit now works perfectly.
By the way, were you proposing an alternative solution? I saw your comment regarding the resistor network and would be interested in learning more about that approach.
Do you know you can config a HMITT with Vh and Vt to achieve hysteresis? If you just looking for such function and not a practical circuit to implement.