cancel
Showing results for 
Search instead for 
Did you mean: 

PUSH BUTTON

Angle
Associate II

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

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Giuseppe DI-GIORE
ST Employee

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.

View solution in original post

3 REPLIES 3
Giuseppe DI-GIORE
ST Employee

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.

is it this one ? 0693W00000QKRpeQAH.png

Giuseppe DI-GIORE
ST Employee

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,