- Application: This example code implements receiving data of variable length through LPUART and keeping the clock enabled in Power-down mode, and then wakes up the MCU for data processing. This realizes the operating characteristics of M2L31 low power LPUART.
- BSP Version: M2L31_Series_BSP_CMSIS_V3.00.000
- Hardware: NuMaker-M2L31SG V2.1
This example code demonstrates how to use the M2L31 LPUART and LPPDMA to receive variable-length data in Power-down mode and then wake up the MCU. It also shows how to change the baud rate to 115200 and keep the LPUART clock enabled in Power-down mode. After the MCU processes the received data, it enters Power-down mode again, and the cycle repeats. This approach reduces overall system power consumption.
You can refer to the code in main.c
The above main.c is based on the example code provided in the Nuvoton official forum
(https://forum.nuvoton.com/en/mcu-nudeveloper-ecosystem/bsp-example-code/11279) and has been modified accordingly.
The following is the current test result.
1. This is the average power consumption in low-power mode while maintaining a baud rate of 115200 and keeping the clock enabled.

2. This period represents the duration during which LPUART receives data in low-power mode.
|