This example demonstrates the timer's functionality in free run mode. In the Example interrupt is disabled. The application waits approximately 1 second and calculates the difference in ticks before and after the wait. This gives an approximate timer frequency. Application stops the timer after 5 such approximations.
The counter source Clock is set to MCU_HFOSC0 giving it a 25 MHz tick with counter Presacler disabled. Therefore the approximated frequency is close to 25000000.
Parameter | Value |
---|---|
CPU + OS | r5fss0-0 nortos |
r5fss0-0 freertos | |
Toolchain | ti-arm-clang |
Boards | am243x-evm, am243x-lp |
Example folder | examples/drivers/gp_timer/gp_timer_free_run |
Shown below is a sample output when the application is run,