I would like to sample a digital IO input from two IO's into the processor internal memory incrementally per every rising or falling edge of each of the signals.
Is there a way to use GPIOTE IN via PPI to drive EasyDMA and get a memory buffer with the two io's pattern per any change. For example: { 0, 3, 2, 1, 2, 0, ... }?
Signals may alternate at rate of 10us-500us.
Signals are input from two motor encoders that we have on our circuit board.
Alternatively - is there a way to capture a timer value incrementally into memory using EasyDMA each time one of the above IO's changes? Hook GPIOTE as PPI input to trigger a timer capture transferred incrementally into a memory buffer?