2
\$\begingroup\$

I have an STM32F051 MCU, A XBEE module and an analog sensor I want to read its value using my MCU. I've read (and also practiced in action) that to have a precise ADC readings(which is important for my application), you have to separate analog and digital grounds, like this figure: enter image description here

I have two questions:

  1. Where should I connect the regulator ground? AGND or DGND? Why?
  2. Where should I choose as a star point for connecting two grounds? Regulator or near the MCU?

Here is what my MCU power pin connections look like now(I've assumed the regulator as the star point, So I've connected the MCU to the AGND): enter image description here

\$\endgroup\$
  • 1
    \$\begingroup\$ The star point is shown in your diagram so that answers Q2. Q1 connections to the star point for both regulators ideally. \$\endgroup\$ – Andy aka Aug 25 '17 at 13:25
  • \$\begingroup\$ I have only one regulator, and the whole question is about what to do in this situation. \$\endgroup\$ – MH.Tavakoli Bina Aug 25 '17 at 13:34
  • 1
    \$\begingroup\$ Your picture (top) implies 2. \$\endgroup\$ – Andy aka Aug 25 '17 at 13:39
  • \$\begingroup\$ OK. It was just a sample to show the whole idea. I wonder if I have just one regulator what should I do? \$\endgroup\$ – MH.Tavakoli Bina Aug 25 '17 at 13:55
1
\$\begingroup\$

Use a Ground plane, place the regulator in the middle; the low impedance of the plane (no slits in it; just some tiny holes for vias) makes the voltage drops low. The resistance of 1/2 square of copper foil, at 0.000500 ohms per square, is 250 microOhms. A DC current of 10mA causes 2.5 microVolts DC drop/error.

2.5 microvolts out of 2.5 volts FullScale ADC is 1ppm, thus 20 bits Accuracy.

DO NOT USE a split plane, unless you design the return currents and use the slits/slots to guide the digital currents away from the analog regions.

Read this answer: Should I really divide the ground plane into analog and digital parts?

Consider this diagram showing return currents WITHOUT SLITS, for high current (XBEE) loads

schematic

simulate this circuit – Schematic created using CircuitLab

As all the GND current crowds into the regulator GND pin, the change in current --- 50mA --- scaled by PCB foil resistance near the GND pin, will cause a change in voltage. Sketch out that current crowding. Assume 3 milliOhms resistance around the pin. 50mA change causes 150 microVolts upset. Is 150uV smaller than your ADC quanta? 10dB smaller? 20dB smaller?

How to keep the XBEE currents out of the analog region? would your original diagram, with one tiny connection point, achieve that isolation? YES. But currents needing to cross that tiny connection point will cause I*R voltage drop.

How about THIS use of slits, on either side of the XBEE

schematic

simulate this circuit

\$\endgroup\$
  • \$\begingroup\$ So based on the link you provided, It will be just enough for my setup to place the components wisely thus XBEE current won't flow near my analog circuitry. Is it correct? (As you know XBEE draws about 50mA when transmitting) \$\endgroup\$ – MH.Tavakoli Bina Aug 25 '17 at 14:30
  • \$\begingroup\$ Sketch out the current flows in the GND plane. Perhaps use slits to steer the XBEE currents back toward the regulator GND pin. \$\endgroup\$ – analogsystemsrf Aug 25 '17 at 14:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.