Task scheduling and power management method based on single chip microcomputer

The invention discloses a task scheduling and power management method based on a single chip microcomputer, and belongs to the technical field of automatic control. The task scheduling method mainly periodically triggers an interrupt processing function by a clock, the interrupt processing function...

Full description

Saved in:
Bibliographic Details
Main Authors MA FENGMING, ZHENG LIN, LI WEITANG, CHEN MINGFENG
Format Patent
LanguageChinese
English
Published 14.09.2018
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention discloses a task scheduling and power management method based on a single chip microcomputer, and belongs to the technical field of automatic control. The task scheduling method mainly periodically triggers an interrupt processing function by a clock, the interrupt processing function polls a registration task to obtain a Task meeting waiting time and the highest priority condition,the upper portion is executed, and a time-consuming operation is used as the lower half of a SubTask to be mounted a WorkSet queue; during the idle running of a system, a main loop function runs continuously to execute the SubTask in the WorkSet in the subtask queue; when a power source management task starts running, whether or not all bits in a task status table are in a Suspend state is checked, if so, a system hibernates state is entered, and if not, the next round of execution of power source management task operation cycle is waited. The task scheduling method can respond to all interrupts in time, handle emerge
Bibliography:Application Number: CN20181291115