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

Only p0.00 to p0.03 event can trigger an interupt in nrf51822

Only p0.00 to p0.03 event can trigger an interupt in nrf 51822?

By nRF51 Series Reference Manual v1.0 ,I find that it only have CONFIG[n] (n=0..3) in GPIOTE, does it means that only p0.00 p0.01 p0.02 p0.03 could trigger an interupt?

Thanks ! dong.

Parents
  • Hi,

    No, it means that you have 4 GPIOTE tasks and event channels that can be used. The input/output of this peripheral can be configured at runtime, and it can for instance be used to generate a PWM on any of the GPIOs available.

    If you want to generate a wake-up-on-pin, you should use the PORT event of the GPIOTE. The PORT event is generated by setting Sense level (in NRF_GPIO->PIN_CNF[] register) on a GPIO and keeping this active. See the "pin_change_int_example" in the SDK if you're insterested in this

    BR Håkon

Reply
  • Hi,

    No, it means that you have 4 GPIOTE tasks and event channels that can be used. The input/output of this peripheral can be configured at runtime, and it can for instance be used to generate a PWM on any of the GPIOs available.

    If you want to generate a wake-up-on-pin, you should use the PORT event of the GPIOTE. The PORT event is generated by setting Sense level (in NRF_GPIO->PIN_CNF[] register) on a GPIO and keeping this active. See the "pin_change_int_example" in the SDK if you're insterested in this

    BR Håkon

Children
Related