33
\$\begingroup\$

I designed my first PCB for a DC-DC boost converter only to find that it produced very noisy output. The design is based around the MIC2253.
Here's a schematic:

Schematic

Although my circuit allows for different combinations of input voltages (Vin) and output voltages (Vout). The case I am debugging is with Vin=3.6V and Vout=7.2V. The Load was a 120 ohm resistor. I calculated the duty cycle D=0.5 (i.e. 50%). This seems to be within the 10% minimum and 90% maximum duty cycle limits specified in the datasheet. The other components, i.e. caps, inductors, resistors are the same or similar to what the data sheet suggests in its application example.

The design appears to give the correct RMS step up voltage on the output, but, after viewing the signal through an oscilloscope I see damped sinusoidal voltage oscillations appearing periodically which seems to be initiated by the switching of the inductor. I see the same oscillations on almost every ground point on the board. The oscillations on the output are large, that is 3 V peak to peak. After doing a bit of research it seems that my problems are not particular to my choice of converter, but, to problems with my PCB layout (see links below). I'm not sure how to fix my layout to ensure acceptable results.

These documents seem useful for debugging the problem:

I've attached three images. "original pcb.png" contains an image of the board I am having issues with. It is a 2 layer board. Red is the top copper. Blue is bottom copper.

original pcb.png

"current loops.jpg" shows the prototype board with orange and yellow overlays of the two different current paths used to charge (orange) and discharge (yellow) the inductor. One of the articles, ( http://www.physics.ox.ac.uk/lcfi/Electronics/EDN_Ground_bounce.pdf ), suggested that the two current loops should not change in area, thus, I tried to minimize their the change in area in a new layout I started in "pcb_fix.png". I hacked the original PCB so that it was closer to this new layout, but, the performance of the board didn't change. It is still noisy! The quality of the hack isn't as good as shown in "pcb_fix.png", however, it is a fair approximation. I would have expected somewhat of an improvement, but, I didn't see any.

current loops.jpg

pcb_fix.png

I'm still not sure how to fix this. Maybe the ground pour is causing too much parasitic capacitance? Perhaps the caps have too much impedance (ESR or ESL)? I don't think so, because they are all ceramic multilayer and have the values and dielectric material requested by the datasheet, i.e. X5R.Perhaps my traces might have too much inductance. I chose a shielded inductor, but, is it possible that its magnetic field is interfering with my signals?

Any help would be very appreciated.

At the request of a poster, I've included some oscilloscope output under different conditions.


Output, AC Coupled, 1M Ohm, 10X, BW limit OFF:
1M Ohm, 10X, BW limit OFF


Output, AC Coupled, 1M Ohm, 10X, BW limit OFF:
1M Ohm, 10X, BW limit OFF


Output, AC Coupled, 1M Ohm, 10X, BW limit 20Mhz:
1M Ohm, 10X, BW limit 20Mhz


Output, AC Coupled, 1M Ohm, 1X, BW limit 20Mhz, 1uF, 10uF, 100nF caps and 120 ohm resistor shunting output, i.e. they are all in parallel:
1M Ohm, 1X, BW limit 20Mhz, 1uF, 10uF, 100nF caps and 120 ohm resistor shunting output


Switching Node, DC Coupled, 1M Ohm, 10X, BW limit OFF

Switching Node, DC Coupled, 1M Ohm, 10X, BW limit OFF


Switching Node, AC Coupled, 1M Ohm, 10X, BW limit 20Mhz

Switching Node, AC Coupled, 1M Ohm, 10X, BW limit 20Mhz

ADDED: Original oscillations attenuated greatly, however, under heavier load new undesirable oscillations occur.

Upon implementing several of the changes suggested by Olin Lathrop, a large decrease in oscillation amplitude was observed. Hacking the original cicuit board to approximate the new layout helped somewhat by bringing down the oscillations to 2V peak to peak:

Hack to approximate new layout

It will take at least 2 weeks and more money to get new prototype boards so I am avoiding this order until I sort out the problems.

The addition of additional input 22uF ceramic capacitors made only a negligible difference. However, the overwhelming improvement came from simply soldering a 22uF ceramic cap between the output pins and measuring the signal across the cap. This brought the noise maximum amplitude to 150mV peak to peak without any bandwidth limiting of the scope!! Madmanguruman suggested a similar approach, with the exception that he suggested altering the probe tip instead of the circuit. He suggested putting two caps between ground and the tip: one 10uF electrolytic and one 100nF ceramic (in parallel I assumed). In addition, he suggested limiting the bandwidth of the measurement to 20Mhz and putting the probes on 1x. This seemed to have a noise attenuating effect as well in about the same magnitude. I guess I can conclude that there was originally insufficient capacitance at the output. new ceramic cap on output kills most ringing

I'm not sure if this is a acceptably low noise floor or even a typical noise amplitude for a switching converter, but, it is a massive improvement. This was encouraging so I went on to test the robustness of the circuit under more significant loading.

Unfortunately, under heavier loading the circuit is producing some new weird behaviour. I tested the circuit with a 30 ohm resistive load. Although the board does still boost the input voltage as it should, the output now has a low frequency sawtooth/triangle wave output. I'm not sure what this indicates. It looks like constant current charging and discharging of the output cap to me at a much lower frequency than the switching frequency of 1 Mhz. I am unsure why this would happen.

Output under heavy load

Probing the switching node under the same test conditions showed a messy signal and horrible oscillations.

switching node under heavy load switching node under heavy load zoomed

Solution Found

The question has been answered and the circuit is performing adequately. The problem was indeed related to the stability of the control loop as Olin Lathrop suggested. I received may great suggestions, however, Olin was the only one to suggest this course of action. I therefore credit him with the right answer to my question. However, I greatly appreciate everyone's help. Several of the suggestions made were still relevant to improving the design and will be implemented into the next revision of the board.

I was compelled to follow Olin's advice also because I noticed that the frequency of the sawtooth/triangle output had the same frequency of appearance as the square wave portion of the signal at the switching node. I thought that the ramp up of the voltage on the output was due to successfully energizing the inductor and the ramp down was due to failure to adequately energize the inductor during the oscillatory portion of the signal on the switching node. It made sense that this was a stability problem because of this.

By following Olin's suggestion to take a closer look at the compensation pin, I determined that increasing the capacitance of the RC series network on the comp pin restored the stability of the control loop. The effect that this had on the switching node was significant as can be seen by the square wave output:

switching node with fixed rc on comp pin

The low frequency sawtooth/triangle wave was eliminated.

output after comp rc fix

Some high frequency noise (100Mhz) may still exist on the output, but, it has been suggested that this is just an artefact of the measurement and disappears when the 200Mhz scope's bandwidth is limited to 20Mhz. The output is pretty clean at this point:

final bandwidth limited output

I suppose I still have some questions regarding the high frequency noise, however, I think that my questions are more general and not specific to this debugging question, so, the thread ends here.

\$\endgroup\$
22
  • 2
    \$\begingroup\$ Thanks for the reply. I didn't follow the recommended layout because my circuit was somewhat different, i.e. it had a few more components. I also wouldn't learn anything if I copied the layout. It was my goal to learn principals and best practices for layout. The Vin=3.6V Vout=7.2V. I'm not sure about the duty cycle. Load was a 120 ohm resistor. \$\endgroup\$ Commented Nov 29, 2011 at 3:52
  • 1
    \$\begingroup\$ You should post the waveforms that you're describing. Even a digital photo of the scope readout would be helpful. A schematic would be useful too. \$\endgroup\$ Commented Nov 29, 2011 at 14:34
  • 3
    \$\begingroup\$ @Olin - You've been bothered several times by large images. Is something wrong with your browser? In Chrome (and every other browser I'm aware of/have used), the image is just as wide as the question (here's a large screenshot to show you what I see: i.sstatic.net/iyNZk.png), and you can right-click -> "view image in new tab" and it will adjust to the size of your window. Also, an ability to provide answers in a minute or two is usually a sign of an overly simple question; it ought to take 15 minutes to half an hour to craft a knock-out answer for a really good question. \$\endgroup\$ Commented Dec 1, 2011 at 14:36
  • 1
    \$\begingroup\$ @OlinLathrop - What browser, browser version, OS, and OS version? With more details, we can reproduce the problem, investigate, file a bug report, and get it fixed. I'm shocked that it's rendered at that size; all.css contains the rule .post-text img { max-width: 630px; }, which ought to resize every image on every post to a reasonable size. I don't object to posting large images; they'll compress quite nicely in PNG and we can open the image in a new tab and zoom in to check, say, pin overlap and grid matching errors. \$\endgroup\$ Commented Dec 1, 2011 at 15:45
  • 3
    \$\begingroup\$ @Olin Lathrop: I'd seriously suggest updating your browser. IE6 was XP's default before service packs, Win2k is possibly IE5. I think you'll find most web sites these days just flat out don't support those. I'm surprised this site is usable at all. The image size would cause an excessive download time, though (since it's the browser that does the resizing)... so your point is still valid. \$\endgroup\$
    – darron
    Commented Dec 4, 2011 at 18:31

5 Answers 5

26
+250
\$\begingroup\$

Your schematic is excessivly large and layed out in a confusing way, which discourages people from responding. Don't draw grounds going upwards, for example, unless the parts really are coming from a negative voltage. If you want others to look at a schematic, give them some respect. Don't make us tilt our heads to read things and make sure text doesn't overlap other parts of the drawing. Attention to these details not only helps your credibility, but it also shows respect from those you are seeking a favor from. I did see this question earlier, but all the above made me think "too much trouble, screw this", and then I went on to something with a lower hassle factor.

You gave us a bunch of details, but forgot about the obvious high level issues. What voltage is the output supposed to be? You mentioned boosting somewhere in your lengthy writeup, but there also appears to be "7.2V" written by the output connector. This doesn't match with "2.5V-10V" written by the input. From how the inductor, switch, and diode are wired, you have a boost topology. This isn't going to work if the input exceeds the desired output voltage. What are your actual input and output voltages? At what current?

Now to the ringing. First, some of these things are clearly scope artifacts. You have a very small (2.2µH) inductor. I didn't look at the controller datasheet, but that sounds surprisingly low. What switching frequency is the controller supposed to operate at? Unless it's a MHz or more, I'm skeptical about the 2.2 µH choice for the inductor.

Let's look at some of your scope traces:

This is actually showing a reasonably expected switching pulse. From this we can also see that the switching frequency, at least in this instance, is 1 MHz. Is that what you intended?

The trace starts at the left with the switch closed so that the inductor is charging up. The switch open at 100 ns and the inductor output therefore immediately rises until its current starts dumping thru D1. That is at 8V, so the output voltage is apparently something like 7.5V considering D1 is a Schottky diode but is getting a large current pulse (it would be good to know how large, or at least how large the average is). This goes on for 300 ns until the inductor is discharged at t=400ns.

At that point the output side of the inductor is open and is only conected to parasitic capacitance to ground. The inductance and this parasitic capacitance form a tank circuit, which is producing the ringing. There are only two cycles of this ringing before the next pulse, but note how it is decaying slightly. The little remaining energy that was left in the inductor after the diode shut off is now sloshing back and forth between it and the capacitance, but each cycle a little is getting dissipated. This is all as expected, and is one of the characteristic signatures of this kind of switching power supply. Note that the ringing frequency is about 5 MHz, which in a real commercial design you have to be careful to handle to avoid it radiating. This ringing can actually be the main emission from a switching power supply, not the pulse frequency as many people seem to assume.

We can also see that the ringing is decaying towards a bit below 4V, which tells us the input voltage you were using in this case. This confirms it really is operating as a boost converter with about 2x stepup, at least in this case. The 2x stepup is also confirmed by the roughly equal inductor charge and discharge phases, which are 300 ns each in this instance.

The free ringing tank circuit phase is brought to a abrupt end when the switch turns on again at t=800ns. The switch stays on for about 300ns charging up the inductor and the process repeats with about a 1 µs period.

This scope trace actually shows things working as expected. There is no smoking gun here.

You complain about output oscillations, but unfortunately none of your scope traces show this. The early ones aren't meaningful since they are most likely showing scope artifacts and common mode ground bounce showing up as a diffential signal. Even this one:

Isn't telling us much. Note the sensitive voltage scale. There is nothing surprising here at 20 mV/division. Some of this is almost certainly the common mode transients confusing the scope so that they show up as differential signal. The slower parts are the diode conducting and then not conducting, and the current pulse being partially absobed by the capacitor.

So, this all gets down to what exactly is the problem? If you are seeing large scale voltage fluctuations on the output over a number of switching cycles, then show that. That's what I thought you were originally complaining about. If that is the case, then take a careful look at the compensation network for the switcher chip. I didn't look up the datasheet, but from the name "comp" for pin 12 and the fact that C4 and R2 are connected to it, this is almost certainly the feedback compensation network. Usually, datasheets just tell you what to use and don't give you enough information to come up with your own values anyway. Read that section of the datasheet carefully and see if you have met all the conditions for using the values you did. Those are the suggested value for this part, right?

Added:

I meant to mention this before but it slipped thru the cracks. You have to make sure the inductor is not saturating. That can cause all sorts of nasty problems, including large transients and control instability. From the first scope trace I copied, we can see that the inductor is being charged for 300 ns from about 3.8 V. 3.8V x 300ns / 2.2µH = 518mA. That is the peak inductor current in this case. However, that is at a rather low output current. Again from the scope trace we can infer the output current is only about 75-80 mA. At higher output currents the peak inductor current will go up until eventually the controller will run in continuous mode (I'm guessing, but that's likely). You have to make sure the inductor current doesn't exceed its saturation limit over the full range. What is the inductor rated at?

Added2:

I think there are two basic problems here:

  1. You are expecting a switching power supply to have low noise like linear power supplies you have looked at. This is not reasonable.

  2. You are getting a lot of measuring artifacts which make the output look a lot worse than it really is.

Your original layout didn't help matters. The second one is better but I still want to see a few improvements:

Unfortunately you have the tStop layer turned on cluttering up what we really want to see, but I think we can still decipher this picture.

You now have a direct path from the diode thru the output cap back to the ground side of the input cap without cutting accross the ground plane. That's a big improvement over the original. However, you've got the ground plane broken up with a big L shaped slot in the middle that extends all the way to the bottom edge. The left and right parts of the bottom of the ground plane are connected only by a long about route. This could be easily fixed by reducing the excessive spacing requirement around some of your nets, and by moving a few parts just a little. For example, there is no reasons the two very large vias to the right of the + input couldn't be a litte farther apart to let the ground plane flow between them. The same things is true to the left of R3, between the cathode of the diode and C5, and between the board edge and D1.

I also think you have too little capacitance both before and after the switcher. Change C1 to 22µF like C5, and add another ceramic cap immediately between the two pins of JP2.

Try a new experiment with the new layout. Manually solder another 22µF cap directly between the pins of JP2 on the bottom of the board. Then clip the scope probe ground to the "-" pin (not some other ground point on the board, directly to the "-" pin only) and hook the probe itself to the "+" pin (again, right at the pin, not some other point on the output voltage net). Make sure nothing else is connected to the board, including any other scope probes, ground clips, grounding wires, etc. The only other connection should be the battery, which should also not be connected to anything else. Keep this setup at least a foot or so away from anything else conductive, particularly anything grounded. Now look a the output waveform. I suspect you will see substantially less of the noise that appeared to be in the first scope trace you posted.

\$\endgroup\$
9
  • 3
    \$\begingroup\$ Olin, Thanks very much for your considerable insight. You are clearly an expert and I am learning a great deal from your analysis and thought process. I appreciate the high standard you insist on from a question poster. I agree in some cases I left out basic information, which I have now corrected by editing it into the original question. Although I am a highly educated and skilled mechanical engineer, my formal training and experience in electrical engineering are practically non existent. I meant no disrespect by not meeting the schematic drawing standards, which I have not learned yet. \$\endgroup\$ Commented Dec 1, 2011 at 17:35
  • 2
    \$\begingroup\$ Vin = 3.6V, Vout=7.2V. The switching frequency is indeed 1Mhz and is not user selectable. Although it is a low value inductor (2.2uH), it is what the data sheet specifies. Its saturation current is 4.2A. This is the inductor I am using: (search.digikey.com/ca/en/products/NR6028T2R2N/587-2098-1-ND/…). I am using the recommended resistor and capacitor value on the comp pin. Thanks very much for your insight into what is happening at the switching node. I did not understand the signal there until I read your explanation. \$\endgroup\$ Commented Dec 1, 2011 at 17:51
  • 1
    \$\begingroup\$ @DaveMech: The overall issue still comes down to what exactly is the problem you are seeing? Are you bothered by the apparent pulse by pulse noise on the output or larger and slower voltage fluctuations? It would help if you went thru my post and specifically answered the questions I asked. I asked each one for a reason, whether the reason is apparent to you or not. You have cleared up the input and output voltages and current (3.6V in, 7.2V and 60mA out), but the other questions remain. \$\endgroup\$ Commented Dec 1, 2011 at 17:53
  • 1
    \$\begingroup\$ @DaveMech: I see you were answering as I was typing my last comment. It sounds like things are working as intended and the inductor is definitely not saturating. Now I'm back to not really sure what the overall complaint is. \$\endgroup\$ Commented Dec 1, 2011 at 17:57
  • 4
    \$\begingroup\$ Thanks Olin, your guidance regarding the compensation network was correct. There was a control instability which has now been solved. I updated the question with the solution if you are interested. I will go on to implement your suggestions regarding layout. Thanks for your help. \$\endgroup\$ Commented Dec 5, 2011 at 16:05
6
\$\begingroup\$

I would first check that the problem you are chasing really exists and is not an artefact from poor grounding of the oscilloscope. I have spent quite a few hours chasing down noise on power supply rails only to find that it disappeared (well almost) when I used the ground connection on the oscilloscope probe, instead of a separate wire to the oscilloscope.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ Thanks for the suggestion. I was using the aligator clip leads on my probe to ground. I decided to try replace this method of grounding with a grounding ring on the probe to provide an even lower inductance lead to ground. I still measure the noise. \$\endgroup\$ Commented Nov 29, 2011 at 18:06
6
\$\begingroup\$

"Proper" ripple and noise measurement in the power supply world is done very specifically to avoid picking up CM noise.

If you're not afraid to mangle an oscilloscope probe, try removing the hook, solder a \$10 \mu F\$ electrolytic and \$ 100 nF\$ ceramic capacitor directly between the probe tip and the ground ring, then connect the probe as close as possible to your output connector (try using some of the electrolytic capacitor's excess leads to make the connection). Set your scope to 20MHz bandwidth limit and \$ 1 M \Omega\$ input impedance.

If the ripple waveform you now see looks radically different, I would conclude that your original measurement was flawed due to CM pickup. Otherwise, you have a legitimate noise issue on your hands.

Update 1: I see that you have hard-wired AGND and PGND together on your schematic as well as on your layout, and that your compensation components are going to the power ground separate from the AGND pin. This is "a bad thing". Look closely at the Micrel reference layout. The compensation and soft start capacitor returns all are routed to a private ground, which then is connected to AGND, then to PGND. This ensures that no heavy switching current will disturb the sensitive compensation and control components.

There appears to be HF ringing when your switch turns on, judging by the switching node waveform you've provided. This IC doesn't give you control of the turn-on and turn-off time (the FET is integrated) so you may need to try a different boost rectifier diode, or add some snubbers to quiet the ringing.

\$\endgroup\$
7
  • \$\begingroup\$ Thanks for the suggestion. I assume CM stands for Common Mode? I added the components you suggested to my circuit instead of the probe, since this is electrically equivalent and doesn't damage my probe. I also limited the bandwidth and put my probe on 1x. The noise was greatly reduced from 3V p-p to 120mV p-p. However, isn't this cheating? By limiting the bandwidth I am simply ignoring higher frequencies where the noise lies. Just because I don't look at it doesn't mean it is not there. \$\endgroup\$ Commented Nov 29, 2011 at 18:16
  • 1
    \$\begingroup\$ The 1x probe and the extra caps just load the circuit at the test point and thus greatly affect what I am trying to measure. Thus, I am simply tainting my measurement by loading the circuit. Again, I am hiding what exists by loading the circuit, however, the source and cause of the noise still exists. \$\endgroup\$ Commented Nov 29, 2011 at 18:16
  • \$\begingroup\$ Every major power supply company uses this method. Many customers put this method directly into their specifications. You cannot assume that what you're seeing is actual ripple and noise unless you take precautions to prevent your probe from picking up CM noise. link 1 link 2 Disclaimer: IAAPSD (I am a power supply designer) \$\endgroup\$ Commented Nov 29, 2011 at 20:58
  • \$\begingroup\$ Madmanguruman, Thanks for your links and advice. I had not heard of CM noise or these testing specifications prior to this. I will continue to read more on CM noise and measurement techniques and hopefully I can come to an understanding that settles this problem. My feeling is there is still probably too much noise to be only a CM current problem. It will take some work on my part to resolve this. Thanks for your help. \$\endgroup\$ Commented Nov 30, 2011 at 1:34
  • \$\begingroup\$ Response to update1: I did try to observe the issue of separating analog and digital grounds in the layout. The reason you do not see this reflected in the schematic is because the EDA software I was using, Cadsoft Eagle, doesn't allow you to connect two grounds without overriding the net name of one of the grounds with the other. I have made eagle parts that allow two grounds to be connected on the schematic while preserving their net names and be electrically connected on the layout. But, this lead to DRC errors in the layout due to overlapping conductors with different net names. \$\endgroup\$ Commented Dec 4, 2011 at 19:13
4
\$\begingroup\$

I think that your layout for the regulator is far to large - Check the provided example in the data sheet:

MIC2253 Recommended Layout

All of the filters are directly next to the IC (C5 in particular). Your output cap for example (C5) appears to be over an inch from the IC. Having C3 as far away as you do for the voltage selection may also cause a problem (Noise induced on the FB pin might cause erratic switching?)

Don't let that ground bounce article lead you in the wrong direction - while i'm sure its points about loop size and orientation are important it is probably most important to:

  • Minimise the length of the SW node (yours extends a fair distance to reach D1, move that D1/L1 junction directly to the corner of the IC.

  • Reduce the size of the loop as much as possible.

I would also allow a little more headroom in your output cap - your schematic specs 16v yet you have an output voltage selection @ 15v.

I am not an expert on SMPS but I have had a few successes and failures in the past.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ agreed: 1MHz switching is fast and needs to be as compact as possible. \$\endgroup\$
    – Jason S
    Commented Dec 2, 2011 at 15:20
1
\$\begingroup\$

this is a total guess and I haven't looked at the chip datasheet, but C1 seems a bit small. Have you tried just boosting that guy to something like 100uF?

\$\endgroup\$
1
  • 1
    \$\begingroup\$ Thanks for the suggestion. I did boost the input cap (i.e.C1) by soldering another 22uF ceramic in parallel with the 2.2uF cap recommended by the datasheet. This should give over 10x the minimum recommended capacitance. This had no effect. In addition, tried sticking a 1mF electrolytic cap on the input to my circuit. This isn't far from C1 and is effectively in parallel with it. This also had no effect. \$\endgroup\$ Commented Nov 29, 2011 at 20:52

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.