- Application: LPADC in the M2L31 series microcontroller (MCU) can work itself, regularly sampling and comparing with threshold, and waking up MCU only when the data exceeds the threshold.
- BSP Version: M2L31_Series_BSP_CMSIS_V3.01.000
- Hardware: NuMaker-M2L31KI V2.1
Some peripherals in the M2L31 series microcontroller (MCU) can still work in sleep mode, such as LPTimer, LPADC, LPUART and so on. In this example code, LPADC is triggered by LPTimer periodically. If the result of LPADC exceeds the threshold, the MCU will be woken up to deal with the subsequent matters. If the conversion result does not exceed the threshold, the MCU remains in sleep mode.
This code can be used to monitor sensor at the lowest power consumption.
You can download the sample code at https://www.nuvoton.com/resource-downlo ... 3006394762
|