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

Confused about GPIOTE: pin toggle and interrupt latency

Hi,

I have a pretty simple problem but I can't get it right. This is what I want to do:

T=000, PIN_x = 0
T=004, PIN_x = 1
T=100, call a routine
T=543, Start over (T=544=0)

(T is in cycles, 8MHz)

It seems like using PPI and GPIOTE is the correct way for this?

  1. Will the PIN toggle at EXACT the correct time? (T=0 and T=40)
  2. At what time will my first instruction in the routine be called? (is it 100 - latency?)
  3. Do the CPU have to do something for resetting the timer?

Using NRF51822

Thanks

Related