Hello, I work with some ADC 24-bit (HX711) and for getting data from that I need after low level on first gpio pin to fed 26 pulses to that with time period about 1us on second gpio pin and simultaneously getting data on first gpio pin.
For detect low level on first pin I use gpiote interrupt (there I start the timer)
I thought about easiest way to generate signal with freq about 1Mhz.
I try to use function from timer example for generating such a signal:
nrf_drv_timer_extended_compare( &TIMER_LED, NRF_TIMER_CC_CHANNEL0, 1, NRF_TIMER_SHORT_COMPARE0_CLEAR_MASK, true);
and in timer_handler I toggling pin - but it's only 131kHz maximum