Hello everybody, I'm working on a project which requires using HC SR04 ultrasonic
ranging module, but I'm stuck using the sensor since I can't seem to make the
Input Capture work using processor expert. So far I have used this:
/* Write your code here ... */
so if an event of getting the value of the timer when an edge is detected occurs, a Led is supposed
to change its state. Problem is that even though the Led blinks, when I try to see the value of the
variable pulse using a serial communication, I get its initial value (200) in this case, which means that the
event didn't change it!
Any help would be greatly appreciated.