Taking the timer_free_run sample program for reference, for
timer_config = 1 it is using the settings as follows:
Sys_Timer_Set_Control(0, (TIMER_MULTI_COUNT_8 | TIMER_FREE_RUN | TIMER_SLOWCLK_DIV2 | TIMER_PRESCALE_64) | 1000);
The formula for finding timer delay is
according to RSL10_hardware_reference.pdf page 372.
Using the example of timer_free_run sample program, how do I calculate the timer delay?
I also have the following related questions:
It seems f_slowclock = 1 MHz in my case, f_sysclock seems to be 10 MHz. How do I find out this value programmatically? I am using The RSL10 development board (EVBUM2529/D) and the value for SYSCLK doesn’t seem to be mentioned in the datasheet. Where should I have looked to see that SYSCLOCK is 10 MHz for my development board?
What does TIMER_MULTI_COUNT_8 do in a free running timer in the timer_free_run sample program?
timer_driver sample program seems to use a different method to initialize timer. What is the timer_driver sample program trying to show? If I just need a basic timer should I use timer_free_run or timer_driver as the base program? When would I use one over the other?