There is no exact answer for how far is far enough. It is better to understand the mechanisms so that you can decide for yourself how to deal with them. There are two independent mechanisms at work that cause cross coupling.
Capacitive coupling. Adjacent traces have finite capacitance between them. Three things drive coupling from a power trace to a signal trace:
- The capacitance. This is a function of how close the two traces are for how long. Longer and closer spacing causes more capacitance, which causes more coupling.
- The rate of change of the voltage on the driving trace. Faster changes (larger dV/dt) will couple better. Another way of looking at this is that faster changes contain higher frequencies, and the coupling capacitance has lower impedance at these higher frequencies.
- The impedance of the signal trace. The unwanted coupled signal has some finite impedance. This forms a voltage divider with the impedance of the signal trace. The lower the signal trace impedance, the lower the coupling.
Inductive coupling. Current in the power trace causes a circular magnetic field around it. This can induce voltages in nearby parallel traces. Essentially the two parallel traces act like a transformer. Two things drive this coupling:
- The coupling inductance. This is a measure of the transformer effect. Like with capacitive coupling, this effect gets stronger as the two traces are closer for longer. Unlike capacitive coupling, the orientation of the traces matter. This coupling is proportional to the dot product of the trace direction vectors (how parallel the traces are in rough laymen terms). Two traces crossing at right angles won't inductively couple at all.
- The rate of change of the current on the driving case. This is opposite but symmetric to the capacitive case where voltage changes matter.
The impedance of the signal trace does not matter for inductive coupling because it causes a offset voltage in line with the trace. It is a additional voltage source in series with the trace.
So, what to do? It should be obvious that moving the traces apart will help for either type of coupling. To reduce capacitive coupling a separating trace or guard trace can be used. Other things that help are limiting the rate of voltage and current changes, avoiding long runs, avoiding parallel runs, and making the signal nets as low impedance as possible. Whether these are possible, under your control, or reasonable considering other tradeoffs like size and cost, are issues with your specific design you have to decide for yourself.
I agree with the other answers here but just thought this may help:
I've drawn the 2 high current / high switch frequency loops of most concern in this design.
Green shows the input current loop with the C7/C18 decoupling caps sourcing most of the high frequency current needed. This loop is very large due to poor ground design.
Yellow shows the output current loop, it is also very large.
Perhaps most concerning is that the return currents from both the input and output to the regulator share a single ground return path through the narrow trace leaving C17.
Your ultimate goal here is to minimize the loop area of both of these loops. When doing so remember that high frequency currents, those which are the EMI concern, will follow the path of least inductance to ground, not the path of least resistance.
For example, I've drawn these paths a little wide for clarity but in reality the high frequency components of the ground return path for the output current (yellow) will try to travel directly under the input current path if it can. Its more likely to bend over under L2 on its way back.
EDIT: Update for full ground plane.
Here is an updated drawing of the current loops for your new layout:
This is much better, the ground returns are separated for clarity but the high frequency content will travel along the ground plane as close to directly under the power traces as it can. I added the feedback path in pink and lighter color denotes current traveling on the ground plane.
A few notes:
The paths are still much longer than they need to be. The feedback loop especially is quite long and will travel under the input current. This input is high impedance so any inductive coupling on this trace will have a relatively large impact on your regulation accuracy. You do cross at almost 90 degrees which reduces coupling but the ground currents do not and are an issue for other reasons (see below).
The input power trace crosses a split in the ground plane where the trace for the feedback loop runs. Never ever, ever, cross a split on a ground or power plane on an adjacent layer with a trace that has any chance of carrying high frequencies (which means any trace at all really). This creates a radiating loop as indicated by the light green return path. The end result is a large EMI problem.
I don't know if it is a result of the export to pdf or what but you seem to have lots of vias that will have clearance issues. They are too close together and too close to the component pads. Even with solder mask over the vias the solder mask clearance on the pads looks like it will expose some of the vias causing soldering issues if you use reflow. The vias near D1 for instance will almost certainly be exposed and when the board is reflowed the via will suck all the solder away from the pad leaving D1 either unsoldered or very poorly soldered.
Some vias also don't appear on both layers, such as those under U1.
What I would do:
Setup your PCB design software design rule checking with whatever clearances are required by your PCB fabricator. This will alert you to issues with via-via, via-pad and via-solder mask clearance issues.
Tear the design up and start fresh with component placement knowing that you now have a solid ground plane. Concentrate on minimizing the length of the critical paths and use as much copper as you can for these paths (bar the feedback loop, its low current). If space / layout allows, a ground pour on the surface isn't a bad idea, just make sure you can do it properly. (no orphaned copper, well coupled to the ground plane)
Edit 2:
Not sure if you have this already but here is the reference design / app notes from infineon for a 2 layer board using a solid ground plane on the bottom. They use a fairly long FB trace but keep it well clear of of the dangerous loops.
Best Answer
The fill areas seem overdone, especially where they fill way out into empty space that's far away from components rather than flowing between components, like at the corners of the board. I'd put more gap between small traces and large fills since there seems to be room for it - you don't want high-current fills right up against signal traces. I would not put fill around those standoff holes (TLP1 hole 1), at least not so close, since a wobbly or over-large standoff could scrape away the mask and short to the fill. Also for EMI you probably don't want a hole in a high-current fill, as those standoffs make. You've got some thin trace on TLP1 Q1, I'd push the fill below down towards C7/C18 and widen that trace a bit. You don't want ground running under L3 since you can pick up ground bounce that way.
The component pads need the fill to enter from only one side or otherwise have some thermal separation from the fill, otherwise the component may be hard to solder, as heat will flow away from the pad too quickly compared to small pads and the solder paste won't melt evenly. Similarly you may want the vias just a little farther from the pad on C14, C20, C21 as they will conduct some heat away to the other plane.
Don't know if you've considered height and how things are spaced for hand-done rework as you're debugging. I'd put L3 on TLP2 a little farther out from D3 or L3 will be pretty hard to hand solder without removing D3 first. If you can't fit a soldering iron tip between two large components they're too close together (if you have room to move them a bit, or can rotate one). I'd bring the connections to U2 pins 1/2/7/8 out a little like traces and then connect them together, instead of filling them side to side, because if you have to hand cut a trace or something it will be easier. Just some ideas from a brief look - I haven't considered component placement.