I have a circuit with a microcontroller. The microcontroller is connected to a battery. Then the microcontroller has a GND pin and a separate AGND pin. I want to have a ground plane around the digital part of the circuit and connect it to the GND pin and another one for the analog part of the circuit and connect it to the AGND pin.
How can I achieve this?