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 agoAlthough I'm not sure I understand what your problem exactly is, I advance two hypothesis:
1. You must debounce the button contact which is possibly generating fake signal commutations. 2. The measured interval is longer than the timer period, then the timer overflows and you get a shorter estimated time. What's your system frequency and what's the timer period? If you want to use the timer only in this free running way, you should program the period to the highest value, namely 0xffff ffff