iLLD_TC27xC
1.0
|
![]() |
The TPWM interface driver provides a default CCU6 configuration for PWM modulation output through 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 TPWM 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 TPWM is ready for use now!
The TPWM driver provides simple to use Modulation Control functions
This means: you can start, stop, pause and resume the modulation once the module is initialised with the appropriate configuration
Start the modulation
Stop the modulation
Pause the modulation
Resume the modulation