Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for ensuring accurate measurement on pulse width in multi-task singlechip system and device

A pulse width, single chip technology, applied in measuring devices, measuring electrical variables, instruments, etc., can solve the problems of measuring pulse width errors, conflicts, waste of single chip resources, etc., and achieve the effect of ensuring correctness

Inactive Publication Date: 2011-12-28
CHINA AERO GEOPHYSICAL SURVEY & REMOTE SENSING CENT FOR LAND & RESOURCES
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, the above-mentioned collaborative multi-task operation has poor real-time performance, serious waste of single-chip microcomputer resources, and low utilization rate.
Although the preemptive multitasking operation has good real-time performance and high utilization rate of single-chip microcomputer resources, conflicts will occur between interrupts, especially for pulse width measurement that requires high real-time performance in multi-tasking data acquisition. width will be wrong

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
  • Method for ensuring accurate measurement on pulse width in multi-task singlechip system and device
  • Method for ensuring accurate measurement on pulse width in multi-task singlechip system and device
  • Method for ensuring accurate measurement on pulse width in multi-task singlechip system and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0023] Such as figure 1 Shown is a schematic flowchart of a method for ensuring correct pulse width measurement in a multi-task single-chip microcomputer system provided by an embodiment of the present invention. It should be pointed out that the single-chip microcomputer system in the embodiment of the present invention uses a preemptive method to implement multi-task operations. The method comprises the steps of:

[0024] S101: Use external interrupts INT0 and I...

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 embodiment of the invention provides a method for ensuring accurate measurement on pulse width in a multi-task singlechip system and a device. The method comprises the following steps: carrying out a pulse width measurement task by utilizing external interrupts INT0 and INT1; when other tasks are executed, by utilizing the interrupt service routines of the tasks, detecting whether the interrupt identification of the external interrupt INT0 is met or not; if the interrupt identification of the external interrupt INT0 is met, clearing the interrupt identification of the external interrupt INT0; and by utilizing the interrupt service routines of the tasks, detecting whether the interrupt identification of the external interrupt INT1 is met or not; if the interrupt identification of the external interrupt INT1 is met, detecting whether a timer T0 is started or not; and if the timer T0 is started, stopping the counting of the timer T0. In the method and the device for ensuring the accurate measurement on the pulse width in the multi-task singlechip system, a judgment on starting and stopping the pulse width measurement task is introduced into the interrupt service routines of other tasks, and the timer T0 is controlled according to the judgment, thereby, the accuracy of pulse width measurement data in a singlechip is ensured.

Description

technical field [0001] The invention relates to the technical field of single-chip microcomputer applications, in particular to a method and device for ensuring correct pulse width measurement in a multi-task single-chip microcomputer system. Background technique [0002] Nowadays, the application of single-chip microcomputer is more and more widely. Among them, the 51 series single-chip microcomputer is a basic entry-level single-chip microcomputer, and it is also the most widely used single-chip microcomputer. The 51 series single-chip microcomputer works on a single task. The multi-task operation based on this single-chip microcomputer is generally realized by cooperative mode controlled by time slice or preemptive mode by interrupt mode. The measurement of pulse width in these two modes will be introduced respectively below. : [0003] The cooperative measurement pulse width controlled by the time slice in the multi-task single-chip microcomputer system generally adopts...

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 Applications(China)
IPC IPC(8): G01R29/00
Inventor 樊巧玲孟祥聪李建生
Owner CHINA AERO GEOPHYSICAL SURVEY & REMOTE SENSING CENT FOR LAND & RESOURCES
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products