Download Print this page
Infineon SMU IR Alarm 1 Manual

Infineon SMU IR Alarm 1 Manual

Interrupt triggered by an smu alarm, aurix tc2xx microcontroller training
Hide thumbs Also See for SMU IR Alarm 1:

Advertisement

Quick Links

SMU_IR_Alarm_1
Interrupt triggered by an SMU alarm
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 SMU IR Alarm 1

  • Page 1 SMU_IR_Alarm_1 Interrupt triggered by an SMU alarm 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

    The Safety Management Unit (SMU) is configured to trigger an interrupt if an internal software alarm occurs. In case of an alarm, an LED will be turned on inside the Interrupt Service Routine. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 3 The SMU, in combination with the embedded safety mechanisms, is able to detect and report more than 99% of the critical failure modes. › In this example, Software Alarm 0 is used to trigger an interrupt. 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. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 5 Configure and enable the SMU Service Request 0 with the functions IfxSrc_init() and IfxSrc_enable(). – Start the SMU state machine (SSM) with the function IfxSmu_cmd() and the parameter IfxSmu_Cmd_start. The functions above are provided by the iLLD headers IfxSmu.h and IfxSrc.h. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 6 All functions above are provided by the iLLD header IfxPort.h. Triggering of the alarm › The Software Alarm 0 can be triggered with the function IfxSmu_triggerAlarm() provided by the iLLD header IfxSmu.h. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 7 IfxPort_setPinState() from the iLLD header IfxPort.h. › 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). 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 8 Run and Test After code compilation and flashing the device, check if LED D107 (1) is turned on. 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.

This manual is also suitable for:

Smu emergency stop alarm 1