Hi,
I am working on a project in which we have a sensor connected to the NRF52832.
I am having problem to detect the interrupts sent by the sensor.
The interrupts are on P0.09 and P0.10 (the NFC pins). I verified that the interrupts are being sent correctly however the device doesn't detect them (doesn't reach the callback function)
i took the code from the pin interrupt example for the pin configuration:
ret_code_t err_code;
nrf_drv_gpiote_in_config_t in_config = NRFX_GPIOTE_RAW_CONFIG_IN_SENSE_LOTOHI(true);
in_config.pull = NRF_GPIO_PIN_NOPULL;
err_code = nrf_drv_gpiote_in_init(IMU1_INT1, &in_config, in_pin_handler);
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_event_enable(IMU1_INT1, true);
my questions are:
1. I know I need additional configuration for the NFC pins. I tried to change the pin modification as following, is it enough:
/* Bit 0 : Setting of pins dedicated to NFC functionality */
#define UICR_NFCPINS_PROTECT_Pos (0UL) /*!< Position of PROTECT field. */
#define UICR_NFCPINS_PROTECT_Msk (0x1UL << UICR_NFCPINS_PROTECT_Pos) /*!< Bit mask of PROTECT field. */
#define UICR_NFCPINS_PROTECT_Disabled (1UL) /*!< Operation as GPIO pins. Same protection as normal GPIO pins */
#define UICR_NFCPINS_PROTECT_NFC (0UL) /*!< Operation as NFC antenna pins. Configures the protection for NFC operation */
2. The interrupt is approx 300us, is it too short for those pins? (as I know there is larger capacitance on those pins)