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

Peripheral interrupt setting with S112

Hi,

It seems that s112 soft device uses IRQ level 0,1,4 of nRF52832.

By default my counter has default IRQ level 6, my concern is about the delay of COMPARE interrupt by s112? Will the delay be smaller when I set counter IRQ to level 3? 

If my counter interrupt handler is fast (mainly a nrfx_spim_xfer() and app_sched_event_put()), can I set its IRQ level to level 0 or 1 as well to avoid delay by s112?

Regards,

yf13

Parents Reply
  • You can setup the easydma stuff in advance as the registers are double buffered.

    The caveat is you need to wait for the STARTED event.

    It it propably a good idea to handle this event in the SPIM interrupt and put the new DMA buffers in those TXD.PTR and RXD.PTR registers.

    This way the only thing that requires 60µs timing is the actual PPI event itself.

Children
Related