hello, I am working on an aplication that requires an analogix aceleromter to be attached in a moving part. I have already discart i2c and spi systems because I need speed and an accurate timi g.
Analogread(PinNumber) takes like 120us un an aeduino based on 328p atmel i also need to correlate a very precise time base to associate the analogread with a position of my system of a known speed.
I have checked to modify timer0 and other thinls like accesing direct to the ports.
can i access to any register that stores clock cycles? do it exist? what is the faster counter existing in the atmega? is there any way to speed up the analogread up keeping at least the 10bit and accuracy? any option to use like a function like nanoseconds()????? if i buy an arduino due with 84mhz of clock. will i be able to get better performance in make a spreedsheet like analogread vs nanoseconds()?????? any link with deep info about fast counting????? regards,