Skip to main content
Angle
Associate III
July 7, 2022
Question

EIRQ

  • July 7, 2022
  • 2 replies
  • 1026 views

hI, can someone explain this line for me?

what mean by  IRQ_PROLOGUE(); EPILOGUE AND DISRO.0 ?]

0693W00000QKdM5QAL.png 

    This topic has been closed for replies.

    2 replies

    Giuseppe DI-GIORE
    ST Employee
    July 7, 2022

    IRQ_PROLOGUE()

    IRQ_EPILOGUE()

    are two macros (actually empty) used for application needs: for example to track interrupt execution time.

    Considering that by default are empty you can ignore them.

    DISR0 register is the interrupt status register. A bit is set to 1 if the correspondent EIRQ is set.

    For example if EIRQ3 is pending, bit 3 of DISR0 register is set to 1 (by hardware)

    After servicing the interrupt the software must acknowledge (clear) the interrupt by writing 1 to the corresponding bit.

    Regards.

    Angle
    AngleAuthor
    Associate III
    July 8, 2022

    okay understand. Then what mean by Group 0, group 1, group 2 etc. The group to what group ?

    0693W00000QKhsoQAD.png 

    0693W00000QKhstQAD.png 

    0693W00000QKhsyQAD.png 

    and also can you explain this line too ?

    0693W00000QKht8QAD.png 

    Angle
    AngleAuthor
    Associate III
    July 8, 2022

    *the group refer to what group ?

    Giuseppe DI-GIORE
    ST Employee
    July 8, 2022

    External interrupts are "grouped" into a single interrupt line.

    Each interrupt line manages 4 different external interrupts.

    The status register reports which external interrupt triggered the interrupt line.

    Regards.