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

Efficient annular cache ADC (Analog to Digital Converter) acquisition method

A collection method and loop technology, applied in the field of ADC conversion, can solve the problems of wasting MCU resource time and MCU performance, and achieve the effect of saving total work time and improving work efficiency

Pending Publication Date: 2021-11-09
东莞市盈聚电源有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Using the ADC interrupt may affect the real-time response of other interrupts, and using software to trigger and wait for the ADC to complete will waste the performance of the MCU, because the MCU triggers the ADC and waits for the conversion to complete. During the response interrupt, the MCU does not process other tasks, so it causes waste. MCU resources and time issues

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
  • Efficient annular cache ADC (Analog to Digital Converter) acquisition method
  • Efficient annular cache ADC (Analog to Digital Converter) acquisition method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] A kind of high-efficiency ring buffer ADC acquisition method provided by the present embodiment, such as figure 1 Shown is a schematic flow diagram disclosed in this embodiment, wherein, figure 1 The described high-efficiency ring buffer ADC acquisition method can be applied to various servers, that is, it can be used in all servers that need to perform analog-to-digital conversion, which is not limited in the embodiment of the present invention. Include the following steps:

[0044] A. Start ADC conversion after MCU initialization;

[0045] B. Interval time T1, whether the MCU detects whether the ADC conversion is completed; wherein, the work of the MCU detection can be to directly detect whether the ADC has the output of the conversion result, or to detect the working state of the ADC. This is the prior art, and this embodiment does not Make specific restrictions; and the interval time T1 needs to be greater than or equal to the conversion time of the ADC. For examp...

Embodiment 2

[0077] The ring buffer ADC acquisition device provided in this embodiment can be applied to various servers, that is, it can be used in any server requiring analog-to-digital conversion, which is not limited in this embodiment of the present invention.

[0078] The ring buffer ADC acquisition device includes MCU, ADC conversion module, buffer array and time judgment module, and the buffer array includes a plurality of array elements; the ADC module is used to convert the external analog signal collected into a digital signal and convert the result Stored in the array element; the MCU is used to average the conversion results in a plurality of the array elements; the time judging module is used to judge the time and the time when the MCU obtains the conversion result of the ADC conversion module The size between the conversion times of the ADC conversion module.

[0079] Specifically, both the MCU and the ADC conversion module themselves are existing technologies, and only by c...

Embodiment 3

[0081] The embodiment of the present invention discloses a computer-readable storage medium, which stores a computer program for electronic data exchange, wherein the computer program enables the computer to execute part or all of the high-efficiency ring buffer ADC acquisition method described in Embodiment 1 A step of.

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 the technical field of ADC conversion, in particular to an efficient annular cache ADC acquisition method. The method comprises the following steps that: ADC conversions are started after an MCU is initialized; during the ADC conversions, the MCU can process other tasks by itself without waiting for ADC conversion completion; every time when an ADC conversion is completed, a conversion result is stored in a cache array, and the conversion and storage work is circularly performed; the MCU detects whether the ADC conversions are completed or not at the interval of time T1; if the ADC conversions are completed, conversion results are obtained from the cache array; if the ADC conversions are not completed, the MCU continues to execute other tasks, and the ADC conversions continue to be carried out. According to the method, the cache array is arranged to temporarily store the ADC conversion results, and during the ADC conversions, the MCU can execute other tasks without waiting for the ADC conversion completion, so that the total working time of MCUs can be saved, and the working efficiency of MCUs can be effectively improved.

Description

technical field [0001] The invention relates to the technical field of ADC conversion, in particular to an efficient ring buffer ADC acquisition method. Background technique [0002] The ADC of the MCU is the abbreviation of Analog-to-Digital Converter, referring to the analog-to-digital converter or analog-to-digital converter, which refers to a device that converts continuously changing analog signals into discrete digital signals. Analog signals, such as temperature, pressure, sound or images, need to be converted into digital forms that are easier to store, process and transmit. Analog-to-digital converters perform this function and can be found in a variety of different products. [0003] Generally, in software design, an interrupt or software trigger is used to wait for the ADC acquisition to complete. Using the ADC interrupt may affect the real-time response of other interrupts, and using software to trigger and wait for the ADC to complete will waste the performanc...

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): G06F3/05H03M1/12
CPCG06F3/05H03M1/12Y02D10/00
Inventor 刘华张昱
Owner 东莞市盈聚电源有限公司