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

How to clear a GPIOTE port event register?

I am confused from reading the nRF52832 Product Specification on how to clear the GPIOTE port event (EVENTS_PORT) register?

On Section 21.2 (Port event) on page 158, it states "clear any potential event that could have occurred during configuration (write '1' to EVENTS_PORT), and finally enable interrupts".

On Section 15.6 (Events) which describes events in general, it states an "event register is only cleared when firmware writes a '0' to it.

Is there a typo in the documentation, or is the GPIOTE event register different than the rest?

Thanks,

John

  • Hi John,

     

    On Section 21.2 (Port event) on page 158, it states "clear any potential event that could have occurred during configuration (write '1' to EVENTS_PORT), and finally enable interrupts".

    It seems you've found a typo in our docs. This should of course be "write '0' to EVENTS_PORT". I will report this internally to our technical writers. Thanks for letting us know!

    Best regards,

    Håkon

Related