RPBi2
SPI link to ADXL345 accelerometer.
Using C I need to read three axes every 555uS and write to 'disk', so the processor is going to be pretty busy doing just that?
I also need to be running an interval timer to flash a LED every 500mS or so.
I could use delay() with a couple of variables to set up the 500mS timer but that will take some of the processor's cycles adding overhead to read delay() and manipulate the associated variables.
To read the system clock looks even worse since (I think) I would have to use a long long to read the clock and manipulate the result in a similar way to delay().
I cannot see interrupts being any faster so am I missing a simple function to achieve what I want?
Or will I need to go back to writing in Assembler to achieve the speed?
Any help appreciated.