Hi, I have a gpiote event setup that triggers a gpiote task via ppi, this is the relevant code
NRF_POWER->TASKS_CONSTLAT = 1;
nrf_gpio_cfg_input(GPIO_OC,GPIO_PIN_CNF_PULL_Pullup);
nrf_gpiote_event_configure(GPIOTE_OC,GPIO_OC,comparator_idle_low?NRF_GPIOTE_POLARITY_LOTOHI:NRF_GPIOTE_POLARITY_HITOLO);
nrf_gpiote_event_enable(GPIOTE_OC);
nrf_gpiote_task_configure(GPIOTE_FET,GPIO_FET,NRF_GPIOTE_POLARITY_TOGGLE,NRF_GPIOTE_INITIAL_VALUE_LOW);
nrf_gpiote_task_enable(GPIOTE_FET);
NRF_GPIO->PIN_CNF[GPIO_FET] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos);
nrf_ppi_channel_and_fork_endpoint_setup(ch,
(uint32_t)&(NRF_GPIOTE->EVENTS_IN[GPIOTE_OC]),
(uint32_t)&(NRF_PPI->TASKS_CHG[PPI_GROUP_RUN].DIS),//disregard this, the group has nothing to do with this i think
(uint32_t)&(NRF_GPIOTE->TASKS_CLR[GPIOTE_FET])
);
From rising edge on IO "GPIO_OC" to falling edge of "GPIO_FET" i get about 380ns
what can i do to lower this?