Forum Discussion
Altera_Forum
Honored Contributor
21 years agohow to use timer
hello all I use the timer core ,but when i write the timer there is something wrong with it . my programm is : void handle_time_interrupt() { IOWR_ALTERA_AVALON_TIMER_CONTROL(TIMER_0_BA...
Altera_Forum
Honored Contributor
21 years agoI suspect that your problem is that a driver is using the timer at the same time as your code, which is not a good position to be in. You can confirm this by looking in the file alt_sys_init.c if you find a MACRO TIMER_0_INIT then my diagnosis is correct.
You should read the Nios II Software Developers Handbook to learn more about the automaticallt installed drivers and how to remove them.