Implementation
Configure the GPT12 Module
To generate a PWM signal with the GPT1 block, it is needed to:
›
Enable the GPT12 module
›
Configure the frequency for the block GPT1 by setting the prescaler value (BPS1)
of the divider
›
Configure the frequency for the timer T3 by setting the prescaler value (T3I) of the
divider
›
Configure the timer T3 mode, direction and starting value
›
Configure the two auxiliary timers (timer mode, reload input mode and reload
values) to reload the timer T3
The above steps are detailed in the following slides.
5
2020-06-05
Copyright © Infineon Technologies AG 2020. All rights reserved.