Electronic – Switching regulator PCB layout

noiseswitch-mode-power-supply

I'm putting together a buck regulator (first time around) based on the lm2374 chip. TI provides gerbers of a recommended layout for this chip family, but my configuration differs a bit. I've read up on ground bounce, and nominally understand that I need to minimze changing loop areas, but am having a hard time understanding what the loop here would be.
I'd like to get feedback on the PCB layout with regards to possible noise/EMI:

I've overlaid additional part names in yellow to make it easier to match up with TI's recommendations / general components. You can ignore the air wires, one is an enable line that hasn't been hooked up to the MCU yet, the other is the battery line being needed elsewhere and eagle drawing the airwire from that particular spot.

PCB

Circuit

Please let me know if/what can be improved here. Thanks.

EDIT Looking at this for the umpteenth time, I do see that I tied the EN pull-up to VIN, not VOUT. I'll make that change.

Best Answer

It's a bit rubbish your layout and a bit unfinished - C19 isn't connected thru to anything as far as I can tell from the picture you supplied. Golden rules: -

  1. Make the track length to and from the inductor as short as possible (not good on your layout)
  2. Make the diode connections on switch output as short as possible (OK on your layout except for topside ground connection)
  3. Make all ground connections as short as possible (it looks like you have a ground plane in blue but you are choosing to connect things to ground on the top layer such as C17 and C20 - I'd have a full ground plane and via down from C17 and C20 to ground)
  4. Have a separate ground path for R14 directly to pin 2 on the chip if at all possible (don't share this track with anything - i.e. star point at the main ground pin, pin 2)
  5. R15 (sense resistor and C19) take from as close to C20 as possible (on your layout it's quite a distance away and this will make the output noisy)

Additional comments - why is C19 so big? Why doesn't the artwork match the circuit diagram?