README


clock


Example Summary

This application demonstrates how to use the ti.sysbios.knl.Clock module to construct one-shot and periodic Clock instances. Clock instances are essentially functions that run after a certain number of Clock ticks.

Example Usage

Application Design Details

To configure the Clock module, such as to set the system’s tickPeriod in microseconds, please see the application’s corresponding configuration file clock.cfg.

Note that the timeout value configured for each Clock instance is scaled by the Clock ‘tickPeriod’ value, so the test should run for the same duration across different processor and timer types. Consequently, the displayed tick counts will vary based on the specified Clock ‘tickPeriod’ and the rate and accuracy of the underlying timer.

For example:

For CC13xx/CC26xx devices with a system tickPeriod of 10 microseconds, the Clock instances will trigger after approximately 500, 1000 and 1100 ticks.

For an MSP432 running with a system tickPeriod of 1000 microseconds, the Clock instances will trigger after approximately 5, 10 and 11 ticks.

References