The circuit attached is for ac/dc measurement, hooked the analog comparator inputs 6 & 7 in the picture to MEGA2560 pin 6&7 got the measurement results with a quite large errors.
Hooked 6&7 to MEGA2560's 4&5 which said are the analog comparator pins:
I got the same measuring results as hooked to 6&7 with error.
Does MEGA2560 has analog comparator function? or are the 4&5 pins the right pin?
Thanks for help.
The code quite large can upload if need.