开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: #qmx Don’t Use USB-C PD to power your QMX?! #qmx


 

Hans,

Also take into consideration that this issue is likely to be amplified by the rapid decrease of the capacitance of the X5R/X7R caps (in case you used them)??C102, C104, C105, C502, C507 under the influence of voltage increase (0->5V->12V).

Q=C*U? where Q is constant, but C decreases (e.g 10%) under the influence of increasing U -> making U even higher (e.g. 10 times higher).

Indeed, with L101 about 1.5R or so supply?DC-resistance, the 1ms software control loop is way too slow and should be in the order of 4ns response time to correct the voltage in C107, difficult to achieve in a ADC polling fashion so this is probably a NO GO as it would have a serious CPU cost.

A simple workaround could be to DELAY the use of switching regulators after powering up. This allows the USB PD device to do the voltage jumps just while only the LDO is active, and limits the sensitivity in all these control loops that are anyway too slow to resolve this issue. As soon as there is a voltage drop (due to a bad cable) you could redo the complete power-up procedure to also be immune in that circumstance.

My view on this is that all effort you put in making the control loops faster will eventually still insufficient to deal with this USB PD voltage steps.

73, Guido

On Sun, Sep 3, 2023 at 3:20?PM Hans Summers <hans.summers@...> wrote:
Hi Evan?

Yes that could be a possibility too. Doing it on the supply rail isn't because there's a capacitor on the potential divider which slows everything down too much. Yes perhaps a fast loop could run just for 5V protection.

Another possibility nobody has mentioned, if hardware modifications are to be contemplated, is just making the zener diodes bigger. What about changing the 500mW zener to a 5W type?

It also all depends what "problem" we are trying to "solve". Being able to cope with a sudden jump in supply voltage from 6V to 12V? Or something more?

73 Hans G0UPL


On Sun, Sep 3, 2023, 3:03 PM Evan Hand <elhandjr@...> wrote:
Hans,

Is it possible to set an interrupt routine based on time to sample the 5-volt input and shut down the output when it reaches a threshold value greater than 5 volts but less than the 5.6-volt zener voltage?? If the timing of the power loop is 1 ms, the fast interrupt loop would need to be on the order of 0.25 ms to be effective.? This would be a very short routine to sample and shut down only.? I have used this concept in industrial control systems to handle alarm conditions with insufficient processor capability to run the entire program within the required time.?

An alternative is to store the value of the input voltage and turn off the PWM signal until the voltage stabilizes for several slower control loop cycles.

There are many strategies possible with the fast timed interrupt loop.??The A-to-D conversion times do come into play.? For the control situation, a direct read capability bypassed normal I/O processing.

73
Evan
AC9TU

Join [email protected] to automatically receive all group messages.