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

GPIO INTERRUPT ISSUES

hlo sir , In my code there are 4 gpio interrupts,

if they comes at same time which will execute first.

There is any optional to assign priority to each gpio interrupts .

Parents
  • Hi.

    Are you talking about the GPIOTE peripheral? Or are you talking about 4 different peripherals?

    4 different peripherals:

    The interrupt with the highest interrupt priority will execute first.

    You can set the interrupt priority for your different peripherals in the sdk_config.h file

    GPIOTE peripheral:

    If they come in at the same time, it is not possible to know which interrupt will be executed, and only one interrupt will be executed most likely, the other 3 will be missed. You should add some sort of delay between the interrupts.

    Best regards,

    Andreas

Reply
  • Hi.

    Are you talking about the GPIOTE peripheral? Or are you talking about 4 different peripherals?

    4 different peripherals:

    The interrupt with the highest interrupt priority will execute first.

    You can set the interrupt priority for your different peripherals in the sdk_config.h file

    GPIOTE peripheral:

    If they come in at the same time, it is not possible to know which interrupt will be executed, and only one interrupt will be executed most likely, the other 3 will be missed. You should add some sort of delay between the interrupts.

    Best regards,

    Andreas

Children
Related