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

What's difference between HI_accuracy and Port Event interruption?

Hey, I have a sensor (ADC with data rate is 250 sps), attached to nrf51822. It has Data ready pin (output), which toggles from high to low when data is ready. Also this sensor has continius mode, when I enable this mode, sensor does measure with some interval and toggles this pin, when new data is ready, so this pin I connected to some nrf51's pin and configured it like this

    nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_HITOLOW(true);
    in_config.pull = NRF_GPIO_PIN_PULLUP;

    err_code = nrf_drv_gpiote_in_init(PIN_IN, &in_config, in_pin_handler);
    APP_ERROR_CHECK(err_code);

    nrf_drv_gpiote_in_event_enable(PIN_IN, true);

true in the first line means that I gonna use hi-accuracy mode, what's the difference between hi-accuracy and port event mode? Did I correclty configure my pin?

My problem is I cannot read data properly, cause the pin is changed so fast

Parents Reply Children
No Data
Related