Infineon ERU Interrupt 1 Скачать руководство пользователя страница 2

Scope of work

The ERU is used to generate an interrupt on each rising and falling 
edge at an input pin.

The 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 Interrupt occurs, an LED 
will be toggled.

2

2019-10-17

Copyright © Infineon Technologies AG 2019. All rights reserved.

Содержание ERU Interrupt 1

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

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

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

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

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

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

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

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

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

Отзывы: