找回密码
 立即注册

QQ登录

只需一步,快速开始

打印 上一主题 下一主题
开启左侧

[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


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 顶 踩
牛卧堂
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

新唐MCU