Hi, I hope you had a nice weekend.
In my project, I basically need to output some data over GPIO from a memory buffer (highs and lows). Currently I'm doing this with a timer and ISR. The problem is that the timing must be accurate between each transmission (exactly 420us) but with other tasks in the app (running BLE with NCS1.9), there is almost always a drift from this timing.
I'm thinking of using EasyDMA + GPIOTE to match this timing requirement. My idea is to configure the system such that:
- Configure PPI to connect timer event to GPIOTE task
- Each time a timer event occurs (with exactly 420us intervals), move a bit (high/low value) from DMA buffer (I think it is an ArrayList) to GPIO output.
From the discussions in this forum, I feel that it can be done in this way but I couldn't see any example of connecting DMA buffer and GPIOTE output.
It would be highly appreciated if one could point me to an example of this.
Many thanks,
Ozan