I am working on nRF51-DK with nRF51422 with softdevice S130 and SDK 12.3.0.
I see that GPIOTE driver provides sensing for signal transitions like NRF_GPIOTE_POLARITY_LOTOHI, NRF_GPIOTE_POLARITY_HITOLO, NRF_GPIOTE_POLARITY_TOGGLE. While GPIO HAL provides sensing signal level like NRF_GPIO_PIN_SENSE_LOW, NRF_GPIO_PIN_SENSE_HIGH.
My question is when to use signal level sensing one signal transition sensing and vice versa ?
Also calling the functions nrf_drv_gpiote_in_event_enable and nrf_drv_gpiote_in_event_disable
- for a GPIO input pin configured with high accuracy (IN_Event), will enable/disable the interrupts
- for a GPIO input pin configured with low accuracy (Port Event), will enable/disable the sense mechanism and will have no effect on interrupt as interrupt mechanism for Port event is always enabled
My question is if I use the low accuracy mode for a GPIO input pin, does disabling the sense mechanism via call to nrf_drv_gpiote_in_event_disable will not generate an interrupt even though interrupt is always enabled ?