SLAA638A august 2014 – may 2023 MSP430I2040 , MSP430I2041
For the voltage sensor circuit, the matter is a little simpler. In this design, the major consideration is that the voltage divider should be able to prevent arcing between the terminals. To reduce the voltage difference between resistor terminals, this design uses 4 (instead of 2) resistors to form the voltage divider (R1, R13, R14 are 330 kΩ, and R15 is 1.5 kΩ), then the voltage across R1, R13 and R14 each takes about 1/3 of the AC voltage. Now at 220 V input, each resistor has a voltage drop about 75 V. Using 2512 resistor for R1, R13, R14 then provides greater equivalent distance of separation between the live voltage and R15.
The installation of D8 in the voltage sensor circuit is more important than D1 in the current circuit. The reason is that the resistor ladder on the voltage sensor circuit is more likely to see a voltage surge across R15 high enough to damage the MCU. In other cases, if R15 is an open circuit or in bad contact causing a higher resistance, the voltage across the input of the voltage channel ADC also causes damage to the MCU.