How to use a software timer to handle SPI

Just like this :slight_smile:


And yes, the function ReadData() needs to be call couple times, but if you using timers instead delay in main loop function there is no problem.
I was write example code with timer for you (interval is 100ms but just for display values on serial, the data is reading < 1ms):

The data from sensor on the SPI bus:

As you can see the data cycle is about 86 + 107 + 84 + 702 = 979us.
The goal was to make about 1kHz dara reading rate for my steering wheel Logitech G29, and it was achieved :slight_smile: