CN113630108A - Triangular wave signal parameter measurement circuit - Google Patents

Triangular wave signal parameter measurement circuit Download PDF

Info

Publication number
CN113630108A
CN113630108A CN202111096854.0A CN202111096854A CN113630108A CN 113630108 A CN113630108 A CN 113630108A CN 202111096854 A CN202111096854 A CN 202111096854A CN 113630108 A CN113630108 A CN 113630108A
Authority
CN
China
Prior art keywords
circuit
ref2
ref1
triangular wave
tri
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
CN202111096854.0A
Other languages
Chinese (zh)
Other versions
CN113630108B (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.)
Wenzhou University
Original Assignee
Wenzhou University
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 Wenzhou University filed Critical Wenzhou University
Priority to CN202111096854.0A priority Critical patent/CN113630108B/en
Publication of CN113630108A publication Critical patent/CN113630108A/en
Application granted granted Critical
Publication of CN113630108B publication Critical patent/CN113630108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/125Discriminating pulses

Abstract

The invention discloses a triangular wave signal parameter measuring circuit, which comprises a voltage reference Vref1And Vref2A circuit, a comparison circuit and a capture circuit; the voltage reference Vref1And Vref2A circuit for generating a voltage reference with high precision and high stability, the comparison circuit realizes the triangular wave signal v to be measuredtri(t) and Vref1And Vref2Comparing to obtain PWM signals
Figure DDA0003269186430000011
And
Figure DDA0003269186430000012
the capture circuit is to
Figure DDA0003269186430000013
And
Figure DDA0003269186430000014
are respectively connected to the controlThe invention discloses a Capture port Capture1 and Capture2 for manufacturing a chip, which have the characteristics of simple hardware structure, low cost and strong anti-interference capability.

Description

Triangular wave signal parameter measurement circuit
Technical Field
The invention relates to the field of signal measurement, in particular to a triangular wave signal parameter measuring circuit.
Background
The triangular wave signal is widely applied to occasions such as instruments and meters, digital audio systems, power electronics, radars, communication and the like, plays an important role in signal modulation application, and the performance of the triangular wave signal is a key index of a modulator.
The main parameter indexes of the triangular wave signal comprise amplitude, period, symmetry and the like. Where symmetry refers to the percentage of time that the triangular wave rise time occupies in the entire signal period. The existing triangular wave signal generation has three types: the first is to adopt discrete components to generate a mode based on waveform transformation, namely, triangular waves are generated by charging and discharging rectangular waves; the second is based on DDS technology mode, namely direct frequency synthesis mode generation; the third is based on a program control mode, namely, a step signal is generated through the DA of the control chip, and then a high-frequency signal is filtered to obtain a triangular wave. No matter which implementation method is adopted, in order to obtain the triangular wave with high precision, closed-loop control needs to be carried out on the triangular wave generator, and then the parameter value of the output triangular wave needs to be obtained in real time. However, the existing acquisition of the triangular wave parameter value either adopts a complex hardware circuit or requires a complex software algorithm, and the complexity and cost of the triangular wave generator are increased.
Disclosure of Invention
The invention aims to provide a triangular wave signal parameter measuring circuit. The invention has the characteristics of simple hardware structure, low cost and strong anti-interference capability.
The technical scheme of the invention is as follows: a triangular wave signal parameter measurement circuit is characterized in that: comprising a voltage reference Vref1And Vref2A circuit, a comparison circuit and a capture circuit;
the voltage reference Vref1And Vref2Circuit for generating a voltage reference with high precision and high stability, and satisfying Vmin<Vref2<Vref1<Vmax(ii) a Wherein: vmin、VmaxAre respectively triangular wave signals vtri(t) minimum and maximum values;
the comparison circuit realizes the triangular wave signal v to be measuredtri(t) and Vref1And Vref2Comparing to obtain PWM signals
Figure BDA0003269186410000021
And
Figure BDA0003269186410000022
wherein: v. oftri(t) is connected to the non-inverting input of the comparator 1, Vref1Is connected with the inverting input end of the comparator 1; v. oftri(t) is connected to the non-inverting input of the comparator 2, Vref2Is connected with the inverting input end of the comparator 2; the output terminal of the comparator 1 is
Figure BDA0003269186410000023
The output terminal of the comparator 2 is
Figure BDA0003269186410000024
The capture circuit is to
Figure BDA0003269186410000025
And
Figure BDA0003269186410000026
the Capture ports of the Capture1 and the Capture2 which are respectively connected to the control chip respectively acquire
Figure BDA0003269186410000027
On-time of
Figure BDA0003269186410000028
On-time of
Figure BDA0003269186410000029
Rising edge and
Figure BDA00032691864100000210
time interval T between rising edges2
Figure BDA00032691864100000211
Falling edge and
Figure BDA00032691864100000212
time interval T between falling edges5
According to the obtained
Figure BDA00032691864100000213
T2And T5And V given aboveref1And Vref2To give vtriMinimum value V of (t)minMaximum value VmaxPeriod T, rise phase time TupAnd a falling phase time Tdown
Compared with the prior art, the method has the following advantages:
the invention reduces the cost of the circuit through a simple hardware structure;
secondly, the system has relatively simple structure and low realization difficulty;
and thirdly, parameters are calculated by adopting a time capturing method, so that the precision is high and the anti-interference capability is strong.
Drawings
FIG. 1 is a schematic diagram of a triangular wave signal parameter measurement;
FIG. 2 is a schematic diagram of a circuit for measuring parameters of a triangular wave signal;
FIG. 3 is a flow chart of a time capture algorithm;
fig. 4 is a flowchart of the triangular wave parameter calculation.
Detailed Description
The invention is further illustrated by the following figures and examples, which are not to be construed as limiting the invention.
Examples are given. A triangular wave signal parameter measuring circuit mainly applies the geometric relationship of triangular waves, and the relationship is shown in figure 1. The variables are described as follows: vref1And Vref2Respectively comparing voltage reference values; vminAnd VmaxAre respectively triangular wave signals vtriMinimum and maximum values of (t), VdcIs v istriPeak to peak value of (t), i.e. Vdc=Vmax-Vmin;TupIs v istri(t) rise phase time; t isdownIs v istri(t) a fall phase time; t is vtri(t) a period satisfying: t ═ Tup+Tdown
Figure BDA0003269186410000031
Is v istri(t) and a reference value Vref1The logic relationship of the PWM signals obtained after comparison is as follows:
Figure BDA0003269186410000032
is v istri(t) and a reference value Vref2The logic relationship of the PWM signals obtained after comparison is as follows:
Figure BDA0003269186410000033
is composed of
Figure BDA0003269186410000034
On-time of (d);
Figure BDA0003269186410000035
is composed of
Figure BDA0003269186410000036
On-time of (d); t is2Is composed of
Figure BDA0003269186410000037
Rising edge and
Figure BDA0003269186410000038
the time interval between rising edges; t is5Is composed of
Figure BDA0003269186410000039
Falling edge and
Figure BDA00032691864100000310
the time interval between falling edges. From the geometry of fig. 1, it can be seen that:
Figure BDA00032691864100000311
Figure BDA00032691864100000312
Figure BDA00032691864100000313
the simultaneous (2) and (3) can obtain:
Figure BDA00032691864100000314
obtaining T by the capturing unit2And T5On the basis of (a), calculating λ:
Figure BDA0003269186410000041
and obtained by the capture unit
Figure BDA0003269186410000042
On the basis of (A), and comprises:
Figure BDA0003269186410000043
combining (4), (5) and (6), and finishing to obtain T3And T4Comprises the following steps:
Figure BDA0003269186410000044
further, from (2), it is possible to obtain:
Figure BDA0003269186410000045
therefore:
Figure BDA0003269186410000046
due to the fact that
Figure BDA0003269186410000047
T2、T5Can be acquired by a capture unit, Vref1、Vref2Setting a reference value for the circuit, the value being known, so VmaxCan be calculated by equation (9).
And because:
Figure BDA0003269186410000048
because:
Figure BDA0003269186410000049
therefore:
Figure BDA00032691864100000410
because:
Tup+Tdown=T (12)
and because of the triangular wave vtri(T) period T and
Figure BDA00032691864100000411
are identical and thus can be captured by
Figure BDA0003269186410000051
I.e. the period T may be obtained by the capturing unit. Therefore:
Figure BDA0003269186410000052
simultaneous (5) and (13) gives:
Figure BDA0003269186410000053
Figure BDA0003269186410000054
due to T, T2、T5Can be acquired by the capturing unit, so T can be calculatedup、Tdown
And because:
Figure BDA0003269186410000055
therefore, the simultaneous (14) and (16) can obtain:
Figure BDA0003269186410000056
the triangular wave v can be solved by the formula (17)tri(t) peak-to-peak value Vdc
Because:
Vdc=Vmax-Vmin (18)
simultaneous (9), (18), solved to:
Figure BDA0003269186410000057
the triangular wave v can be obtained by solving (9), (17) and (19)triMaximum value V of (t)maxPeak to peak value VdcAnd a minimum value VminBy capture of
Figure BDA0003269186410000058
Can obtain a triangular wave vtriThe period T of (T), the triangular wave v can be obtained from (14) and (15)tri(T) rise time TupAnd a fall time TdownThe triangular wave v can be obtained by the above formulatri(t) related parameters.
Triangular wave signal parameter measurementThe schematic diagram of the volume circuit is shown in FIG. 2, and mainly comprises a linear voltage regulator circuit and a voltage reference Vref1And Vref2Circuit, comparator circuit 1, comparator circuit 2 and MUC circuit. The linear voltage stabilizing circuit mainly realizes the input voltage VinPerforming voltage stabilization treatment to obtain output voltage V meeting the requiremento(ii) a Voltage reference Vref1And Vref2The circuit can be generated by a precision voltage chip and a precision voltage division circuit. The embodiment of the invention provides a method for realizing a reference V by adopting a commonly-used precise voltage stabilizing chip TL431ref1And Vref2Generation of (1); in the circuit, R1 is used for adjusting the current flowing through the TL431, so that the TL431 works in a reasonable working range and the precision of the TL431 is ensured; the R2, R3 and R4 form a precise voltage division circuit by using high-precision resistors to realize the reference VrefAnd Vref2Generation of (1); the capacitors C1 and C2 play a role in resisting interference and stabilizing the reference voltage Vref1And Vref2(ii) a Non-inverting input terminal v of comparator 1tri(t), the inverting input terminal Vref1The output terminal is a signal
Figure BDA0003269186410000061
Non-inverting input terminal v of comparator 2tri(t), the inverting input terminal Vref2The output terminal is a signal
Figure BDA0003269186410000062
The MCU has two roles: the first and second Capture ports Capture1 and Capture2 are respectively connected
Figure BDA0003269186410000063
And
Figure BDA0003269186410000064
for obtaining
Figure BDA0003269186410000065
And
Figure BDA0003269186410000066
a time parameter of (d); II, obtaining
Figure BDA0003269186410000067
And
Figure BDA0003269186410000068
after the time parameter is obtained, the measuring algorithm provided by the invention is executed to obtain the triangular wave vtri(t) related parameters.
FIG. 3 is a flow chart of a time capture algorithm, comprising:
(1) the initialization module is used for initializing the Capture1 and the Capture2 modules;
(2) starting a Capture1 and Capture2 module;
(3) is the Capture2 judged to have a rising edge? If yes, entering the step (4); otherwise, waiting;
(4) starting a timer and entering the step (5);
(5) is the Capture1 judged to have a rising edge? If yes, entering the step (6); otherwise, waiting;
(6) saving the current value of the timer to T2Entering the step (7);
(7) is it judged whether a falling edge occurred in Capture 1? If yes, entering the step (8); otherwise, waiting;
(8) current value of timer minus T2And the result is saved to
Figure BDA0003269186410000071
Entering the step (9);
(9) is it judged whether a falling edge occurred in Capture 2? If yes, entering the step (10); otherwise, waiting;
(10) current value of timer minus T2And
Figure BDA0003269186410000072
saving the result to T5Entering the step (11);
(11) is the Capture2 judged to have a rising edge? If yes, entering the step (12); otherwise, waiting;
(12) saving the current value of the timer to T, clearing the current value of the timer and stopping the timer, and entering the step (13);
(13) enabling the software to interrupt, and returning to the step (4);
fig. 4 is a flowchart of the triangular wave parameter calculation, including:
(1) entering a software interrupt program, and entering the step (2);
(2) get T, T2、T5
Figure BDA0003269186410000073
And Vref1、Vref2Entering the step (3);
(3) computing
Figure BDA0003269186410000074
Entering the step (4);
(4) computing
Figure BDA0003269186410000075
Entering the step (5);
(5) computing
Figure BDA0003269186410000076
Entering the step (6);
(6) computing
Figure BDA0003269186410000077
Entering the step (7);
(7) exiting the software interrupt program;
the examples should not be construed as limiting the present invention and any modifications made based on the spirit of the present invention should be covered within the scope of protection of the present invention.

Claims (1)

1. A triangular wave signal parameter measurement circuit is characterized in that: comprising a voltage reference Vref1And Vref2A circuit, a comparison circuit and a capture circuit;
the voltage reference Vref1And Vref2Circuit for generating a voltage reference with high precision and high stability, and satisfying Vmin<Vref2<Vref1<Vmax(ii) a Wherein: vmin、VmaxAre respectively triangular wavesSignal vtri(t) minimum and maximum values;
the comparison circuit realizes the triangular wave signal v to be measuredtri(t) and Vref1And Vref2Comparing to obtain PWM signals
Figure FDA0003269186400000011
And
Figure FDA0003269186400000012
wherein: v. oftri(t) is connected to the non-inverting input of the comparator 1, Vref1Is connected with the inverting input end of the comparator 1; v. oftri(t) is connected to the non-inverting input of the comparator 2, Vref2Is connected with the inverting input end of the comparator 2; the output terminal of the comparator 1 is
Figure FDA0003269186400000013
The output terminal of the comparator 2 is
Figure FDA0003269186400000014
The capture circuit is to
Figure FDA0003269186400000015
And
Figure FDA0003269186400000016
the Capture ports of the Capture1 and the Capture2 which are respectively connected to the control chip respectively acquire
Figure FDA0003269186400000017
On-time of
Figure FDA0003269186400000018
On-time of
Figure FDA0003269186400000019
Rising edge and
Figure FDA00032691864000000110
time interval T between rising edges2
Figure FDA00032691864000000111
Falling edge and
Figure FDA00032691864000000112
time interval T between falling edges5
According to the obtained
Figure FDA00032691864000000113
T2And T5And V given aboveref1And Vref2To give vtriMinimum value V of (t)minMaximum value VmaxPeriod T, rise phase time TupAnd a falling phase time Tdown
CN202111096854.0A 2021-09-18 2021-09-18 Triangular wave signal parameter measurement circuit Active CN113630108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111096854.0A CN113630108B (en) 2021-09-18 2021-09-18 Triangular wave signal parameter measurement circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111096854.0A CN113630108B (en) 2021-09-18 2021-09-18 Triangular wave signal parameter measurement circuit

Publications (2)

Publication Number Publication Date
CN113630108A true CN113630108A (en) 2021-11-09
CN113630108B CN113630108B (en) 2023-02-07

Family

ID=78390458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111096854.0A Active CN113630108B (en) 2021-09-18 2021-09-18 Triangular wave signal parameter measurement circuit

Country Status (1)

Country Link
CN (1) CN113630108B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05338258A (en) * 1992-06-05 1993-12-21 Canon Inc Triangle wave signal generation circuit
US5477174A (en) * 1994-01-05 1995-12-19 Smiths Industries Public Limited Company Ramp generator
CN101425795A (en) * 2008-11-20 2009-05-06 四川登巅微电子有限公司 Accurate saw-tooth wave generating circuit
US20100007387A1 (en) * 2008-07-14 2010-01-14 Elite Semiconductor Memory Technology Inc. Triangular wave generating circuit having synchronization with external clock
US20140132314A1 (en) * 2012-11-13 2014-05-15 Samsung Electro-Mechanics Co., Ltd. Triangular waveform generating apparatus
CN103944540A (en) * 2014-05-08 2014-07-23 成都雷电微力科技有限公司 Triangular wave signal generator
CN106569032A (en) * 2016-10-17 2017-04-19 长沙开元仪器股份有限公司 Signal frequency and duty ratio prediction method based on embedded microcontroller
CN106788347A (en) * 2017-01-12 2017-05-31 中国计量大学 The generating means and adjusting method of a kind of triangular wave
CN109669070A (en) * 2019-01-02 2019-04-23 中电和瑞科技有限公司 A kind of frequency measurement method and frequency measurement circuit
CN109752584A (en) * 2019-01-14 2019-05-14 彭志辉 A kind of periodic signal effective value measurement method
US20190222204A1 (en) * 2018-01-17 2019-07-18 Stmicroelectronics S.R.L. Auto-tuned ramp generator
US20210028774A1 (en) * 2019-07-28 2021-01-28 Ali W. Daher Analog function generator with digital instrumentation methods for output signal
CN113009854A (en) * 2019-12-19 2021-06-22 江森自控空调冷冻设备(无锡)有限公司 Device for obtaining effective value of analog input signal

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05338258A (en) * 1992-06-05 1993-12-21 Canon Inc Triangle wave signal generation circuit
US5477174A (en) * 1994-01-05 1995-12-19 Smiths Industries Public Limited Company Ramp generator
US20100007387A1 (en) * 2008-07-14 2010-01-14 Elite Semiconductor Memory Technology Inc. Triangular wave generating circuit having synchronization with external clock
CN101425795A (en) * 2008-11-20 2009-05-06 四川登巅微电子有限公司 Accurate saw-tooth wave generating circuit
US20140132314A1 (en) * 2012-11-13 2014-05-15 Samsung Electro-Mechanics Co., Ltd. Triangular waveform generating apparatus
CN103944540A (en) * 2014-05-08 2014-07-23 成都雷电微力科技有限公司 Triangular wave signal generator
CN106569032A (en) * 2016-10-17 2017-04-19 长沙开元仪器股份有限公司 Signal frequency and duty ratio prediction method based on embedded microcontroller
CN106788347A (en) * 2017-01-12 2017-05-31 中国计量大学 The generating means and adjusting method of a kind of triangular wave
US20190222204A1 (en) * 2018-01-17 2019-07-18 Stmicroelectronics S.R.L. Auto-tuned ramp generator
CN109669070A (en) * 2019-01-02 2019-04-23 中电和瑞科技有限公司 A kind of frequency measurement method and frequency measurement circuit
CN109752584A (en) * 2019-01-14 2019-05-14 彭志辉 A kind of periodic signal effective value measurement method
US20210028774A1 (en) * 2019-07-28 2021-01-28 Ali W. Daher Analog function generator with digital instrumentation methods for output signal
CN113009854A (en) * 2019-12-19 2021-06-22 江森自控空调冷冻设备(无锡)有限公司 Device for obtaining effective value of analog input signal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
GRAHAM LAMBERT: "《HOW TO BUILD A SAWTOOTH AND TRIANGLE WAVE GENERATOR》", 《HTTPS://WWW.CIRCUITBASICS.COM/WHAT-ARE-SAWTOOTH-AND-TRIANGLE-WAVE-GENERATORS/》 *
K. M. SUDHARSHAN, R. PALLAVI, C. S. ANILKUMAR AND H. G. YATHEESH: "《Modeling and Simulation of on-chip ramp generator for power management IC"s using cadence》", 《2018 3RD IEEE INTERNATIONAL CONFERENCE ON RECENT TRENDS IN ELECTRONICS, INFORMATION & COMMUNICATION TECHNOLOGY (RTEICT)》 *
徐逸帆: "《基于阻抗反馈的生物电刺激系统设计与实现》", 《知网》 *

Also Published As

Publication number Publication date
CN113630108B (en) 2023-02-07

Similar Documents

Publication Publication Date Title
CN102594118B (en) Boost PFC controller
CN102437727B (en) Boost power factor correction (PFC) controller
CN110798212B (en) Time domain interleaved waveform synthesis timing mismatch calibration device and method
CN107782972B (en) Power grid impedance measurement method based on variable PWM carrier frequency
CN103856062A (en) Double-loop control circuit of phase-shifted full-bridge synchronous rectification circuit
US11275397B2 (en) Power factor correction circuit, control method and controller
EP4118738A1 (en) Predictive active filter for emi attenuation
CN102594135B (en) Boost PFC controller
CN110333468B (en) Inversion test correction method applied to rectifier
CN113630108B (en) Triangular wave signal parameter measurement circuit
CN211086468U (en) L CR tester
CN110572017B (en) Single-phase inverter direct-current broadband domain ripple suppression device and control method thereof
Nayak et al. Performance analysis of different control strategies in a z-source inverter
CN113783552B (en) Triangular wave signal generating system
CN207283432U (en) A kind of inverter control circuit and its method for operation of the output of perseverance pulsewidth
CN113804936B (en) Triangular wave signal parameter measurement method
CN113300587B (en) Pulse sequence control method and device for power factor correction converter
CN104104343A (en) Triangular wave generating method and triangular wave generating circuit applied to D-class audio frequency amplifier
CN107346947B (en) Inverter control circuit with constant pulse width output and operation mode thereof
TWI506959B (en) Modulation methods and control devices applying the modulation methods
CN103023291A (en) Resonance suppression method based on voltage-type grid-connected inverter
CN203151449U (en) Digit waveform generator
CN205029633U (en) Electric automobile transform wave filter for equipment
CN103698562A (en) Electronic load device and simulation method thereof
Li et al. A Multi-Frequency Model for Buck Converter

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
GR01 Patent grant
GR01 Patent grant