Hello , by using FTM how to measure the pulse width of the echo signal and thereby the distance between the sensor and any obstacle, I am using K64F and HC-SR04 ultrasonic sensor using two pins one as trigger for the sensor and the other for the echo signal, so by using the dual edge capture mode how will be the code script **consider me as beginner :smileyhappy:
Hello Murtada Muqdadi:
You may use KSDK for this application. See the next document created by Abigail Inzunza which implements distance measurement via KSDK, with the K64 using ultrasonic sensors:
Configuring Kinetis Software Development Kit (KSDK) to measure distance with ultrasonic transducers
Regards!
Jorge Gonzalez