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

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

A data sampling and encoder technology, applied in the field of data processing, can solve problems such as incomplete uploaded data and repeated uploaded data

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

AI Technical Summary

Problems solved by technology

The sampling task requires a certain time limit, and in the high-speed communication scenario, if the frame interval of the communication is less than the set period of the target sensor output, it will appear. If the central processing unit stores the sampled data into the A register and receives After receiving the data acquisition request sent by the host computer, directly reading and uploading the A register will result in repeated or incomplete uploaded data

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0033] 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.

[0034] 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 and storing data in an encoder, a single chip microcomputer and a storage medium. The method comprises the steps that a central processing unit circularly executes a first instruction set; the first instruction set comprises a first subset and a second subset; when the first subset is executed, the central processing unit samples first data output by the target sensor successively, and the first data are stored in the first register; when the second subset is executed, a first target register is determined according to the current execution frequency of the first instruction set, first data in the first register is sent to the first target register, and the first register is emptied; in response to a received data acquisition request sent by the upper computer, determining a second target register according to the current execution times of the first instruction set; and sending the address pointer of the second target register to the DMA module, so that the DMA module reads the first data in the second target register, and sends the read first data to the upper computer.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a method for sampling and storing data in an encoder, a single-chip microcomputer and a storage medium. Background technique [0002] During the working process of the encoder, it is necessary to sample and store the output data of the position sensor, and in response to the request of the host computer, send the sampled data to the host computer, so that the host computer can monitor the position of the motor corresponding to the encoder. The working status is displayed. [0003] If the encoder uses a single-chip microcomputer to perform target sensor sampling and communication transmission, since the single-chip microcomputer is single-core, the sampled data cannot be directly sent to the host computer, but the first data obtained by sampling needs to be stored first. After receiving the data acquisition instruction, store and upload the first data in the register. However, sin...

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