CN104104368A - Four-channel dynamic amplitude-modulated signal generator - Google Patents

Four-channel dynamic amplitude-modulated signal generator Download PDF

Info

Publication number
CN104104368A
CN104104368A CN201410368206.XA CN201410368206A CN104104368A CN 104104368 A CN104104368 A CN 104104368A CN 201410368206 A CN201410368206 A CN 201410368206A CN 104104368 A CN104104368 A CN 104104368A
Authority
CN
China
Prior art keywords
mcu
fpga chip
data
signal generator
bus
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.)
Granted
Application number
CN201410368206.XA
Other languages
Chinese (zh)
Other versions
CN104104368B (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.)
Nanjing Dingshi Medical Equipment Co Ltd
Original Assignee
Nanjing Dingshi Medical Equipment 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 Nanjing Dingshi Medical Equipment Co Ltd filed Critical Nanjing Dingshi Medical Equipment Co Ltd
Priority to CN201410368206.XA priority Critical patent/CN104104368B/en
Publication of CN104104368A publication Critical patent/CN104104368A/en
Application granted granted Critical
Publication of CN104104368B publication Critical patent/CN104104368B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a four-channel dynamic amplitude-modulated signal generator, wherein the traditional 32-bit MCU is combined with an FPGA, the traditional 32-bit MCU is simulated to a dual-channel DAC, and the MCU is used as the peripheral of the FPGA instead of usual main equipment, so as to realize the four-channel dynamic amplitude-modulated signal generator. After a data interface between the FPGA and a DAC module (which actually is simulated by the MCU) is configured with a signal time sequence, the FPGA can realize the purpose only by conveying DDS data into the 'DAC' module according to time sequence requirements. The four-channel dynamic amplitude-modulated signal generator provided by the invention breaks through the top-to-bottom design method of the traditional signal generator, and originally simulates the traditional 32-bit MCU to the peripheral of the DAC; in the other hand, hardware characteristics are adequately utilized, and software intervention is furthest reduced, thus the running efficiency is great.

Description

A kind of four-way dynamic amplitude modulation signal generator
Technical field
The present invention relates to signal source hormone field, in particular to a kind of four-way dynamic amplitude modulation signal generator.
Background technology
After electric current of intermediate frequency is modulated by low-frequency current, its amplitude and frequency are along with the amplitude of low-frequency current and the variation of frequency and the electric current changing is called modulating frequency current.The method of applying this electric current treatment disease is called modulated medium frequency elec trotherapy.The features such as this therapy has fast, the no pain of producing effects, side effect is little, curative effect is lasting, are extensively adopted clinically.
In medical electrotherapy equipment, most crucial part is the generation of amplitude modulation(PAM) waveform (AM), by different modulation waveforms, the variation of carrier wave, after signal is amplified, and outputs to human body.
The angle occurring from signal, in the definition of medical electric current, the frequency range of the medical electric current of intermediate frequency is 1KHz~5KHz, not high.But in conjunction with the consideration of feature and the equipment cost of medicine equipment itself, rarely have and can accomplish unified, low-cost medical signal generator of intermediate frequency, particularly for some special applications, as three-dimensional intermediate frequency interference electric therapeutic equipment, also need to accomplish the Phase synchronization of signal, modulation depth adjusting etc.The application of this complexity, even almost cannot realize in the system of 8 singlechip chips 32 of traditional uses.
Summary of the invention
A first aspect of the present invention discloses a kind of four-way dynamic amplitude modulation signal generator, by traditional 32 MCU and FPGA combination, adopt 32 traditional MCU to be modeled to binary channels DAC, the peripheral hardware using MCU as FPGA, instead of common main equipment, realize four-way dynamic amplitude modulation signal generator.
In the disclosure, described four-way dynamic amplitude modulation signal generator, comprise a MCU, the 2nd MCU and a fpga chip, between a MCU and fpga chip and between the 2nd MCU and fpga chip, disposing respectively data/address bus, common clock bus and low speed communication bus;
Configuration-direct in described fpga chip, produce unified reference clock signal also by described common clock bus synchronous to the MCU, the 2nd MCU for the oscillator signal providing according to outside, and calculate the data transaction of 4 DAC passages for timesharing, this data transaction produces AM synthetic waveform based on DDS (Direct Digital frequency synthesis) algorithm, and transfers to a MCU and the 2nd MCU by described data/address bus timesharing under the distribution of sequential;
A described MCU, the 2nd MCU are used for the peripheral hardware as described fpga chip, for:
By described common clock bus, the one MCU, the 2nd MCU and described fpga chip are remained under same reference clock signal;
Be connected to receive described AM synthetic waveform by data/address bus and described fpga chip; And
Provide respectively the output of two output amplitude-modulated signals according to the AM synthetic waveform of described fpga chip transmission.
In further implementing, a described MCU, the 2nd MCU all adopt the one in STM32F10x/STM32F20x/STM32F40x family chip, and a MCU is identical with the 2nd MCU.
In further implementing, a described MCU is configured to main logic control chip, passes through spi bus communication with described fpga chip.
In further implementing, the reference clock signal of the fixed frequency that described fpga chip produces, is applied to common clock bus;
The timer of a described MCU, the 2nd MCU all works in external timing signal pattern, and a MCU, the 2nd MCU are respectively to this signals collecting counting;
A described MCU, the 2nd MCU, for signal-count result, within a sequential cycle, complete task separately according to different time slots;
In the processing time slot of the 2nd MCU, the waveform that calculates respectively 4 DAC passages adopts data, and transfers to described data/address bus;
In the processing time slot of a MCU, gather respectively the data on described data/address bus and complete a DAC conversion.
From the above technical solution of the present invention shows that, beneficial effect of the present invention is to propose a kind of four-way dynamic amplitude modulation signal generator of simplification, four-way signal can synchronous, asynchronous two kinds of modes be exported, and allow frequency range in exportable AM random waveform; On the one hand, break through the traditional signal generator top-down method for designing, Promethean 32 MCU of tradition are modeled to DAC peripheral hardware; On the other hand, make full use of ardware feature, reduce to greatest extent software intervention, operational efficiency is splendid.
Brief description of the drawings
Fig. 1 is the theory diagram of the four-way dynamic amplitude modulation signal generator of an embodiment of the present invention.
Embodiment
In order more to understand technology contents of the present invention, especially exemplified by specific embodiment and coordinate appended graphic being described as follows.
As shown in Figure 1, according to preferred embodiment of the present invention, a kind of four-way dynamic amplitude modulation signal generator, by traditional 32 MCU and FPGA combination, adopt 32 traditional MCU to be modeled to binary channels DAC, peripheral hardware using MCU as FPGA, instead of common main equipment, realize four-way dynamic amplitude modulation signal generator.
In the present embodiment, as shown in Figure 1, four-way dynamic amplitude modulation signal generator, comprise a MCU1a, the 2nd MCU1b and a fpga chip 2, between a MCU and fpga chip and between the 2nd MCU and fpga chip, disposing respectively data/address bus 3, common clock bus 4 and low speed communication bus 5.
Wherein, low speed communication bus 5 is the low speed PORT COM between MCU<->FPGA, for preparing the transmission of data.
In the present embodiment, clock signal is produced by fpga chip 2, and is synchronized to MCU (1a and 1b) by common clock bus 4, for coordinating the control sequential of MCU (1a and 1b) and fpga chip.
Aforementioned fpga chip 2, also calculates the translation data of each DAC passage for timesharing, under the distribution of sequential, the data/address bus of MCU<->FPGA is sent in timesharing, thus two MCU (1a and 1b) that transfer to.
The interior configuration-direct of this fpga chip 2, produce unified reference clock signal also by described common clock bus synchronous to the MCU, the 2nd MCU for the oscillator signal providing according to outside, and calculate the data transaction of 4 DAC passages for timesharing, this data transaction produces AM synthetic waveform based on DDS (Direct Digital frequency synthesis) algorithm, and transfers to a MCU and the 2nd MCU by described data/address bus timesharing under the distribution of sequential;
A described MCU, the 2nd MCU are used for the peripheral hardware as described fpga chip, for:
By described common clock bus, the one MCU, the 2nd MCU and described fpga chip are remained under same reference clock signal;
Be connected to receive described AM synthetic waveform by data/address bus and described fpga chip; And
Provide respectively the output of two output amplitude-modulated signals according to the AM synthetic waveform of described fpga chip transmission.
As preferably, a described MCU1a can be configured to main logic control chip, with described fpga chip 2 by spi bus communication.For example in the present embodiment, a MCU adopts STM32F1031RC chip, and the 2nd MCU also adopts STM32F103RC.
In the enforcement of alternative, an aforementioned MCU1a, the 2nd MCU1b all adopt the one in STM32F10x/STM32F20x/STM32F40x family chip, and a MCU is identical with the 2nd MCU.
As previously mentioned, in the present embodiment, complete the synthetic of AM waveform by fpga chip 2, by means of DDS (Direct Digital frequency synthesis) algorithm, high frequency synthetic waveform can be produced, due to the AM synthesizer that adopts high speed fpga chip to realize, the synthetic of any AM waveform can be met.
Shown in figure 1, the reference clock signal of the fixed frequency that described fpga chip 2 produces, is applied to common clock bus 4;
The timer (TIM5CH1 in figure) of a described MCU1a, the 2nd MCU1b all works in external timing signal pattern, and a MCU, the 2nd MCU are respectively to this signals collecting counting;
A described MCU, the 2nd MCU, for signal-count result, within a sequential cycle, complete task separately according to different time slots;
In the processing time slot of the 2nd MCU, the waveform that calculates respectively 4 DAC passages adopts data, and transfers to described data/address bus;
In the processing time slot of a MCU, gather respectively the data on described data/address bus and complete a DAC conversion.
In the present embodiment, the processing logic order of the one MCU is that < timer gathers reference clock >, < time slot judges that >, < image data >, <DAC change >, this process has hardware to complete completely, without any need for the intervention of software, therefore embody high efficiency and the uniqueness (being the specificity of MCU model) of whole four-way dynamic amplitude modulation signal generator.
Two MCU (1a, 1b) and fpga chip 2 (4.19430MHz) under identical clock bus, simultaneously to driving clock count, (4.19430MHz), to ensure that DAC synchronously exports.
In the present embodiment, described outside oscillator signal is the active crystal oscillator of a HS-A370-67.108864MHz, offers fpga chip 2, distributes corresponding clock by it:
1) after 8 frequency divisions, obtain 8.388608MHz and offer each MCU.
2) after 16 frequency divisions, obtain 4.194304MHz and export to as CPLD/FPGA the clock signal of the counter of each MCU.
This signal again 16 frequency divisions obtains the DDS clock of 262.144KHz.This signal also can be by 1) two divided-frequency again.
3) and the work such as the internal memory operation of CPLD/FPGA work under 67.108864MHz speed completely.
Two MCU (1a, 1b) determine current behavior separately with fpga chip 2 according to count value, as shown in the table:
Shown in figure 1, TI1S:0, selects the input of TIM5_CH1 as TI1, MMS[2:0], 010, selection TIM5 more new events inputs (TROG) as triggering.CCDS:1, in the time there is more new events, sends the DMA request of CCx.
In the DAC of STM32 design, DMA2_CH3 and DMA2_CH4 are that hardware is distributed to DMA " exclusive " passage, just DAC module has been opened DMA function, no matter which kind of mode triggering DAC by changes, hardware will use DMA passage to transmit data for DAC automatically, so in the time that TIM5 overflows, formulate him and produce a TRGO signal, DMA1,2 will complete DMA transfer of data and two work of DAC conversion automatically.Therefore 14,15 two behaviors in former sequential, can omit.
Although the present invention discloses as above with preferred embodiment, so it is not in order to limit the present invention.Persond having ordinary knowledge in the technical field of the present invention, without departing from the spirit and scope of the present invention, when being used for a variety of modifications and variations.Therefore, protection scope of the present invention is when being as the criterion depending on claims person of defining.

Claims (4)

1. a four-way dynamic amplitude modulation signal generator, it is characterized in that, comprise: a MCU, the 2nd MCU and a fpga chip, disposing respectively data/address bus, common clock bus and low speed communication bus between a MCU and fpga chip and between the 2nd MCU and fpga chip;
Configuration-direct in described fpga chip, produce unified reference clock signal also by described common clock bus synchronous to the MCU, the 2nd MCU for the oscillator signal providing according to outside, and calculate the data transaction of 4 DAC passages for timesharing, this data transaction is based on the frequency synthesis of DDS(Direct Digital) algorithm and produce AM synthetic waveform, and transfer to a MCU and the 2nd MCU by described data/address bus timesharing under the distribution of sequential;
A described MCU, the 2nd MCU are used for the peripheral hardware as described fpga chip, for:
By described common clock bus, the one MCU, the 2nd MCU and described fpga chip are remained under same reference clock signal;
Be connected to receive described AM synthetic waveform by data/address bus and described fpga chip; And
Provide respectively the output of two output amplitude-modulated signals according to the AM synthetic waveform of described fpga chip transmission.
2. four-way dynamic amplitude modulation signal generator according to claim 1, is characterized in that, a described MCU, the 2nd MCU all adopt the one in STM32F10x/STM32F20x/STM32F40x family chip, and a MCU is identical with the 2nd MCU.
3. four-way dynamic amplitude modulation signal generator according to claim 1, is characterized in that, a described MCU is configured to main logic control chip, passes through spi bus communication with described fpga chip.
4. four-way dynamic amplitude modulation signal generator according to claim 1, is characterized in that, the reference clock signal of the fixed frequency that described fpga chip produces, is applied to common clock bus;
The timer of a described MCU, the 2nd MCU all works in external timing signal pattern, and a MCU, the 2nd MCU are respectively to this signals collecting counting;
A described MCU, the 2nd MCU, for signal-count result, within a sequential cycle, complete task separately according to different time slots;
In the processing time slot of the 2nd MCU, the waveform that calculates respectively 4 DAC passages adopts data, and transfers to described data/address bus;
In the processing time slot of a MCU, gather respectively the data on described data/address bus and complete a DAC conversion.
CN201410368206.XA 2014-07-29 2014-07-29 Four-channel dynamic amplitude-modulated signal generator Active CN104104368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410368206.XA CN104104368B (en) 2014-07-29 2014-07-29 Four-channel dynamic amplitude-modulated signal generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410368206.XA CN104104368B (en) 2014-07-29 2014-07-29 Four-channel dynamic amplitude-modulated signal generator

Publications (2)

Publication Number Publication Date
CN104104368A true CN104104368A (en) 2014-10-15
CN104104368B CN104104368B (en) 2017-01-18

Family

ID=51672220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410368206.XA Active CN104104368B (en) 2014-07-29 2014-07-29 Four-channel dynamic amplitude-modulated signal generator

Country Status (1)

Country Link
CN (1) CN104104368B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112180772A (en) * 2019-07-01 2021-01-05 华东师范大学 DDS and signal generator implementation system based on stm32 single chip microcomputer and broadband operational amplifier

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2118384A (en) * 1982-03-26 1983-10-26 Plessey Co Plc Digital amplitude modulator
US4424812A (en) * 1980-10-09 1984-01-10 Cordis Corporation Implantable externally programmable microprocessor-controlled tissue stimulator
CN85107310A (en) * 1985-10-08 1986-07-23 中国人民解放军空军总医院 Computer mid-frequency electrotherapy device
US20040059395A1 (en) * 1999-09-29 2004-03-25 Medtronic, Inc. Patient interactive neurostimulation system and method
CN101339446A (en) * 2008-07-18 2009-01-07 电子科技大学 Double channel synchronous DDS device capable of modulating phase and amplitude
CN102354256A (en) * 2011-08-01 2012-02-15 上海交通大学 Multi-channel synchronizing signal generator based on field program gate array (FPGA) and AD9959
CN102723931A (en) * 2012-07-02 2012-10-10 优利德科技(成都)有限公司 Wide-dynamic high-accuracy and edge time adjustable impulse wave producing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4424812A (en) * 1980-10-09 1984-01-10 Cordis Corporation Implantable externally programmable microprocessor-controlled tissue stimulator
GB2118384A (en) * 1982-03-26 1983-10-26 Plessey Co Plc Digital amplitude modulator
CN85107310A (en) * 1985-10-08 1986-07-23 中国人民解放军空军总医院 Computer mid-frequency electrotherapy device
US20040059395A1 (en) * 1999-09-29 2004-03-25 Medtronic, Inc. Patient interactive neurostimulation system and method
CN101339446A (en) * 2008-07-18 2009-01-07 电子科技大学 Double channel synchronous DDS device capable of modulating phase and amplitude
CN102354256A (en) * 2011-08-01 2012-02-15 上海交通大学 Multi-channel synchronizing signal generator based on field program gate array (FPGA) and AD9959
CN102723931A (en) * 2012-07-02 2012-10-10 优利德科技(成都)有限公司 Wide-dynamic high-accuracy and edge time adjustable impulse wave producing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112180772A (en) * 2019-07-01 2021-01-05 华东师范大学 DDS and signal generator implementation system based on stm32 single chip microcomputer and broadband operational amplifier

Also Published As

Publication number Publication date
CN104104368B (en) 2017-01-18

Similar Documents

Publication Publication Date Title
CN104283664A (en) Differential decoder
CN105991645B (en) A kind of encryption method and system of data flow
CN108832917A (en) It is a kind of for exempting from the spread spectrum modulation technique of filtering figure D class audio frequency power amplifier
CN107908129B (en) The control method of DSP and the interconnection of FPGA/CPLD multidimensional
CN110215603A (en) A kind of production method and device, physiotherapy equipment of physiotherapy equipment electric pulse
CN103942379B (en) All-digital silicon controlled rectifier controller chip for three-phase alternating-current voltage regulation and rectification
CN108107389A (en) Magnetic nuclear resonance radio frequency impulse generator and control method based on digital modulation technique
CN102752099A (en) Lorenz chaotic signal generator
CN104104368B (en) Four-channel dynamic amplitude-modulated signal generator
CN104079268A (en) Method and device for achieving arbitrary waveform occurrence and display of pulse power supply
CN103872985B (en) Generating device of high-voltage sine wave drive signal
CN105281714B (en) A kind of square-wave device and method of editable symbol
CN104506112B (en) A kind of unit cascaded type frequency converter based on DSP and FPGA
GB1425654A (en) Waveform generator
CN109481844A (en) Implantable nerve stimulation apparatus with multiple-frequency-mode
CN103675373A (en) Digital signal generation method achieved in FPGA
CN106569541B (en) Sine wave generation method and device
CN201774507U (en) Multipath digital pulse generator
CN104836763B (en) It is a kind of to improve the multi channel signals output system for passing letter rate
CN204089732U (en) A kind of eight passage sinusoidal signal generators
CN103873055B (en) Measuring instrument and clock synchronizing method with clock synchronization circuit
CN109002277A (en) A kind of pseudo-random signal dynamic configuration system and method
CN209842446U (en) Digital frequency synthesis chip full-coherent signal source circuit
CN104977569B (en) A kind of universal Light deformation intermediate frequency Radio Beacon
CN109675192A (en) Using the chaos electric stimulation of EMG feedback signal modulation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant