EasyManua.ls Logo

Infineon GTM TIM Capture 1 User Manual

Infineon GTM TIM Capture 1
13 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #7 background imageLoading...
Page #7 background image
Implementation
Configuring the TOM
The configuration of the TOM is done by calling the function generate_PWM() containing the
following steps:
Enable the FXU clocks by calling the function IfxGtm_Cmu_enableClocks().
Initialize an instance of the structure IfxGtm_Tom_Pwm_Config with its default values by
calling the function IfxGtm_Tom_Pwm_initConfig() .
The IfxGtm_Tom_Pwm_Config structure allows to set the following parameters to initialize
the module:
tom Selection of the TOM which is counting
tomChannel Selection of the channel which is driving the output port pin
period Setting of the period for the PWM signal to the desired value
dutyCycle Setting of the duty cycle of the PWM signal to the desired value
pin.outputPin Selection of the output port pin
synchronousUpdateEnable Enabling of Synchronous Update of the timer
clock Selection of the clock used for the generation of the PWM
7
2020-01-17 Copyright © Infineon Technologies AG 2020. All rights reserved.
Question and Answer IconNeed help?

Do you have a question about the Infineon GTM TIM Capture 1 and is the answer not in the manual?

Infineon GTM TIM Capture 1 Specifications

General IconGeneral
BrandInfineon
ModelGTM TIM Capture 1
CategoryControl Unit
LanguageEnglish

Summary

AURIX TC2xx Microcontroller Training

Scope of Work for PWM Capture

Hardware Setup for TC297

TIM Input and TOM Output Pins

Specifies connecting P02.0 for TIM input and P02.3 for TOM output.

Implementing TIM Configuration

TIM Configuration Steps

Details enabling GTM/CMU clocks and initializing TIM configuration structures.

Implementing TOM Configuration

Starting PWM Generation

PWM Generation Example and Formula

Measuring PWM Frequency and Duty Cycle

TIM Measurement Functions

Lists iLLD functions like update(), getPeriodSecond(), and getDutyPercent() for measurement.

Run and Test Procedure

Related product manuals