Download Print this page

Infineon GPT12 PWM Capture 1 Manual page 11

Capture of pwm signal via gpt12, aurix tc2xx microcontroller training

Advertisement

Implementation
Generation of PWM signal
The generation of a simple PWM signal is done by toggling a pin within the function
generate_PWM_signal().
The state of the output port pin P00.8 is toggled by calling the function
IfxPort_setPinState() with the parameters IfxPort_State_high and
IfxPort_State_low provided by iLLD header IfxPort.h.
The period of the generated PWM signal can be adapted by changing the timeout
parameter of the two wait() function calls (header Bsp.h).
For changing the frequency of the PWM signal the global parameter
g_generatedPwmFreqHz can be modified.
The calculation of the two timeout values for toggling the pin state is done by
software.
11
2019-10-17
Copyright © Infineon Technologies AG 2019. All rights reserved.

Advertisement

loading
Need help?

Need help?

Do you have a question about the GPT12 PWM Capture 1 and is the answer not in the manual?

Questions and answers