??? 02/25/09 20:46 Read: times |
#162842 - This is no log function, ... Responding to: ???'s previous message |
... but a simple division!
If you have a pulse train of 2.2Hz at a speed of 1MPH and you check with the /INT input how many periods of a 5kHz reference clock fit into one period of the pulse train, then the corresponding formula is: COUNTS = 5000 / (SPEED x 2.2) So, at a speed of 1MPH, for instance, you get 5000 / (1 x 2.2) = 2273 counts. To get the speed from the counts take the reverse formula: SPEED = 5000 / (COUNTS x 2.2) Well, your simulator tells something different... Kai |