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

Data sampling method in encoder, single-chip microcomputer and storage medium

A data sampling and encoder technology, applied in the field of data processing, can solve the problems of long sampling task execution interval, high chip cost, and the lack of parallel processing of single-chip microcomputers, so as to avoid the effect of being unable to execute in time.

Active Publication Date: 2022-05-20
天津宜科自动化股份有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In general encoders, FPGA chips are usually used to sample multiple sensors in parallel, but the cost of FPGA chips is relatively high
[0003] Compared with FPGA, although the cost of single-chip microcomputer is lower, but single-chip microcomputer does not have the ability of parallel processing because it only has a single central processing
If multiple sensors are sampled in a serial manner, each sensor will have different execution priorities and different data sampling cycle lengths, resulting in high priority sampling tasks with long sampling cycles versus low priority sampling tasks. The problem that the execution interval of the sampling task is too long

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
  • Data sampling method in encoder, single-chip microcomputer and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0037] It should be noted that, in the case of no conflict, the following embodiments and the features in the embodiments can be combined with each other; and, based on the embodiments in the present disclosure, those of ordinary skill in the art obtained without creative work All other embodiments belong to the protection scope of the present disclosure.

[0038] It is noted that the following describes various aspects of the embodiments that are within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and / or function described herein is illustrative only. Based on the present disclosure one skilled in the art should appreciate that an aspect described herein may be implemented independently of any other aspects and that two or more of t...

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 method for sampling data in an encoder, a single-chip microcomputer and a storage medium. The method applied to a single-chip microcomputer includes: a central processing unit responds to the reception of a trigger signal, and determines the number of received trigger signals; the trigger signal is a timer every The first set time length is sent once; the central processing unit executes the first instruction set corresponding to the number of received trigger signals in the first instruction set set; the first instruction set set includes a plurality of first instruction sets, each first The instruction sets all contain several assembly instructions, and the execution time of at least part of the first instruction set is shorter than the first set duration; when the first instruction set is executed, the central processing unit executes the first data output from the output terminal of the target sensor Sampling; the central processing unit executes the second instruction set when the execution of the current first instruction set is completed and the next trigger signal is not received; the execution priority of the second instruction set is lower than that of the first instruction set.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a data sampling method in an encoder, a single-chip microcomputer and a storage medium. Background technique [0002] During the operation of the encoder, it is necessary to sample the output data of sensors such as position sensors and temperature sensors. In a general encoder, an FPGA chip is usually used to perform parallel sampling on multiple sensors, but the cost of the FPGA chip is relatively high. [0003] Although the cost of single-chip microcomputer is lower than that of FPGA, single-chip microcomputer does not have the ability of parallel processing because it only has a single central processing. If multiple sensors are sampled in a serial manner, each sensor will have different execution priorities and different data sampling cycle lengths, resulting in high priority sampling tasks with long sampling cycles versus low priority sampling tasks. It caused the problem t...

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): G06F11/10G06F9/30G06F13/28
CPCY02P90/02
Inventor 孔德保徐斌张潇帅
Owner 天津宜科自动化股份有限公司