i never actualy used free running mode of ADC before,
but now i wanted to do it. however i ran into a problem,
which i have problem resolving.
here is my code : http://pastebin.com/m49b823c
its for atmega8535, i'm using v-usb lib.
what it should do ? keep reading ADC pins 0 to 7, saving results in array. on usb request return latest status.
code starts, ISR gets executed, but the problem is
that result of my conversion is always 0.
if i do this in normal mode (set channel, enable, wait, read, .....) it works ok. when i try to move it to free-run, results of my conversion is 0.
i'm sure its just something stupid, but i'm realy out
of luck locating it.
thanks for your support.