how to make Anaglogread faster?

I saw a couple of tutorials which said that I can make the analog read 10X faster.

the code given was REG_ADC_MR = (REG_ADC_MR & 0xFFF0FFFF) | 0x00020000;.
Where do I input this? I tried to put it in the void setup() but its not helping.

The reason I need this is for my project. Using the code I have uploaded in the ino file I get the wave in the image. There is quite a bit of dead time which I wish to eliminate.

Can anyone advice me? how to remove the deadtime at higher frequencies.

Phas_Freq_VU.ino (3.69 KB)

Waveforms.h (86.7 KB)

Hi:

Try to see my post:
http://forum.arduino.cc/index.php?PHPSESSID=jkra1uvdoh265mbuua84t8p1i6&topic=224664.0

This option (I guess) was for an old version of the compiler.

Optimizing analogRead I get up to 0.66 MHz, (1.5 micro seconds per sample)

Replacing analogRead for some of its code I get up 1 MHZ (1 us)

I think this is the maximum speed you could get with this processor.