Altera_Forum
Honored Contributor
16 years agoHelp with Efficient Conversion?
I am looking to convert a 16bit number(X) to another 16 bit number(Y). X is a count coming from a Tach output on a Fan. Y is the fan's corresponding RPM. (note: this is a inverse relationship)
The relationship is Y = 60 / (X*1.706e-6) To keep it fixed point so far the best I have come up with is 2 divides: First I = X / 58 (I is intermedite value) then take 606000 / I to get Y. X ranges from about 5858 to 30000. I am worried about the real estate of 2 divides, since I will need 8 channels of this (8x2=16 divides) on my cyclone II. Any help improving this calculation? Thanks!