| ??? 01/01/01 12:46 Read: times |
#7644 - RE: rev-counter |
Hi Jason,
you wrote: ------------------------------------ RPM = 3295 x .000002 =.00659 =60 .00659 DIVIDIDE ONE MINUTE RPM = 9104 this is what I want to display I think this part is ok I also divide the rpm by two for the four stock four-cylinder engines. ------------------------------------ I can not see any problem. On writing this in a single formula you get: RPM = 60 / (Timervalue * .2E-5) / 2 or: RPM = 1.5E7 / Timervalue So you need only a division to made. You should also update the display no faster than 2 ... 5 times every second to make it good readable for the humans eye. So you have enough time to perform a division and need no trick and many code space for fast execution. To perform the 32 bit division and display the result in decimal format, you can use my math pack: http://www.specs.de/~danni/ap.../index.htm Its the best to simulate my example to understand the working. This math pack was very useful on my time before C51. Peter |
| Topic | Author | Date |
| rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
| RE: rev-counter | 01/01/70 00:00 | |
RE: rev-counter | 01/01/70 00:00 |



