Method and device for generating modulated pulse signal

文档序号:275940 发布日期:2021-11-19 浏览:68次 中文

阅读说明:本技术 调制脉冲信号发生方法和装置 (Method and device for generating modulated pulse signal ) 是由 梁李磊 于 2020-05-15 设计创作,主要内容包括:本申请实施例提供一种调制脉冲信号发生装置和方法,所述装置包括:矩形波发生单元,用于生成周期为第一周期的矩形波信号;延时单元,用于生成相对于矩形波信号延时第一时长的延时矩形波信号;第一逻辑处理单元,用于对矩形波信号和延时矩形波信号进行第一逻辑运算,得到窄脉冲信号;调制波发生单元,用于生成周期为第二周期、且一个周期内高电平持续时间或低电平持续时间为第二时长的调制波信号;第二逻辑处理单元,用于对窄脉冲信号和调制波信号进行第二逻辑运算,得到调制脉冲信号,电路结构简单,且易于调试。(The embodiment of the application provides a modulation pulse signal generating device and a method, wherein the device comprises: a rectangular wave generating unit for generating a rectangular wave signal having a first period; the time delay unit is used for generating a time delay rectangular wave signal for delaying a first time length relative to the rectangular wave signal; the first logic processing unit is used for carrying out first logic operation on the rectangular wave signal and the delayed rectangular wave signal to obtain a narrow pulse signal; the modulation wave generating unit is used for generating a modulation wave signal with a second period and high level duration or low level duration in one period as second duration; and the second logic processing unit is used for carrying out second logic operation on the narrow pulse signal and the modulation wave signal to obtain a modulation pulse signal, and the circuit structure is simple and easy to debug.)

1. A modulated pulse signal generating apparatus, comprising:

a rectangular wave generating unit for generating a rectangular wave signal having a first period;

a delay unit configured to generate a delayed rectangular wave signal delayed by a first time period with respect to the rectangular wave signal;

the first logic processing unit is used for carrying out first logic operation on the rectangular wave signal and the delayed rectangular wave signal to obtain a narrow pulse signal; the period of the narrow pulse signal is the first period;

the modulation wave generating unit is used for generating a modulation wave signal with a second period and high level duration or low level duration in one period as second duration; the second duration is greater than 0 and less than the second period; the second period is greater than the first period;

the second logic processing unit is configured to perform a second logic operation on the narrow pulse signal and the modulated wave signal to obtain a modulated pulse signal, where the modulated pulse signal is an intermittent continuous narrow pulse signal, a cycle of the modulated pulse signal is the second cycle, a duration of a continuous narrow pulse signal in one cycle is the second duration, a pulse width of a single pulse in the continuous narrow pulse signal is the same as a pulse width of a single pulse in the narrow pulse signal, and a time interval between two adjacent pulses in the continuous narrow pulse signal is equal to the first cycle.

2. The device of claim 1, wherein the device is a disposable unitThe first logic processing unit is specifically configured to obtain the narrow pulse signal by using the following first logic operation:wherein C represents the narrow pulse signal, a represents the rectangular wave signal, and B represents the delayed rectangular wave signal.

3. The apparatus according to claim 1, wherein the high level duration of the modulated wave signal is the second duration, and the second logic processing unit is specifically configured to obtain the modulated pulse signal by using a second logic operation that is: e ═ DC, E denotes the modulated pulse signal, D denotes the modulated wave signal, and C denotes the narrow pulse signal.

4. The apparatus according to claim 1, wherein the duration of the low level of the modulated wave signal is the second duration, and the second logic processing unit is specifically configured to obtain the modulated pulse signal by using a second logic operation that is:e denotes the modulated pulse signal, D denotes the modulated wave signal, and C denotes the narrow pulse signal.

5. The apparatus of any one of claims 1 to 4, further comprising: an edge synchronization unit; wherein the content of the first and second substances,

the edge synchronization unit is configured to: carrying out edge alignment processing on the modulation wave signal according to the narrow pulse signal so that the edge of the modulation wave signal is aligned with the edge of the narrow pulse signal; or, performing edge alignment processing on the modulated wave signal according to the delayed rectangular wave signal, so that the edge of the modulated wave signal is aligned with the edge of the delayed rectangular wave signal;

correspondingly, the second logic processing unit is specifically configured to: and performing second logic operation on the narrow pulse signal and the modulated wave signal after edge alignment processing output by the edge synchronization unit to obtain the modulated pulse signal.

6. The apparatus of any one of claims 1 to 4, wherein the duty cycle of the narrow pulse signal is in a range of [ 0.5%, 4% ], and the pulse width is less than 10 ns.

7. The apparatus according to any one of claims 1 to 4, wherein the second duration has a value in the range of [0.3ms, 4ms ].

8. A method of generating a modulated pulse signal, comprising:

generating a rectangular wave signal with a first period; generating a delayed rectangular wave signal delayed for a first time length relative to the rectangular wave signal according to the rectangular wave signal; performing a first logic operation on the rectangular wave signal and the delayed rectangular wave signal to obtain a narrow pulse signal; the period of the narrow pulse signal is the first period;

generating a modulation wave signal with a second period and a second duration of high level duration or low level duration within one period; the second time length is greater than 0 and less than the second period; the second period is greater than the first period;

performing a second logic operation on the narrow pulse signal and the modulation wave signal to obtain a modulation pulse signal; the modulation pulse signal is an interval type continuous narrow pulse signal, the period of the modulation pulse signal is the second period, the duration time of the continuous narrow pulse signal in one period is the second duration, the pulse width of a single pulse in the continuous narrow pulse signal is the same as the pulse width of a single pulse in the narrow pulse signal, and the time interval between two adjacent pulses is equal to the first period.

9. The method of claim 8, wherein performing the first logic operation on the square wave signal and the masked square wave signal to obtain a narrow pulse signal comprises:

obtaining the narrow pulse signal using a first logic operation of:wherein C represents the narrow pulse signal, a represents the rectangular wave signal, and B represents the delayed rectangular wave signal.

10. The method according to claim 8, wherein the duration of the high level of the modulated wave signal is the second duration, and the performing the second logic operation on the narrow pulse signal and the modulated wave signal to obtain the modulated pulse signal comprises:

obtaining the modulated pulse signal using a second logic operation of: e ═ DC, E denotes the modulated pulse signal, D denotes the modulated wave signal, and C denotes the narrow pulse signal.

11. The method according to claim 8, wherein the duration of the low level of the modulated wave signal is the second duration, and the performing the second logic operation on the narrow pulse signal and the modulated wave signal to obtain the modulated pulse signal comprises:

obtaining the modulated pulse signal using a second logic operation of:e denotes the modulated pulse signal, D denotes the modulated wave signal, and C denotes the narrow pulse signal.

12. The method according to any one of claims 8 to 11, further comprising, after generating the modulated wave signal and before performing the second logical operation:

carrying out edge alignment processing on the modulation wave signal according to the narrow pulse signal so that the edge of the modulation wave signal is aligned with the edge of the narrow pulse signal; or, performing edge alignment processing on the modulated wave signal according to the delayed rectangular wave signal, so that the edge of the modulated wave signal is aligned with the edge of the delayed rectangular wave signal;

correspondingly, the performing a second logic operation on the narrow pulse signal and the modulated wave signal to obtain a modulated pulse signal includes:

and performing the second logic operation on the narrow pulse signal and the modulation wave signal after edge alignment processing to obtain the modulation pulse signal.

13. The apparatus of any one of claims 8 to 11, wherein the duty cycle of the narrow pulse signal is in a range of [ 0.5%, 4% ], and the pulse width is less than 10 ns.

14. The apparatus according to any one of claims 8 to 11, wherein the second duration has a value in the range of [0.3ms, 4ms ].

Technical Field

The present application relates to the field of signal processing technologies, and in particular, to a method and an apparatus for generating a modulated pulse signal.

Background

In many technical fields, such as Time of Flight (TOF) technology and 3D structured light technology, a modulated pulse signal is required, for example, the modulated pulse signal can be used to drive a laser in a TOF module to emit light.

In the TOF technique, as shown in fig. 1a, a laser 11 emits a modulated light wave under the control of a driving signal, the light wave reflects after encountering an object, the reflected light wave is received by a sensor 12, and the sensor 12 converts the distance between the sensor and the object by calculating the time difference or phase difference between the emission and reflection of the light wave. With the continuous maturity of the TOF technology, the TOF technology is gradually applied to the application fields of 3D imaging, distance measurement, somatosensory interaction and the like. When the laser 11 emits light waves, a modulated pulse signal may be used as a drive signal (switching signal) for the laser.

In the 3D structured light technology, as shown in fig. 1b, a light wave with certain structural features is emitted from a laser 13 and projected onto an object, and light is collected by a camera 14; the light rays with certain structural characteristics are projected in different depth areas of the object, image information of different phases is collected by the camera 14, and different depth information of the object can be calculated through image three-dimensional analysis, so that the three-dimensional structure of the object is obtained. The laser 13 may use a modulated pulse signal as a switching signal of the laser when emitting light waves.

In the above laser, when a modulated pulse signal is used as a drive signal for light emission, the modulated pulse signal preferably has a continuous high-frequency narrow pulse signal having a periodicity and a plurality of phases in the same period in order to obtain a wider measurement range.

In the prior art, the modulated pulse signal is generated by a circuit which is generally composed of an avalanche transistor Marks cascade circuit, a comb spectrum circuit, a differentiator and a high-speed differential amplifier, but the signal generating circuit has a complex structure and is difficult to debug.

Disclosure of Invention

The application provides a modulation pulse signal generation method and device, which are simple to implement and easy to debug.

In a first aspect, an embodiment of the present application provides a modulation pulse signal generating apparatus, including:

a rectangular wave generating unit for generating a rectangular wave signal having a first period;

a delay unit configured to generate a delayed rectangular wave signal delayed by a first time period with respect to the rectangular wave signal;

the first logic processing unit is used for carrying out first logic operation on the rectangular wave signal and the delayed rectangular wave signal to obtain a narrow pulse signal; the period of the narrow pulse signal is the first period;

the modulation wave generating unit is used for generating a modulation wave signal with a second period and high level duration or low level duration in one period as second duration; the second duration is greater than 0 and less than the second period; the second period is greater than the first period;

the second logic processing unit is used for carrying out second logic operation on the narrow pulse signal and the modulation wave signal to obtain a modulation pulse signal; the modulation pulse signal is an interval type continuous narrow pulse signal, the period of the modulation pulse signal is the second period, the duration time of the continuous narrow pulse signal in one period is the second duration, the pulse width of a single pulse in the continuous narrow pulse signal is the same as the pulse width of a single pulse in the narrow pulse signal, and the time interval between two adjacent pulses is equal to the first period.

Compared with the prior art that the modulation pulse signal is generated by adopting a FPGA, an avalanche transistor marks cascade circuit, a comb spectrum circuit or a circuit formed by a differentiator and a high-speed differential amplifier and other complex circuits, the modulation pulse signal generating device can be realized only by simple circuit structures such as a rectangular wave generating unit, a delay rectangular wave generating unit, a modulation wave generating unit, a logic processing unit and the like. Moreover, under the condition that each parameter of the modulation pulse signal is determined, the parameter of the signal generated by each unit in the modulation pulse signal generation device can be set and debugged based on the parameter of the modulation pulse signal, so that the second logic processing unit can output the required modulation pulse signal; on the contrary, the parameters of the signals generated by each unit can be adjusted to correspondingly adjust the relevant parameters of the modulation pulse signals output by the modulation pulse signal generation device, so that the modulation pulse signal generation device of the embodiment of the application can generate modulation pulse signals with different parameters based on different parameter settings of the output signals of each unit, and the modulation pulse signal generation device of the embodiment of the application can be suitable for different application environments.

In one example, the first logical processing unit is specifically configured to use the following first logicCalculating to obtain the narrow pulse signal:wherein C represents the narrow pulse signal, a represents the rectangular wave signal, and B represents the delayed rectangular wave signal.

In an example, the high level duration of the modulated wave signal is the second duration, and the second logic processing unit is specifically configured to obtain the modulated pulse signal by using the following second logic operation: e ═ DC, E denotes the modulated pulse signal, D denotes the modulated wave signal, and C denotes the narrow pulse signal.

In an example, the low level duration of the modulated wave signal is the second duration, and the second logic processing unit is specifically configured to obtain the modulated pulse signal by using the following second logic operation:e denotes the modulated pulse signal, D denotes the modulated wave signal, and C denotes the narrow pulse signal.

In one example, the apparatus further comprises: an edge synchronization unit; wherein the content of the first and second substances,

the edge synchronization unit is configured to: carrying out edge alignment processing on the modulation wave signal according to the narrow pulse signal so that the edge of the modulation wave signal is aligned with the edge of the narrow pulse signal; or, performing edge alignment processing on the modulated wave signal according to the delayed rectangular wave signal, so that the edge of the modulated wave signal is aligned with the edge of the delayed rectangular wave signal;

correspondingly, the second logic processing unit is specifically configured to: and performing second logic operation on the narrow pulse signal and the modulated wave signal after edge alignment processing output by the edge synchronization unit to obtain the modulated pulse signal.

And by adding the edge synchronization unit, the incomplete pulse signal of the modulation pulse signal output by the second logic processing unit is avoided.

In one example, the duty cycle of the narrow pulse signal ranges from 0.5%, 4%, and the pulse width is less than 10 ns.

In one example, the second duration may take a value in a range of [0.3ms, 4ms ].

In a second aspect, an embodiment of the present application provides a modulated pulse signal generating method, including:

generating a rectangular wave signal with a first period; generating a delayed rectangular wave signal delayed for a first time length relative to the rectangular wave signal according to the rectangular wave signal; performing a first logic operation on the rectangular wave signal and the delayed rectangular wave signal to obtain a narrow pulse signal; the period of the narrow pulse signal is the first period;

generating a modulation wave signal with a second period and a second duration of high level duration or low level duration within one period; the second time length is greater than 0 and less than the second period; the second period is greater than the first period;

performing a second logic operation on the narrow pulse signal and the modulation wave signal to obtain a modulation pulse signal; the modulation pulse signal is an interval type continuous narrow pulse signal, the period of the modulation pulse signal is the second period, the duration time of the continuous narrow pulse signal in one period is the second duration, the pulse width of a single pulse in the continuous narrow pulse signal is the same as the pulse width of a single pulse in the narrow pulse signal, and the time interval between two adjacent pulses is equal to the first period.

In one example, the performing a first logic operation on the rectangular wave signal and the masked rectangular wave signal to obtain a narrow pulse signal includes:

obtaining the narrow pulse signal using a first logic operation of:wherein C represents the narrow pulse signal, a represents the rectangular wave signal, and B represents the delayed rectangular wave signal.

In one example, the duration of the high level of the modulated wave signal is the second duration, and the performing a second logic operation on the narrow pulse signal and the modulated wave signal to obtain a modulated pulse signal includes:

obtaining the modulated pulse signal using a second logic operation of: e ═ DC, E denotes the modulated pulse signal, D denotes the modulated wave signal, and C denotes the narrow pulse signal.

In one example, the duration of the low level of the modulated wave signal is the second duration, and the performing a second logic operation on the narrow pulse signal and the modulated wave signal to obtain a modulated pulse signal includes:

obtaining the modulated pulse signal using a second logic operation of:e denotes the modulated pulse signal, D denotes the modulated wave signal, and C denotes the narrow pulse signal.

In one example, the method further includes, after generating the modulated wave signal and before performing the second logical operation:

carrying out edge alignment processing on the modulation wave signal according to the narrow pulse signal so that the edge of the modulation wave signal is aligned with the edge of the narrow pulse signal; or, performing edge alignment processing on the modulated wave signal according to the delayed rectangular wave signal, so that the edge of the modulated wave signal is aligned with the edge of the delayed rectangular wave signal;

correspondingly, the performing a second logic operation on the narrow pulse signal and the modulated wave signal to obtain a modulated pulse signal includes:

and performing the second logic operation on the narrow pulse signal and the modulation wave signal after edge alignment processing to obtain the modulation pulse signal.

In one example, the duty cycle of the narrow pulse signal ranges from 0.5%, 4%, and the pulse width is less than 10 ns.

In one example, the second duration may take a value in a range of [0.3ms, 4ms ].

Drawings

FIG. 1a is a schematic illustration of a prior art TOF technique;

FIG. 1b is an exemplary diagram of a prior art 3D structured light principle;

FIG. 1c is a diagram illustrating an example of a waveform of a modulated pulse signal required to be generated according to an embodiment of the present application;

FIG. 2 is a block diagram of an embodiment of a modulated pulse signal generator according to the present application;

FIG. 3A is a diagram illustrating exemplary waveforms and relationships of signals generated by the units of the modulated pulse signal generator shown in FIG. 2;

FIG. 3B is an exemplary diagram of signal waveforms and signal relationships generated by the first logic processing unit of FIG. 2 using another processing logic;

FIGS. 3C and 3D are exemplary diagrams of pulse widths of narrow pulse signals generated by the modulated pulse signal generator of FIG. 2 with respect to a first time period;

FIG. 4 is a block diagram of another embodiment of a modulated pulse signal generator according to the present application;

FIGS. 5A and 5B are exemplary graphs of signal waveforms and signal relationships generated by the modulated pulse signal generator of FIG. 4;

FIG. 6 is a block diagram of another embodiment of a modulated pulse signal generator according to the present application;

FIG. 7A is a block diagram of another embodiment of a modulated pulse signal generator according to the present application;

FIGS. 7B and 7C are schematic diagrams of possible implementations of a delay rectangular wave generator in the modulation pulse signal generator shown in FIG. 7A;

FIG. 8 is a diagram illustrating an exemplary structure of a modulated pulse signal generator according to the present invention;

FIG. 9 is a flow chart of an embodiment of a modulated pulse signal generation method of the present application;

fig. 10 is a flowchart of another embodiment of a modulated pulse signal generating method according to the present application.

Detailed Description

The terminology used in the description of the embodiments section of the present application is for the purpose of describing particular embodiments of the present application only and is not intended to be limiting of the present application.

First, the modulated pulse signal in the embodiment of the present application is described by way of example and not limitation.

As shown in fig. 1c, the modulated pulse signal to be generated according to the embodiment of the present application is mainly characterized in that: the pulse width modulation circuit has periodicity, and a plurality of continuous high-frequency narrow pulse signals located at different phases are arranged in the same period. The frequency of the continuous high-frequency narrow pulse signal is generally more than or equal to 1 megahertz.

Referring to fig. 1c, assume that the period of the modulated pulse signal is T; in one period, the duration of a complete pulse signal is t1, that is, the time interval between two adjacent pulses is t1, the width of a single pulse in the continuous high-frequency narrow pulse signal is t2, the duration of the continuous high-frequency narrow pulse signal in one period is t3, t3 is n is t1, and n is a natural number. The value of n is not limited in this embodiment, and the value of n 4 in fig. 1c is only an example.

It should be noted that the modulation pulse signal generating device and method according to the embodiments of the present application can be applied to various technical fields that need to use the modulation pulse signal, including but not limited to TOF technology, 3D structured light, and other technical fields.

In order to generate the above-described modulated pulse signal, an implementation of the modulated pulse signal generating apparatus according to the embodiment of the present application is exemplarily described.

Fig. 2 is a block diagram of an embodiment of the modulated pulse signal generating apparatus according to the present invention, and as shown in fig. 2, the apparatus 20 may include: a rectangular wave generating unit 21, a delayed rectangular wave generating unit 22, a first logic processing unit 23, a modulating wave unit 24, and a second logic processing unit 25, wherein,

the output end of the rectangular wave generating unit 21 is respectively connected with the input end of the delay rectangular wave generating unit 22 and the first input end of the first logic processing unit 23; the output end of the delay rectangular wave generating unit 22 is connected with the second input end of the first logic processing unit 23; the output end of the first logic processing unit 23 is connected with the first input end of the second logic processing unit 25; the output end of the modulating wave unit 24 is connected with the second input end of the second logic processing unit 25; the output of the second logic processing unit 25 outputs a modulated pulse signal.

The rectangular wave generating unit 21 may be configured to: a rectangular wave signal having a first period is generated.

The delayed rectangular wave generation unit 22 may be configured to: and receiving the rectangular wave signal with the first period, and generating a delayed rectangular wave signal which is delayed for a first time length relative to the rectangular wave signal.

The first duration may be a value smaller than the first period or a value larger than the first period.

The first logical processing unit 23 may be configured to: receiving a rectangular wave signal and a delayed rectangular wave signal, and performing first logic operation on the rectangular wave signal and the delayed signal to obtain a narrow pulse signal; the period of the narrow pulse signal is the first period. Factors affecting the pulse width of the narrow pulse signal may include: the duty ratio of the rectangular wave signal, the first logic operation, the first time length, the first period and the like. Optionally, the duty ratio of the narrow pulse signal may range from [ 0.5%, 4% ], and the pulse width may be less than 10 ns.

The modulated wave generating unit 24 may be configured to: generating a modulation wave signal with a second period and high level duration or low level duration in one period as second duration; the second time length is greater than 0 and less than the second period; the second period is greater than the first period. Optionally, the second duration may range from [0.3ms, 4ms ].

The second logical processing unit 25 may be configured to: and performing second logic operation on the narrow pulse signal and the modulation wave signal to obtain a modulation pulse signal, wherein the modulation pulse signal is an interval type continuous narrow pulse signal, namely one period comprises a plurality of continuous narrow pulse signal intervals and a signal-free interval, the period of the modulation pulse signal is a second period, the duration of the continuous narrow pulse signal is a second duration, the pulse width of a single narrow pulse in the continuous narrow pulse signal is the same as the pulse width of a single pulse in the narrow pulse signal output by the first logic processing unit, and the time interval between two adjacent narrow pulses is equal to the first period.

Fig. 3A provides a waveform diagram of signals generated by respective units included in the modulation pulse signal generation apparatus shown in fig. 2 and an exemplary diagram of a relationship between waveforms of the respective signals. T1 in fig. 3A represents a first period; t1 denotes the duration of one complete pulse signal in the modulated pulse signal, t2 denotes the pulse width of a single pulse in the continuous high-frequency narrow-pulse signal contained in the modulated pulse signal, t3 denotes the duration of the continuous high-frequency narrow-pulse signal in one period of the modulated pulse signal, and t4 denotes a second time period.

Here, the duty ratio of the rectangular wave signal generated by the rectangular wave generating unit 21 is greater than 0 and less than 1, for example, as shown in fig. 3A, the duty ratio of the rectangular wave signal may be 50%, and the rectangular wave signal is a square wave signal. Alternatively, the high level width of the rectangular wave signal is larger than the pulse width t2 of the modulated pulse signal.

The signal amplitudes of the delayed rectangular wave signal and the rectangular wave signal may be the same or different, and this embodiment of the present application is not limited thereto, and the signal amplitudes of the delayed rectangular wave signal and the rectangular wave signal are the same as an example in fig. 3A. It should be noted that, if the amplitude of the delayed rectangular wave signal is different from that of the rectangular wave signal, the delayed rectangular wave generating unit may be further configured to: and adjusting the signal amplitude of the delayed rectangular wave signal to a preset amplitude. The preset amplitude value is not limited in the embodiments of the present application.

The specific processing logic of the first logic processing unit 23 is not specifically limited in this embodiment, as long as the narrow pulse signal can be generated based on the rectangular wave signal and the delayed rectangular wave signal, for example, based on the same rectangular wave signal and delayed rectangular wave signal, different processing logic may be used, so as to obtain the narrow pulse signal. For example,

based on the waveform relationship shown in fig. 3A, the processing logic of the first logic processing unit 23 may be:where C denotes a narrow pulse signal, A denotes a rectangular wave signal, and B denotes a delayed rectangular wave signal, thereby obtaining a narrow pulse shown in FIG. 3AA signal is flushed;

referring to fig. 3B, based on the same rectangular wave signal and delayed rectangular wave signal as those shown in fig. 3A, the processing logic of the first logic processing unit 23 is C ═ AB, and a narrow pulse signal such as that shown in fig. 3B can be obtained;

it should be noted that, based on the same rectangular wave signal and delayed rectangular wave signal as those shown in fig. 3A and 3B, the first logic processing unit 23 may also have other processing logic such asOrAnd so on, to obtain a narrow pulse signal, which is not described in detail herein.

Among the factors that influence the pulse width of the narrow pulse signal generated by the first logic processing unit 23 may include: the duty ratio of the rectangular wave signal, the processing logic (i.e. the first logic operation) of the first logic processing unit, the first time length, the first period, and the like. For example,

shown in FIG. 3AAssuming that the duty ratio of the rectangular wave signal is 50%, the pulse width of the narrow pulse signal is | the first duration-k × the first period |, the pulse width of the narrow pulse signal is less than or equal to half of the first period, and k is an integer greater than or equal to 0. And k is a value which ensures that the pulse width of the narrow pulse signal is less than or equal to a half period of the first period. For example, referring to fig. 3C, if the first duration t5 is less than or equal to half of the first period, k is 0, and the pulse width t6 of the narrow pulse signal is equal to the first duration t 5; referring to fig. 3D, if the first duration T5 is greater than half of the first period and is less than or equal to the first period, k is 1, and the pulse width T6 of the narrow pulse signal is equal to the first period T1 — the first duration T5. When the value of the first duration is greater than the first period, the generated narrow pulse signal may refer to the cases of fig. 3C and 3DThe difference is only the difference of the values of k, and the description is omitted here.

The method for calculating the pulse width of the narrow pulse signal illustrated in fig. 3A, 3C, and 3D is performed by using the processing logic of the first logic processing unit 23 asThe duty ratio of the rectangular wave signal is based on 50%, and when the processing logic of the first logic processing unit 23 changes and/or the duty ratio of the rectangular wave signal changes, the method for calculating the pulse width of the narrow pulse signal may change, for example, under the processing logic shown in fig. 3B, the method for calculating the pulse width of the narrow pulse signal is different from the above method, and is not listed here.

The edge of the modulation wave signal and the edge of the narrow pulse signal may be aligned or not aligned. Referring to fig. 3A, an example of 2 kinds of modulation wave signals is given, where modulation wave signal 1 and modulation wave signal 2 may be modulation wave signals output by modulation wave unit 24 in two different embodiments; the edge of the modulation wave signal 1 is aligned with the edge of a part of the pulse signal in the narrow pulse signal, and the edge of the modulation wave signal 2 is not aligned with the edge of the narrow pulse signal. Specifically, the rising edge of the modulated wave signal 1 is aligned with the rising edge of the x-th pulse of the narrow pulse signal, and the falling edge of the modulated wave signal 1 is aligned with the rising edge of the x + n + 1-th pulse of the narrow pulse signal. The modulated wave signal 2 can be regarded as a delayed signal of an inverted signal of the modulated wave signal 1.

Where the high level duration or the low level duration of the modulated wave signal is the second time duration, as shown in fig. 3A, the high level duration of the modulated wave signal 1 is the second time duration t4, and the low level duration of the modulated wave signal 2 is the second time duration t 4.

The specific processing logic of the second logic processing unit 25 is not limited in the embodiment of the present application, as long as the modulated pulse signal can be generated based on the narrow pulse signal and the modulated wave signal. Specifically, the modulation wave signals are different, and the processing logic of the second logic processing unit may be different, taking fig. 3A as an example:

for the narrow pulse signal and the modulated wave signal 1 shown in fig. 3A, if the modulated pulse signal shown in fig. 3A is generated, the processing logic of the second logic processing unit may be: e ═ DC, E denotes a modulated pulse signal, D denotes a modulated wave signal 1, and C denotes a narrow pulse signal;

for the narrow pulse signal and the modulated wave signal 2 shown in fig. 3A, if the modulated pulse signal shown in fig. 3A is generated, the processing logic of the second logic processing unit may be:e denotes a modulated pulse signal, D denotes a modulated wave signal 2, and C denotes a narrow pulse signal.

Alternatively, the wave modulation Unit may be implemented by a Micro Controller Unit (MCU).

Optionally, the square wave generating unit may be implemented by an oscillator chip, an oscillation circuit, or a 555 time-base chip, or may also be implemented by programming so that an input/output (I/O) port of the MCU outputs a square wave, and the like, which is not limited in this embodiment of the application.

Optionally, the delayed square wave generating unit may be implemented by a delay chip, a delay circuit, a buffer gate circuit, or the like, and the embodiment of the present application is not limited.

Alternatively, the first logic processing unit and the second logic processing unit may be implemented by any circuit capable of implementing a preset logic operation function, for example, an and gate, an not gate, an exclusive or, or a combination of multiple logic units, and the embodiments of the present application are not limited.

Based on the apparatus shown in fig. 2 and the signal example shown in fig. 3A, the following relationship can be obtained:

a first period of 1/a first frequency of t1, which is the time interval between two adjacent pulses in the modulated pulse signal;

the second period is 1, and the second frequency is the period T of the modulation pulse signal;

i first duration-k × first period i pulse width t2 of the modulated pulse signal;

the second time length is the duration t3 of the continuous high-frequency narrow pulse signal in one period of the modulation pulse signal.

Based on the above relationship, when each parameter of the modulated pulse signal is determined, the parameter of the signal generated by each unit in the modulated pulse signal generating device can be set and debugged based on the parameter of the modulated pulse signal, so that the second logic processing unit can output the required modulated pulse signal;

on the contrary, the parameters of the signals generated by each unit can be adjusted to correspondingly adjust the relevant parameters of the modulation pulse signals output by the modulation pulse signal generation device, so that the modulation pulse signal generation device of the embodiment of the application can generate modulation pulse signals with different parameters based on different parameter settings of the output signals of each unit, and the modulation pulse signal generation device of the embodiment of the application can be suitable for different application environments.

Compared with the prior art that the avalanche transistor Marx cascade circuit, the comb spectrum circuit, the differentiator and the high-speed differential amplifier are adopted to form the generating circuit of the modulated pulse signal, the circuits of the avalanche transistor Marx cascade circuit, the comb spectrum circuit and the like have complicated structures, so that the formed modulated pulse signal generating circuit has a complicated structure, the modulated pulse signal generating device shown in figure 2 is formed by a rectangular wave generating unit, a delay rectangular wave generating unit, a modulated wave generating unit, a logic processing unit and the like, and the units can be realized by simpler circuit structures relative to the avalanche transistor Marx cascade circuit, the comb spectrum circuit and the like, for example, the rectangular wave generating unit can be formed by a comparator and an RC circuit, and the rectangular wave generating unit, the delay rectangular wave generating unit and the modulated wave generating unit basically belong to circuits with similar structures, the logic processing unit is composed of various basic gate circuits, and the structure is simple and easy to realize. The units in the modulation pulse signal generating device can be realized through digital circuit structures such as an MCU, an oscillator chip, an oscillating circuit, a delay chip, a buffer gate circuit and a logic unit, and the performance is stable and reliable.

Moreover, in a product such as a laser in the prior art, which needs to use a modulation pulse signal as a switching signal, a chip manufactured based on a complex modulation pulse signal generating circuit exemplified in the prior art needs to be specially arranged to generate the required modulation pulse signal, and the digital circuits used by each unit of the modulation pulse signal generating device in the embodiment of the present application are all common circuits in a development board or a single chip system, so that a product using the modulation pulse signal generating device in the embodiment of the present application, such as a laser in a depth measurement system, does not need to be provided with a special chip to output a modulation pulse signal as in the prior art, and can multiplex functional modules such as an MCU, an oscillator chip, a delay module, a logic unit and the like in the depth measurement system, thereby reducing the structural complexity and cost of the product.

In contrast to the embodiment of the modulated pulse signal generator shown in fig. 2, the modulated pulse signal generator shown in fig. 4 further includes an edge synchronization unit 41, and at this time, in contrast to the connection relationship of the modulated pulse signal generator shown in fig. 2, the output terminal of the modulated wave unit 24 is not directly connected to the second input terminal of the second logic processing unit 25, but is instead connected to the first input terminal of the edge synchronization unit 41; the output of first logic processing unit 23 is connected to a second input of edge synchronization unit 41 in addition to the first input of second logic processing unit 25, and the output of edge synchronization unit 41 is connected to the second input of second logic processing unit 25.

The edge synchronization unit 41 may be configured to: performing edge alignment processing on the modulation wave signal according to the narrow pulse signal output by the first logic processing unit 23, so that the edge of the modulation wave signal is aligned with the edge of the narrow pulse signal;

correspondingly, the second logic processing unit 25 may specifically be configured to: and performing a second logic operation on the narrow pulse signal and the modulated wave signal after the edge alignment processing output by the edge synchronization unit 41 to obtain a modulated pulse signal.

Alternatively, the edge synchronizing unit 41 may be implemented by an edge flip-flop, in which a narrow pulse signal is used as a trigger signal of the flip-flop, and the flip-flop outputs a modulated wave signal after edge triggering.

In the modulated pulse signal generating apparatus shown in fig. 2, if the edge of the modulated wave signal is not aligned with the edge of the narrow pulse signal, a situation may occur in which the pulse signal in the modulated pulse signal output by the second logic processing unit is incomplete, for example, as shown in fig. 5A, an incomplete pulse signal occurs in the modulated pulse signal because the edge of the modulated wave signal is not aligned with the edge of the narrow pulse signal. In fig. 4, by adding the edge synchronization unit 41, the modulated wave signal obtained after edge alignment is as shown in fig. 5B, and it is ensured that the edge of the modulated wave signal obtained after edge alignment is aligned with the edge of the narrow pulse signal, at this time, the modulated pulse signals output by the second logic processing unit are all complete pulse signals as shown in fig. 5B, and the problem of incomplete pulse signals in the modulated pulse signals is solved.

Unlike the modulation pulse signal generation apparatus shown in fig. 4, in which the output terminal of the first logic processing unit 23 is connected to the second input terminal of the edge synchronization unit 41, in the modulation pulse signal generation apparatus shown in fig. 6, the output terminal of the delay rectangular wave generation unit 22 is connected to the second input terminal of the edge synchronization unit 41; at this time, the process of the present invention,

the edge synchronization unit 41 may be configured to: and performing edge alignment processing on the modulation wave signal according to the delayed rectangular wave signal output by the delayed rectangular wave generating unit 22, so that the edge of the modulation wave signal is aligned with the edge of the delayed rectangular wave signal.

The modulation pulse signal generating device shown in fig. 6 can also achieve the technical effect of the modulation pulse signal generating device shown in fig. 4, so that the modulation pulse signals output by the second logic processing unit are all complete pulse signals.

It should be noted that the configurations of the modulation pulse generating devices shown in fig. 2, 4, and 6 are merely examples, and the configurations of the modulation pulse generating devices of the present application may be reasonably modified based on fig. 2, 4, and 6. For example: referring to fig. 7A, in contrast to the rectangular wave generating unit 21 shown in fig. 2 having an output terminal connected to the first input terminal of the first logic processing unit 23, in the modulation pulse generating device shown in fig. 7A, the output terminal of the rectangular wave generating unit 21 is not connected to the first logic processing unit, and the delayed rectangular wave generating unit 22 includes a first output terminal and a second output terminal, which respectively output the rectangular wave signal and the delayed rectangular wave signal, in this case, the first output terminal of the delayed rectangular wave generating unit 22 may be connected to the first input terminal of the first logic processing unit 23, and the second output terminal of the delayed rectangular wave generating unit 22 may be connected to the second input terminal of the first logic processing unit 23. The modulation pulse generating devices shown in fig. 4 and fig. 6 may also be modified as described above, so as to obtain other implementation structures of the modulation pulse generating device of the present application, which are not described herein again.

It should be noted that a possible implementation structure of the delayed rectangular wave generation unit 22 shown in fig. 7A is shown in fig. 7B, for example:

referring to fig. 7B, the input end of the delayed rectangular wave generating unit 22 may be directly connected to the first output end, and a delay circuit capable of generating a delayed rectangular wave signal according to the rectangular wave signal is disposed between the input end and the second output end, so that the first output end of the delayed rectangular wave generating unit outputs the rectangular wave signal, and the second output end outputs the delayed rectangular wave signal; alternatively, the first and second electrodes may be,

referring to fig. 7C, delay circuits capable of generating a delayed rectangular wave signal according to the rectangular wave signal are respectively disposed between the input end and the first output end, and between the input end and the second output end of the delayed rectangular wave generating unit 22, where the two delay circuits are different in delay duration; the delay time of the delay circuit between the input end and the first output end can be mT1, m is an integer greater than or equal to 0, namely the delay time is 0 or an integral multiple of the first period; the delay time of the delay circuit between the input end and the second output end is the first time; alternatively, the first and second electrodes may be,

the delayed rectangular wave generating unit 22 may be realized by a delay chip having the above-described function, for example, a delay chip DS1023S in fig. 8.

The delay circuit can be realized by a delay chip or a buffer gate circuit, and the like, and the embodiment of the application is not limited.

The modulation pulse generating device of the present application is exemplified by way of example. FIG. 8 is a diagram illustrating an exemplary structure of an embodiment of a modulated pulse signal generator according to the present invention; wherein the content of the first and second substances,

the rectangular wave generating unit is realized by an oscillator chip LTC6900 chip, and an OUT pin of the chip can output a rectangular wave signal A;

the delay rectangular wave generating unit is realized by a DS1023S chip of a delay chip, an IN pin of the DS1023S chip is connected with an OUT pin of an LTC6900 chip, and a rectangular wave signal A output by the OUT pin is received; a REF pin of a DS1023S chip outputs a rectangular wave signal A, and an OUT pin outputs a delayed rectangular wave signal B;

the first logic processing unit consists of a NOT gate and an AND gate, and specifically, the narrow pulse signal output by the first logic processing unit

The modulation wave unit is realized by an MCU (microprogrammed control unit), and the MCU outputs a modulation wave signal;

the edge synchronization unit is realized by a D trigger, and the D trigger carries out edge alignment processing on the modulation wave signal according to the delayed rectangular wave signal B to obtain a modulation wave signal D after the edge alignment processing;

the second logic processing unit is realized by an AND gate, and the output modulated pulse signal E is CD.

Corresponding to the above-mentioned modulation pulse signal generation device, the embodiment of the present application further provides a modulation pulse signal generation method, which will be described in detail below.

Fig. 9 is a flowchart of an embodiment of a modulated pulse signal generating method according to the present application, and as shown in fig. 9, the method may include:

step 91: generating a rectangular wave signal with a first period;

and step 92: generating a delayed rectangular wave signal which is delayed for a first time length relative to the rectangular wave signal according to the rectangular wave signal;

step 93: performing first logic operation on the rectangular wave signal and the delayed rectangular wave signal to obtain a narrow pulse signal; the period of the narrow pulse signal is a first period;

step 94: generating a modulation wave signal with a second period and high level duration or low level duration in one period as second duration; the second time length is greater than 0 and less than the second period; the second period is greater than the first period;

the execution sequence between steps 91 to 93 and step 94 is not limited in this embodiment of the application.

Step 95: and performing second logic operation on the narrow pulse signal and the modulation wave signal to obtain a modulation pulse signal, wherein the modulation pulse signal is an interval type continuous narrow pulse signal, the period of the modulation pulse signal is a second period, the duration of the continuous narrow pulse signal in one period is a second duration, the pulse width of a single pulse in the continuous narrow pulse signal is the same as the pulse width of a single pulse in the narrow pulse signal, and the time interval between two adjacent pulses is equal to the first period.

Optionally, step 93 may include:

the narrow pulse signal is obtained using a first logical operation of:where C denotes a narrow pulse signal, a denotes a rectangular wave signal, and B denotes a delayed rectangular wave signal.

In one possible implementation manner, the high level duration of the modulated wave signal is a second duration, and step 95 may include:

obtaining the modulated pulse signal using a second logic operation of: e ═ DC, E denotes a modulated pulse signal, D denotes a modulated wave signal, and C denotes a narrow pulse signal.

In another possible implementation manner, the low level duration of the modulated wave signal is a second duration, and step 95 may include:

obtaining the modulated pulse signal using a second logic operation of:e denotes a modulated pulse signal, D denotes a modulated wave signal, and C denotes a narrow pulse signal.

In a possible implementation manner, the duty ratio of the narrow pulse signal may range from [ 0.5%, 4% ], and the pulse width may be less than 10 ns.

In a possible implementation manner, the value range of the second duration may be [0.3ms, 4ms ].

Referring to fig. 10, on the basis of the method for generating a modulated pulse signal according to the embodiment of the present application shown in fig. 9, between step 94 and step 95, step 101 may be further included, specifically,

step 101: carrying out edge alignment processing on the modulation wave signal according to the narrow pulse signal so that the edge of the modulation wave signal is aligned with the edge of the narrow pulse signal; or, carrying out edge alignment processing on the modulation wave signal according to the delayed rectangular wave signal, so that the edge of the modulation wave signal is aligned with the edge of the delayed rectangular wave signal;

accordingly, step 95 may include:

and carrying out second logic operation on the narrow pulse signal and the modulation wave signal after edge alignment processing to obtain a modulation pulse signal.

The above method may be executed by a corresponding unit in the modulation pulse signal generation device according to the embodiment of the present application, and for specific implementation, reference may be made to relevant descriptions in the modulation pulse signal generation device according to the embodiment of the present application, which are not described herein again.

It is to be understood that some or all of the steps or operations in the above-described embodiments are merely examples, and other operations or variations of various operations may be performed by the embodiments of the present application. Further, the various steps may be performed in a different order presented in the above-described embodiments, and it is possible that not all of the operations in the above-described embodiments are performed.

In the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, and means that there may be three relationships, for example, a and/or B, and may mean that a exists alone, a and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, wherein a, b and c can be single or multiple.

Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in connection with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or combinations of electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.

It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.

In the several embodiments provided in the present application, any function, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

The above description is only for the specific embodiments of the present application, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered by the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:脉冲信号电平的计算方法和计算电路

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类