One thing you might find interesting is that even if there arenât any high-speed traces, a lot of the same techniques that improve signal integrity on high-speed traces also improve resistance to external noise sources. After all, inductance is just a measure of how much magnetic flux is created in response to a unit of current. More magnetic flux created per unit of current also means more current induced due to external magnetic fields, etc.
As for the 4 layer board, itâs super easy once youâve kinda done it once. The standard method is to treat the outer layers as purely routing layers and the inner layers as power distribution/signal return layers. Obviously you can only place components on the outer layers (unless stuff gets real crazy), but also it pays to bear in mind that rework and blue-wiring can only really be done on the outer layers, so prioritizing keeping the âfinnickyâ parts of the circuit on the surface helps.
One inner layer as a ground plane means that regardless of what you do with the routing layers, thereâs always a low-inductance return path directly underneath your signal trace. Having a single big ground plane means that you can usually disregard things like where high-current signals are flowing because usually the resistance of the ground plane is so much lower than the resistance of the signal trace that you can safely assume there is no voltage rise across any 2 points of the plane.
The other inner layer as a power plane means that youâve always got power available wherever you need it without specifically routing for it. It also means that youâve got 2 big expanses of copper adjacent to one another that form a capacitor. The value of that capacitor isnât high, but the frequency performance is unbeatable. In a similar fashion to how you would have electrolytic capacitors for DC to 100kHz, then class-2 ceramic capacitors to handle up to 10-100MHz and then class-1 ceramic capacitors to handle up to >1GHz, the PCB capacitance can easily go well beyond 10GHz because the limiting factor for a lumped passive like a capacitor is always the lead inductance, whereas with the power planes that inductance is minimized.
My usual approach with the power plane on a 4 layer board is to try split it up so that itâs handling all of the power nets. If you highlight all the members of each power net, itâs usually obvious what the shapes of those sections of plane should be. For instance, in a design with a microcontroller that has 3.3V and 5V power connections, 5V logic and analog feedback then 12/24V power it might end up with a 3.3V square plane directly under the microcontroller, a 24V âhaloâ around the edge of the board or down one side and then the rest of the board flooded in 5V.
Another neat trick is that as long as there is adequate high frequency capacitance at all the ICs etc. then either plane can be used as an AC return path. A signal can be decomposed into all of its contents, so a 0-5V 100kHz signal with a 1us rise time would have everything from the DC component up to ~10MHz. The DC path can (and often will) be entirely different to the 10MHz path. The DC will generally spread out based on resistance while the 10MHz will entirely be controlled by the inductance. A brief 10MHz âchirpâ on each edge transition and can return by either the ground plane:
Out of GPIO at IC 1, along the signal trace, into the input pin of IC2, out the ground pin of IC2, into the ground plane, along the ground plane under the signal trace, into the ground connection of a de-coupling cap near IC1, along the positive supply trace from that de-coupling cap into the power connection of IC1.
Or via the power plane:
Out of GPIO at IC 1, along the signal trace, into the input pin of IC2, out the ground pin of IC2, into the ground connection of the de-coupling cap near IC2, out of the positive supply trace from the de-coupling cap and into the power plane, along the power plane under the signal trace, into the power supply trace of IC1.
Or, realistically, some blend of both.
Some other random thoughts:
Try to keep the connections to the planes equal for both pins of passives, etc. Having one side pinned with a lot of vias and the other side only connected to a thin trace can cause the solder to flow quicker on one side than the other and âtombstoneâ the components.
Thereâs a balance between not enough copper connection (high resistance, voltage drop under load) and too much copper (too much thermal mass, poor joints because solder doesnât flow well). When in doubt, try to take it back to âreal worldâ numbers, like using Saturn PCB Design or similar to estimate the resistance of a via or trace and ask yourself whether 100nV of voltage drop is actually needed etc.
For any important signals, it can help to actually draw out the expected loop path. For signals that have critical EMI/EMC ramifications Iâll often do a drawing of where each current loop is in a switch mode power supply and provide that for review along with the design. Literally a screenshot with coloured pen markings showing where the current should be flowing in each state of the power switches etc.