My setup is as follows
- 1 Gyroscope + Accelerometer
- 1 RTCC
- 1 SPI Flash device
I want to set up the PPI to periodically sample the MEMS devices and the RTCC, and then automatically write the data to the SPI flash without involving the CPU.
First off, is this possible?
Secondly, should I use a separate SPI Bus(SPI0) for the Flash and one for the MEMS(SPI1) and one for the RTCC(SPI2)?
Or can I have them all on the same SPI bus and utilize the Slave select lines?
And how do you manage the target write address, as each set of data would have to be written to a high memory address with each subsequent write?