??? 03/26/07 23:40 Read: times |
#135944 - Building a frequency meter - long division help |
Hi there,
I'm building a tachometer with the 8051 board, the input being an external interrupt from an optical sensor. I've got code written out, albeit a bit inefficient, to detect 'pulse events' and generate timestamps of these events. using these timestamps (and yes I'm keeping track of timer overflows), I can calculate the timeperiod of the events in microseconds. Now, I need to divide a 24-bit by 24-bit number in order for me to complete my project, but I'm not able to find any routines that really do this. I've looked around a lot for 32-bit division but only come across 32-bit by 16-bit division at the most. While I've seen some that say it's easy to expand from a 16 bit, I've tried with a couple and only been frustrated. So is there somebody who has or knows of a 32-bit by 32-bit (or even 24 bits) division routine that I can use? coz I sure would love to have the satisfaction of atleast seeing an output on my project once and knowing it works fine!! That'd be a big start to me cleaning up my code and working on its efficiency. Links, code and help will be very much appreciated! |
Topic | Author | Date |
Building a frequency meter - long division help | 01/01/70 00:00 | |
Your Here![]() | 01/01/70 00:00 |