CN104281051A - Method for generating high-precision PWM signal through FPGA - Google Patents

Method for generating high-precision PWM signal through FPGA Download PDF

Info

Publication number
CN104281051A
CN104281051A CN201310292135.5A CN201310292135A CN104281051A CN 104281051 A CN104281051 A CN 104281051A CN 201310292135 A CN201310292135 A CN 201310292135A CN 104281051 A CN104281051 A CN 104281051A
Authority
CN
China
Prior art keywords
signal
pwm signal
fpga
clock signal
precision
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
CN201310292135.5A
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.)
8358 Research Institute of 3th Academy of CASC
Original Assignee
8358 Research Institute of 3th Academy of CASC
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 8358 Research Institute of 3th Academy of CASC filed Critical 8358 Research Institute of 3th Academy of CASC
Priority to CN201310292135.5A priority Critical patent/CN104281051A/en
Publication of CN104281051A publication Critical patent/CN104281051A/en
Pending legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

The invention relates to a method for generating a high-precision PWM signal through an FPGA and belongs to the technical field of signal processing. The FPGA is adopted for generating a high-frequency time clock signal, and then the high-precision PWM signal is generated. In this way, the problem that according to an existing scheme, the selected model of a DSP chip conflicts with the frequency and precision of the PWM signal is solved, besides, circuit implementation is easy, and the method is suitable for high-precision and small-size control systems including a follow-up image stabilization platform of an imaging guiding system and others.

Description

A kind of method utilizing FPGA to produce High-Accuracy PWM signal
Technical field
The present invention relates to signal processing technology field, be specifically related to a kind of method utilizing FPGA to produce High-Accuracy PWM signal.
Background technology
For improving system effectiveness, reducing system bulk, PWM (pulse-length modulation) signal in control system, is often adopted to be rotated by H bridge power amplifier drive motor.For the servo-actuated steady picture platform of image-guided systems as the control system of a kind of high precision, small size, mainly at present special DSP (digital signal processing) chip is adopted to produce pwm signal.And the DSP clock of conventional band PWM peripheral hardware is generally no more than 150MHz, the internal clock frequencies of dsp chip determines frequency, the precision of pwm signal, therefore dsp chip select the frequency and precision that limit the pwm signal that it can produce, conversely, the requirement of PWM frequency and precision be also limit to the type selecting of dsp chip.
Therefore, how to design a kind of method of the generation High-Accuracy PWM signal of restriction of not selecting by dsp chip and become technical matters urgently to be resolved hurrily.
Summary of the invention
(1) technical matters that will solve
The technical problem to be solved in the present invention is: how to design a kind of method not selecting the generation High-Accuracy PWM signal of restriction by dsp chip.
(2) technical scheme
In order to solve the problems of the technologies described above, the invention provides a kind of method utilizing FPGA to produce High-Accuracy PWM signal, comprising the following steps:
S1, utilize on-site programmable gate array FPGA to produce high frequency clock signal, and send to counter;
S2, described counter to receive after described high frequency clock signal clock count, count 2 nrear clearing, then counts again, and so circulation is until reach default cycle index, thus produces sawtooth wave, wherein, and the precision figure place of pulse width modulation (PWM) signal of n for producing;
S3, the n-bit data inputted outside by comparer are compared with described sawtooth wave, thus produce pwm signal.
Preferably, described high frequency clock signal is produced by the clock-signal generator module of FPGA.
Preferably, frequency/2 of the frequency=described high frequency clock signal of the pwm signal produced n.
Preferably, described high frequency clock signal is the clock signal of 300MHz.
Preferably, n=14.
(3) beneficial effect
The present invention adopts FPGA to produce high frequency clock signal, achieve the generation of High-Accuracy PWM signal, not only solve the contradiction between the frequency of dsp chip type selecting and pwm signal in existing scheme, precision, and circuit realiration is simple, is applicable to this kind of high precision of servo-actuated steady picture platform of such as image-guided systems, the control system of small size.
Accompanying drawing explanation
Fig. 1 is method flow diagram of the present invention;
Fig. 2 is the hardware implementing block diagram of method of the present invention;
Fig. 3 is the oscillogram utilizing method of the present invention to produce pwm signal.
Embodiment
For making object of the present invention, content and advantage clearly, below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.
As shown in Figure 1, the invention provides a kind of method utilizing FPGA to produce High-Accuracy PWM signal, comprise the following steps:
S1, utilize inside IP kernel DCM module (clock-signal generator module) of on-site programmable gate array FPGA to produce high frequency clock signal, and send to counter;
S2, described counter to receive after described high frequency clock signal clock count, count 2 nrear clearing, then again count, so circulation is until reach default cycle index (such as 3 times), thus produces sawtooth wave (as shown in the waveform 1 in Fig. 3), wherein, the precision figure place of pulse width modulation (PWM) signal of n for producing;
S3, the n-bit data (as shown in the waveform 2 in Fig. 3) that outside inputted by comparer with as described in sawtooth wave compare, thus produce pwm signal (as shown in the waveform 3 in Fig. 3).
Wherein, frequency/2 of the frequency=described high frequency clock signal of the pwm signal produced n.When described high frequency clock signal is the clock signal of 300MHz, during the precision figure place n=14 of pwm signal (as shown in Figure 2), the frequency of the pwm signal produced is 18.31KHz.
As can be seen from the above embodiments, the present invention adopts FPGA to produce high frequency clock signal, achieve the generation (realizing by hardware description language) of High-Accuracy PWM signal, not only solve the contradiction between the frequency of dsp chip type selecting and pwm signal in existing scheme, precision, and circuit realiration is simple, is applicable to this kind of high precision of servo-actuated steady picture platform of such as image-guided systems, the control system of small size.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the prerequisite not departing from the technology of the present invention principle; can also make some improvement and distortion, these improve and distortion also should be considered as protection scope of the present invention.

Claims (5)

1. utilize FPGA to produce a method for High-Accuracy PWM signal, it is characterized in that, comprise the following steps:
S1, utilize on-site programmable gate array FPGA to produce high frequency clock signal, and send to counter;
S2, described counter to receive after described high frequency clock signal clock count, count 2 nrear clearing, then counts again, and so circulation is until reach default cycle index, thus produces sawtooth wave, wherein, and the precision figure place of pulse width modulation (PWM) signal of n for producing;
S3, the n-bit data inputted outside by comparer are compared with described sawtooth wave, thus produce pwm signal.
2. the method for claim 1, is characterized in that, described high frequency clock signal is produced by the clock-signal generator module of FPGA.
3. the method for claim 1, is characterized in that, frequency/2 of the frequency=described high frequency clock signal of the pwm signal produced n.
4. the method for claim 1, is characterized in that, described high frequency clock signal is the clock signal of 300MHz.
5. the method according to any one of Claims 1 to 4, is characterized in that, n=14.
CN201310292135.5A 2013-07-12 2013-07-12 Method for generating high-precision PWM signal through FPGA Pending CN104281051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310292135.5A CN104281051A (en) 2013-07-12 2013-07-12 Method for generating high-precision PWM signal through FPGA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310292135.5A CN104281051A (en) 2013-07-12 2013-07-12 Method for generating high-precision PWM signal through FPGA

Publications (1)

Publication Number Publication Date
CN104281051A true CN104281051A (en) 2015-01-14

Family

ID=52256051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310292135.5A Pending CN104281051A (en) 2013-07-12 2013-07-12 Method for generating high-precision PWM signal through FPGA

Country Status (1)

Country Link
CN (1) CN104281051A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050065618A1 (en) * 2003-09-22 2005-03-24 Vitaly Burkatovsky Configurable controller
CN1778037A (en) * 2003-05-12 2006-05-24 D2音频有限公司 Systems and methods for providing multi channel pulse width modulated audio with staggered outputs
US20070063197A1 (en) * 2005-09-22 2007-03-22 Vitaly Burkatovsky Adaptive input-cell circuitry useful in configurable electronic controllers
CN101304247A (en) * 2008-04-29 2008-11-12 哈尔滨工业大学深圳研究生院 Multi-period random digit pulse-width modulation circuit and method
CN101499791A (en) * 2008-01-29 2009-08-05 力博特公司 PWM control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1778037A (en) * 2003-05-12 2006-05-24 D2音频有限公司 Systems and methods for providing multi channel pulse width modulated audio with staggered outputs
US20050065618A1 (en) * 2003-09-22 2005-03-24 Vitaly Burkatovsky Configurable controller
US20070063197A1 (en) * 2005-09-22 2007-03-22 Vitaly Burkatovsky Adaptive input-cell circuitry useful in configurable electronic controllers
CN101499791A (en) * 2008-01-29 2009-08-05 力博特公司 PWM control method
CN101304247A (en) * 2008-04-29 2008-11-12 哈尔滨工业大学深圳研究生院 Multi-period random digit pulse-width modulation circuit and method

Similar Documents

Publication Publication Date Title
US8664934B2 (en) System and method for verifying the operating frequency of digital control circuitry
JP4684919B2 (en) Spread spectrum clock controller and spread spectrum clock generator
CN110110472A (en) The power consumption optimization method of Clock Tree
CN106356021A (en) Method for reducing electromagnetic interference of LED display screen and LED display control card
US7295048B2 (en) Method and apparatus for generating spread spectrum clock signals having harmonic emission suppressions
CN105391447A (en) Phase interpolation spread spectrum clock generation method
JP2014176096A (en) Apparatus and method for reducing sampling circuit timing mismatch
US8258825B2 (en) Spread spectrum circuit
CN102055438B (en) High-speed square wave generating device and method
CN104281051A (en) Method for generating high-precision PWM signal through FPGA
CN104205634B (en) High Resolution pulse width modulation device
CN112510975A (en) Method and system for improving PWM precision of accelerator power supply
CN102854916B (en) Method for achieving accurate clock synchronization of USB (universal serial bus) device
CN104852729B (en) A kind of circuit and method of the higher hamonic wave interference for suppressing digital dock
CN109580975B (en) Speed detector, processing circuit and chip based on PWM signal
CN115276615A (en) Clock signal frequency multiplier circuit outputting burr-free low duty ratio error
CN107968639A (en) One kind realizes any adjustment circuit of clock signal duty cycle
CN102768499B (en) Method and system for improving control reliability of direct digital frequency synthesizer (DDS) signal source
CN107154729B (en) Jitter frequency design method of server power supply power factor correction circuit
CN102231627A (en) Method and device for realizing short-time pulse signal
JP2008090774A (en) Spread spectrum clock generator
CN112688672A (en) Apparatus and method for generating PWM wave
CN103997335A (en) Signal frequency setting device and method for time schedule controller and display equipment
CN216871565U (en) Display device and driving circuit thereof
KR101018138B1 (en) Odd divider with 50 percent duty

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150114