background image

IMPORTANT NOTICE

The information given in this document shall in no

event be regarded as a guarantee of conditions or

characteristics (“Beschaffenheitsgarantie”) .
With respect to any examples, hints or any typical

values stated herein and/or any information

regarding the application of the product, Infineon

Technologies hereby disclaims any and all

warranties and liabilities of any kind, including

without limitation warranties of non-infringement

of intellectual property rights of any third party.
In addition, any information given in this

document is subject to customer’s compliance

with its obligations stated in this document and

any applicable legal requirements, norms and

standards concerning customer’s products and

any use of the product of Infineon Technologies in

customer’s applications.
The data contained in this document is exclusively

intended for technically trained staff. It is the

responsibility

of

customer’s

technical

departments to evaluate the suitability of the

product for the intended application and the

completeness of the product information given in

this document with respect to such application.

For further information on the product,

technology, delivery terms and conditions and

prices please contact your nearest Infineon

Technologies office (

www.infineon.com

).

WARNINGS

Due to technical requirements products may

contain dangerous substances. For information

on the types in question please contact your

nearest Infineon Technologies office.
Except as otherwise explicitly approved by

Infineon Technologies in a written document

signed by authorized representatives of Infineon

Technologies, Infineon Technologies’ products

may not be used in any applications where a

failure of the product or any consequences of the

use thereof can reasonably be expected to result

in personal injury.

Edition 2019-10

Published by

Infineon Technologies AG

81726 Munich, Germany

© 2019 Infineon Technologies AG.

All Rights Reserved.

Do you have a question about this

document?

Email: 

[email protected]

Document reference

GTM_TOM_Interrupt_1

Trademarks

All referenced product or service names and trademarks are the property of their respective owners.

Summary of Contents for GTM TOM Interrupt 1

Page 1: ...AURIX TC2xx Microcontroller Training V1 0 0 GTM_TOM_Interrupt_1 GTM TOM interrupt Please read the Important Notice and Warnings at the end of this document...

Page 2: ...0 ms The interrupt toggles an LED The Generic Timer Module triggers an interrupt every 500 ms The state of the port pin where the LED is connected is toggled inside the Interrupt Service Routine ISR 2...

Page 3: ...at can offers 16 independent channels to generate output signals The Clock Management Unit CMU is responsible for clock generation of the GTM The Fixed Clock Generation FXU is one of its subunits and...

Page 4: ...rdware setup This code example has been developed for the board KIT_AURIX_TC297_TFT_BC Step LED D107 1 is used for this example 1 4 2019 10 17 Copyright Infineon Technologies AG 2019 All rights reserv...

Page 5: ...e of the structure IfxGtm_Tom_Timer_Config with its default values The IfxGtm_Tom_Timer_Config structure allows to set the following parameters to initialize the module tom Set TOM 1 timerChannel Set...

Page 6: ...ble the FXU clocks by calling the function IfxGtm_Cmu_enableClocks The function IfxGtm_Tom_Timer_init initializes and activates the TOM with the given configuration All the functions used for the conf...

Page 7: ...t provided by iLLD header IfxPort h Interrupt Service Routine ISR The ISR implemented in this example contains the following steps Clear the timer event with the function IfxGtm_Tom_Timer_acknowledgeT...

Page 8: ...Run and Test After code compilation and flashing the device observe the LED D107 1 which should be blinking 1 8 2019 10 17 Copyright Infineon Technologies AG 2019 All rights reserved...

Page 9: ...www infineon com aurix expert training AURIX Development Studio is available online https www infineon com aurixdevelopmentstudio Use the Import function to get access to more code examples For questi...

Page 10: ...the product for the intended application and the completeness of the product information given in this document with respect to such application For further information on the product technology deli...

Reviews: