Skip to main content
Angle
Associate III
Jul 5, 2022 3:13 AM UTC
Solved

PUSH BUTTON

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

    This topic has been closed for replies.
    Giuseppe DI-GIORE
    ST Employee
    Jul 5, 2022 6:49 AM UTC

    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.

    3 replies

    Giuseppe DI-GIORE
    ST Employee
    Jul 5, 2022 6:49 AM UTC

    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
    Jul 5, 2022 8:28 AM UTC

    is it this one ? 0693W00000QKRpeQAH.png

    Giuseppe DI-GIORE
    ST Employee
    Jul 5, 2022 9:12 AM UTC

    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,