How correctly measure speed with an hall effect sensor using TIMER
Hello, I'm using a timer to measure the frequency of an Hall effect speed sensor.
The point here is that the routine that measure the frequency is triggered by the falling edge of the signal. Then the difference is calculated between two interval to retrieve the frequecy. But if the speed equals to 0, no interrupt are generated and the measured frequency is the latest greater than 0. The same problem if the sensor is disconnected (to implement some failsafe logics). If the sensor is working and at certain point the cable is broken no more interrupt will be generated.
Any idea to solve this problem?
