Unlock instant, AI-driven research and patent intelligence for your innovation.

Realization method of dynamic duration timer without accumulative error beneficial to low power consumption

A technology of accumulating errors and timers, applied in the field of dynamic duration timers, can solve problems such as low timer hit rate and affect system performance, and achieve the effect of avoiding time deviation

Active Publication Date: 2017-08-25
成都东信科创科技有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Causes periodic interrupts to the CPU with a low hit rate for valid software timers
Affect system performance, cannot make CPU enter low power consumption

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Realization method of dynamic duration timer without accumulative error beneficial to low power consumption
  • Realization method of dynamic duration timer without accumulative error beneficial to low power consumption
  • Realization method of dynamic duration timer without accumulative error beneficial to low power consumption

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The present invention will be further explained below in conjunction with the accompanying drawings of the specification:

[0023] One of the core concepts of the embodiments of the present invention is that by using two hardware timers (hardware timer A and hardware timer B), the hardware timer A is used to trigger the clock interrupt service unit according to the timing duration, and the hardware timer A is a component of the interrupt processing unit. The hardware timer B as a reference time source constitutes a relative time unit. The timer management unit sets the interrupt trigger time of the hardware timer A according to the latest software timer duration to trigger the operation of the clock interrupt service unit. The clock interrupt service unit reads the relative time unit time (the time of hardware timer B), and compares it with the last recorded relative time unit time (the time of hardware timer B) to obtain the time difference and update the software runnin...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method for realizing a dynamic duration timer without accumulative error which is beneficial to low power consumption. It is characterized in that the relative time unit is the elapsed time from the start of the system to the present; the time interrupt service unit is responsible for updating the running time of the software timer, and according to the latest software timer overtime, the next hardware clock source interrupt generation time is set, and at the same time Activate the timer processing task unit; the timer processing task unit judges whether the software timer node has reached the timing time according to the current relative time unit time, and when the timer expires, execute the timer expiration processing method of the predetermined processing unit, and judge whether it is a cycle according to the timer type The timer or the acyclic timer performs related operations; the timer management unit is responsible for related initialization and insertion and deletion of timer nodes. The invention avoids time deviation and accumulative error caused by CPU executing interrupt service program, and realizes dynamic variable-length timing to reduce power consumption.

Description

Technical field [0001] The invention relates to a realization method of a dynamic duration timer with no accumulated error which is beneficial to low power consumption. Background technique [0002] There are many applications in embedded development that need to use timing functions, but the number of timers provided by hardware devices is far from meeting business needs. For example, the need for periodic access to peripheral devices is generally polled. For periodic acquisition, the traditional implementation scheme is to use the timer provided by the system and adopt a cyclic timing query method. Under the traditional scheme, it will not be conducive to the realization of low power consumption of the system, and will also cause huge pressure on hardware timer resources. Using this method not only wastes system resources, but also makes it difficult to put the embedded device into a good hibernation as a whole, which leads to waste of power consumption and increases the cost ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F1/08
Inventor 宫尚周冬生苏碎洲高东孙思伟张宗军
Owner 成都东信科创科技有限公司