Download Print this page

Infineon GPT12 Training page 10

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

Advertisement

Implementation
Configuring the LED
The LED is configured and toggled by controlling the port pin to which it is connected.
In the setup phase, the port pin is configured as output push-pull mode using the
function IfxPort_setPinMode().
The Interrupt Service Routine (ISR)
The ISR implemented in this example calls the iLLD function IfxPort_togglePin() to
toggle the LED's state.
The interrupt is triggered every time the timer T3 generates an underflow.
On underflow of timer T3, the Output Toggle Latch (T3OTL) is toggled and the value
of timer T2 or T4 is transferred into timer T3 depending on T3OTL value.
Both functions are provided by the iLLD header IfxPort.h.
10
2020-06-05
Copyright © Infineon Technologies AG 2020. All rights reserved.

Advertisement

loading