CN101977041A - Sawtooth wave generating circuit with self-adjusting amplitude, period and duty ratio - Google Patents
Sawtooth wave generating circuit with self-adjusting amplitude, period and duty ratio Download PDFInfo
- Publication number
- CN101977041A CN101977041A CN 201010507470 CN201010507470A CN101977041A CN 101977041 A CN101977041 A CN 101977041A CN 201010507470 CN201010507470 CN 201010507470 CN 201010507470 A CN201010507470 A CN 201010507470A CN 101977041 A CN101977041 A CN 101977041A
- Authority
- CN
- China
- Prior art keywords
- pin
- resistance
- wave generating
- duty ratio
- generating circuit
- 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
Images
Landscapes
- Electrophonic Musical Instruments (AREA)
Abstract
The invention relates to a sawtooth wave generating circuit with self-adjusting amplitude, period and duty ratio, belonging to the field of instruments and meters. The sawtooth wave generating circuit comprises a singlechip, a digital potentiometer, a sawtooth wave generating circuit as well as a keyboard circuit and a display circuit connected with the singlechip. The sawtooth wave generating circuit is characterized in that resistors R3, R4, R5 and R6 are adjustable resistors in the digital potentiometer; the singlechip can control resistance values of the resistors R3, R4, R5 and R6; and the keyboard circuit and the display circuit set and display the amplitude, the period and the duty ratio. In the invention, common manual adjusting potentiometers are substituted by a plurality of adjustable resistors in the digital potentiometer, therefore, the resistance value of the digital potentiometer is controlled by the singlechip, and realtime change of the amplitude, the period and the duty ratio of a sawtooth wave is realized.
Description
Technical field
The present invention is the self-adjustable saw-tooth wave generating circuit of a kind of amplitude, cycle and duty ratio, belongs to instrument field, can be used in various instrument and meters and the control unit.
Background technology
Saw-tooth wave generating circuit in present instrument and meter or some control units, the method for manual adjustments potentiometer is all adopted in the adjusting of its amplitude, cycle, duty ratio, and real-time is relatively poor, and this is the problem that present saw-tooth wave generating circuit exists; Electric type student Experiment of Electronic Technology exercise equipment and single chip computer experiment exercise equipment are separate in the university, the experiment training resource does not organically combine, the experimental resources utilance is low, be a kind of wasting of resources, the knowledge of student's study effectively, continuously, does not synthetically obtain consolidating and using yet.
Summary of the invention
The objective of the invention is to solve amplitude, cycle, the duty ratio of real-time regulated sawtooth waveforms, a kind of adjusting that realizes amplitude, cycle and the duty ratio of sawtooth waveforms by the computer control digital regulation resistance is provided.
To achieve these goals, the present invention has taked following technical scheme:
The self-adjustable saw-tooth wave generating circuit of a kind of amplitude, cycle and duty ratio comprises single-chip microcomputer, digital regulation resistance, saw-tooth wave generating circuit and keyboard circuit that is connected with single-chip microcomputer and display circuit.The resistance value of adjustable resistor R3, R4, R5, R6 in the output regulating and controlling digital regulation resistance of single-chip microcomputer, the sawtooth waveforms output of the output control saw-toothed wave generator of digital regulation resistance.Keyboard circuit and display circuit are as the setting and the demonstration of amplitude, cycle, duty ratio.
In above-mentioned a kind of amplitude, cycle and the self-adjustable saw-tooth wave generating circuit of duty ratio, it is 89C52 that described single-chip microcomputer adopts the chip model, it is X9241U that described digital regulation resistance adopts the chip model, described saw-tooth wave generating circuit is made of operational amplifier, it is LM324 that operational amplifier adopts the chip model, specifically being connected between each device:
1 of 89C52,2 pin connect 14 of X9241U respectively, 9 pin, the ground of the 20 pin connection+5V power supplys of 89C52, the 40 pin connection+5V power supplys of 89C52,4 of X9241U, 5,15,16,10 pin link together and are connected with the ground of+5V power supply, 20 pin of X9241U are connected with+5V power supply, 3 of X9241U, 1,8,6 pin link together and are connected with 3 pin of LM324,7 pin of X9241U are connected with 7 pin of LM324,12 of X9241U, 18 pin link together and are connected with an end of capacitor C, the other end of capacitor C is connected 11 of X9241U with 7 pin of LM324,13 pin link together and with diode D
1Negative electrode connect, 17,19 pin of X9241U link together and with diode D
2Anode connect diode D
1Anode and diode D
2Negative electrode link together and be connected with 2 pin of X9241U, 2 pin of X9241U connect the end of bi-directional voltage stabilizing pipe VZ, the ground of the other end of VZ+5V power supply, 2 pin of X9241U connect resistance R
7An end, resistance R
7The other end connect 1 pin of LM324,2 pin of LM324 connect resistance R
1An end, resistance R
1The ground of other end connection+5V power supply, 5 pin of LM324 connect resistance R
2An end, resistance R
2The ground of other end connection+5V power supply, the 4 pin connection+12V power supplys of LM324, the 11 pin connection-12V power supplys of LM324 ,+5V power supply with ± the 12V power supply altogether.
The invention has the advantages that the common manual regulator potentiometer that is used to change amplitude, cycle and the duty ratio of saw-tooth wave generating circuit with a plurality of adjustable resistors replacements in the digital regulation resistance, thereby, realize amplitude, cycle and the duty ratio of real time altering saw-tooth wave generating circuit by resistance value with the Single-chip Controlling digital regulation resistance.
Description of drawings:
The self-adjustable saw-tooth wave generating circuit block diagram of a kind of amplitude of Fig. 1, cycle and duty ratio
The self-adjustable saw-tooth wave generating circuit figure of a kind of amplitude of Fig. 2, cycle and duty ratio
The self-adjustable saw-tooth wave generating circuit oscillogram of a kind of amplitude of Fig. 3, cycle and duty ratio
Embodiment:
The present invention is described in detail below in conjunction with accompanying drawing 1, Fig. 2, Fig. 3.
The self-adjustable saw-tooth wave generating circuit block diagram of a kind of amplitude, cycle and duty ratio as shown in Figure 1, the self-adjustable saw-tooth wave generating circuit figure of a kind of amplitude, cycle and duty ratio as shown in Figure 2, the self-adjustable saw-tooth wave generating circuit oscillogram of a kind of amplitude, cycle and duty ratio is as shown in Figure 3.In Fig. 1, single-chip microcomputer links together by the mode and the digital regulation resistance of serial communication, a plurality of adjustable resistors of digital regulation resistance are connected with saw-tooth wave generating circuit, saw-tooth wave generating circuit is according to the determined amplitude of adjustable resistor value, cycle and duty ratio output respective saw teeth wave voltage, keyboard circuit connects single-chip microcomputer and can be used for keying in respective saw teeth wave amplitude, cycle and duty ratio or out of Memory, and display circuit connects sawtooth waveforms amplitude, cycle and duty ratio or the out of Memory that single-chip microcomputer is used for display setting.
Fig. 2 is concrete connecting circuit figure.In Fig. 2,89C52 is a single-chip microcomputer; X9241U is a digital regulation resistance, include 4 adjustable resistors, 1,2,3 pin wherein, 6,7,8 pin, 11,12,13 pin, 17,18,19 pin are respectively three pins of 4 adjustable resistors in the digital regulation resistance, with these 4 adjustable resistors difference called after resistance R
3, R
4, R
5, R
6, wherein 1 pin, 6 pin, 13 pin, 19 pin are the scalable end of 4 resistance; LM324 is the integrated circuit (IC) chip that includes 4 operational amplifiers, and 3 pin and 5 pin are the in-phase input end of two operational amplifiers wherein, and 2 pin and 6 pin are the inverting input of these two operational amplifiers, and 1 pin and 7 pin are the output of these two operational amplifiers; Physical circuit connects as follows:
1 of 89C52,2 pin connect 14 of X9241U respectively, 9 pin, the ground of the 20 pin connection+5V power supplys of 89C52, the 40 pin connection+5V power supplys of 89C52,4 of X9241U, 5,15,16,10 pin link together and are connected with the ground of+5V power supply, 20 pin of X9241U are connected with+5V power supply, 3 of X9241U, 1,8,6 pin link together and are connected with 3 pin of LM324,7 pin of X9241U are connected with 7 pin of LM324,12 of X9241U, 18 pin link together and are connected with an end of capacitor C, the other end of capacitor C is connected 11 of X9241U with 7 pin of LM324,13 pin link together and with diode D
1Negative electrode connect, 17,19 pin of X9241U link together and with diode D
2Anode connect diode D
1Anode and diode D
2Negative electrode link together and be connected with 2 pin of X9241U, 2 pin of X9241U connect the end of bi-directional voltage stabilizing pipe VZ, the ground of the other end of VZ+5V power supply, 2 pin of X9241U connect resistance R
7An end, resistance R
7The other end connect 1 pin of LM324,2 pin of LM324 connect resistance R
1An end, resistance R
1The ground of other end connection+5V power supply, 5 pin of LM324 connect resistance R
2An end, resistance R
2The ground of other end connection+5V power supply, the 4 pin connection+12V power supplys of LM324, the 11 pin connection-12V power supplys of LM324 ,+5V power supply with ± the 12V power supply altogether.Keyboard circuit and display circuit and single-chip microcomputer be connected to general custom circuit connection, do not provide physical circuit.
Fig. 3 is the output voltage wave of several Key Points in Fig. 2 circuit, in the concrete below working method explanation of description is arranged.
Concrete working method is as follows:
As shown in Figure 2,1,89C52 passes through, and 2 pin are connected with 14,9 pin of X9241U, set up serial communication each other, single-chip microcomputer is with this resistance value that changes the inner a plurality of potentiometers of digital regulation resistance, and concrete communication mode each other can be consulted the operation instruction of X9241U; u
O1What export is square wave, and its amplitude is decided by bi-directional voltage stabilizing pipe VZ, as shown in Figure 3; u
O2What export is sawtooth waveforms, but the equal real-time regulated of its amplitude, cycle and duty ratio, u
O2Cycle be T, T=T
1+ T
2, duty ratio is defined as D=T
1/ T, as shown in Figure 3.
Concrete working method is: 89C52 is according to numerical value or sawtooth waveforms amplitude, cycle and the change in duty cycle rule of sawtooth waveforms amplitude, cycle and the duty ratio keyed in by keyboard, carry out serial communication by calculating the back with X9241U, regulate 4 adjustable resistors of its inside, the amplitude of real time altering sawtooth waveforms, cycle and duty ratio; The amplitude of sawtooth waveforms is by regulating resistance R
3, R
4Decide, concrete computing formula is:
By D
1, R
5, C, R
3, R
4Constitute the discharge path of saw-tooth wave generating circuit, be T its discharge time
1,
Concrete computing formula is:
By D
2, R
6, C, R
3, R
4Constitute the charging path of saw-tooth wave generating circuit, its charging interval is T
2, concrete computing formula is:
The computing formula of the duty ratio D of sawtooth waveforms is:
If only change integrating capacitor C, can change the period T of sawtooth waveforms, but duty ratio D does not change.
Claims (2)
1. the self-adjustable saw-tooth wave generating circuit of amplitude, cycle and duty ratio comprises single-chip microcomputer, digital regulation resistance, saw-tooth wave generating circuit and keyboard circuit that is connected with single-chip microcomputer and display circuit; It is characterized in that: adjustable resistor R in the output regulating and controlling digital regulation resistance of single-chip microcomputer
3, R
4, R
5, R
6Resistance value, the sawtooth waveforms output of the output of digital regulation resistance control saw-toothed wave generator; Keyboard circuit and display circuit are as the setting and the demonstration of amplitude, cycle, duty ratio.
2. a kind of amplitude according to claim 1, cycle and the self-adjustable saw-tooth wave generating circuit of duty ratio, it is characterized in that: it is 89C52 that described single-chip microcomputer adopts the chip model, it is X9241U that described digital regulation resistance adopts the chip model, described saw-tooth wave generating circuit is by operational amplifier, it is LM324 that operational amplifier adopts the chip model, specifically being connected between each device:
1 of 89C52,2 pin connect 14 of X9241U respectively, 9 pin, the ground of the 20 pin connection+5V power supplys of 89C52, the 40 pin connection+5V power supplys of 89C52,4 of X9241U, 5,15,16,10 pin link together and are connected with the ground of+5V power supply, 20 pin of X9241U are connected with+5V power supply, 3 of X9241U, 1,8,6 pin link together and are connected with 3 pin of LM324,7 pin of X9241U are connected with 7 pin of LM324,12 of X9241U, 18 pin link together and are connected with an end of capacitor C, the other end of capacitor C is connected 11 of X9241U with 7 pin of LM324,13 pin link together and with diode D
1Negative electrode connect, 17,19 pin of X9241U link together and with diode D
2Anode connect diode D
1Anode and diode D
2Negative electrode link together and be connected with 2 pin of X9241U, 2 pin of X9241U connect the end of bi-directional voltage stabilizing pipe VZ, the ground of the other end of VZ+5V power supply, 2 pin of X9241U connect resistance R
7An end, resistance R
7The other end connect 1 pin of LM324,2 pin of LM324 connect resistance R
1An end, resistance R
1The ground of other end connection+5V power supply, 5 pin of LM324 connect resistance R
2An end, resistance R
2The ground of other end connection+5V power supply, the 4 pin connection+12V power supplys of LM324, the 11 pin connection-12V power supplys of LM324 ,+5V power supply with ± the 12V power supply altogether.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010507470 CN101977041A (en) | 2010-10-15 | 2010-10-15 | Sawtooth wave generating circuit with self-adjusting amplitude, period and duty ratio |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010507470 CN101977041A (en) | 2010-10-15 | 2010-10-15 | Sawtooth wave generating circuit with self-adjusting amplitude, period and duty ratio |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101977041A true CN101977041A (en) | 2011-02-16 |
Family
ID=43576894
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010507470 Pending CN101977041A (en) | 2010-10-15 | 2010-10-15 | Sawtooth wave generating circuit with self-adjusting amplitude, period and duty ratio |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101977041A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051308A (en) * | 2013-01-09 | 2013-04-17 | 武汉科技大学 | Square wave and sawtooth wave generation circuit based on memristor |
CN106253879A (en) * | 2016-08-09 | 2016-12-21 | 电子科技大学 | The trapezoidal pulse generation circuit that a kind of crest voltage is variable |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1794579A (en) * | 2006-01-12 | 2006-06-28 | 上海交通大学 | Switching frequency period modulated sawteeth wave generating circuit |
CN201226202Y (en) * | 2008-06-27 | 2009-04-22 | 北京联合大学生物化学工程学院 | Control circuit based on singlechip for simulating noise |
CN101859119A (en) * | 2010-07-02 | 2010-10-13 | 北京联合大学生物化学工程学院 | Display instrument with controllable amplifier gain |
-
2010
- 2010-10-15 CN CN 201010507470 patent/CN101977041A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1794579A (en) * | 2006-01-12 | 2006-06-28 | 上海交通大学 | Switching frequency period modulated sawteeth wave generating circuit |
CN201226202Y (en) * | 2008-06-27 | 2009-04-22 | 北京联合大学生物化学工程学院 | Control circuit based on singlechip for simulating noise |
CN101859119A (en) * | 2010-07-02 | 2010-10-13 | 北京联合大学生物化学工程学院 | Display instrument with controllable amplifier gain |
Non-Patent Citations (3)
Title |
---|
《单片机与嵌入式系统应用》 20050101 张念鲁 等 采用多单片机的液位监控仪 , 第01期 2 * |
《教育部中南地区高等学校电子电气基础课教学研究会第二十届学术年会会议论文集(下册)》 20100731 张长峰 等 基于单片机的函数信号发生器设计 , 2 * |
《无锡商业职业技术学院学报》 20080630 戴建华 等 基于ICL8038和X9C103的函数信号发生器的设计 第18卷, 第3期 2 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051308A (en) * | 2013-01-09 | 2013-04-17 | 武汉科技大学 | Square wave and sawtooth wave generation circuit based on memristor |
CN103051308B (en) * | 2013-01-09 | 2015-04-29 | 武汉科技大学 | Square wave and sawtooth wave generation circuit based on memristor |
CN106253879A (en) * | 2016-08-09 | 2016-12-21 | 电子科技大学 | The trapezoidal pulse generation circuit that a kind of crest voltage is variable |
CN106253879B (en) * | 2016-08-09 | 2018-09-04 | 电子科技大学 | A kind of trapezoidal pulse generation circuit that crest voltage is variable |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN205720464U (en) | Electronic load device | |
CN201226202Y (en) | Control circuit based on singlechip for simulating noise | |
CN202171757U (en) | DC (direct current) voltage stabilization power source capable of adjusting voltage | |
CN103414345B (en) | A kind of negative high voltage direct current integrated power supply for X-ray tube and control method thereof | |
CN203838587U (en) | Numerical-control direct current source | |
CN105404343B (en) | A kind of AC constant-current source corrected suitable for current transformer | |
CN102830629B (en) | Testing device and method of power electronic control system | |
CN101866155B (en) | Variable frequency square-wave generator | |
CN205302072U (en) | Numerical control constant -current source circuit | |
CN101997523A (en) | Window voltage comparator circuit capable of adjusting up limit voltage and low limit voltage automatically | |
CN109149607A (en) | A kind of three-phase imbalance compensation control system and control method | |
CN101977041A (en) | Sawtooth wave generating circuit with self-adjusting amplitude, period and duty ratio | |
CN101867366B (en) | Triangular wave generator with variable frequency and amplitude | |
CN101882925B (en) | Any level hysteresis voltage comparator with adjustable return difference voltage | |
CN102357034B (en) | Low-power consumption current excitation source for electrical impedance imaging | |
CN101964154B (en) | Simulated sound circuit capable of adjusting frequency in real time | |
CN109839524A (en) | Voltage dip generator and voltage dip control system | |
CN101957599A (en) | Single-stage amplifying circuit with automatically adjustable quiescent point | |
CN102033500A (en) | Emitter follower circuit capable of automatically regulating quiescent operation point | |
CN204705826U (en) | A kind of artificial battery packet system | |
CN208128142U (en) | A kind of high precision electro source circuit | |
CN102957314B (en) | A kind of voltage-reference replacement method and Switching Power Supply | |
CN108388303A (en) | A kind of variable frequency square-wave generator | |
CN205489521U (en) | Power current -sharing control ware that connects in parallel based on STM8 | |
CN203673056U (en) | Electronic calibration device for current shunt |
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: 20110216 |