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

A high-precision timing method for 51 single-chip microcomputer

A single-chip, high-precision technology, applied in the control field, can solve the problems of increasing system complexity, cost, timing error, etc., and achieve the effects of time performance improvement, broad application prospects, and simple methods

Active Publication Date: 2016-06-01
BEIJING INST OF CONTROL ENG
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But there are obvious defects in this approach: the control system requires additional peripheral circuits and chips, which undoubtedly increases the complexity and cost of the system
However, simply using the timer of the 51 single-chip microcomputer cannot complete the high-precision timing function, because the timer of the 51 single-chip microcomputer does not have a latch function, so when the timer's lower 8-bit overflow carry and lower 16-bit overflow carry, it will give Timing caused a large error

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
  • A high-precision timing method for 51 single-chip microcomputer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] Below in conjunction with accompanying drawing and specific embodiment the present invention is described in further detail:

[0021] With 16M main frequency, the timer 0 of 51 single-chip microcomputers (80C32) of 12 frequency divisions is the timer used for timing, and it is made as 16 timers, and the concrete timing method of the present invention is as follows:

[0022] Step (1), shielding timer 0 of 51 single-chip microcomputers.

[0023] You can choose to directly shield the timer 0 of the 51 single-chip microcomputer, or if it has a higher priority than the timer 0, there is no need to shield the timer 0. The purpose of doing this is to not be interrupted by timer 0 during the whole timing process, and cause the accumulation of uncertain interrupt times.

[0024] Step (2), read the lower 8-bit and upper 8-bit values ​​in timer 0 to obtain the value Count1 of the register in timer 0, and read the lower 8-bit and upper 8-bit values ​​in timer 0 for the second time...

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 high-precision timing method of a 51 singlechip microcomputer. The method is performed by consecutively reading a timer and appropriately shielding the timer, wherein consecutive two-time value reading of the timer solves timing errors due to lower 8-bit overflow carry-in of the timer; appropriate timer shielding in cooperation with timer overflow flag bit reading solves the timing errors due to lower 16-bit overflow carry-in of the timer, and accordingly high-precision timing of the 51 singlechip microcomputer is achieved. Meanwhile, the high-precision timing method of the 51 singlechip microcomputer is achieved simply through the timer in the 51 singlechip microcomputer instead of external complex timing circuits, thereby being relatively low in cost, simple, easy to achieve and highly practical.

Description

technical field [0001] The invention relates to a high-precision timing method of 51 single-chip microcomputers, belonging to the technical field of control. Background technique [0002] The control system with time as the control quantity is widely used in modern industrial production and manufacturing industry, so the high-precision timing function has become the premise of high-precision control. At present, the timing function of most high-precision control systems is through special Such as the article "Hardware Design of High-precision Wireless Strain Measurement System", authors: Zhang Shiming, Chen Weimin, Zhang Peng, Liu Xianming, Lei Xiaohua, "Sensors and Microsystems", 31(12), 2012. But there are obvious defects in this approach: the control system requires additional peripheral circuits and chips, which undoubtedly increases the complexity and cost of the system. [0003] Based on the smallest system of 51 single-chip microcomputer, it only uses one of its inte...

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): G04F10/00
Inventor 牛和明陈朝晖刘端杨俊春王晶李昊然刘建军
Owner BEIJING INST OF CONTROL ENG
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