Download Print this page

Infineon GPT12 Training page 6

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

Advertisement

Implementation
Configure the GPT12 Module
Configuration of the GPT12 is done once in the function initGpt12PWM() by the
following steps:
Enable GPT12 module by calling the iLLD function IfxGpt12_enableModule()
Set GPT1 prescaler with the iLLD function IfxGpt12_setGpt1BlockPrescaler()
Configure the mode of timer T3 by using the iLLD function
IfxGpt12_T3_setMode()
Set the counting direction of the timer T3 by calling the iLLD function
IfxGpt12_T3_setTimerDirection()
Set the prescaler of timer T3 by calling the iLLD function
IfxGpt12_T3_setTimerPrescaler()
Set the timer value with the iLLD function IfxGpt12_T3_setTimerValue() and use
an uint16 number as parameter
The configuration functions above are provided by the iLLD header IfxGpt12.h.
2020-06-05
Copyright © Infineon Technologies AG 2020. All rights reserved.
6

Advertisement

loading