CN105007080B - A kind of method that sampling value stabilization is realized in analog-to-digital conversion - Google Patents

A kind of method that sampling value stabilization is realized in analog-to-digital conversion Download PDF

Info

Publication number
CN105007080B
CN105007080B CN201510391533.1A CN201510391533A CN105007080B CN 105007080 B CN105007080 B CN 105007080B CN 201510391533 A CN201510391533 A CN 201510391533A CN 105007080 B CN105007080 B CN 105007080B
Authority
CN
China
Prior art keywords
value
converter
sampled value
sampled
analog
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510391533.1A
Other languages
Chinese (zh)
Other versions
CN105007080A (en
Inventor
俞建定
汪沁
王新彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo University
Original Assignee
Ningbo University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo University filed Critical Ningbo University
Priority to CN201510391533.1A priority Critical patent/CN105007080B/en
Publication of CN105007080A publication Critical patent/CN105007080A/en
Application granted granted Critical
Publication of CN105007080B publication Critical patent/CN105007080B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

The invention discloses a kind of method that sampling value stabilization is realized in analog-to-digital conversion, its final sampled value obtained according to the sampled value, the preceding sampled value once read currently read after stable processing and the smooth size in units of the conversion accuracy of AD converter, to obtain the final sampled value that the sampled value currently read is obtained after stable processing;Advantage is that whole process is simple, and can make the sampling value stabilization that finally gives.

Description

A kind of method that sampling value stabilization is realized in analog-to-digital conversion
Technical field
The present invention relates to a kind of Digital Signal Processing, more particularly, to realization sampling value stabilization in a kind of analog-to-digital conversion Method.
Background technology
With developing rapidly and extensive use of the computer in automatic detection and automatic control system for electronic technology, The situation for handling analog signal using electronic system becomes more universal.Handled by digital computer is all discontinuous Data signal, and actually encounter is mostly continuous analog signal, analog signal is the electric signal obtained by sensor, is needed It can be just input in digital computer after analog/digital conversion becomes data signal and be handled and controlled, thus mould Intend the interface circuit that signal is converted into data signal output --- AD converter (ADC) is that analog signal is converted in real world The bridge of data signal, is key and the bottleneck place of electronic technology development.
Because analog signal is consecutive variations, therefore the sampled value that AD converter is obtained in sampling also can be with simulation The change of signal and change, however, because there is quantization error in AD converter, thus obtained sampled value be possible to certain two Change between individual adjacent numerical value, transformation result bounce becomes big.The transformation result that bounce becomes big is likely to affect whole application The stability of system, such as in motor control, the target velocity of motor is changed by potentiometer, if AD converter is obtained The sampled value arrived is unstable, then the target velocity that can directly result in motor is changing always, so that the actual speed of motor can be influenceed Degree.Therefore, it is necessary to study a kind of method of stable sampled value.
The content of the invention
The technical problems to be solved by the invention are to provide a kind of method that sampling value stabilization is realized in analog-to-digital conversion, its mistake Journey is simple, and can make the sampling value stabilization that finally gives.
The present invention solve the technical scheme that is used of above-mentioned technical problem for:Sampling value stabilization is realized in a kind of analog-to-digital conversion Method, it is characterised in that comprise the following steps:
1. the sampled value of AD converter output is read in real time;
2. the ith sample value currently read is defined as current sample values, wherein, i initial value is 1;
3. current sample values are designated as DI, reads, then make DI, as a resultRepresent DI, readsThe final sampling obtained after stable processing Value,Wherein, DI-1, as a resultRepresent the i-th -1 sampled value read DI-1, readsThe final sampled value obtained after stable processing, as i=1 seasons DI-1, as a result=0, Δ D represent turning with AD converter The smooth size that precision is unit is changed, Δ D value is more than 0 and less than or equal to the maximum of AD converter;
4. i=i+1 is made, using the ith sample value currently read as current sample values, step is then back to and 3. continues to hold OK, until all sampled values that AD converter is exported are disposed, all sampled values of AD converter output are so far completed Stable processing, wherein, "=" in i=i+1 is assignment.
Compared with prior art, the advantage of the invention is that:According to the sampled value, the preceding sampling once read currently read Final sampled value and the smooth size in units of the conversion accuracy of AD converter that value is obtained after stable processing, it is possible to The final sampled value that the sampled value currently read is obtained after stable processing is obtained, whole process is simple, and can make final Obtained sampling value stabilization.
Brief description of the drawings
Fig. 1 is the implementation process block diagram of the inventive method.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing embodiment.
The method that sampling value stabilization is realized in a kind of analog-to-digital conversion proposed by the present invention, it realizes FB(flow block) such as Fig. 1 institutes Show, it comprises the following steps:
1. the sampled value of AD converter output is read in real time.
2. the ith sample value currently read is defined as current sample values, wherein, i initial value is 1,1≤i≤N, N Total points of AD converter sampling are represented, N=1024 is such as taken.
3. current sample values are designated as DI, reads, then make DI, as a resultRepresent DI, readsThe final sampling obtained after stable processing Value,Wherein, DI-1, as a resultRepresent the i-th -1 sampled value read DI-1, readsThe final sampled value obtained after stable processing, as i=1 seasons DI-1, as a result=0, Δ D are to be to application according to user What the smoothness requirements of system were proposed, Δ D represents the smooth size in units of the conversion accuracy of AD converter, and Δ D value is more than 0 And less than or equal to the maximum of AD converter, explanation is without smoothness requirements during Δ D=0, i.e., the sampled value exported to AD converter Without stable processing.
4. i=i+1 is made, using the ith sample value currently read as current sample values, step is then back to and 3. continues to hold OK, until all sampled values that AD converter is exported are disposed, all sampled values of AD converter output are so far completed Stable processing, wherein, "=" in i=i+1 is assignment.
The sampled value exported using the inventive method to AD converter is handled, it is assumed that the sampled value of AD converter output Respectively 100,100,101,100,99,103,97, and make Δ D=2, then what is obtained after the stable processing of the inventive method is final Sampled value be respectively 100,100,101,101,101,103,99.

Claims (1)

1. the method for sampling value stabilization is realized in a kind of analog-to-digital conversion, it is characterised in that comprise the following steps:
1. the sampled value of AD converter output is read in real time;
2. the ith sample value currently read is defined as current sample values, wherein, i initial value is 1;
3. current sample values are designated as DI, reads, then make DI, as a resultRepresent DI, readsThe final sampled value obtained after stable processing,Wherein, DI-1, as a resultRepresent the i-th -1 sampled value read DI-1, readsThe final sampled value obtained after stable processing, as i=1 seasons DI-1, as a result=0, Δ D represent turning with AD converter The smooth size that precision is unit is changed, Δ D value is more than 0 and less than or equal to the maximum of AD converter;
4. i=i+1 is made, using the ith sample value currently read as current sample values, step is then back to and 3. continues executing with, Until all sampled values that AD converter is exported are disposed, the stabilization of all sampled values of AD converter output is so far completed Processing, wherein, "=" in i=i+1 is assignment.
CN201510391533.1A 2015-07-01 2015-07-01 A kind of method that sampling value stabilization is realized in analog-to-digital conversion Active CN105007080B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510391533.1A CN105007080B (en) 2015-07-01 2015-07-01 A kind of method that sampling value stabilization is realized in analog-to-digital conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510391533.1A CN105007080B (en) 2015-07-01 2015-07-01 A kind of method that sampling value stabilization is realized in analog-to-digital conversion

Publications (2)

Publication Number Publication Date
CN105007080A CN105007080A (en) 2015-10-28
CN105007080B true CN105007080B (en) 2017-10-31

Family

ID=54379621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510391533.1A Active CN105007080B (en) 2015-07-01 2015-07-01 A kind of method that sampling value stabilization is realized in analog-to-digital conversion

Country Status (1)

Country Link
CN (1) CN105007080B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744664A (en) * 2004-08-30 2006-03-08 上海乐金广电电子有限公司 ADC sampling phase determining device and method thereof
CN102035550A (en) * 2010-11-23 2011-04-27 钜泉光电科技(上海)股份有限公司 Circuit and method for solving instable power-on process of sigma-delta analog-to-digital conversion circuit
CN103840364A (en) * 2014-02-18 2014-06-04 青岛海信宽带多媒体技术有限公司 Wavelength control method and device of tunable laser
CN103905045A (en) * 2014-04-11 2014-07-02 国家电网公司 Alternating-current analog-digital conversion device real-time response detection method based on physical layer sampled value

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744664A (en) * 2004-08-30 2006-03-08 上海乐金广电电子有限公司 ADC sampling phase determining device and method thereof
CN102035550A (en) * 2010-11-23 2011-04-27 钜泉光电科技(上海)股份有限公司 Circuit and method for solving instable power-on process of sigma-delta analog-to-digital conversion circuit
CN103840364A (en) * 2014-02-18 2014-06-04 青岛海信宽带多媒体技术有限公司 Wavelength control method and device of tunable laser
CN103905045A (en) * 2014-04-11 2014-07-02 国家电网公司 Alternating-current analog-digital conversion device real-time response detection method based on physical layer sampled value

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
The design and implementation of oscillograph based on STM32;Mingxin Song;《Optoelectronics and Microelectronics 2013 international conference on》;20131010;第46-49页 *

Also Published As

Publication number Publication date
CN105007080A (en) 2015-10-28

Similar Documents

Publication Publication Date Title
CN107451658B (en) Fixed-point method and system for floating-point operation
CN110199256B (en) Computing device, computing method, and computer program
CN108415556B (en) Motor vibration control method and device
US20080195236A1 (en) Apparatus and method for proportional-integral-derivative control
WO2022228221A1 (en) Information translation method, apparatus and device, and storage medium
US11314457B2 (en) Data processing method for data format conversion, apparatus, device, and system, storage medium, and program product
CN116416561A (en) Video image processing method and device
WO2022116821A1 (en) Translation method and apparatus employing multi-language machine translation model, device, and medium
CN109583485B (en) Supervised deep learning method based on feedback training
CN105007080B (en) A kind of method that sampling value stabilization is realized in analog-to-digital conversion
CN109753157B (en) Gesture control method and device of display screen
CN113721645A (en) Unmanned aerial vehicle continuous maneuvering control method based on distributed reinforcement learning
CN110569767B (en) Motion parameter identification method, system, equipment and computer readable storage medium
CN110309877B (en) Feature map data quantization method and device, electronic equipment and storage medium
CN102386922B (en) Programmable zero period time delay and high-speed pipeline analog-to-digital converter
CN110323993B (en) Control method of planar motor under multi-target constraint and terminal equipment
CN211086951U (en) Electric steering engine signal acquisition system and electric steering engine digital controller
CN113537470A (en) Model quantization method and device, storage medium and electronic device
US20210334634A1 (en) Method and apparatus for implementing an artificial neuron network in an integrated circuit
CN112711392B (en) Confidence coefficient calculation method for channels of multi-channel interactive system
CN112783003B (en) Amplitude-frequency characteristic index determination method for speed sensor of servo control system
JP3121609B2 (en) Digital signal processor
CN108052346B (en) Method and system for controlling smart watch and smart watch
JPH0554287B2 (en)
CN113554159A (en) Method and apparatus for implementing artificial neural networks in integrated circuits

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant