Timer and its implementing method

A timer and timing technology, applied in the computer field, can solve the problems of low execution efficiency, large system resources, occupation, etc., and achieve the effect of reducing testing and maintenance, reducing the occupation of system resources, and improving system execution efficiency.

Inactive Publication Date: 2008-12-10
VIMICRO CORP
View PDF0 Cites 36 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the use of multiple timers, this kind of computer system not only takes up large system resources, but also ha

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
  • Timer and its implementing method
  • Timer and its implementing method
  • Timer and its implementing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0033] figure 1 It is a structural block diagram of timer 1 in the first specific embodiment of the present invention. figure 1 middle,

[0034] The timer 1 includes: a setting unit 101, a timing unit 102, a counting unit 103 and an execution unit 104, wherein,

[0035] The setting unit 101 is configured to set timing times and timing starting points of multiple tasks according to system requirements.

[0036] The setting unit 101 sets the initial time point as the timing starting point of the current task, and manages each task that needs to be executed in the system by establishing a task schedule. As shown in Table 1,

[0037] mission name

Timing

timing start

first task

50 milliseconds

initial time point

second task

150 milliseconds

initial time point

third task

100 millisecond...

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 provides a timer and an implement method that is used for a multi-task system. The timer comprises a setup unit, a timing unit, a counting unit and an execution unit. The setup unit is used for setting up the timing time and the time zero of multiple tasks. The timing unit is used for setting up a timing cycle according to the timing time of the multiple tasks. The counting unit is used for setting up maximum timing count based on the timing time and the timing cycle of the multiple tasks; counts numbers according to the time zero and sends out the information of task execution at the end of timing time. The execution unit is used for receiving the information of the task execution and executing the task corresponding to the task execution information by a preset method according to the task execution information. In the invention, only a timer can perform reasonable and orderly management for the multiple masks in the system, thus reducing system resource occupied by the timer, improving system execution efficiency and decreasing difficulty in testing and maintaining the timer.

Description

technical field [0001] The present invention mainly relates to the field of computers, in particular to a timer and its realization method. Background technique [0002] Timers, as an important part of computer systems, are widely used. Through the timing operation of the timer, the computer system can perform each task accurately and methodically. [0003] The timer mainly includes two parts: a timing unit and a counting unit. [0004] For the timing unit, it generally includes a timing unit with 8 digits, 16 digits or 32 digits. The designer selects the timing unit with corresponding digits according to actual needs, and sets the duration of the timing unit, that is, the timing period T. The timing cycle T is determined by the crystal oscillator frequency of the microcontroller (MCU, Micro Control Unit) in the computer system as the machine cycle of the cumulative instruction in the computer system. Many existing microcontrollers such as single-chip microcomputers have p...

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
IPC IPC(8): G06F9/46
Inventor 艾国
Owner VIMICRO CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products