I am trying to measure single-phase mains voltage (240v, 50Hz) by stepping down the voltage to 200mv using a voltage divider and read it with the ADC pin of the controller. But the output wave is both negative and positive as shown in the image.

As Nordic nRF52810 cannot read negative values, we need your support on shifting up the wave to the positive side without disturbing the frequency and reading these values.