CN110161933A - A kind of adjustable automatic stabilisation sine wave generating device of frequency - Google Patents

A kind of adjustable automatic stabilisation sine wave generating device of frequency Download PDF

Info

Publication number
CN110161933A
CN110161933A CN201910503342.8A CN201910503342A CN110161933A CN 110161933 A CN110161933 A CN 110161933A CN 201910503342 A CN201910503342 A CN 201910503342A CN 110161933 A CN110161933 A CN 110161933A
Authority
CN
China
Prior art keywords
frequency
sine wave
analog converter
chip microcontroller
controlled oscillator
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.)
Pending
Application number
CN201910503342.8A
Other languages
Chinese (zh)
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 Xince Electronic Technology Co Ltd
Original Assignee
Ningbo Xince Electronic Technology Co Ltd
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 Xince Electronic Technology Co Ltd filed Critical Ningbo Xince Electronic Technology Co Ltd
Priority to CN201910503342.8A priority Critical patent/CN110161933A/en
Publication of CN110161933A publication Critical patent/CN110161933A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)
  • Channel Selection Circuits, Automatic Tuning Circuits (AREA)

Abstract

The present invention provides a kind of adjustable automatic stabilisation sine wave generating device of frequency, comprising: single-chip microcontroller, digital analog converter, voltage controlled oscillator and frequency meter.The present invention generates sine wave signal by single-chip microcontroller, digital analog converter, voltage controlled oscillator and frequency meter and forms closed-loop control, the frequency values of sine wave signal according to voltage controlled oscillator output adjust digital analog converter, both the introduced digital noise of direct digital synthesizers had been evaded, make output end that the sine wave of frequency stabilization can be obtained again, drift will not be generated with environmental change;The sine wave spectrum of output is single;Frequency is controlled by digital analog converter, is allowed to through chip microcontroller interpersonal interface, and sine wave freuqency value and voltage value can be configured by single-chip microcontroller and continuously be adjusted.

Description

A kind of adjustable automatic stabilisation sine wave generating device of frequency
Technical field
The invention belongs to signal generator technical fields more particularly to a kind of adjustable automatic stabilisation sine wave of frequency to occur Device.
Background technique
Generating sine wave, there are two types of forms: first, it is generated using Direct Digital Synthesizer digit synthesis;Second, Simulation oscillation.
The first mode for generating sine wave is that direct digital synthesizers are theoretically by many points Synthesis sine can be applied high-frequency digital noise on sine wave, and be difficult to be filtered completely, lead to output signal spectrum point Amount is complicated, and sine wave is impure.
The mode of second of generation sine wave is that the frequency of its output of simulation oscillation will receive power supply The external factors such as voltage and temperature drift influence and it is unstable, and when low frequency be easy failure of oscillation.Frequency adjusting need to pass through potentiometer.It can not be real Now with interface microcontroller.
Summary of the invention
In order to solve the above technical problems, the present invention provides a kind of adjustable automatic stabilisation sine wave generating device of frequency.For To some aspects of the embodiment of disclosure there is a basic understanding, simple summary is shown below.The summarized section is not It is extensive overview, nor to determine key/critical component or describe the protection scope of these embodiments.Its sole purpose It is that some concepts are presented with simple form, in this, as the preamble of following detailed description.
The present invention adopts the following technical scheme:
In some alternative embodiments, a kind of adjustable automatic stabilisation sine wave generating device of frequency is provided, comprising: single Piece machine, digital analog converter and voltage controlled oscillator;
The single-chip microcontroller is connect with the control signal of the digital analog converter, controls the digital-to-analogue conversion Device generates DC voltage;
The digital analog converter is connect with the control signal of the voltage controlled oscillator, output DC voltage to institute State voltage controlled oscillator;
The voltage controlled oscillator, it is sinusoidal for being generated under the control for the DC voltage that the digital analog converter exports Wave signal, the frequency of the sine wave signal of generation are corresponding with the digital quantity that the single-chip microcontroller exports.
In some alternative embodiments, the adjustable automatic stabilisation sine wave generating device of a kind of frequency, is also wrapped It includes: frequency meter;The frequency meter and the signal of the voltage controlled oscillator go out output end and connect and defeated with the data of the single-chip microcontroller Enter end connection, the frequency meter measures the frequency of the sine wave signal of the voltage controlled oscillator output and is uploaded to the monolithic Machine.
In some alternative embodiments, the single-chip microcontroller includes: difference calculating module and correction module;
The difference calculating module is between the frequency and preset expected frequency value that the frequency meter uploads for calculating It is no to have deviation;
The correction module, for when the calculated result of the difference calculating module, which is, deviation, changing output to institute The digital quantity signal for stating digital analog converter, the frequency for uploading the frequency meter is further to preset expected frequency Value.
The utility model has the advantages that the present invention passes through single-chip microcontroller, digital analog converter, voltage controlled oscillator and frequency brought by of the invention Rate meter generates sine wave signal and forms closed-loop control, and the frequency values of the sine wave signal according to voltage controlled oscillator output adjust number Word analog converter had not only evaded the introduced digital noise of direct digital synthesizers, but also has made output end that frequency stabilization can be obtained Sine wave, drift will not be generated with environmental change;The sine wave spectrum of output is single, and the sine wave signal of generation is purer Only, stablize, be suitable for the professional domains such as acoustics, physics;Frequency is controlled by digital analog converter, allows to pass through monolithic Machine realizes interpersonal interface, and sine wave freuqency value and voltage value can be configured by single-chip microcontroller and continuously be adjusted.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram of the adjustable automatic stabilisation sine wave generating device of frequency of the present invention;
Fig. 2 is the DC voltage of single-chip microcontroller adjustment digital analog converter output of the present invention, and frequency is made to be stabilized in 10kHz When sine wave waveform diagram;
Fig. 3 is the DC voltage of single-chip microcontroller adjustment digital analog converter output of the present invention, and frequency is made to be stabilized in 15kHz When sine wave waveform diagram.
Specific embodiment
The following description and drawings fully show specific embodiments of the present invention, to enable those skilled in the art to Practice them.Other embodiments may include structure, logic, it is electrical, process and other change.Embodiment Only represent possible variation.Unless explicitly requested, otherwise individual components and functionality is optional, and the sequence operated can be with Variation.The part of some embodiments and feature can be included in or replace part and the feature of other embodiments.
As shown in Figures 1 to 3, in some illustrative embodiments, a kind of adjustable automatic stabilisation sine wave of frequency is provided Generating device is widely used in the test of loudspeaker production line, judges comprising pure tone detection and polarity.
Sinusoidal wave generating device of the invention includes: single-chip microcontroller, digital analog converter, voltage controlled oscillator and frequency meter.
Single-chip microcontroller, digital analog converter and voltage controlled oscillator constitute sine wave and generate part, for generating sine wave, just String wave generates part and obtains DC voltage by digital analog converter first, and is generated by DC voltage control voltage controlled oscillator The sine wave signal of respective frequencies.
Single-chip microcontroller and frequency meter constitute frequency self-stabilization part, and the frequency of measurement sine wave signal is realized in frequency self-stabilization part Rate, and DC voltage value is corrected by digital analog converter, to stablize the frequency of output sine wave.
Single-chip microcontroller is connect with the control signal of digital analog converter, and control digital analog converter generates direct current Pressure, the DC voltage of generation is for controlling voltage controlled oscillator.
Digital analog converter is connect with the control signal of voltage controlled oscillator, output DC voltage to voltage controlled oscillator.
Voltage controlled oscillator is connect with the control output end of digital analog converter, for exporting in digital analog converter DC voltage control under generate sine wave signal, the digital quantity phase that the frequency of the sine wave signal of generation is exported with single-chip microcontroller It is corresponding.The output frequency of voltage controlled oscillator, digital analog converter corresponding with the DC voltage of digital analog converter output The DC voltage of output is again corresponding with the digital quantity of single-chip microcontroller output, i.e., the discrete control of single-chip microcontroller voltage controlled oscillator Output frequency.
Frequency meter goes out output end with the signal of voltage controlled oscillator and connect and connect with the data input pin of single-chip microcontroller, frequency The frequency of the sine wave signal of meter measurement voltage controlled oscillator output is simultaneously uploaded to single-chip microcontroller.
Single-chip microcontroller includes: difference calculating module and correction module.
Whether difference calculating module has partially between the frequency and preset expected frequency value that frequency meter uploads for calculating Difference;
Correction module turns for when the calculated result of difference calculating module, which is, deviation, changing output to digital simulation The digital quantity signal of parallel operation, to correct DAC value, the frequency for uploading frequency meter is further to preset expected frequency value.Frequently When the voltage controlled oscillator output frequency that rate meter measures is relatively low, DAC value is adjusted upward, until frequency reaches desired value;Make voltage-controlled Oscillator frequency rises with it;When frequency is higher, then on the contrary.The value of DAC subtracts 1 when frequency is higher, when frequency is relatively low, the value of DAC Add 1.
Wherein, single-chip microcontroller, digital analog converter, voltage controlled oscillator and the specific workflow of frequency meter are as follows:
S1: DC voltage is generated by single-chip microcontroller control digital analog converter;
S2: the sine wave signal that voltage controlled oscillator generates respective frequencies is controlled by the DC voltage again;
S3: frequency meter measure sine wave signal frequency, and calculate measurement frequency and preset frequency desired value whether There is deviation;
S4: if the frequency of measurement is deviated with preset frequency desired value, amendment DAC value makes frequency close to preset Frequency desired value;
S5: circulation executes step S3 and S4, the preset frequency of frequency infinite approach for the sine wave for exporting voltage controlled oscillator Rate desired value.
It should also be appreciated by one skilled in the art that various illustrative logical boxs, mould in conjunction with the embodiments herein description Electronic hardware, computer software or combinations thereof may be implemented into block, circuit and algorithm steps.In order to clearly demonstrate hardware and Interchangeability between software surrounds its function to various illustrative components, frame, module, circuit and step above and carries out It is generally described.Hardware is implemented as this function and is also implemented as software, depends on specific application and to entire The design constraint that system is applied.Those skilled in the art can be directed to each specific application, be realized in a manner of flexible Described function, still, this realization decision should not be construed as a departure from the scope of protection of this disclosure.

Claims (3)

1. a kind of adjustable automatic stabilisation sine wave generating device of frequency characterized by comprising single-chip microcontroller, digital simulation turn Parallel operation and voltage controlled oscillator;
The single-chip microcontroller is connect with the control signal of the digital analog converter, is controlled the digital analog converter and is produced Raw DC voltage;
The digital analog converter is connect with the control signal of the voltage controlled oscillator, output DC voltage to the pressure Control oscillator;
The voltage controlled oscillator, for generating sine wave letter under the control for the DC voltage that the digital analog converter exports Number, the frequency of the sine wave signal of generation is corresponding with the digital quantity that the single-chip microcontroller exports.
2. the adjustable automatic stabilisation sine wave generating device of a kind of frequency according to claim 1, which is characterized in that also wrap It includes: frequency meter;The frequency meter and the signal of the voltage controlled oscillator go out output end and connect and defeated with the data of the single-chip microcontroller Enter end connection, the frequency meter measures the frequency of the sine wave signal of the voltage controlled oscillator output and is uploaded to the monolithic Machine.
3. the adjustable automatic stabilisation sine wave generating device of a kind of frequency according to claim 2, which is characterized in that described Single-chip microcontroller includes: difference calculating module and correction module;
Whether the difference calculating module has between the frequency and preset expected frequency value that the frequency meter uploads for calculating Deviation;
The correction module, for when the calculated result of the difference calculating module, which is, deviation, changing output to the number The digital quantity signal of word analog converter, the frequency for uploading the frequency meter is further to preset expected frequency value.
CN201910503342.8A 2019-06-11 2019-06-11 A kind of adjustable automatic stabilisation sine wave generating device of frequency Pending CN110161933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910503342.8A CN110161933A (en) 2019-06-11 2019-06-11 A kind of adjustable automatic stabilisation sine wave generating device of frequency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910503342.8A CN110161933A (en) 2019-06-11 2019-06-11 A kind of adjustable automatic stabilisation sine wave generating device of frequency

Publications (1)

Publication Number Publication Date
CN110161933A true CN110161933A (en) 2019-08-23

Family

ID=67628235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910503342.8A Pending CN110161933A (en) 2019-06-11 2019-06-11 A kind of adjustable automatic stabilisation sine wave generating device of frequency

Country Status (1)

Country Link
CN (1) CN110161933A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111366784A (en) * 2020-03-19 2020-07-03 宁波新策电子科技有限公司 Frequency scanning device with adjustable amplitude
CN113049048A (en) * 2019-12-27 2021-06-29 比特大陆科技有限公司 Voltage adjustment method and device and processing equipment
CN114071321A (en) * 2021-10-09 2022-02-18 太原市华纳方盛科技有限公司 System capable of adjusting high-voltage sound source

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1675823A (en) * 2002-06-24 2005-09-28 Cts公司 Controllable SAW oscillator component
CN1831541A (en) * 2006-04-14 2006-09-13 北京航空航天大学 Multichannel synchronous sinusoidal signal generator
CN103217668A (en) * 2012-01-19 2013-07-24 黑拉许克联合股份有限公司 Device with a voltage-controlled oscillator and a circuit arrangement for controlling the oscillator
CN104865998A (en) * 2014-12-10 2015-08-26 重庆希诺达通信有限公司 Programmable control single-phase alternating current power supply device
CN105511353A (en) * 2015-12-27 2016-04-20 哈尔滨佳云科技有限公司 Low-frequency signal generator and signal debugging method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1675823A (en) * 2002-06-24 2005-09-28 Cts公司 Controllable SAW oscillator component
CN1831541A (en) * 2006-04-14 2006-09-13 北京航空航天大学 Multichannel synchronous sinusoidal signal generator
CN103217668A (en) * 2012-01-19 2013-07-24 黑拉许克联合股份有限公司 Device with a voltage-controlled oscillator and a circuit arrangement for controlling the oscillator
CN104865998A (en) * 2014-12-10 2015-08-26 重庆希诺达通信有限公司 Programmable control single-phase alternating current power supply device
CN105511353A (en) * 2015-12-27 2016-04-20 哈尔滨佳云科技有限公司 Low-frequency signal generator and signal debugging method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113049048A (en) * 2019-12-27 2021-06-29 比特大陆科技有限公司 Voltage adjustment method and device and processing equipment
CN111366784A (en) * 2020-03-19 2020-07-03 宁波新策电子科技有限公司 Frequency scanning device with adjustable amplitude
CN114071321A (en) * 2021-10-09 2022-02-18 太原市华纳方盛科技有限公司 System capable of adjusting high-voltage sound source

Similar Documents

Publication Publication Date Title
CN110161933A (en) A kind of adjustable automatic stabilisation sine wave generating device of frequency
CN102739246B (en) Clock-generating device and frequency calibrating method
CN102859879B (en) System and method for calibrating output frequency in phase locked loop
US20110304361A1 (en) Time-to-digital converter with calibration
CN1756081B (en) Oscillation frequency control circuit
CN105743463A (en) Clock duty cycle correction and frequency multiplication circuit
CN107425851A (en) Frequency compensator, electronic equipment and frequency compensation method
CN102299711B (en) Charge pump-based frequency modulator
CN101783680B (en) Frequency synthesizer and calibration method thereof
CN101924552B (en) Pll circuit
CN104702275B (en) A kind of Low phase noise microwave frequency source circuit and device and method
CN107005244A (en) Reduction by overflowing counter counts the gain calibration for the direct modulation synthesizer searched for using look-up table
CN110504962A (en) Digital compensation simulates fractional frequency-division phase-locked loop and control method
CN1007112B (en) Frequency synthesizer circuit for generating analog of digitally step-adjustable frequency
CN108199710A (en) A kind of oscillator correction circuit and oscillator correction method
JP2005287022A (en) Phase locked loop and phase correction method for oscillator capable of controlling frequency
CN106230434B (en) A kind of mixing phaselocked loop
CN207399177U (en) Electronic equipment
WO2010043932A1 (en) Temperature compensation in a phase-locked loop
CN201113979Y (en) High-frequency high precision locking phase constant temperature crystal oscillator
CN109799868B (en) Error compensation method for phase difference value device of digital frequency generator
CN201869161U (en) High-frequency high-stability phase-locking OCXO
Xiu A novel DCXO module for clock synchronization in MPEG2 transport system
CN107689774A (en) A kind of high frequency Low Drift Temperature RC oscillators
CN104617931B (en) SPWM signal generating circuit based on Direct Digital Synthesizer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190823