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

Clear GPIO SENSE signal on HITOLO

Related to SDK 12.3.

Quoting this question:

  1. GPIOTE PORT event generated on the rising edge of DETECT signal. Please have a look at section 15.1.2

2)DETECT signal is common signal when multiple pins are configured with SENSE mechanism. The DETECT signal is only cleared when all of the pin with SENSE mechanism is inactive. So if there still one pin is active, you won't be able to receive another interrupt on GPIOTE PORT event.

What does Inactive mean ?

Consider a pin is configured to sense HITOLO. Is High considered inactive and Low considered active?

When a falling edge happens, I receive the interrupt, but do nothing to change the pin status, meaning that it will remain LOW. While this pin is LOW, will I be able to receive any other GPIOTE events? Or does the pin have to return to HIGH in order to release the DETECT signal?

  • Hello AmiguelS

    GPIOTE port events are always triggered on a rising edge of the DETECT signal. When triggering a HITOLO event, the pin is configured to produce a high DETECT signal when the voltage of the pin is low. So as the voltage of the pin drops, the DETECT signal goes high, and will remain high as long as the voltage of the pin is low. So in this case a low voltage keeps the pin "active" as it will keep the DETECT signal high.

    Different pins can have different sense configurations, so whether a pin is active or inactive for high or low voltage depends on its configuration. While the DETECT signal remains high you cannot trigger new port events.

    For more information on the sense configuration and the DETECT signal please see the Pin configuration subsection in the GPIO section of the product specification. Also see the port event subsection of the GPIOTE section.

    Best regards

    Jørn Frøysa

Related