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 agoIIRC that timer 'device' is horrid to use! It is really a 16bit peripheral so access to all the 32bit registers become painful and require multiple cycles.
I got our hw guys to add two 32bit up counters, one counts 'SYS_CLK', the other microseconds (divided down from SYS_CLK). These can be read in (about) 2 cycles and the differences used for timing intervals.