12
\$\begingroup\$

I'm looking at the TI TPS5430DDAR. In the reference circuit, it has a note to route the feedback trace under the output filter capacitor.

It feels like it would be much more simple/direct to not do that, especially given the rest of the reference layout.

What's going on here?

enter image description here

(This excerpt comes from the TI datasheet for the part, found here https://www.ti.com/lit/ds/symlink/tps5430.pdf)

\$\endgroup\$
1
  • \$\begingroup\$ I added tags for feedback & ripple. Be cause: I felt that this level of det ai;led power supply design Q&A is valuable and finding it by var ious means is helpful. Comment welcome. \$\endgroup\$
    – Russell McMahon
    Commented Nov 18, 2023 at 11:16

2 Answers 2

12
\$\begingroup\$

I doubt it matters.

Appnotes love to go overboard with layout instructions, but without explaining what and why; let alone giving quantitative values, or comparing alternative layouts with measurements.

Mind, so do I. It's fun to ponder layouts and optimize them to find what the limits are. The difference is, I do not fool myself into thinking I'm having a performance impact on the circuit; I do it strictly because it's fun.

So then, What is the performance impact?

The diagram in question, indicates a connection point mere mm away from a potential closer location.

The maximum stray inductance corresponding to this routing decision is a couple nH.

This is because permeability of free space is 1.257 nH/mm. Without stopping to give proof, we can apply dimensional analysis to this constant: simply multiply by the length of trace to get its [low-frequency equivalent] inductance. There is also a geometric constant involved (typically 0.2-0.5, depending on cross-section of the trace with respect to the current return path i.e. ground plane or other nearby conductors), but we can use an overestimate (say 0.5 to 1 nH/mm) when we just want to know a worst-case sort of figure.

Thus, an extra couple nH have been added to the route.

The VOUT trace, too, has some ~nH, as does the capacitor (inductance applies to component lead and body lengths, too!), thus we have some ESL in the path between inductor, capacitor and ground.

This gives us an inductor divider equivalent circuit, where the PH waveform (up to 36V p-p) drops across the filter inductor first (~10s µH), and then the ground-return inductance (including this stray inductance, and the output capacitor's; say ~10 nH total). This gives a worst-case p-p ripple purely due to switching transients alone, on the order of 36mV, at the filter inductor's VOUT pad, and perhaps 10 or 20mV further down (where only the capacitor's ESL applies).

Assuming the feedback trace has no mutual inductance to the VOUT route, the above gives the total and that's that. If not (say this is a 2-layer board), there will be some mutual inductance between these conductors, and perhaps it's closer to 25-30mV even with the distant connection point, or an improvement of maybe 5mV in that case.

Indeed, we see partial confirmation of this analysis in the provided transient waveforms:

enter image description here

The output voltage ripple can be expressed as the superposition of four different waveforms:

  1. A quadratic (near-sinusoid; a triple-integrated square wave, with harmonics going as 1/N3) component, due to triangular inductor current ripple filtered by the output capacitance
  2. A triangular component, due to triangular inductor current dropping across capacitor ESR
  3. A square component, due to capacitor ESL acting as an inductance divider with PH (square wave); or equivalently, the ESL acting as a differentiator against the triangular current ripple
  4. Random noise due to the oscilloscope, and perhaps other quirks of the system (external interference, other ringing content (particularly after the switching edges), etc.)

The noise level looks typical of a contemporary TDS460 or similar family oscilloscope, so we can ignore (4).

We're most interested in the step-like aspect, which is... probably on the order of 2mV here? Assuming the reference design, L = 15uH, and the capacitor 10TPB220M (still available today, impressive!) is 7mm long so we can expect at least 3.5nH ESL; out of 12V supply, we expect 2.8mVpp -- hey, not a bad estimate.

So what?

What difference does it make to the controller? Say we have 2.8 vs. 5.6mV applied to VSENSE, what might happen?

The controller is voltage-mode type. Its bandwidth must be a sizable fraction of Fsw, indeed below \$F_c = \frac{1}{2 \pi \sqrt{L C_\textrm{out}}}\$, and evidently a zero due to capacitor ESR is required as well (a common requirement for voltage-mode controllers). (For these reasons, we see L and Cout constrained by several relations in the given in the application section; a lossy type is also required, or an alternative circuit is given for ceramic capacitors.)

Thus, the controller will be insensitive to changes up here.

Given the block diagram, we might guess, at worst, peak noise could cause additional switching edges; but it seems likely to me, a latching driver circuit is used, so will ignore additional edges through the PWM comparator. (At that, if the error amp passes such frequencies at all.)

Due to the low bandwidth, I expect it is unlikely the controller responds to transients in this frequency range -- that is, Fsw and harmonics.

Personally, I would have no problem using a straight-line connection. My layout might end up different, anyway (due to other constraints, like nearby parts), but what they have is definitely usable. Don't worry about the dog-leg connection, just make it wherever is nearby and convenient.

Other Explanations

Maybe the diagram is not to scale. Perhaps they drew it this way, to imply that the connection should be made, indeed perhaps quite distant from the regulator, to compensate for DC voltage drop inbetween.

I don't see any reference to this offhand. And it's not like the voltage is very accurate: the tolerance of 2% is better than some, but hardly high-precision. Current isn't extreme either, at only 3A; I would gladly deal with DC resistance by simply making the layout resistance low enough not to care.

It certainly can't be connected downstream of subsequent filter components, which would incur excessive phase shift and thus oscillation. (A "zero" cap could compensate for this, like used in the ceramic cap section, but then we're changing the circuit again.)

Another possibility, is that the controller is sensitive to RF noise, and high frequencies (Fsw harmonics) should be minimized at the pin. This doesn't seem likely: the regulator is most likely of CMOS design, and the input structure is likely a CMOS op-amp that is relatively immune to RFI. But, it might also be BiCMOS, and exhibit input rectification due to a bipolar input structure. (The effect of such interference, would be to shift the voltage setpoint up or down, probably by a small amount, given we're talking single-digit mVs here.)

It seems to me, optimizing for stray inductance, without concern towards performance, is the most likely explanation. Put another way: this effort is useless, and its uselessness wasn't realized, basically because appnotes tend to be very shallow and avoid analysis.


About The Regulator

As long as I'm here, I might as well add a few nickels reviewing the part choice itself.

It's not a design win for me. I would recommend changing it to something more effective, if this is a new design. If an existing design, leave it alone.

Rationale:

Voltage-mode controls are bad. There are a variety of complex reasons for this -- some of which I've already touched on, such as compensation -- but the most prominent concern not yet mentioned, is the current limiting behavior.

The description claims some manner of per-cycle current limiting, but stops short of explaining the function, nor of how it transitions to hiccup mode. (My guess is a count of cycles terminated by peak current limiting, which is decremented or reset by "normal" (non-current-limited) pulses, and when incremented to a limit, triggers hiccup; I have seen other devices documented in this way (by TI), and it's anyone's guess why they chose not to discuss it here. Alas, this is par for the course: the general quality of TI's documentation is poor.)

It's noteworthy that the current-limiting functionality is tacked onto the control. Contrast with a peak- or average-current-mode control, where current is strictly defined by the very nature of the control itself; tolerance of startup and short-circuit conditions is natural, a given.

Now, this behavior need not be a show-stopper for any particular application; likely it works fine for 95%+ of generic power converter applications. What is a concern, is if you have an application where you did want continuous current limiting, you can't get it, there's no way to disable the hiccup function (and not that you would want to operate a "voltage mode" converter in current limit for very long anyway; they implement hiccup for good reason!). It's inflexible, and if you have a problem with these functions (maybe your design becomes heavily loaded as elements are added onto it, and it starts triggering the hiccup mode), you have little recourse but to replace the entire chip -- and thus more design work putting in a new one, choosing new components, etc.

Likewise, you have no choice over soft start (fixed ~8ms ramp time), and compensation is fixed internally.

The other aspects are general dynamics: voltage-mode controls generally perform poorly, needing overly large inductor and capacitor. Newer parts of comparable ratings might use 4.7uH and 22uF for example, ceramic capacitor is no problem, and offer comparable or better load-step response. A minor downside is, due to the higher inductor current ripple (say 30-100% of DC out), and perhaps higher Fsw, core losses may be more important; but compact, high-quality inductors are commonplace these days (for exactly this reason), so it's not hard to meet or beat the efficiency. (Not to mention, synchronous converters are readily available, doing away with the schottky's losses as well. These ratings are available in a SOT23-6 now!)


In conclusion, the most important take-away is this: traces, components, etc. (everything really, even distance itself) have inductance. We can apply hand-waved approximations to get a rough estimate (say order of magnitude or better) of stray inductance in a real layout. We can then apply expected signals to these inductances, and estimate the noise voltage due to them.

Don't loose sight of when something is worth improving, versus when it makes no further difference. Layout questions tend to be very uninteresting: most often, they either make a trivial difference, if any at all (which I expect is the case here), or such a gross difference as to be non-functional as given (e.g., ground routed circuitously on thin traces, no local bypass, etc.).

So don't worry about it. Keep the priority routes close (Cin, regulator, diode), and don't be careless with the rest (don't make a huge loop with the inductor and output capacitor, etc.). Most likely, that will be good enough, and anything additional is wasted time.

"Wasted", of course, in the strict functional sense: we can still have fun thinking about these things, and better informing our intuition about how to lay things out, for those occasions when it does matter (higher current, higher speed).

\$\endgroup\$
7
  • 2
    \$\begingroup\$ Wow. Phenomenally in-depth and gave me a lot of insight. For the record, selection was based on it being in JLCPCB's "basic" library for assembly, and it's ultimately stepping 24V down to 3.3V for a microcontroller, so the load isn't anything difficult or dynamic. Would love more insight on part selection, though. \$\endgroup\$
    – Helpful
    Commented Nov 18, 2023 at 0:41
  • \$\begingroup\$ You know, I've spent some time reading through the datasheet and I'm more concerned than I was before. I remember poles and zeros and a lot of these terms from school, but I design power electronics infrequently enough that my confidence is a little shaken. Do you have any recommended resources for learning more so I don't have to blindly follow a datasheet's recommended layout? \$\endgroup\$
    – Helpful
    Commented Nov 18, 2023 at 0:59
  • \$\begingroup\$ I don't get it, first you say it doesn't matter, and the you into full details how the performance will be affected. Details like this may be not that important itself in isolation, but if you start cutting corners everywhere, then it means a product may have mystery hardware unreliabilities or may not pass electrical compliance testing and it's expensive to debug and redo and retest a board which can be sold - usually with just expensive ferrite rings and EMI sealing tape slabbed all over. \$\endgroup\$
    – Justme
    Commented Nov 18, 2023 at 8:31
  • \$\begingroup\$ @Helpful The poles/zeroes aren't so much something to worry about, you just use whatever fixed component values are appropriate. The same is true for most any internally-compensated type (and only less true for hysteretic controls, unless subharmonic oscillation occurs). External compensation gives more freedom over component choice, but of course more work to select more components. Layout has no effect on control poles/zeroes, at least unless it's bad enough it self-interferes. \$\endgroup\$ Commented Nov 18, 2023 at 15:26
  • \$\begingroup\$ @Justme It's less than a cm of trace, around a nearly completely inconsequential node; how broad do you think the scope could be? Yes, this is a specific-case analysis, and a new analysis must be done for other circuits, other layouts. I guess I could be more specific what I mean by "performance": the only externally visible performance metrics are transient response, efficiency, ripple, voltage accuracy, etc. None of which will be affected by the proposed layout change. This is the sense in which I say it doesn't matter. \$\endgroup\$ Commented Nov 18, 2023 at 15:31
21
\$\begingroup\$

The reason for this is that there's a very large ripple current flowing from the output inductor down into the output filter capacitor. The trace between these two isn't perfect (it has resistance and inductance), so there's necessarily a bunch of high-frequency noise at the lower leg of the output inductor. The amplitude of this noise decreases as you get physically closer to the output capacitor because the latter shunts this noise to ground. Therefore it's better to connect the feedback trace in close proximity to the output cap, and also on the side of the cap that's physically farther away from the inductor.

In other words: you don't want large ripple currents to flow past the point at which the feedback trace is connected.

Please excuse my horrible GIMP skills:

Current path

With some napkin math, we can approximately determine the additional noise coupled into the feedback trace if it's connected at the wrong spot along the output trace.

Assuming a 2mm wide, 6mm long, and 35µm thick trace, we get a trace inductance of approximately 3 nH. If we assume that the converter is at 50% duty cycle, has at most 500 mA ripple current (1 A peak-peak), and operates at 500 kHz, we get a current rise and fall time of 1 A/µs. By multiplying this with the 3nH trace inductance, we get an additional induced ripple of +/- 3 mV, or 6 mVpp.

This of course assumes that the power inductor has no parasitic capacitance - in the real world, the additional noise coupled into a wrongly-connected feedback trace will be higher than calculated above, potentially much higher if the inductor has a lot of parasitic parallel capacitance.

6 mV is a lot for a converter that's designed to provide an output ripple of 30 mV or less.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ This is about what I was figuring, thanks for confirming it. \$\endgroup\$
    – Helpful
    Commented Nov 17, 2023 at 20:37
  • \$\begingroup\$ Sometimes it's simpler to specify a way of doing things that avoids pitfalls, than to specify all of the pitfalls that may arise by doing things differently. On the other hand, this may sometimes backfire if following directions would create difficulties, and design compromises required to overcome those difficulties steer the design toward pitfalls that could have been easily avoided. \$\endgroup\$
    – supercat
    Commented Nov 18, 2023 at 17:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.