madhushan90
Newbie level 6
Hi everyone, i want to get the time period of a pulse in mikroc pro. I'm using SR04 ultrasonic sensor, when it triggered it will generate a pulse. To calculate the distance, we have to divide pulse time period by constant given by the manufactures. The thing is time period should be within rising edge to the falling edge in same pulse. Please help me to do this. thanks.