How to clear ADC data register memory in Arduino nano

I have different sampling rate setting and when switching between sampling rate it gives data for previous sample rate for few second and then after gives the data of current sampling rate setting.

So, I'm planning to clear ADC data register when calling each sampling rate setting.
Is there any way to clear ADC data register.

This shows how to handle the data registers
http://electronoobs.com/eng_arduino_tut12.php
You will need to refer to the data sheet for the nano to decide what changes you need to make and which registers are appropriate
https://create.arduino.cc/projecthub/yeshvanth_muniraj/analog-to-digital-converter-module-of-atmega328p-e255ea

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.