- This topic has 1 reply, 2 voices, and was last updated 12 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › counter interrupt programming
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.
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.