Check patentability & draft patents in minutes with Patsnap Eureka AI!

MCU-based DMA function control AD converter peak value sampling method

A peak sampling and converter technology, applied in the field of MCU-based DMA function control AD ​​converter peak sampling, can solve the problems of increasing cost, difficult to measure peak and ripple without loss, increasing circuit complexity, etc., to overcome discontinuity The effect of sampling

Pending Publication Date: 2021-03-19
CHANGZHOU TONGHUI ELECTRONICS
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These methods have their own shortcomings, and it is difficult to achieve no loss of peak sampling and peak and ripple measurements in arbitrarily controllable time periods.
Moreover, the method of adding CPLD or FPGA increases the complexity of the circuit and increases the cost.

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
  • MCU-based DMA function control AD converter peak value sampling method
  • MCU-based DMA function control AD converter peak value sampling method
  • MCU-based DMA function control AD converter peak value sampling method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, so that the advantages and features of the present invention can be more easily understood by those skilled in the art, so as to define the protection scope of the present invention more clearly.

[0020] The present invention relates to the DMA technology of the MCU. DMA (Direct Memory Access) is direct memory storage, a data transmission mode that does not require MCU intervention, and its transmission data does not occupy the work of the MCU.

[0021] like image 3 As shown, the basic circuit of the MCU-based DMA function control AD ​​converter peak sampling method of the present invention includes: a voltage and current input unit, an MCU control unit, and an AD conversion unit.

[0022] The sampled voltage and current models are input to AD7655 after analog circuit processing, and the connection signals of AD7655 and STM32F103VCT6 main...

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 an MCU-based DMA function control AD converter peak value sampling method. The method comprises the following steps of configuring a timer DMA function of an MCU according toa time sequence requirement of an AD converter; configuring a port register connected with the AD converter to point to the first buffer area, transmitting AD converter data to the first buffer area through a port of the MCU, and entering an interrupt execution program; in the first stage of interrupting the execution program, closing the DMA within the time less than 1us, reappointing the data port register to transmit to the second buffer area, and then restarting the DMA; in the second stage, using a program to find the maximum value and the minimum value in the AD voltage and current datafilled in the previous buffer area, and calculating an average value; and in the third stage, using the MCU to execute other programs. According to the invention, the loss-free continuous full sampling of a voltage and a current can be realized by using the simplest circuit diagram, and the measurement of voltage and current peak values and ripples can be realized.

Description

Technical field: [0001] The invention relates to the fields of instrumentation and electronic measurement, in particular to a method for sampling the peak value of an AD converter based on the DMA function of an MCU. Background technique: [0002] In the field of electronic measurement, to realize the peak value and ripple measurement of voltage or current, usually use the hardware peak sample and hold circuit or FPGA / CPLD to connect AD analog-to-digital converter for sampling and then pass the method to MCU through FPGA / CPLD, such as figure 1 , figure 2 shown. These methods have their own shortcomings, and it is difficult to achieve peak and ripple measurements without loss of peak sampling and in arbitrarily controllable time periods. Moreover, the method of adding CPLD or FPGA increases the complexity of the circuit and increases the cost. Invention content: [0003] The purpose of the present invention is to overcome the deficiencies of the prior art, and provide a...

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): G01R19/252
CPCG01R19/252Y02D10/00
Inventor 何其齐赵浩华高志齐
Owner CHANGZHOU TONGHUI ELECTRONICS
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More