标题: [M2L31] Waking up MCU Only When LPADC Data Exceeded [打印本页] 作者: admin 时间: 2024-8-8 11:20 标题: [M2L31] Waking up MCU Only When LPADC Data Exceeded
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.