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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

