Sorry if this has been asked previously, but I couldn't find anything here or elsewhere on Google (but maybe I'm searching the wrong terms).
I'm trying to design a Type 2 compensator for a PWM chip I'm using. There are two main operating states - a no load state, and a loaded state. The circuit starts in the no load state, and transitions to a loaded state some time later (and never goes back). In order to get loop stability in the loaded state, I need to slow my loop response speed down a lot by lowering the DC gain with the compensator. This, however, causes the response time of the no load state to drop drastically. It's still stable, but it's very slow, and I'd like to speed it up.
I thought about implementing two compensator designs, one for the no load state and one for the loaded state. The way I would switch between these two loops is by changing the input resistance to the compensator (so I can shift the entire gain of the compensator up or down). This could easily be done by an analog switch, which would change the input resistance to either R1 or R1||R1a.
I'm not exactly sure what happens during the transition between the two compensator designs. I can't find any literature about trying this out, though like I said, I might not be searching the right terms. Any insight would be appreciated!