This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: Sampling vac for designing a UCD3138 controlled PFC

Tool/software: Code Composer Studio

Refer to slua708, slua712 and slua713

What is the following code?

iv.vin_sum = iv.vin_raw + iv.vin_sum - (iv.vin_sum >> 2);
iv.vin_filtered = iv.vin_sum >> 2;

And what is different between above and the following code?

iv.vin_filtered = iv.vin_raw;