I want to make a behavioral model of a power supply controller (a vastly simplified UCC28060). I want to do things like trigger a one-shot whenever a voltage drops below zero.
Does anyone have a favorite way to do this?
I'm thinking voltage -> comparator 1 -> 'S' on SR flip-flop -> Q* to gate of FET -> that shorts a current source -> that charges a cap -> comparator 2 -> reset the SR.
This has weaknesses -- not least of which is that the original triggering voltage will be zero as a consequence of the timer being active, which means I need to cook up an edge triggered flip flop (maybe they have a clocked D flip flop I can use).
At any rate, I don't often get to this depth with LTSpice, so if anyone has cleverness to share I'll listen.