Hello community,
I’m trying to interface the HC-SR04 Ultrasonic Distance Sensor with the MaaxBoard OSM93 (based on i.MX93 Cortex-M33). I plan to connect:
-
TRIG pin of HC-SR04 to one GPIO as output (to send the trigger pulse)
-
ECHO pin to another GPIO or timer pin (to measure the pulse duration)
However, I’m facing the following issues:
-
I’m not sure which 40-pin header GPIOs support TPM (Timer Input Capture) functionality.
-
Is there a TPM Input Capture SDK example for i.MX93 that works with MaaxBoard OSM93?
-
Where can I get a proper pinmux table for the 40-pin header of MaaxBoard OSM93?
Any guidance, pin mappings, or working code examples would be really appreciated!
Thank you!