2024-05-09 07:33 PM
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.
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!
Solved! Go to Solution.
2024-05-13 01:44 PM
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)
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.
2024-05-13 01:44 PM
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)
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.