This is a code for ADC readings with timers and serial printing, a non blocking program, w/ analogRead() and serial print at atmel(microchip) studio.
if you got here, feel free to use it as a helping hand :D
I tried to comment everyline hope it helps