在大多数嵌入式应用中,功耗一直是大家面对的一个主要问题,特别是在电池供电的系统中。
针对此问题,单片机都设计有休眠模式。在PIC单片机中有DOZE, SLEEP和 IDLE模式。在AVR单片机中有IDLE,STANDBY,POWER-DOWN模式。它们都是通过停止主时钟和外设时钟,关闭不用的外设达到省电的目的。对于每种模式的功耗数据,可以在数据手册电气特性的章节找到。
除此之外,如果在保证运行速度的同时,能够采用尽可能低的电压,也能显著降低功耗,在PIC的系列中,带LF的相对不带的就是低功耗的系列(例如PIC16LFxxxxx),其工作电压通常是3.3V。另外提高代码的执行效率,利用CIP外设的组合,都是很好的考虑。
在网页https://www.microchip.com/design-centers/lowpower上有很多这方面的参考笔记,能够提供很好的思路。
AN_42411 - AT06549: Ultra Low Power Techniques
AN_42412 - AT04296: Low Power Features of SAM L Series Devices
AN1267 - eXtreme Low-Power (XLP) PIC Microcontrollers: An Introduction to Microchip's Low-Power Devices
AN1416 - Low-Power Design Guide
AN879 - Using the Microchip Ultra Low-power Wake-up Module
在GITHUB上,也有low power的例程,是基于PIC1847Q10的
https://github.com/microchip-pic ... q10-low-power-modes
Introduction
The term " power down mode” refers to a condition in which a Microcontroller Unit (MCU) enters a low-power mode. The power down modes helps to reduce average power consumption of the MCU through effective management of CPU operations, clock signal to CPU and peripherals. The power down modes in PIC family of MCU’s typically comprises of Doze, Idle, Sleep and Deep sleep modes. The PIC18 Q10 family of MCU’s have three power down modes and they are Doze, Idle and Sleep mode. This example demonstrates configuration of Doze, Idle and Sleep power down modes in PIC18F47Q10 MCU, to achieve low power consumption.
你是否遇到过低功耗相关的问题呐,不妨一起分享一下。
|