iLLD_TC27xC
1.0
|
![]() |
The TIMER interface driver provides a default CCU6 configuration for runnung the selected timer block.
User can select the various configuration options that hardware allows
In the following sections it will be described, how to integrate the driver into the application framework.
Include following header file into your C code:
Declare the TIMER handle as global variable in your C code:
See also How to define Interrupts?
Define priority for the Interrrupt handler. This is normally done in the Ifx_IntPrioDef.h file:
Add the interrupt service routine to your C code.
Finally install the interrupt handlers in your initialisation function:
The module initialisation can be done in the same function. Here an example:
The Timer is ready for use now!
The TIMER driver provides simple to use timer Control functions
This means: In addition to start and stop a single timer, you can start and stop both the timer blocks at the same time you can also run the timer in single shot mode and finally you an manually make the timer count each step
Start the timer
Stop the timer
Start both the timers synchronously, when the synchronousOperation mode is selected in the configuration
Stop both the timers synchronously, when the synchronousOperation mode is selected in the configuration
Start the selected timer in single shot mode
Make the timer count each step manually