Hi i'm engineer, power distribution, automation and control expert, i have experience working in control design and electromehanical systems- building, grids, electrical vehicles, renewable energy, distribution substations, grounding, i can develop for you the correct ad converter pic32 script