Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHow to craete a 1 microsecond interval Timer of HPS ?
What HWLIB APIs should I use to configure a Timer of HPS with a 1 micro-second interval ? How can I get the Timer Input Clock frequency and set the appropriate count into Timer ? Than...
Altera_Forum
Honored Contributor
12 years ago============= OSC1_TMR0 ===========
Input clock (OSC1) freq = 25000000 Hz desire freq is 1000000 Hz. timer count is 25 .alt_gpt_reset_value_get(), count = 25. INFO: Timer Period in microseconds is 1. INFO: Timer running at 961538Hz. ============= SP_TMR0 =========== Input clock freq = 100000000 Hz desire freq is 1000000 Hz. timer count is 100 . alt_gpt_reset_value_get(), count = 100. INFO: Timer Period in microseconds is 1. INFO: Timer running at 990099Hz.