I am trying to understand the following negative voltage generator circuit, but having a hard time following the exact way that it works.
Its purpose is to give a -5V reference supply for the device it's part of. V+ is nominal 9V battery voltage. VGEN is a 3.3V square wave signal (supposedly 17KHz) output by an MCU. V-MON is an input to the MCU, presumably to monitor the negative voltage level.
I sort of understand that the square wave into C23 will result in negative pulse output, which might be used in a more basic circuit with a couple of diodes (and a smoothing cap) alone to generate the negative voltage. But, how this ties in with the transistors and inductors I don't quite get. Well, sort of - I'm guessing that the rest of the stuff is there to amplify the negative voltage to at least -7V in order to feed the 7905 regulator.
With my limited knowledge, I'm thinking that the central part of the circuit may actually be Q1, L2, D1 and C24 - utilising the inductive flyback spike from Q1 turning on and off? And if that's true, and if the purpose of Q2 is simply to toggle Q1, why is a negative voltage pulse necessary on its base? Why not just control it directly from the VGEN signal?
I tried simulating this circuit with the tool at falstad.com (
link), but perhaps I didn't define the circuit correctly, because all I got out (at TP25 on the diagram above) was a seemingly ever-increasing negative voltage! After a few tens of milliseconds of simulation time, it would reach -20V, and keep climbing. I'm wondering whether there is a feedback mechanism being performed by the MCU between VGEN and VMON to maintain a proper output voltage. How would that occur? I suppose it would have to be by altering either the frequency or duty cycle.