Skip to main content
Angle
Associate III
July 5, 2022
Solved

PUSH BUTTON

  • July 5, 2022
  • 2 replies
  • 1241 views

May i know in what library used for push button or the example code for push button?

    This topic has been closed for replies.
    Best answer by Giuseppe DI-GIORE

    In SPC5Studio, please, see EIRQ demos.

    Push button are usually connected to:

    • SIUL2 pins with external interrupt capabilities
    • Wakeup Unit pins with interrupt capabilities

    Regards.

    2 replies

    Giuseppe DI-GIORE
    ST Employee
    July 5, 2022

    In SPC5Studio, please, see EIRQ demos.

    Push button are usually connected to:

    • SIUL2 pins with external interrupt capabilities
    • Wakeup Unit pins with interrupt capabilities

    Regards.

    Angle
    AngleAuthor
    Associate III
    July 5, 2022

    is it this one ? 0693W00000QKRpeQAH.png

    Giuseppe DI-GIORE
    ST Employee
    July 5, 2022

    yes, this is the code to manage the EIRQ interrupts.

    EIRQ can be configured via IRQ graphical configurator:

    1) click on IRQ componnt

    2) select EIRQ

    3) configure which EIRQ to use and which callback to connect to selected EIRQ

    4) configure rising/falling edge and enable filtering of glitches

    Regards,