Hi, this is how I initialize and enable LPCOMP
nrf_drv_lpcomp_config_t lpcompconfig = {
{NRF_LPCOMP_REF_SUPPLY_SEVEN_EIGHT, NRF_LPCOMP_DETECT_CROSS},
APP_IRQ_PRIORITY_LOW,
NRF_LPCOMP_INPUT_7};
nrf_drv_lpcomp_init(&lpcompconfig, &lpcomphandler);
nrf_drv_lpcomp_enable();
However, my
void lpcomphandler(nrf_lpcomp_event_t event);
is never called when I manually toggle P0.06 pin of nrf51 from GND to VCC, or from VCC to GND.
No matter whether I initialize and enable LPCOMP before or after softdevice initialization.
I use SDK9.0.0.
Can you please help?