cancel
Showing results for 
Search instead for 
Did you mean: 

About SPC58 × × - RLA WKPU Test Application for Discovery!

Bwang.3
Associate III

Hello! I want to ask in this routine! I read it This application shows how to the use the WKUP driver. In particular, the WKPU
is configured to wake up the core and generate an interrupt on a falling-edge
of the source INT28. This source is connected to the push button SW_1. After to
configure the WKPU, the application toggles the LED_1 and the LED_2 for 1,5
seconds, then will move the core in STOP0 mode. Now, if the SW_1 is pushed, the
following events will occur:
1. The core will wake up and will return in RUN mode, and LED_1 and LED_2 will
start to blink again.
2. An interrupt will occur. The related callback function will switch-on the
LED_3.

 

QQ图片20240510102658.pngQQ图片20240510102755.png

But I still don't understand that button SW_1 is not used in the pinmap editor ! How does it wake up the CPU and make the LED work!

1 ACCEPTED SOLUTION

Accepted Solutions
Giuseppe DI-GIORE
ST Employee

Hello,

by default the pins/pads are configured in GPIO mode.

GPIO mode enables, (always by default) EIRQ, INTxx (if such functionalities are present on a pin/pad)

  • EIRQ is the external interrupt
  • INTxx is the Wakeup interrupt

So, no configuration is required for INTxx function.

For further details please see the following document:

TN1260 SPC584Cx, SPC58ECx IO definition: signal description and input multiplexing tables

IO definition is attached as Excel file to the above document.

Best Regards.

View solution in original post

1 REPLY 1
Giuseppe DI-GIORE
ST Employee

Hello,

by default the pins/pads are configured in GPIO mode.

GPIO mode enables, (always by default) EIRQ, INTxx (if such functionalities are present on a pin/pad)

  • EIRQ is the external interrupt
  • INTxx is the Wakeup interrupt

So, no configuration is required for INTxx function.

For further details please see the following document:

TN1260 SPC584Cx, SPC58ECx IO definition: signal description and input multiplexing tables

IO definition is attached as Excel file to the above document.

Best Regards.