SLAA638A august 2014 – may 2023 MSP430I2040 , MSP430I2041
Though the circuit design of the external circuit is very simple, there are a few points to note in the PCB layout and component placement to achieve best accuracy. Figure 2-3 and Figure 2-4 shows the layout of top and bottom layer, respectively. The principle to keep in mind for the layout and placement is simple:
Now going back to the layout, note that inside the green rectangle on Figure 2-3 are the interface circuit for the voltage sensor and the shunt senor. The placement of this circuit (compose of R10, R11, C12, C13, C14 for voltage sensor, R8, R9, C8, C9, C10) should be arranged to place similar to the way it is drawn on the schematic. Doing this helps to protect the differential nature of the signal while passing through the interface filter circuit.
Inside the yellow rectangle on Figure 2-3 and Figure 2-4 shows that the differential signal pair leaving the interface filter should be closely side-by-side and surrounded by the analog ground plane on their side (of course, it is not always possible).
Although R15, R6, L1 has one terminal essentially connected to AGND, it is important to treat each as a separate signal connecting to AGND with a single point (Cyan circled in Figure 2-4 shows the connection of R15 to AGND just with a single track). In fact, this way of layout also applies to the connection to C12, C13, C8, C9. This helps the circuit to stay independent (neither the voltage signal nor the current signal has a path interfering the other) and free from the noise flowing in the ground plane.
The ground plane is designed such that it surrounds most of the analog circuit. Doing this with i2040 is easy since the analog signal pins are grouped together on a side of the package. Moreover, many via are added on the ground plane so that the top and bottom ground plane are closely tied together and provides stronger noise protection.