Forum Discussion
Altera_Forum
Honored Contributor
20 years agoLothar,
Since you should have a dedicated timer for this function, you should probably go back to SOPC builder and create one. You can not just create one for the kernel project, it has to be generated by SOPC builder first. However, for the purpose of checking it out, you may be able to use one that is already available. If you are using an Altera Dev board, I think most of them have something like a sys_timer and high_res_timer pre-defined. Try using the high_res_timer, although remember this is a us timer and not a ms timer. Create a na_timer1 in your code and assign it to the address of you high_res_timer, see how things go. Timers and addresses should be available in your system.h file, ptf file, or SOPC builder. Once you iron our the details go back to SOPC builder and create a timer devoted to support this function. Doug