STM32L4低功耗定时器(LPTIM)介绍
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
• Timeout function for wakeup from low power modes
LPTIM Features (1/3)
• Up to 5 clock sources to achieve lowest power consumption
• APB clock • LP oscillators: LSE, LSI, HSI • External clock
LPTIM Features (2/3)
• Up to 3 configurable waveforms
• PWM waveform • One Pulse waveform • Set Once waveform
LPTIMx_ARR LPTIMx_CMP
60
POL = 0
PWM OnePulse SetOnce
• With configurable active edge: Rising edge, Falling edge and Both edges • When both edges configuration is chosen, an auxiliary clock source is needed with a frequency 4 times bigger, at least, than the external signal
Useful when LPTIM is clocked by a clock source different from APB
• Direction change interrupt; used by Encoder mode
Low Power Timer LPTIM
Microcontrollers Division – Application Support Solutions Team March 2013
Features Summary
• Asynchronous running capability
58
• Ultra low power-consumption
LPTIM Features (3/3)
• Encoder mode
• Same operation as Encoder mode on General Purpose Timers • Only available when LPTimer runs in Continuous mode
Байду номын сангаас61
• Up to 6 interrupt sources
• Compare match interrupt • Auto-reload match interrupt • External trigger event interrupt • Auto-reload register write completed interrupt • Compare register write completed interrupt
59
• Up to 8 external triggers
• With configurable active edges: Rising edge, Falling edge and Both edges • With digital glitch filter to avoid spurious triggers
• Up to 2 operation modes
• Continuous mode: free running mode; many counter overruns are possible • One Shot mode: Counter stops counting when the overrun value is reached