Part Number: CC2640
Tool/software: TI C/C++ Compiler
HI TI,
I am programming for a read from a sensor HC-SR04. I am sending a triggerof around 10us and reading back the ECHO signal from the sensor. I have muxed the ECHO pin to read the falling edge(default echo pin high without trigger) using a GPTimer 0B . I want the time duration between the falling and rising edges . Currently I am using the Timestamp_get32() function call to stamp those times. They are not giving expected value. the pulse width may vary between 3ms and 12ms. Whereas the value I get from Timestamping is quite inaccurate . What is the Clock source of Timestamp?Any other method to measure the pulse wdth. We use BLE for communication purposes. Any major timer changes stalls BLE. Any help appreciated ASAP.Thanks in advance