Implementation
Setting the duty cycle
The setting of the duty cycle is done by calling the function setDutyCycle(), which contains the
following steps:
›
Set the dutyCycle parameters of the instance of the configuration structure to set theduty
cycle for the PWM signal to the desired value
›
Call the function IfxGtm_Atom_Pwm_init() to re-initialize and re-activates the ATOM with
the new configuration.
The functions IfxGtm_Atom_Pwm_init() is provided by the iLLD header
IfxGtm_Atom_Pwm.h.
Fading the LED
The fading of the LED is done in the function fadeLED() by repetitively adding or removing a
step value to the duty cycle of the PWM.
2019-10-17
Copyright © Infineon Technologies AG 2019. All rights reserved.
7
Need help?
Do you have a question about the GTM ATOM PWM 1 and is the answer not in the manual?
Questions and answers