Timer to PPI to GPIOTE propagation delay when Softdevice enabled

Hi,

I'm using TIMER1 CC0 for SAADC sample triggering through PPI and it's working well.

In order to check sampling frequency, for debug pourpose, I'm using PPI fork for toggling one GPIOPE pin.

At low frequency, about 1kHz, all seems ok.

But for higher frequency, about 2kHz or more, toggling show phase shift when softdevice is enabled.

I have not interrupt enabled on timer1, only PPI.

I'm not understand why softdevice introduces shift in the gpiote toggling signal.

I think TIMER1 to PPI to GPIOTE should be hardware routed, so software execution should not affect timeing.

What is it wrong ?

Thanks,

Luca

Related