counter interrupt programming | Microcontroller › 8051 › counter interrupt programming This topic has 1 reply, 2 voices, and was last updated 11 years, 7 months ago by AJISH ALFRED. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts May 13, 2013 at 4:23 pm #2401 Tejminder kaurParticipant hello i am using p89v51rd2 controller to calculate rpm of motor using gear tooth sensor. output of sensor is in pulses and is act as interrupt input to microcontroller . can you please guide in programming of this. May 14, 2013 at 4:25 am #9740 AJISH ALFREDParticipant Hi Tejminder, Configure any counter in the ‘event counting mode’ which can count the pulses. Use another counter which can fire after 1second and when it does it will output the evnt counter value. Now multiply tha value with 60 and you will get the RPM. Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In