I breadboarded a little voltage booster. Here's the business end of the circuit:
+5v | ,------------+ | | | | | ) | )220uH /e )-1k--| | \c ,----+--+-->|--+--out | | | | | | 68pF = | | | | | /c | | '--470--+--| - | | \e ^ = 4k7 | | | | | | | '----+--+------' | gnd
The pnp is driven by a square wave. I also have feedback from the output, which I didn't show in this drawing, controlling the duty cycle to keep the output voltage steady at 16 volts. I used jelly bean transistors, Pn2222 and PN2907. The inductor has a fraction of an ohm resistance. The circuit is running at about 15kHz with light load. I only needed a few tenths of a watt for my purposes. I scoped the circuit. When the npn switch turns off the voltage at the collector jumps to 16 volts and clamps there, as it should. But when the voltage at the collector drops below the voltage on the filter cap, the inductor rings.
The diode clamp across the emitter-collector and the 68pF cap are there to adress this. The diode clamps the initial negative excursion at the collector. The base-collector cap damps the ringing. Without that cap in place, ringing is quite pronounced. It starts out with a magnitude of ten volts, decays exponentially and is still ringing when the npn switch turns on in the next cycle. The cap cuts the intial amplitude of the ringing from about ten volts to about two, and it dies out much faster.
Is the ringing of the inductor unavoidable in a circuit like this?