Download Print this page

Infineon GPT12 Training page 8

Pwm generation 1 for kit_aurix_tc297_tft
Hide thumbs Also See for GPT12:

Advertisement

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.
2020-06-05
Copyright © Infineon Technologies AG 2020. All rights reserved.
8

Advertisement

loading