Hi, Nordicsemi
At present, although SPI uses easy DMA when reading and sending data, in the actual use scenario, I still use gpiote to detect the interrupt pin of the sensor, and polling the flag bit of the interrupt signal in the main program to trigger reading data. In this way, when polling to read data, it is bound to be interrupted by the Bluetooth protocol stack, resulting in the read sensor data is not continuous. It's just the continuous and complete data that customers need.
So,
1. Can I use PPI module to trigger SPI read / write task with gpiote interrupt event as trigger condition?
2. If you can, can you briefly describe the process or provide simple routines?
3. If PPI + gpiote is used to trigger SPI read-write, can it solve the problem of SPI read-write discontinuity?
4. If PPI + gpiote is used to trigger SPI read / write, will it affect the part that I didn't want to be triggered in this way?
I look forward to hearing from you soon.
Best regards!
June6