CN109782840A - A kind of signal generating method based on ARM and DDS technology - Google Patents
A kind of signal generating method based on ARM and DDS technology Download PDFInfo
- Publication number
- CN109782840A CN109782840A CN201811455226.5A CN201811455226A CN109782840A CN 109782840 A CN109782840 A CN 109782840A CN 201811455226 A CN201811455226 A CN 201811455226A CN 109782840 A CN109782840 A CN 109782840A
- Authority
- CN
- China
- Prior art keywords
- waveform
- signal
- dds
- arm
- wave
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000005516 engineering process Methods 0.000 title claims abstract description 24
- 238000006243 chemical reaction Methods 0.000 claims abstract description 9
- 230000008569 process Effects 0.000 claims abstract description 8
- 238000002224 dissection Methods 0.000 claims abstract description 7
- 238000001514 detection method Methods 0.000 claims description 4
- 238000012546 transfer Methods 0.000 claims description 2
- 238000013461 design Methods 0.000 description 3
- 230000005611 electricity Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 3
- 230000015572 biosynthetic process Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 210000000352 storage cell Anatomy 0.000 description 2
- 238000003786 synthesis reaction Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Landscapes
- Electrophonic Musical Instruments (AREA)
Abstract
The invention discloses a kind of signal generating methods based on ARM and DDS technology, and the present invention relates to signal waveform generation technology field, specific method includes the following steps: step A1, defines wave character variable parameter on host computer;Step A2, defined wave character variable parameter is issued the CPU control unit in ARM controller;Step A3, waveform will be converted into after the dissection process for the waveform feature data that host computer issues to instruct, passes to the chip AD9833 on DDS waveform generator, generate the waveform of setpoint frequency and phase, to the waveform of signal condition output setting;Step A4, signal condition is controlled, determines the type, duty ratio and amplitude of signal waveform, obtains waveforms amplitude;Step A5, the wave-shape amplitude of generation is detected, wave-shape amplitude data back is shown to host computer and on host computer.The present invention has the advantages that frequency conversion is quick, arithmetic speed is fast and reduces noise.
Description
Technical field
The present invention relates to signal waveform generation technology fields, it particularly relates to a kind of letter based on ARM and DDS technology
Number method for generation.
Background technique
Signal generator has a wide range of applications in the production practices of electronics industry and sciemtifec and technical sphere, signal generator
Type is also very various, and the technological means of realization is also varied, the analogue technique of early stage, the simulation addend word skill developed later
Art, the synthetic technology developed still later;Quality level be also it is irregular, signal waveform occurs that quality is better, and price is high
It is odd, and cost performance is high, and quality is general, and human-computer interaction is also very simple and crude, and user experience is bad;With large scale integrated circuit
Rapid development, integrated level is higher and higher, and function is more and more stronger, has risen many direct digital synthesis techniques (DDS) device, directly
The method that Digital Frequency Synthesize is a kind of new frequency synthesis technique and signal generation is connect, when there is superfast frequency conversion
Between, high frequency resolution resolution ratio and lower phase noise, in frequency shift and frequency modulation, DDS is able to maintain phase
It is continuous, therefore frequency, phase and amplitude modulation are easily achieved, in addition, DDS technology is largely based on digital circuit technique
, the outstanding advantages with PLC technology.Controller has been transitioned into the ARM epoch from single-chip microcontroller, and the arithmetic speed of ARM reaches
Tens to several hundred million, internal resource has very abundant, and memory space also has exceeded tens times than single-chip microcontroller, the not high waveform hair of frequency
Life by ARM internal resource and can directly be completed, and design very succinct.The object of the present invention is to provide a kind of uses
Chip is controlled based on ARM, the signal generating method of the modem signal generators of DDS technology makes signal generator can be with function more
It adds that kind, performance is more superior, meets design parameter index request, and can reduce making an uproar of generating in signal generating process
Sound.
Summary of the invention
To solve problems of the prior art, the present invention provides a kind of signal generation side based on ARM and DDS technology
Method has the advantages that frequency conversion is quick, arithmetic speed is fast and reduces noise.
To achieve the above object, the technical solution adopted by the present invention is that: a kind of signal based on ARM and DDS technology occurs
Method includes the following steps:
Step A1, wave character variable parameter is defined;
Step A2, defined wave character variable parameter is issued the CPU control unit in ARM controller;
Step A3, waveform will be converted into after the dissection process for the waveform feature data that host computer issues to instruct, transmit
To the chip AD9833 on DDS waveform generator, the waveform of setpoint frequency and phase is generated, to the wave of signal condition output setting
Shape;
Step A4, signal condition is controlled, determines the type, duty ratio and amplitude of signal waveform, obtains waveforms amplitude;
Step A5, the wave-shape amplitude of generation is detected, by wave-shape amplitude data back to host computer and in host computer
Upper display.
Preferably, the ARM controller is the device comprising RS232 interface unit, and in step A2, the host computer passes through
RS232 interface is connected with the RS232 interface unit in ARM controller, and the conversion chip connected uses RS232 level conversion core
Piece MAX232, the host computer are PC industrial personal computer.
Preferably, in step A3, the CPU control unit explains that is issued from host computer refers to the control of waveform generator
It enables, the waveform of setpoint frequency and phase is generated by DDS waveform generator, and pass through analog port output setting to signal condition
Waveform.
Preferably, in step A4, the CPU control unit and signal condition pass through IO bus transfer data;The CPU control
Unit processed is selected by waveform catalog, duty cycle adjustment and amplitude adjusted set data, and the CPU control unit passes through AD536A
RMS conversion chip obtains wave amplitude data.
Preferably, in step A5, the CPU control unit includes following step to the detection method of the wave-shape amplitude of generation
It is rapid:
Step A5.1, waveform signal is fed back into CPU control unit;
Step A5.2, feedback signal is respectively fed to range detector and phase detectors;
Step A5.3, amplitude and phase error is detected respectively, is then fed into CPU control unit, according to error signal tune
The width phase for the signal that whole DDS waveform generator generates.
Preferably, also the method comprising reducing noise, specific method include the following steps: in signal generating method
Step B1, waveform will be converted into after the dissection process for the waveform feature data that host computer issues to instruct, be divided to two
Road passes to the chip AD9833 on two DDS waveform generators, generates the waveform of setpoint frequency and phase, and same to filter
The waveform of step output setting;
Step B2, the synchronization signal exported from filter is respectively fed to range detector and phase detectors;
Step B3, wave-shape amplitude and phase error are detected respectively, CPU control unit are then fed into, according to error signal
Adjust the width phase for the signal that DDS waveform generator generates;
Step B4, from the waveform signal exported in two filters through combiner synthesize all the way after, it is defeated to signal condition
The waveform set out.
Preferably, the DDS waveform generator is that Three models occur comprising sine wave generation, square wave generation and triangular wave
Waveform generator.
The beneficial effects of the present invention are:
(1) disclosed by the invention to control chip using based on ARM, the signal generating method of DDS technology can achieve function
It is more perfect, performance is more superior, meet design parameter index request, and reduce production cost;
(2) method for reducing noise by filter and combiner etc., further reduced in signal vocal technique and generates
Noise, ensure that the quality of the signal of generation.
Detailed description of the invention
Fig. 1 is a kind of whole electricity of the embodiment 1 of signal generating method based on ARM and DDS technology of the present invention
Road principle flow chart;
Fig. 2 is a kind of detection electricity of the embodiment 2 of signal generating method based on ARM and DDS technology of the present invention
Road schematic illustration;
Fig. 3 is a kind of noise reduction electricity of the embodiment 3 of signal generating method based on ARM and DDS technology of the present invention
Road flow diagram.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
Embodiment 1:
As shown in Figure 1, a kind of signal generating method based on ARM and DDS technology, includes the following steps:
Step A1, wave character variable parameter is defined on host computer 1, host computer 1 is PC industrial personal computer.
Step A2, host computer 1 passes through defined wave character variable parameter in RS232 interface and ARM controller 2
RS232 interface unit 4 issues the CPU control unit 5 in ARM controller 2, and the connection of ARM controller 2 and host computer 1 uses
RS232 electrical level transferring chip MAX232.
Step A3, CPU control unit 5 explains the control instruction of DDS waveform generator 7, and the waveform that host computer 1 is issued is special
Waveform is converted into after the dissection process of sign data to instruct, and the chip on DDS waveform generator 7 is passed to by spi bus
AD9833, DDS waveform generator 7 generates the waveform of setpoint frequency and phase, and is exported and set to signal condition 3 by analog end
Waveform;DDS waveform generator 7 is that the waveform that 8, square wave occurs 10 and 9 Three models occur for triangular wave occurs comprising sine wave
Generator.
Step A4, CPU control unit 5 improves 3, CPU control unit 5 by IO bus control signal and is selected by waveform catalog
It selects 11, duty cycle adjustment 12 and amplitude adjusted 13 determines that type, duty ratio and the amplitude of signal waveform, CPU control unit 5 pass through
AD536A RMS conversion chip obtains waveforms amplitude.
Step A5, serial communication protocol RS232 serial port protocol is used between ARM controller 2 and host computer 1, CPU control is single
Member 5 pairs generation wave-shape amplitudes detect, by RS232 interface unit 4 by wave-shape amplitude data back to host computer 1 and
It is shown on host computer 1.
In above-mentioned steps, signal generation apparatus directly obtains tetra- kinds of 3.3V, 5V, ± 12V power supplys from host computer 1PCI slot,
Control circuit uses 3.3V and 5V, 3 part use ± 12V of signal condition to meet the requirement of output amplitude, ARM controller 2 is also wrapped
Data storage cell 6 is included, data storage cell 6 is used for stored waveform signal data.
Embodiment 2:
As shown in Fig. 2, the present embodiment is on the basis of embodiment 1, in above-mentioned steps A5,5 pairs of CPU control unit generations
The detection method of wave-shape amplitude:
Step A5.1, waveform signal is fed back to CPU control unit 5 by signal condition 3.
Step A5.2, feedback signal is respectively fed to range detector 14 and phase detectors 15 by CPU control unit 5.
Step A5.3, range detector 14 and phase detectors 15 detect amplitude and phase error respectively, are then fed into
CPU control unit 5, CPU control unit 5 adjust the width phase of DDS signal according to error signal.
Remaining structure of embodiment 2 and method are the same as embodiment 1.
Embodiment 3:
As shown in figure 3, side of the present embodiment on the basis of embodiment 2, in signal generating method also comprising reduction noise
Method, specific method include the following steps:
Step B1, CPU control unit 5 will be converted into waveform after the dissection process for the waveform feature data that host computer 1 issues
It instructs, is divided to two-way to pass to the chip AD9833 on two DDS waveform generators 7, two DDS waveforms by spi bus
Generator 7 generates the waveform of setpoint frequency and phase, and the waveform set to 16 synchronism output of filter.
Step B2, the two-way synchronization signal generated by DDS waveform generator 7 is after the filtering of wave filter 16, two-way waveform
Signal is respectively fed to range detector 14 and phase detectors 15.
Step B3, range detector 14 and phase detectors 15 detect wave-shape amplitude and phase error respectively, then send
Entering CPU control unit 5, CPU control unit 5 adjusts the width phase for the signal that DDS waveform generator 7 generates according to error signal, from
And guarantee the phases such as the signal wave amplitude that two-way DDS waveform generator 7 generates.
Step B4, pass through analog end after combiner 17 synthesizes all the way from the waveform signal exported in two filters 16
To the waveform of the output setting of signal condition 3.
Remaining structure of embodiment 3 and method are the same as embodiment 2.
A specific embodiment of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Protect range.
Claims (7)
1. a kind of signal generating method based on ARM and DDS technology, which comprises the steps of:
Step A1, wave character variable parameter is defined;
Step A2, defined wave character variable parameter is issued the CPU control unit in ARM controller;
Step A3, waveform will be converted into after the dissection process for the waveform feature data that host computer issues to instruct, pass to DDS
Chip AD9833 on waveform generator generates the waveform of setpoint frequency and phase, to the waveform of signal condition output setting;
Step A4, signal condition is controlled, determines the type, duty ratio and amplitude of signal waveform, obtains waveforms amplitude;
Step A5, the wave-shape amplitude of generation is detected, is shown by wave-shape amplitude data back to host computer and on host computer
Show.
2. a kind of signal generating method based on ARM and DDS technology according to claim 1, which is characterized in that described
ARM controller is the device comprising RS232 interface unit, and in step A2, the host computer is controlled by RS232 interface and ARM
RS232 interface unit connection on device, and the conversion chip connected uses RS232 electrical level transferring chip MAX232, it is described upper
Machine is PC industrial personal computer.
3. a kind of signal generating method based on ARM and DDS technology according to claim 1, which is characterized in that step A3
In, the CPU control unit explains the control instruction to waveform generator issued from host computer, is produced by DDS waveform generator
The waveform of raw setpoint frequency and phase, and pass through the waveform of analog port output setting to signal condition.
4. a kind of signal generating method based on ARM and DDS technology according to claim 1, which is characterized in that step A4
In, the CPU control unit and signal condition pass through IO bus transfer data;The CPU control unit is selected by waveform catalog
It selects, duty cycle adjustment and amplitude adjusted setting data, the CPU control unit is obtained by AD536A RMS conversion chip
Wave amplitude data.
5. a kind of signal generating method based on ARM and DDS technology according to claim 1, which is characterized in that step A5
In, the CPU control unit includes the following steps: the detection method of the wave-shape amplitude of generation
Step A5.1, waveform signal is fed back into CPU control unit;
Step A5.2, feedback signal is respectively fed to range detector and phase detectors;
Step A5.3, amplitude and phase error is detected respectively, is then fed into CPU control unit, and DDS is adjusted according to error signal
The width phase for the signal that waveform generator generates.
6. a kind of signal generating method based on ARM and DDS technology according to claim 1, which is characterized in that signal hair
Also the method comprising reducing noise, specific method include the following steps: in generation method
Step B1, waveform will be converted into after the dissection process for the waveform feature data that host computer issues to instruct, two-way is divided to pass
The chip AD9833 on two DDS waveform generators is passed, generates the waveform of setpoint frequency and phase, and defeated to filter synchronization
The waveform set out;
Step B2, the synchronization signal exported from filter is respectively fed to range detector and phase detectors;
Step B3, wave-shape amplitude and phase error are detected respectively, are then fed into CPU control unit, are adjusted according to error signal
The width phase for the signal that DDS waveform generator generates;
Step B4, from the waveform signal exported in two filters through combiner synthesize all the way after, to signal condition output set
Fixed waveform.
7. a kind of signal generating method based on ARM and DDS technology according to claim 1, which is characterized in that described
DDS waveform generator is the waveform generator that Three models occur comprising sine wave generation, square wave generation and triangular wave.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811455226.5A CN109782840A (en) | 2018-11-30 | 2018-11-30 | A kind of signal generating method based on ARM and DDS technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811455226.5A CN109782840A (en) | 2018-11-30 | 2018-11-30 | A kind of signal generating method based on ARM and DDS technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109782840A true CN109782840A (en) | 2019-05-21 |
Family
ID=66496056
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811455226.5A Pending CN109782840A (en) | 2018-11-30 | 2018-11-30 | A kind of signal generating method based on ARM and DDS technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109782840A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102592558A (en) * | 2012-03-05 | 2012-07-18 | 上海理工大学 | Embedded programmable multi-wave shape PDLC (polymer dispersed liquid crystal) driving power supply and control method |
CN203117688U (en) * | 2012-11-12 | 2013-08-07 | 成都理工大学 | Multifunctional signal generator based on ARM and DDS technologies |
CN106354196A (en) * | 2016-09-29 | 2017-01-25 | 华东电子工程研究所(中国电子科技集团公司第三十八研究所) | Low-noise broadband signal generator and signal generating method |
CN106910401A (en) * | 2016-10-09 | 2017-06-30 | 东北师范大学 | A kind of multifunctional virtual electronic instrument |
US20180092781A1 (en) * | 2014-11-05 | 2018-04-05 | The Regents Of The University Of California | Telemedical wearable sensing system for management of chronic venous disorders |
-
2018
- 2018-11-30 CN CN201811455226.5A patent/CN109782840A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102592558A (en) * | 2012-03-05 | 2012-07-18 | 上海理工大学 | Embedded programmable multi-wave shape PDLC (polymer dispersed liquid crystal) driving power supply and control method |
CN203117688U (en) * | 2012-11-12 | 2013-08-07 | 成都理工大学 | Multifunctional signal generator based on ARM and DDS technologies |
US20180092781A1 (en) * | 2014-11-05 | 2018-04-05 | The Regents Of The University Of California | Telemedical wearable sensing system for management of chronic venous disorders |
CN106354196A (en) * | 2016-09-29 | 2017-01-25 | 华东电子工程研究所(中国电子科技集团公司第三十八研究所) | Low-noise broadband signal generator and signal generating method |
CN106910401A (en) * | 2016-10-09 | 2017-06-30 | 东北师范大学 | A kind of multifunctional virtual electronic instrument |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104316737B (en) | One kind biases adjustable wave generator circuit and method based on FPGA amplitudes | |
Abourida et al. | Real-time PC-based simulator of electric systems and drives | |
CN103278686B (en) | A kind of frequency analysis filtering system and intelligent selection harmonic detecting method | |
CN108023352A (en) | Suppress the power grid high-frequency impedance remodeling device and method of distributed power generation resonance | |
CN203720587U (en) | Waveform generation device based on DDS technology | |
CN107086576B (en) | A kind of Distributed Power Flow controller Multiple Time Scales mathematical model establishing method | |
CN109307806A (en) | A kind of standard signal source of high accuracy | |
CN203117688U (en) | Multifunctional signal generator based on ARM and DDS technologies | |
CN204439680U (en) | A kind of normalized current source of AC/DC | |
CN203617976U (en) | Touch type multichannel random wave generator | |
CN106444963A (en) | Programmable DDS arbitrary waveform signal generator | |
CN203054516U (en) | Multi-waveform signal generator based on FPGA | |
CN111146807A (en) | Method for judging small interference stability of converter grid-connected system under polar coordinate | |
CN109782840A (en) | A kind of signal generating method based on ARM and DDS technology | |
CN102510262B (en) | Variable-frequency speed regulation controller | |
Wang et al. | Dynamic model reduction of power electronic interfaced generators based on singular perturbation | |
CN203482173U (en) | Signal generator with multipath signal superposition function | |
CN110044615A (en) | A kind of dynamically load electric machine control system and its application method | |
Chen et al. | Design of an arbitrary waveform signal generator | |
CN105511353A (en) | Low-frequency signal generator and signal debugging method | |
CN102540907B (en) | Parallel digital and analog integrated simulation interface and physical simulation subsystem interface | |
CN103812473A (en) | Arbitrary waveform generator | |
CN207124736U (en) | A kind of high-precision audio pulse circuit | |
CN207008352U (en) | A kind of nonlinear properties analogue means | |
CN109030947B (en) | Method for calculating equivalent impedance of electronic load simulation direct current motor |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190521 |