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 #10 background imageLoading...
Page #10 background image
Implementation
Measuring PWM frequency and duty cycle
The measurement of the PWM frequency and duty cycle is done by calling the
function measure_PWM() containing the following steps:
Update the measured PWM data by calling the iLLD function
IfxGtm_Tim_In_update()
Get the PWM period in seconds with the iLLD function
IfxGtm_Tim_In_getPeriodSecond()
Calculate the PWM frequency with the formula: frequency(Hz) = 1 / period(s)
Get the PWM duty cycle by calling the iLLD function
IfxGtm_Tim_In_getDutyPercent()
All the iLLD functions above are provided by the iLLD header IfxGtm_Tim_In.h
10
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