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

COMP Shortcuts

I have difficulties understanding the COMP APIs, this function below starts after initializing the COMP the peripheral.

nrf_drv_comp_start(NRF_DRV_COMP_EVT_EN_CROSS_MASK,NRF_DRV_COMP_SHORT_STOP_AFTER_CROSS_EVT);

It expects a secoend argument which set the the shortcut register.

It is no where mentioned in the documentation that the short cut register needs be set. But how can I start the COMP with out using the "NRF_DRV_COMP_SHORT_STOP_AFTER_CROSS_EVT" if I want to capture every crossing event.

Related