Software management of power supply

Publisher:genius6Latest update time:2012-10-17 Source: 维库电子 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The power management state is the full-speed working state and the sleep state with the lowest power consumption. Therefore, the main task of power management is to switch between the full-speed working state and the sleep state in a timely manner to achieve the purpose of saving power. The specific design idea is to generate a kernel daemon thread when the system is initialized. The thread checks the system status at regular intervals. If the system is in an idle state for a period of time greater than the preset value, the assembly instruction is called to put the system into sleep until the user operates to wake it up.

1. Wake up

When the user tries to wake up the system, ARM needs to go through a wake-up process to recover from the Sleep state to the normal working state. The initial actions of this process are the same as the normal Reset process.

After adding these codes, the system can be woken up from sleep state normally.

2. Switch to sleep mode

The main functions are to save the stack address, clear the data cache, set the memory to self-refresh state, etc. When all steps are completed in order, execute:

Put the system into sleep mode.

3. Voltage collection

Voltage acquisition is a simple program that allows the system to track the current voltage conditions.

The OSTimeDly() function is used in the data acquisition task Vo_Sampling_Task() to implement a 4-beat delay, that is, the task is executed once every 4×0.5=2ms, which ensures a sampling rate of 20ms for sampling 10 points.

Reference address:Software management of power supply

Previous article:Buck Regulator Basics
Next article:Large screen color TV switching power supply

Latest Power Management Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号