Hi,
i am trying to interface ultrasonic sensor with nrf9160, but i dont get any examples regarding ultrasonic. so i tried the interrupt method to measure the time of gpio high state, i used
k_cycle_get_32(); function to get starting timing and also i used the same function while the high is getting low. then i send the count to SYS_CLOCK_HW_CYCLES_TO_NS() function, but it doesnt give the exact value. kindly help me to sort this out. here i attached the interrupt callback function.
thanks in advance
hmdra