SLAA494B May 2011 – September 2023 MSP430AFE221 , MSP430AFE222 , MSP430AFE223 , MSP430AFE231 , MSP430AFE232 , MSP430AFE233 , MSP430AFE251 , MSP430AFE252 , MSP430AFE253
The voltage from the mains is usually 230 V or 110 V and must be brought down to a range of 500 mV (see Figure 4-3). The analog front end for voltage consists of spike protection varistors (not shown) followed by a simple voltage divider and an RC low-pass filter that acts as an anti-alias filter.
Figure 4-3 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.