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