Download Print this page
Infineon ERU Interrupt 1 Manual

Infineon ERU Interrupt 1 Manual

External interrupt generation, aurix tc2xx microcontroller training

Advertisement

Quick Links

ERU_Interrupt_1
External interrupt generation
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 ERU Interrupt 1

  • Page 1 ERU_Interrupt_1 External interrupt generation 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

    P02.0. The falling and rising edges are generated with pin P02.1. If an Interrupt occurs, an LED will be toggled. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 3 › The detected events can also be used by other modules to trigger or to gate module specific actions. 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. The two pins P02.0 and P02.1 have to be connected to each other. Output Input 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 5 Select the condition to generate an interrupt with the function IfxScuEru_setInterruptGatingPattern() – Configure and enable the service request with the functions IfxSrc_init() and IfxSrc_enable() › The functions above are provided by the iLLD headers IfxScuEru.h and IfxSrc.h. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 6 Implementation › The below figures from the AURIX™ TC29x B-Step User’s Manual illustrate the configuration steps that were followed in this example. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 7 This is done with the macro IFX_INTERRUPT(isr, vectabNum, priority). When triggered, the ISR blinks the LED by toggling the state of the connected pin using the function IfxPort_setPinState(). 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 8 Toggle the P02.1 pin state via the value of the variable LEDstate of the structure g_ERUconfig with the debugger. Check LED D107 (1) is changing state when the variable is modified. 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.