Hi, can anyone help me understand how to set external interrupts to zero. I am using a dc motor with an optoswitch and displaying the output in rpm on a LCD display. The calculation for rpm uses capture mode register of module zero to capture the interrupts. When the motor stops running it does not display zero. Any suggestions?
Edwin
I think I did something very similar to what you have suggested. I just assigned a variable to increment to 10 as soon as the motor stopped spinning, then reset the timer to zero. Which seems to work for the moment, I now have to add a PID system, so hopefully it still works after this addition. Thank you for your help though, much appreciated. Edwin