牛卧堂MCU技术交流

标题: [M2L31] LPTPWM Control Breathing Light in NPD3 Mode [打印本页]

作者: admin    时间: 3 天前
标题: [M2L31] LPTPWM Control Breathing Light in NPD3 Mode
Application
In the M2L31 series microcontroller, the Low Power Timer (LPTMR) in PWM mode, referred to as LPTPWM, can periodically generate the desired output waveform in both Normal and Power-down mode. In this example, the LPTPWM leverages this capability to create a breathing light effect in Normal Power-down Mode 3 (NPD3). Additionally, the M2L31 can wake up from NPD3 mode as needed.
BSP Version
M2L31_Series_BSP_CMSIS_V3.01.000
Hardware
NuMaker-M2L31KI V2.2

The M2L31 series microcontroller supports Power-down mode for certain peripherals, including
the LPTMR, LPSPI, LPUART and so on. In this example, the LPTMR operates in PWM mode
(LPTPWM), regularly generating an output signal via the pulse waveform generator in NPD3
mode.

In NPD3 mode, the LPTPWM can wake up the system at a specified Compare Data (CMPDAT)
or Period Data (PERIOD) point. Regardless of whether the system remains in or exits NPD3
mode, the periodic output pulse from the LPTPWM remains unaffected.

In this example, the output signal drives an LED to create a breathing light effect.

You can download the sample code at EC_M2L31_LPTPWM_Control_Breathing_Light_NPD3_V1.00







欢迎光临 牛卧堂MCU技术交流 (http://www.nuvoton-mcu.com/) Powered by Discuz! X3.2