I would like to port my oscilloscope code to Arduino Nano Every in order to take advantage of its higher clock speed, but changing the prescale setting does not work on Every because ADCSRA does not exist.
What code should replace this one:
Arduino Nano Every claims having 20 MHz instead of 16. And I verified it is capable to execute analogRead() (without accelerators) in 82 microseconds instead of the 115 required by any of the other Arduinos (Uno, Nano, Mega).
Those platforms reach a seven time faster speed (17 microseconds) when unsing the accelerators I have shown. Had Nano Every be accelerated, it would perform analoRead() in about 12 microsecs...
You will really need to spend some time with the data sheet for the 4809.
There are two modes(free running and single conversion), two resolutions(8/10 bit) and interactions with Vref.