Forum Discussion
Altera_Forum
Honored Contributor
14 years agoInterval Timer Problem
Hi, I got a system with an interval timer. Now I want to use it to to count how long the time is between two positiv flanks. But the counter won't start. My code: int count_timeH=0...
Altera_Forum
Honored Contributor
14 years agoDo you use that timer only as a cycle counter or do you use it as the system timer for an OS or for any interrupt?
As I said in a previous post, the interval timer always counts the cycles of the system clock: if you reduce the timeout period you DON'T improve timer resolution; on the contrary, you shorten the measurable time, since it resets to zero in a shorter time. If you use the code you posted above, you rather need a very long timeout period, greater than the maximum interval you are supposed to measure.