Hi bpye. A concern with this approach is that a software error can leave the N-ch FET stuck on which will cause destructive current to flow through the inductor.
So I guess you have accepted this possibility of software error and have chosen to live with it.
To prevent the N-ch FET turning on due to SMPS_SW becoming Hi-Z when the MCU is in RESET you can add a pull up resistor to 3.3V at the base of the BC847 that is controlled by SMPS_SW. This will cause that BC847 to be on by default and force the totem pole to pull low.
To protect the inductor against a short to GND at the HV pin, you should include a series resistor for each nixie anode as part of this power supply circuit. These anode resistors will be several kOhms for your application so current pulled from the 5V rail due to a short to GND on HV will be tiny.
SMPS_PWREN is actually to disconnect the load from the 5V rail when the device is first connected to USB. The USB spec states the maximum capacitive load is 10uF, which the 470uF cap exceeds.
Adding a pull-up does however seem a sensible change. I do also have a 2A PTC on the 5V input, the maximum current I want to draw is 1.5A so that seems reasonable. I do already have the anode series resistors.
Every time I see 'boost', 'flyback' or 'nixie', I link this webpage:
http://www.dos4ever.com/flyback/flyback.html
It has a boost converter design using the venerable 555, and more importantly, explains exactly how it works. I regularly see posts from people who knock up circuits without knowing/caring how they work (although the fact you've simulated one in LTspice means you must have some idea!).
As someone else mentioned, the trouble with using a MCU in the feedback loop is, you're at the mercy the firmware. With a fixed inductor and constant input voltage you have a fixed maximum ON-time before the core saturates. And regardless of how fast the MCU is, it will almost always be significantly slower to react than a half decent closed loop analogue system (even just a comparator with hysteresis). Sure, it has been done many times, and if the load doesn't change quickly then it shouldn't have to react quickly, but it still means you MCU has to pretty much constantly update the PWM.
If you can find a dedicated current-mode boost converter chip that uses an external switch/MOSFET, use it. It will be much better than a 555, which itself is much better than using an MCU.
You can still use the MCU's PWM to modulate the feedback, and therefore, setting/changing the output voltage digitally but I don't think it should be used as the actual switching controller.
If you build the above boost conerter, or design your own and can't get anything to work, I have several, very basic 555 current-mode boost converter designs from way way way back.
I have considered flyback or tapped inductor topologies, my issue is finding a suitable inductor. There are some that would work but it seems the £1 FET I'm using for the simple boost converter is cheaper than the inductors/transformers I'd need for a reasonable flyback/tapped inductor topology. There are a lot with a 1:1 turn ratio but 125V MOSFETs aren't much cheaper, if I could find a good 1:4+ ratio inductor then this would be a nice idea. Coilcraft have a cheap(ish) 1:4 inductor, but, it's saturation current is only 1.3A and I seem to need about 2A to get the 180+V@15mA. For reference,
https://www.coilcraft.com/NA5880.CFM , is the part that very nearly works.
I guess I figured the load shouldn't change too much so having the switcher controlled by the micro wouldn't be an issue, I might take another look at dedicated switcher ICs though. The STM32 should be able to sample the ADC input every 1uS or so, and I'm using the hardware PWM peripheral. I could use it's comparator but I don't think that's really an improvement?
You have got quite a tall order building a supply that works from 5V the switch will see quite high peak inductor currents so will have a relatively high loss over the switch. (My calculations show 0.5A- 1.5A peak inductor current @ 180V out, 10-30mA out..) Given that its an high voltage device a mosfet will have 1-2 ohms RsdOn (Except for BIG mosfets that need a beefy driver to switch on and off) A HV BJT will saturate at ~500mV
One idea would be to boost the +5V to say 15V or use an external power adaptor..
Perhaps you would be better off using a simple switchmode driver IC such as the 34063
Yeah I do need a fairly big FET, as I mentioned I plan to use the BSZ16DN25NS3, it has an Rdson 165m which seems reasonable. This is the reason for the totem pole driver, the max gate threshold is 4V so the USB VBus should be okay. This is the reason for the logic level converter and totem pole output. I definitely want to avoid an external power supply, maybe two stages could work though.
I'm trying to design a boost converter for some nixie tubes, aiming to get around 200V at 15mA
I would just use xenon flash charge controller in continuous mode. One of possible choices is MAX8622. Sure, 1:10 to 1:15 transformer needed, but at least you don't have to invent the wheel.
I would rather avoid Maxim, but I haven't really looked at Xenon flash controllers. Same issue with finding a 1:N transformer as for the tapped boost converter though I suspect.