background image

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

Содержание GTM TOM Interrupt 1

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: