Forum Discussion
Altera_Forum
Honored Contributor
10 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