Forum Discussion
Altera_Forum
Honored Contributor
11 years agousing multiple conversion statements
I'm trying to pass an integer through multiple conversions. i placed an integer counter (mone) of 0 to 9 Which i control with a push button(that act as a clock_in). i basically need every time...
Altera_Forum
Honored Contributor
11 years agook then you have range 0~9 from counter (in fact your code is 0~8 for calculation logic)
now 1/0.000305 = 3279 so multiply each count value by 3279 and you will get 0~26232 or if 0~9 will need 0~29511 so you are lucky now since 15 bits covers 0~32767