This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Automated sampling of an input GPIO via EasyDMA

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?

Parents Reply Children
No Data
Related