Figure 5. Analog Front End for Voltage Inputs
Figure 5 shows the analog front end for the voltage inputs for a mains voltage of 230 V. The voltage is brought down to approximately 350 mV RMS, which is 495 mV peak, and fed to the positive input. This level meets the MSP430 SD24 analog limits. A common-mode voltage of zero can be connected to the negative input of the SD24. In addition, the SD24 has an internal reference voltage of 1.2 V that can be used externally and also as a common-mode voltage, if needed.
Note that the anti-alias resistors on the positive and negative sides are different, because the input impedance to the positive terminal is much higher and, therefore, a lower-value resistor is used for the anti-alias filter. If this difference is not maintained, a relatively large phase shift of several degrees would result.