CN103078612A - Method for generating pulse signal by using analog switch - Google Patents

Method for generating pulse signal by using analog switch Download PDF

Info

Publication number
CN103078612A
CN103078612A CN2012105893013A CN201210589301A CN103078612A CN 103078612 A CN103078612 A CN 103078612A CN 2012105893013 A CN2012105893013 A CN 2012105893013A CN 201210589301 A CN201210589301 A CN 201210589301A CN 103078612 A CN103078612 A CN 103078612A
Authority
CN
China
Prior art keywords
analog switch
output
pulse signal
cpu
dac
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
CN2012105893013A
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.)
XI'AN KEYWAY TECHNOLOGY CO LTD
Original Assignee
XI'AN KEYWAY 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 XI'AN KEYWAY TECHNOLOGY CO LTD filed Critical XI'AN KEYWAY TECHNOLOGY CO LTD
Priority to CN2012105893013A priority Critical patent/CN103078612A/en
Publication of CN103078612A publication Critical patent/CN103078612A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electronic Switches (AREA)

Abstract

The invention discloses a method for generating a pulse signal by using an analog switch. The method comprises the following steps of: finishing control over a DAC (Digital-to-Analog Converter) and the analog switch by taking a CPU (Central Processing Unit) as a control core; controlling an analog signal output by the DAC through the CPU for presetting an amplitude range of an output pulse signal; and controlling action of the analog switch through an IO (Input Output) pin of the CPU for changing the width and the frequency of the output pulse signal. The invention provides a method for generating a pulse signal with variable amplitude, variable frequency and variable width by switching an analog signal with an analog switch. According to the method, the DAC is controlled through the processor CPU to output the analog signal with variable amplitude, then on and off of the analog switch are controlled by the CPU to switch the analog signal, and the continuously changing analog signal is changed into a required pulse signal to be output.

Description

A kind of method of utilizing analog switch to produce pulse signal
Technical field
The present invention relates to a kind of method of utilizing analog switch to produce pulse signal, be specifically related to a kind of method of how utilizing processor control simulation switch on and off and switching the variable pulse signal of continuous analog signal generation variable-magnitude, changeable frequency, variable-width and polarity.
Background technology
Analog switch is the device of in recent years extensive use, and it has, and conducting resistance is low, switching speed is fast, volume is little, low in energy consumption, high reliability, system cost are low, flexibility is convenient to well the characteristics such as connection, thereby is used widely in modern electronic technology.In embedded system, it switches through being usually used in signal.Particularly in recent years along with its conducting resistance is more and more lower, from original ohms up to a hundred to tens ohm, till now several ohm even less than one Europe again, the decay of signal becomes very little on switch, and the ability by electric current is increased to the hundreds of milliampere from original tens milliamperes.In addition, switching speed is more and more faster, and from hundred nanosecond of original one-tenth being reduced to tens or even several nanosecond, these have all brought widely to analog switch and have used.
Pulse signal method for designing commonly used has two kinds now.A kind of is traditional oscillating circuit method, namely utilizes monostable flipflop to produce, because the more needs of signal burr that produce carry out shaping.Although this method circuit is simple, precision and stability is poor, and is affected by environment larger, and signal amplitude is difficult to regulate, and can't link to each other with processor, is not suitable for modern embedded system control.Another kind method is to adopt digital frequency synthesizer DDS, and this is after direct frequency synthesis and indirect frequency synthesis, the third generation frequency synthesis technique that develops rapidly along with the development of digital integrated circuit and microelectric technique.It is take digital signal processing theory as the basis, carry out frequency synthesis from the amplitude-phase relation of signal, the frequency switching time that is characterized in having high frequency resolution, extremely lacks, very wide relative bandwidth, fan-out capability and the Digital Modulation function of random waveform, be suitable for very much the High-speed frequency hopping communication field, but the cost of this method is higher, programming is trouble, is not suitable for the occasion to cost sensitivity, can not satisfy users on diversity.
Summary of the invention
The object of the present invention is to provide a kind of method of utilizing analog switch to produce pulse signal, the analog signal that it changes by processor CPU control digital to analog converter DAC output amplitude, then CPU control simulation switch on and off becomes periodic output of pulse signal to the continually varying analog signal to switch this analog signal.
Technical solution of the present invention is:
A kind of method of utilizing analog switch to produce pulse signal, its special character be, the method specifically:
1] take CPU as control core, finishes the control to DAC and analog switch;
Amplitude, frequency and polar requirement according to output pulse signal are selected suitable CPU, DAC and analog switch; Low speed pulse output requirement during CPU satisfies; If only output single-pole pulse selects general analog switch all can meet the demands so; If the output bipolar pulse, should select so can be by the switch of negative voltage;
2] analog signal of exporting by CPU control DAC is in order to preset the amplitude range of output pulse signal;
If the DAC that selects is the concurrent working mode, then hang on the cpu data bus; If the work in series mode then is connected on the general purpose I/O pin of CPU; The figure place of DAC has determined the precision of output pulse amplitude, and the higher then precision of figure place is higher; Generally speaking, 8 to 10 DAC can meet the demands.
3] action of the IO pin control simulation switch by CPU is in order to change output pulse signal
Amplitude, width and frequency;
Certain IO pin of CPU is received on the analog switch control end, and called after is CONTRL_EN;
4] the DAC output signal pin that will use is directly received on the input pin of analog switch.Pulse signal is exported from the output pin of this analog switch.
5] write code, at the waveform of the continuous exporting change of runtime chien shih DAC, and control CONTRL_EN is not
Export high-low level disconnectedly and cooperate, can obtain the pulse amplitude, width and the frequency that need.
The above-mentioned method of utilizing analog switch to produce pulse signal is characterized in that: if improve the amplitude of output pulse signal, can add in the pulse signal rear end of output so and use operational amplifier, adjust multiplication factor and get final product to desired value.
Above-mentioned analog switch refers to the analog switch of various frequencies.
Above-mentioned CPU is the AT89C51 of atmel corp; Described analog switch is the ISL54062 of Intersil company.
The invention has the advantages that:
1. cost is low, and circuit design and debugging are simpler easier.
2. high flexibility.Particularly pulse signal waveform can be changed at any time, bipolar pulse can be exported.
3. the output pulse signal edge is precipitous, fast response time.Compole is short when rising edge and trailing edge, need not shaping.
4. programming is simple.Need not in advance the Wave data that will export to be placed in the special memory, only needing constantly to change the DAC output valve is the waveform of exportable needs.
Description of drawings
Fig. 1 is the system architecture diagram of output pulse signal;
Fig. 2 is the pulse signal waveform figure of output arbitrary sequence;
Fig. 3 is for increasing the system architecture diagram after output amplitude is regulated.
Embodiment
The present invention is: connect a digital to analog converter DAC at CPU, CPU is according to the pre-designed given analog quantity of program control DAC output.Then, the CPU action of switching analog signals by self certain IO pin control simulation switch.CPU finally produces a series of orderly pulse signals by constantly control switch action.
Detailed process of the present invention is:
1] selects suitable CPU, DAC and analog switch according to the requirements such as amplitude, frequency and polarity of output pulse signal.General CPU, for example the AT89C51 of atmel corp can satisfy middle low speed pulse output requirement.If only output single-pole pulse selects general analog switch all can meet the demands so.If the output bipolar pulse, should select so can be by the switch of negative voltage.The ISL54062 of optional Intersil company for example, this switch can be by being lower than the signal of supply voltage 7V.
2] if the DAC that selects is the concurrent working mode, then hang on the cpu data bus; If the work in series mode then is connected on the general purpose I/O pin of CPU.The figure place of DAC has determined the precision of output pulse amplitude, and the higher then precision of figure place is higher.Generally speaking, 8 to 10 DAC can meet the demands.For example, 8 ADC transducer ADC0802.
3] certain IO pin of CPU is received on the analog switch control end (temporarily CONTRL_EN by name).
4] the DAC output signal pin that will use is directly received on the input pin of analog switch.Pulse signal is exported from the output pin of this analog switch.
5] available any language is write code such as compilation, C language etc., at the waveform of the continuous exporting change of runtime chien shih DAC, and controls CONTRL_EN and constantly exports the high-low level cooperation, can obtain the pulse amplitude, width and the frequency that need.Referring to attached Fig. 1 and 2.
6] if the amplitude of raising output pulse signal can add in the pulse signal rear end of output so and use operational amplifier that the adjustment multiplication factor gets final product to desired value.Referring to accompanying drawing 3.

Claims (4)

1. a method of utilizing analog switch to produce pulse signal is characterized in that, the method specifically:
1] take CPU as control core, finishes the control to DAC and analog switch;
Amplitude, frequency and polar requirement according to output pulse signal are selected suitable CPU, DAC and analog switch; Low speed pulse output requirement during CPU satisfies; If only output single-pole pulse selects general analog switch all can meet the demands so; If the output bipolar pulse, should select so can be by the switch of negative voltage;
2] analog signal of exporting by CPU control DAC is in order to preset the amplitude range of output pulse signal;
If the DAC that selects is the concurrent working mode, then hang on the cpu data bus; If the work in series mode then is connected on the general purpose I/O pin of CPU; The figure place of DAC has determined the precision of output pulse amplitude, and the higher then precision of figure place is higher; Generally speaking, 8 to 10 DAC can meet the demands;
3] action of the IO pin control simulation switch by CPU is in order to change output pulse signal
Width and frequency;
Certain IO pin of CPU is received on the analog switch control end, and called after is CONTRL_EN;
4] the DAC output signal pin that will use is directly received on the input pin of analog switch;
Pulse signal is exported from the output pin of this analog switch;
5] write code, at the waveform of the continuous exporting change of runtime chien shih DAC, and control CONTRL_EN and constantly export the high-low level cooperation, can obtain the pulse amplitude, width and the frequency that need.
2. the described method of utilizing analog switch to produce pulse signal according to claim 1, it is characterized in that: if improve the amplitude of output pulse signal, can add in the pulse signal rear end of output so and use operational amplifier, adjust multiplication factor and get final product to desired value.
3. the described method of utilizing analog switch to produce pulse signal according to claim 1 and 2, it is characterized in that: described analog switch refers to the analog switch of various operating frequencies.
4. the described method of utilizing analog switch to produce pulse signal according to claim 3, it is characterized in that: described CPU is the AT89C51 of atmel corp; Described analog switch is the ISL54062 of Intersil company.
CN2012105893013A 2012-12-31 2012-12-31 Method for generating pulse signal by using analog switch Pending CN103078612A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105893013A CN103078612A (en) 2012-12-31 2012-12-31 Method for generating pulse signal by using analog switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105893013A CN103078612A (en) 2012-12-31 2012-12-31 Method for generating pulse signal by using analog switch

Publications (1)

Publication Number Publication Date
CN103078612A true CN103078612A (en) 2013-05-01

Family

ID=48155036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105893013A Pending CN103078612A (en) 2012-12-31 2012-12-31 Method for generating pulse signal by using analog switch

Country Status (1)

Country Link
CN (1) CN103078612A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245208A (en) * 2015-09-28 2016-01-13 宁波帝洲自动化科技有限公司 Bipolar voltage output circuit

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5898342A (en) * 1998-01-20 1999-04-27 Advanced Micro Devices Power amplifier arrangement and method for data signal interface
CN101047371A (en) * 2007-03-19 2007-10-03 成都理工大学 Full digital sliding pulse signal generator
CN101127152A (en) * 2007-09-30 2008-02-20 山东科技大学 Coding signal generator and radio remote control device for robot and animal control
US7423474B2 (en) * 2003-05-23 2008-09-09 Broadcom Corporation Selectable pole bias line filter
CN202459848U (en) * 2012-02-28 2012-10-03 吉林大学 Impulse electronic therapeutic meter

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5898342A (en) * 1998-01-20 1999-04-27 Advanced Micro Devices Power amplifier arrangement and method for data signal interface
US7423474B2 (en) * 2003-05-23 2008-09-09 Broadcom Corporation Selectable pole bias line filter
CN101047371A (en) * 2007-03-19 2007-10-03 成都理工大学 Full digital sliding pulse signal generator
CN101127152A (en) * 2007-09-30 2008-02-20 山东科技大学 Coding signal generator and radio remote control device for robot and animal control
CN202459848U (en) * 2012-02-28 2012-10-03 吉林大学 Impulse electronic therapeutic meter

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245208A (en) * 2015-09-28 2016-01-13 宁波帝洲自动化科技有限公司 Bipolar voltage output circuit
CN105245208B (en) * 2015-09-28 2018-05-29 宁波帝洲自动化科技有限公司 A kind of bipolar voltage output circuit

Similar Documents

Publication Publication Date Title
CN104316737B (en) One kind biases adjustable wave generator circuit and method based on FPGA amplitudes
CN103944540A (en) Triangular wave signal generator
CN102073032A (en) Modular generation method for multi-waveform radar signal
CN110113275B (en) Intelligent multichannel broadband interference signal produces device
CN104615042A (en) PXIe bus based miniaturized multifunctional signal source device
CN105159372A (en) Negative voltage generation circuit
CN103365723A (en) Integrated circuit device with programmable blocks and analog circuit control
CN108107389A (en) Magnetic nuclear resonance radio frequency impulse generator and control method based on digital modulation technique
CN108693904A (en) Power supply control circuit and method thereof
CN103675373B (en) A kind of digital signal generating method realized in FPGA
CN105425898A (en) Low-power embedded system
CN105094014A (en) High-speed parallel D/A clock synchronization apparatus
CN103078612A (en) Method for generating pulse signal by using analog switch
CN203405695U (en) Voltage controlled current signal generator of solar battery array simulator
CN109462385B (en) Device and method for compiling high-voltage pulse parameters
CN204408295U (en) A kind of DDS waveform generator
CN204442309U (en) A kind of simple and easy DDS waveform generator
CN203287407U (en) High voltage large power multiple harmonic generating device
CN105281715A (en) Power-frequency synchronization depth storage ns-grade pulse multi-parameter generation system
CN211791481U (en) Ultra-wideband radio frequency signal generator supported by multiple local vibration sources
CN205068049U (en) Signalling and control system based on FPGA and labVIEW
CN102761253B (en) Control device and method of buck/boost converter
CN103988429B (en) Output of pulse signal device
CN104460920A (en) Switching circuit and computer device with the same
CN110909514B (en) Simulation debugging method and simulation debugging platform of matching network

Legal Events

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

Application publication date: 20130501