Long interrupt response time in example project for NRF52840, "pin_change_int_pca10056"

Hello,

I'm trying out the example code "pin_change_int_pca10056". But the delay time between sensing a voltage change and toggling the output GPIO is quite long. 22us. Is there any way to make the ISR faster? 

In the picture below, yellow is the sensed voltage and blue is the toggled GPIO in the ISR. I'm using this code on the pca10056 board.

 

Parents
  • Just realized that this example is in our old nRF5SDK and not in the newer nRF Connect SDK.

    I see that this pin_change_int example uses nrf_gpiote driver and your pin toggle most likely is happening in the callback and not the isr itself. If you want your application to have less latency before its callback is called, then it is best not to use the driver and implement your own ISR for gpiote irq.

Reply
  • Just realized that this example is in our old nRF5SDK and not in the newer nRF Connect SDK.

    I see that this pin_change_int example uses nrf_gpiote driver and your pin toggle most likely is happening in the callback and not the isr itself. If you want your application to have less latency before its callback is called, then it is best not to use the driver and implement your own ISR for gpiote irq.

Children
No Data
Related