Dear forum members,
I am designing an STM32-based measurement device where the MCU will be able to control its own power supply voltage. It will do so because it's required to have adjustable logic levels. Nothing fancy, just switch between 1.8V, 2.5V and 3.3V.
I want to do so by switching the feedback resistors of an adjustable output LDO (
https://www.onsemi.com/pdf/datasheet/ncp705-d.pdf ) through external NPN transistors to ground. The feedback network will be of lower impedance than recommended - this will be to make sure that the capacitance to ground added by the inactive NPN transistors and the resistors they are switching will not affect the feedback network significantly.
The safety will be ensured by the calculation of the feedback network that the only way to achieve maximum voltage will be to turn on both transistors. By default (transistors open), the output voltage would be 1.8V, by switching on the additional parallel resistors, the voltage can be increased, but only to 3.3V.
Pretty much the schematic in the attachment (the actual LDO will be different and the resistance values will be for a different feedback, this is just a convenient model I have in LTSpice to test out the concept).
My question is whether there could be any issues with this sort of dynamic input voltage switching? By dynamic I mean once every few seconds at worst and not during any critical operations, with enough time for everything to settle to the new voltage. Of course the brown out will be set to the minimal value. There will be no USB, only logic in, logic out, and the ADC will check itself against an external 1.25V reference, and there'll be no fancy ADC stuff anyway.
My gut tells me that this should work. The only thing that I can think of is that some PLL will need to re-lock briefly or something?
Can you see any issues?
Thanks,
David