background image

Run and Test

After code compilation and flashing the 
device, perform the following steps:

1.

Connect the two pins P02.0 and 
P02.1 to each other. 
P02.1 is used to generate the 
falling and rising edges by 
toggling the state from high to 
low. P02.0 is the input of the 
ERU which generates the 
interrupts on falling and rising 
edges.

2.

Toggle the P02.1 pin state via 
the value of the variable 

LEDstate 

of the structure 

g_ERUconfig

with the 

debugger.

3.

Check LED D107 (1) is 
changing state when the 
variable is modified.

1

8

2019-10-17

Copyright © Infineon Technologies AG 2019. All rights reserved.

Summary of Contents for ERU Interrupt 1

Page 1: ...AURIX TC2xx Microcontroller Training V1 0 0 ERU_Interrupt_1 External interrupt generation Please read the Important Notice and Warnings at the end of this document...

Page 2: ...code example uses the External Request Unit ERU to generate an interrupt for each falling and rising edge at the input pin P02 0 The falling and rising edges are generated with pin P02 1 If an Interr...

Page 3: ...n of interrupts based on selectable trigger events at different inputs e g to generate external interrupt requests if an edge occurs at an input pin The detected events can also be used by other modul...

Page 4: ...de example has been developed for the board KIT_AURIX_TC297_TFT_BC Step The two pins P02 0 and P02 1 have to be connected to each other Input Output 4 2019 10 17 Copyright Infineon Technologies AG 201...

Page 5: ...he output channel by selecting the Output Gating Unit OGUz and the trigger pulse output TRxz An event from the Event Trigger Logic ETL0 triggers the OGU0 signal TRx0 The function IfxScuEru_connectTrig...

Page 6: ...ation The below figures from the AURIX TC29x B Step User s Manual illustrate the configuration steps that were followed in this example 6 2019 10 17 Copyright Infineon Technologies AG 2019 All rights...

Page 7: ...ration The method implementing the ISR needs to be assigned a priority and a CPU core responsible for its execution This is done with the macro IFX_INTERRUPT isr vectabNum priority When triggered the...

Page 8: ...edges by toggling the state from high to low P02 0 is the input of the ERU which generates the interrupts on falling and rising edges 2 Toggle the P02 1 pin state via the value of the variable LEDstat...

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: ...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 de...

Reviews: