Download Print this page
Infineon GTM TOM Interrupt 1 Manual

Infineon GTM TOM Interrupt 1 Manual

Gtm tom interrupt, aurix tc2xx microcontroller training

Advertisement

Quick Links

GTM_TOM_Interrupt_1
GTM TOM interrupt
AURIX™ TC2xx Microcontroller Training
V1.0.0
Please read the Important Notice and Warnings at the end of this document

Advertisement

loading

Summary of Contents for Infineon GTM TOM Interrupt 1

  • Page 1 GTM_TOM_Interrupt_1 GTM TOM interrupt AURIX™ TC2xx Microcontroller Training V1.0.0 Please read the Important Notice and Warnings at the end of this document...
  • Page 2: Scope Of Work

    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). 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 3 The Clock Management Unit (CMU) is responsible for clock generation of the GTM. The Fixed Clock Generation (FXU) is one of its subunits and it provides five predefined non-configurable clocks for GTM modules, including the TOM. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 4: Hardware Setup

    Hardware setup This code example has been developed for the board KIT_AURIX_TC297_TFT_BC-Step. LED D107 (1) is used for this example. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 5 – Select CMU clock 0 – base.frequency – Set timer frequency to 2 Hz (Interrupt every 500 ms) – base.isrPriority – Interrupt Service Routine priority – base.isrProvider – Interrupt Service Routine provider 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 6 › The function IfxGtm_Tom_Timer_init() initializes and activates the TOM with the given configuration. All the functions used for the configuration of the TOM are provided by the iLLD header IfxGtm_Tom_Timer.h. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 7 The ISR implemented in this example contains the following steps: › Clear the timer event with the function IfxGtm_Tom_Timer_acknowledgeTimerIrq() (iLLD header IfxGtm_Tom_Timer.h). › Change the LED state by calling the function IfxPort_togglePin() (iLLD header IfxPort.h). 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 8 Run and Test After code compilation and flashing the device, observe the LED D107 (1), which should be blinking. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 9 More code examples can be found on the GIT repository: › https://github.com/Infineon/AURIX_code_examples › For additional trainings, visit our webpage: › https://www.infineon.com/aurix-expert-training › For questions and support, use the AURIX™ Forum: › https://www.infineonforums.com/forums/13-Aurix-Forum 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 10 Infineon Technologies in in personal injury. customer’s applications. The data contained in this document is exclusively intended for technically trained staff.