Electronic – Analogue and Digital Voltage Rail

analogdigital-logic

What's the difference between an Analogue and Digital Voltage Rail?
Why their grounds have to be different?

Best Answer

There is no reason their grounds must be different. However, it is often the case that they are, to reduce noise. Digital circuits, by nature, draw current in surges, each time they switch. These currents flow through the supply rail and also ground.

Usually, "analog circuit" implies somewhere there is a signal relative to ground, and a desire to measure it without a lot of noise. But, if all these current spikes from the digital circuits are flowing in the analog ground, then the voltage at analog ground will change with the current, because the ground has non-zero resistance and inductance (\$E=IR\$). Since all the analog signals are defined relative to this "ground" voltage, if there is noise in the ground, there is noise in the signals.

Example:

schematic

simulate this circuit – Schematic created using CircuitLab

\$I_{dig}\$ represents the current drawn from the power supply by the digital circuitry. This will consist of just switching noise. Of course we try to filter this with capacitors across the power supply rails, which reduces the noise significantly, but can't completely eliminate it.

\$V_{sig}\$ is an analog signal we wish to measure. \$V_{measured}\$ is an analog device that measures it.

\$R_1\$ is the resistance of the ground trace.

As this current (\$I_{dig}\$) flows through the ground trace shared with the analog circuitry, a corresponding voltage is created across \$R_1\$ by Ohm's law: \$V_{noise} = I_{dig} \cdot R_1\$. From the perspective of our device measuring the signal, this noise is in series with the signal, and it has no way to separate them.

However, if the digital circuitry were connected to a different ground trace, connected to the analog ground trace at only one point, then the current from the digital circuit (\$I_{dig}\$) couldn't flow through \$R_1\$, and the problem is avoided.

schematic

simulate this circuit

Now there is no current in R1, so no voltage, so no noise.

Keep in mind, this logic applies equally to the positive and negative sides (ie, ground) of the supply rails. Current can only flow in a circuit, that is, from the battery, through the component, returning through ground, then back to and through the power supply.

Separating the digital and analog supply rails can prevent currents from the digital circuits flowing in the analog supply rails, but if they share a power supply, the power supply voltage might still have noise added to it, since it is not supplying a constant current. Consider what the circuit looks like with separate supply rails, but conductors that aren't perfect:

schematic

simulate this circuit

Again, these aren't actually resistors, but represent the small resistance of the wires, internal resistance of the battery, etc.

Your power supply will always have some small impedance, \$R_{bat}\$, and the supply voltage will change according to the current flowing through the supply. Good analog circuitry will be designed to be insensitive to the power supply voltage for this reason, and if you look in an op-amp datasheet, you will find the PSRR, or power supply rejection ratio, which specifies the extent to which changes in the supply voltage don't affect the output.