![Infineon GPT12 Timer Concatenation 1 Training Download Page 8](http://html1.mh-extra.com/html/infineon/gpt12-timer-concatenation-1/gpt12-timer-concatenation-1_training_2055146008.webp)
Implementation
Configuring timers T2 and T4 to enable the reload of timer T3
Configurations of timers T2 and T4 are done once in the function
initGpt12Timer()
by the
following steps:
›
Configure timers T2 and T4 in reload mode by using the iLLD function
IfxGpt12_T2_setMode()
and
IfxGpt12_T4_setMode()
›
Set the trigger event for reload of timer T3 by using the iLLD functions
IfxGpt12_T2_setReloadInputMode()
and
IfxGpt12_T4_setReloadInputMode()
›
Set timer T2 value with the iLLD function
IfxGpt12_T2_setTimerValue()
and
dutyDownTime
as parameter
›
Set timer T4 value with the iLLD function
IfxGpt12_T4_setTimerValue()
and
dutyUpTime
as parameter
Starting timer T3
Finally, starting the timer T3 is done in the function
runGpt12PWM()
by calling the iLLD
function
IfxGpt12_T3_run()
.
The above functions are provided by the iLLD header
IfxGpt12.h
.
8
2020-06-05
Copyright © Infineon Technologies AG 2020. All rights reserved.