SLAA638A august 2014 – may 2023 MSP430I2040 , MSP430I2041
Figure 2-1 shows the system block diagram of the design. Power, from the AC mains, passes through a shunt resistor. The voltage across the shunt resistor is tapped out. The AC mains voltage is divided to a smaller fraction by the resistor ladder and tapped out. The two signals are then passed to the two ADCs on the MCU for further processing. The two SD24 ADCs operate in a synchronous manner; the hardware allows the sampling times to be offset in finely controllable steps. This feature is used to correct any phase shift between the voltage and current signal, resulting from the external analog circuit.