Introduction - If you have any usage issues, please Google them yourself
//Comparator mode: CM2-CM0 = 011, the half-wave rectified AC signal to the negative terminal of C1 RA1,// 0.63V voltage reference module generates a voltage output to the positive terminal of C1 RA2, C1 output to pin RA5.