CN106919101B - Tunable pulse signal generator for driving LED - Google Patents
Tunable pulse signal generator for driving LED Download PDFInfo
- Publication number
- CN106919101B CN106919101B CN201510997573.0A CN201510997573A CN106919101B CN 106919101 B CN106919101 B CN 106919101B CN 201510997573 A CN201510997573 A CN 201510997573A CN 106919101 B CN106919101 B CN 106919101B
- Authority
- CN
- China
- Prior art keywords
- pulse signal
- signal generator
- driving
- led
- converter
- 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.)
- Active
Links
- 238000006243 chemical reaction Methods 0.000 claims description 12
- 238000012360 testing method Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 10
- 238000002186 photoelectron spectrum Methods 0.000 description 10
- 238000000034 method Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 239000008358 core component Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000001420 photoelectron spectroscopy Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- XUIMIQQOPSSXEZ-UHFFFAOYSA-N Silicon Chemical compound [Si] XUIMIQQOPSSXEZ-UHFFFAOYSA-N 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 239000000306 component Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
- 229910052710 silicon Inorganic materials 0.000 description 1
- 239000010703 silicon Substances 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25392—Convert control signal to deliver pulse modified in time and width
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Led Devices (AREA)
Abstract
本申请涉及一种驱动LED的可调谐脉冲信号发生器。该发生器包括:一电源模块,一现场可编程门阵列,一可编程电位器,一DC‑DC转换器,一电平转换器;所述现场可编程门阵列用于产生脉冲信号及控制指令;所述可编程电位器用于根据所述控制指令调整电阻值;所述DC‑DC转换器用于对所述电源模块输入的电源电压进行转换,并根据所述可编程电位器的电阻值调整电压输出;所述电平转换器用于根据所述DC‑DC转换器输出的可调电压对所述脉冲信号进行电平转换。本公开的驱动LED的可调谐脉冲信号发生器,能够实现参数精确可调的脉冲信号发生器。
The present application relates to a tunable pulse signal generator for driving LEDs. The generator includes: a power supply module, a field programmable gate array, a programmable potentiometer, a DC-DC converter, and a level converter; the field programmable gate array is used to generate pulse signals and control instructions The programmable potentiometer is used to adjust the resistance value according to the control instruction; the DC-DC converter is used to convert the power supply voltage input by the power module, and adjust the voltage according to the resistance value of the programmable potentiometer output; the level shifter is used for level shifting the pulse signal according to the adjustable voltage output by the DC-DC converter. The tunable pulse signal generator for driving an LED of the present disclosure can realize a pulse signal generator with precisely adjustable parameters.
Description
技术领域technical field
本发明总体涉及一种脉冲信号发生器,具体而言,涉及一种驱动LED的可调谐脉冲信号发生器。The present invention generally relates to a pulse signal generator, in particular, to a tunable pulse signal generator for driving LEDs.
背景技术Background technique
光电倍增管、硅光探测器等各种光电转换器件,可以将光信号转换成电信号,同时实现对光电子信号的倍增放大,其被广泛应用于科研、工业生产、环境监测和医疗器械等领域。不同的应用,对此类光电转换器件性能精度的要求不一样,因此有效地进行性能刻度非常重要,通过对不同光电转换器件的进行性能刻度,可以选择合适的器件用于专业的测试中。目前,对诸如光电倍增管等光电转换器件性能进行刻度,多采用光电子谱测试方法,而较为经典的即是单光电子刻度法。Various photoelectric conversion devices such as photomultiplier tubes and silicon photodetectors can convert optical signals into electrical signals and at the same time realize multiplication and amplification of photoelectric signals. They are widely used in scientific research, industrial production, environmental monitoring and medical equipment. . Different applications have different requirements for the performance accuracy of such photoelectric conversion devices, so it is very important to effectively perform performance calibration. By performing performance calibration of different photoelectric conversion devices, suitable devices can be selected for professional testing. At present, the performance of photoelectric conversion devices such as photomultiplier tubes is calibrated by photoelectron spectroscopy, and the more classic one is the single photoelectron calibration method.
能否测试其单光电子谱(single photoelectron,SPE)是光电转换器件最重要的评价指标之一。通过单光电子谱,可以刻度出光电倍增管的增益、峰谷比、能量分辨率等特性。光电倍增管的渡越时间分散度(Transit Time Spread)是定义在单光电子谱下的性能,因此单光电子谱也可以定性知道是否能得到光电倍增管的渡越时间分散度。同时,通过单光电子谱也能刻度出光电倍增管的相对量子效率和相对收集效率。因此,单光电子谱的测试对光电转换器件非常重要,而成功的产生满足测试需求的单光子光源,就显得尤为重要。Whether the single photoelectron spectrum (SPE) can be tested is one of the most important evaluation indicators for photoelectric conversion devices. Through the single photoelectron spectrum, the gain, peak-to-valley ratio, energy resolution and other characteristics of the photomultiplier tube can be scaled. The Transit Time Spread of the photomultiplier tube is defined as the performance under the single photoelectron spectrum, so the single photoelectron spectrum can also qualitatively know whether the transit time spread of the photomultiplier tube can be obtained. At the same time, the relative quantum efficiency and the relative collection efficiency of the photomultiplier tube can also be scaled by the single photoelectron spectrum. Therefore, the test of single photoelectron spectrum is very important for photoelectric conversion devices, and it is particularly important to successfully generate a single photon light source that meets the test requirements.
对于通过电子学设备控制发光二极管LED的发光特性,或者激光器,是可以产生单光子状态的。一般常用的仪器设备是信号发生器,产生脉冲信号,通过调节触发频率,可以获得光信号的周期性重复频率,进而实现测试触发信号的给出。然后通过调节加载在LED上的电压信号的大小,进而调节光强,占空比等,实现单个光子的输出。For electronic devices to control the light-emitting properties of light-emitting diodes (LEDs), or lasers, it is possible to generate single-photon states. The commonly used instrument and equipment is a signal generator, which generates a pulse signal. By adjusting the trigger frequency, the periodic repetition frequency of the optical signal can be obtained, and then the test trigger signal can be given. Then, by adjusting the magnitude of the voltage signal loaded on the LED, and then adjusting the light intensity, duty cycle, etc., the output of a single photon is realized.
通常商业的脉冲发生器,比如泰克AFG3102任意函数发生器,RIGOO的DG5352信号发生器,尽管其在带宽上有一定区别,都可以产生包括正弦波、方波、脉冲波、锯齿波、三角波、Sin(x)/x、指数式增长和衰减、高斯、洛仑兹、半正矢、直流、噪声等在内的任意波形,所以价格比较昂贵。而用来驱动LED进行单光子探测,只需要一种脉冲波形,而且由于受到探测器自身动态范围的限制,对信号的频率要求也不高,只产生脉冲波形、体积小巧、价格低廉的小型脉冲信号发生器即可满足要求。Common commercial pulse generators, such as Tektronix AFG3102 arbitrary function generator, RIGOO's DG5352 signal generator, although there are certain differences in bandwidth, can generate sine wave, square wave, pulse wave, sawtooth wave, triangle wave, Sin Arbitrary waveforms including (x)/x, exponential growth and decay, Gaussian, Lorentz, haversine, DC, noise, etc., are more expensive. To drive LEDs for single-photon detection, only one pulse waveform is required, and due to the limitation of the dynamic range of the detector itself, the frequency requirements of the signal are not high, and only small pulses with small size and low price are generated. A signal generator suffices.
因此,需要一种新的信号发生器。Therefore, a new signal generator is required.
在所述背景技术部分公开的上述信息仅用于加强对本公开的背景的理解,因此它可以包括不构成对本领域普通技术人员已知的现有技术的信息。The above information disclosed in this Background section is only for enhancement of understanding of the background of the disclosure and therefore it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art.
发明内容SUMMARY OF THE INVENTION
本发明提供一种驱动LED的可调谐脉冲信号发生器,能够输出可调谐的脉冲信号。The invention provides a tunable pulse signal generator for driving an LED, which can output a tunable pulse signal.
本发明的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present invention will become apparent from the following detailed description, or be learned in part by practice of the present disclosure.
根据本发明的一方面,一种驱动LED的可调谐脉冲信号发生器,包括:一电源模块,一现场可编程门阵列,一可编程电位器,一DC-DC转换器,一电平转换器;所述现场可编程门阵列用于产生脉冲信号及控制指令;所述可编程电位器用于根据所述控制指令调整电阻值;所述DC-DC转换器用于对所述电源模块输入的电源电压进行转换,并根据所述可编程电位器的电阻值调整电压输出;所述电平转换器用于根据所述DC-DC转换器输出的可调电压对所述脉冲信号进行电平转换。According to an aspect of the present invention, a tunable pulse signal generator for driving LEDs includes: a power supply module, a field programmable gate array, a programmable potentiometer, a DC-DC converter, and a level converter The field programmable gate array is used to generate pulse signals and control instructions; the programmable potentiometer is used to adjust the resistance value according to the control instructions; the DC-DC converter is used to input the power supply voltage to the power module converting, and adjusting the voltage output according to the resistance value of the programmable potentiometer; the level shifter is used for level shifting the pulse signal according to the adjustable voltage output by the DC-DC converter.
根据本发明的一实施方式,还包括一主控CPU,用于解析数据并发送给所述现场可编程门阵列。According to an embodiment of the present invention, it further includes a main control CPU for parsing data and sending the data to the field programmable gate array.
根据本发明的一实施方式,所述主控CPU解析的数据包括电平幅度、占空比、周期、电压源反馈电阻阻值、高电平时间以及低电平时间。According to an embodiment of the present invention, the data analyzed by the main control CPU includes level amplitude, duty cycle, period, voltage source feedback resistance resistance, high level time and low level time.
根据本发明的一实施方式,还包括一以太网控制器,用于接收指令。According to an embodiment of the present invention, an Ethernet controller is further included for receiving an instruction.
根据本发明的一实施方式,还包括一上位机,用于发出指令。According to an embodiment of the present invention, a host computer is further included for issuing an instruction.
根据本发明的一实施方式,所述主控CPU通过UART异步串口接口与所述现场可编程门阵列交互。According to an embodiment of the present invention, the main control CPU interacts with the field programmable gate array through a UART asynchronous serial port interface.
根据本发明的一实施方式,所述现场可编程门阵列与所述可编程电位器通过SPI接口交互。According to an embodiment of the present invention, the field programmable gate array interacts with the programmable potentiometer through an SPI interface.
根据本发明的一实施方式,所述现场可编程门阵列对接收的数据进行解析,把解析出的参数送入相应寄存器。According to an embodiment of the present invention, the field programmable gate array parses the received data, and sends the parsed parameters into corresponding registers.
根据本发明的一实施方式,还包括一延时单元,用于控制所述脉冲信号的延时。According to an embodiment of the present invention, a delay unit is further included for controlling the delay of the pulse signal.
根据本发明的一实施方式,还包括一配置模块,用于管理配置数据。According to an embodiment of the present invention, a configuration module is further included for managing configuration data.
根据本发明的一实施方式,所述可编程电位器具有一中心触点以及一输入端,所述DC-DC转换器具有一高电位输出端以及一低电位输出端,分别与所述中心触点以及所述输入端连接。According to an embodiment of the present invention, the programmable potentiometer has a center contact and an input terminal, and the DC-DC converter has a high-potential output terminal and a low-potential output terminal, which are respectively connected with the center contact and an input terminal. The input terminal is connected.
本公开的驱动LED的可调谐脉冲信号发生器,基于现场可编程门阵列,实现占空比、周期可调的脉冲输出,通过电平转换器、DC-DC转换器与可编程电位器组成的高精度输出电压源实现输出幅度变换,最终实现了参数精确可调的脉冲信号发生器。通过主控CPU与上位机的交互,可方便地对信号发生器的输出进行调节。The tunable pulse signal generator for driving an LED of the present disclosure is based on a field programmable gate array, and realizes pulse output with adjustable duty cycle and period, and is composed of a level converter, a DC-DC converter and a programmable potentiometer. The high-precision output voltage source realizes the output amplitude transformation, and finally realizes the pulse signal generator with precisely adjustable parameters. Through the interaction between the main control CPU and the host computer, the output of the signal generator can be easily adjusted.
附图说明Description of drawings
通过参照附图详细描述其示例实施例,本发明的上述和其它目标、特征及优点将变得更加显而易见。The above and other objects, features and advantages of the present invention will become more apparent from the detailed description of example embodiments thereof with reference to the accompanying drawings.
图1为根据本公开示例实施方式的驱动LED的可调谐脉冲信号发生器组成示意图。FIG. 1 is a schematic diagram of the composition of a tunable pulse signal generator for driving an LED according to an exemplary embodiment of the present disclosure.
图2为根据本公开示例实施方式的电平转换电路组成示意图。FIG. 2 is a schematic diagram of the composition of a level conversion circuit according to an exemplary embodiment of the present disclosure.
图3为根据本公开另一示例实施方式的驱动LED的可调谐脉冲信号发生器的组成示意图。FIG. 3 is a schematic diagram of the composition of a tunable pulse signal generator for driving an LED according to another exemplary embodiment of the present disclosure.
图4为根据本公开示例实施方式的主控CPU嵌入式程序的框架图。FIG. 4 is a frame diagram of a host CPU embedded program according to an example embodiment of the present disclosure.
图5为根据本公开示例实施方式的主控CPU嵌入式程序的流程图。FIG. 5 is a flowchart of a host CPU embedded program according to an example embodiment of the present disclosure.
图6为根据本公开示例实施方式的信号发生器与RIGOO DG5352信号源输出波形对比图。FIG. 6 is a comparison diagram of output waveforms of a signal generator and a RIGOO DG5352 signal source according to an example embodiment of the present disclosure.
图7为根据本公开示例实施方式的驱动LED的可调谐脉冲信号发生器用于单光电子谱测试结果图。7 is a graph showing the results of a single photoelectron spectrum test using a tunable pulse signal generator for driving an LED according to an example embodiment of the present disclosure.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。附图仅为本发明的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The drawings are merely schematic illustrations of the invention and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted.
此外,所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本发明的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本发明的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知结构、方法、装置、实现、材料或者操作以避免喧宾夺主而使得本发明的各方面变得模糊。Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present invention. However, those skilled in the art will appreciate that the technical solutions of the present invention may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known structures, methods, devices, implementations, materials, or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
本公开使用脉冲发生器的信号驱动LED,脉冲信号发生器的时间特性和幅度特性对LED的发光特性会有比较大的影响。对于本公开来说,比较重要的脉冲信号发生器参数包括:上升时间,下降时间,频率,占空比,输出电平等。The present disclosure uses the signal of the pulse generator to drive the LED, and the time characteristics and amplitude characteristics of the pulse signal generator will have a relatively large influence on the light-emitting characteristics of the LED. For the present disclosure, the more important parameters of the pulse signal generator include: rise time, fall time, frequency, duty cycle, output level, and the like.
图1示意性示出根据本发明示例实施方式的驱动LED的可调谐脉冲信号发生器组成示意图。FIG. 1 schematically shows a schematic diagram of the composition of a tunable pulse signal generator for driving an LED according to an exemplary embodiment of the present invention.
如图1所示,驱动LED的可调谐脉冲信号发生器,包括:电源模块,现场可编程门阵列,可编程电位器,DC-DC转换器,电平转换器。现场可编程门阵列用于产生脉冲信号及控制指令。可编程电位器用于根据控制指令调整电阻值。DC-DC转换器用于对电源模块输入的电源电压进行转换,并根据所述可编程电位器的电阻值调整电压输出。电平转换器用于根据DC-DC转换器输出的可调电压对脉冲信号进行电平转换。As shown in Figure 1, the tunable pulse signal generator for driving LED includes: power supply module, field programmable gate array, programmable potentiometer, DC-DC converter, and level shifter. Field programmable gate arrays are used to generate pulse signals and control instructions. The programmable potentiometer is used to adjust the resistance value according to the control command. The DC-DC converter is used to convert the power supply voltage input by the power supply module, and adjust the voltage output according to the resistance value of the programmable potentiometer. The level shifter is used to level shift the pulse signal according to the adjustable voltage output by the DC-DC converter.
现场可编程门阵列作为信号发生器的核心部件,可产生占空比、周期可调的脉冲信号,同时产生控制指令控制可编程电位器。可编程电位器作为DC-DC转换器的负载,接收现场可编程门阵列的控制指令调整电阻值,使DC-DC转换器产生可调节的电平输出。电平转换器供电端接收DC-DC转换器输出的可调电压,对现场可编程门阵列产生的脉冲信号进行电平转换。电平转换器输出经过转换的脉冲信号,脉冲信号的幅度由DC-DC转换器输出的可调节电压控制。由此,电平转换器的输出端作为信号发生器的输出端,可输出占空比、周期、幅度可调的脉冲信号。As the core component of the signal generator, the field programmable gate array can generate pulse signals with adjustable duty cycle and period, and at the same time generate control instructions to control the programmable potentiometer. The programmable potentiometer, as the load of the DC-DC converter, receives the control command of the field programmable gate array to adjust the resistance value, so that the DC-DC converter can produce an adjustable level output. The power supply end of the level converter receives the adjustable voltage output by the DC-DC converter, and performs level conversion on the pulse signal generated by the field programmable gate array. The level shifter outputs the converted pulse signal whose amplitude is controlled by the adjustable voltage output by the DC-DC converter. Therefore, the output end of the level shifter is used as the output end of the signal generator, and can output a pulse signal with adjustable duty cycle, period and amplitude.
图2示意性示出根据本发明示例实施方式的电平转换电路组成示意图。FIG. 2 schematically shows a schematic composition diagram of a level conversion circuit according to an exemplary embodiment of the present invention.
如图2所示,DC-DC转换器由电源模块供电,可编程电位器作为负载与DC-DC转换器电性连接。在现场可编程门阵列的控制下,可编程电位器的两部分可编程电位器1和可编程电位器2改变电阻值,通过改变可编程电位器2的电阻值使DC-DC转换器产生可调的电平输出。DC-DC转换器与可编程电位器形成了一个可编程控制的高精度输出电压源,其输出电压由反馈电阻可编程电位器2的阻值决定。可编程电位器可以采用n位可编程电位器,所以输出电平的分辨率为2.4/2^n,但本公开不以此为限。As shown in Figure 2, the DC-DC converter is powered by a power module, and the programmable potentiometer is used as a load to be electrically connected to the DC-DC converter. Under the control of the field programmable gate array, the two parts of the programmable potentiometer, the
图3根据本公开另一示例实施方式的驱动LED的可调谐脉冲信号发生器的组成示意图。FIG. 3 is a schematic diagram of the composition of a tunable pulse signal generator for driving an LED according to another exemplary embodiment of the present disclosure.
如图3所示,驱动LED的可调谐脉冲信号发生器包括:上位机,主控CPU,以太网控制器,电源模块,现场可编程门阵列,配置模块,可编程电位器,DC-DC转换器,电平转换器。As shown in Figure 3, the tunable pulse signal generator for driving LED includes: host computer, main control CPU, Ethernet controller, power supply module, field programmable gate array, configuration module, programmable potentiometer, DC-DC conversion , level shifter.
上位机,可采用例如PC机,提供人机交互界面,可进行程序的编制和修改,本实施例采用PC机,本领域技术人员还可以想到采用其它装置同样能够实现上述功能,例如平板电脑等,本公开不以此为限。The host computer, such as a PC, can be used to provide a human-computer interaction interface, and the program can be compiled and modified. In this embodiment, a PC is used, and those skilled in the art can also imagine that other devices can also be used to achieve the above functions, such as tablet computers, etc. , the present disclosure is not limited thereto.
以太网控制器用于连接上位机与主控CPU,实现上位机与主控CPU的数据传输,还可以采用其它数据传输方式,例如可通过USB接口连接,WIFI连接,蓝牙传输等,本公开不以此为限。以太网控制器,例如,可采用TI公司的DP83848型号以太网物理层驱动芯片,支持100M/10M自适应,通过MII/RMII接口和主控CPU进行连接。The Ethernet controller is used to connect the host computer and the main control CPU to realize data transmission between the host computer and the main control CPU. Other data transmission methods can also be used, such as connection through a USB interface, WIFI connection, Bluetooth transmission, etc. This is limited. The Ethernet controller, for example, can use TI's DP83848 Ethernet physical layer driver chip, which supports 100M/10M self-adaptation, and is connected to the main control CPU through the MII/RMII interface.
主控CPU通过以太网控制器接收上位机发送的数据,例如,可采用ST公司的STM32F107芯片,该芯片以cortex-m3为核心,最大工作频率为72MHz,具有非常丰富的外设接口,可以通过MII/RMII物理层接口连接百兆以太网物理层芯片。主控CPU对接收的数据进行解析,将电平幅度、占空比、周期转换成对应参数,可编程电位器两部分电阻阻值R1和R2,高电平时间T1,低电平时间T2。其中R1为2bytes数据,R2为2bytes数据,T1为4bytes数据,T2为4bytes数据,所有数据一共为12bytes。每次发送数据之前,主控CPU会同步的拉低IO管脚,作为写数据帧标识,当IO管脚为低的时候,表示一个数据帧开始,IO管脚为高的时候,表示该数据帧结束。The main control CPU receives the data sent by the host computer through the Ethernet controller. For example, the STM32F107 chip of ST company can be used. The chip takes cortex-m3 as the core and has a maximum operating frequency of 72MHz. The MII/RMII physical layer interface is connected to the 100M Ethernet physical layer chip. The main control CPU parses the received data, converts the level amplitude, duty cycle, and period into corresponding parameters. The two parts of the programmable potentiometer have resistance values R1 and R2, high-level time T1, and low-level time T2. Among them, R1 is 2bytes data, R2 is 2bytes data, T1 is 4bytes data, T2 is 4bytes data, all data is 12bytes in total. Before sending data each time, the main control CPU will pull down the IO pin synchronously as the write data frame identifier. When the IO pin is low, it means that a data frame starts, and when the IO pin is high, it means the data Frame ends.
现场可编程门阵列作为信号发生器的核心部件,可产生占空比、周期可调的脉冲信号,同时产生控制指令控制可编程电位器。主控CPU通过UART异步串口接口与现场可编程门阵列交互,现场可编程门阵列在收到主控CPU数据帧之后,对数据帧进行解析,分别把主控CPU传输的R1、R2、T1、T2等值送入相应的寄存器。同时启动转发部分逻辑,将R1、R2通过SPI接口写入可编程电位器,将T1、T2写入现场可编程门阵列内部寄存器。As the core component of the signal generator, the field programmable gate array can generate pulse signals with adjustable duty cycle and period, and at the same time generate control instructions to control the programmable potentiometer. The main control CPU interacts with the field programmable gate array through the UART asynchronous serial port interface. After receiving the data frame of the main control CPU, the field programmable gate array parses the data frame, and respectively transmits the R1, R2, T1, The value of T2 is sent to the corresponding register. At the same time, start the forwarding part of the logic, write R1 and R2 into the programmable potentiometer through the SPI interface, and write T1 and T2 into the internal registers of the field programmable gate array.
DC-DC转换器用于对电源模块的电源电压进行转换。可编程电位器作为负载与DC-DC转换器电性连接,在现场可编程门阵列的控制下,更改R1和R2的数值。可编程电位器一般由数字控制电路、存储器和RDAC电路组成。RDAC电路是数字电位的重要组成部分,它是一种特殊的数/模转换电路,与一般的数/模电路不同的是转换后的模拟量不是电压值而是电阻值,不同型号的可编程电位器其数字控制电路的结构形式不同,但主要功能都是将输入的控制信号进行处理后控制RDAC,非易失性存储器用来存储控制信号和电位器的抽头位置。DC-DC转换器与可编程电位器形成了一个可编程控制的高精度输出电压源,其输出电压由作为反馈电阻R2的阻值决定。输出端电压的计算公式为:1.2*R1/(R1+R2),该输出端的输出能力为200mA,可以驱动电平转换器。可编程电位器为10位可编程,所以输出电平的分辨率为3.6/2^10,电阻误差为1‰,电阻值范围为0~20K,可以控制输出电压的范围为1.2V~3.6V。The DC-DC converter is used to convert the power supply voltage of the power module. The programmable potentiometer is electrically connected with the DC-DC converter as a load, and the values of R1 and R2 are changed under the control of the field programmable gate array. Programmable potentiometers are generally composed of digital control circuits, memory and RDAC circuits. The RDAC circuit is an important part of the digital potential. It is a special digital/analog conversion circuit. Different from the general digital/analog circuit, the converted analog quantity is not a voltage value but a resistance value. Different types of programmable The digital control circuit of the potentiometer has different structures, but the main function is to control the RDAC after processing the input control signal, and the non-volatile memory is used to store the control signal and the tap position of the potentiometer. The DC-DC converter and the programmable potentiometer form a programmable controllable high-precision output voltage source, the output voltage of which is determined by the resistance value of the feedback resistor R2. The calculation formula of the output terminal voltage is: 1.2*R1/(R1+R2). The output terminal has an output capacity of 200mA and can drive a level shifter. The programmable potentiometer is 10-bit programmable, so the resolution of the output level is 3.6/2^10, the resistance error is 1‰, the resistance value range is 0~20K, and the output voltage range that can be controlled is 1.2V~3.6V .
电平转换器用于对现场可编程门阵列输出的脉冲信号进行电平转换,其由DC-DC转换器与可编程电位器组成的可编程高精度电压源供电,电平转换器依据DC-DC转换器输出的可调电压对脉冲信号的电平进行调节。电平转换器作为输出端的转换器,可以在不引起信号畸变的情况下对信号电平进行变化。该电平转换器支持的最大数字频率为500M以上。The level shifter is used to level shift the pulse signal output by the field programmable gate array. It is powered by a programmable high-precision voltage source composed of a DC-DC converter and a programmable potentiometer. The level shifter is based on DC-DC. The adjustable voltage output by the converter adjusts the level of the pulse signal. The level shifter acts as a converter at the output end, which can change the signal level without causing signal distortion. The maximum digital frequency supported by this level shifter is above 500M.
配置模块用于管理配置数据。The configuration module is used to manage configuration data.
本公开的驱动LED的可调谐脉冲信号发生器,基于现场可编程门阵列,实现占空比、周期可调的脉冲输出,通过电平转换器、DC-DC转换器与可编程电位器组成的高精度输出电压源实现输出幅度变换,最终实现了参数精确可调的脉冲信号发生器。通过主控CPU与上位机的交互,可方便地对信号发生器的输出进行调节。The tunable pulse signal generator for driving an LED of the present disclosure is based on a field programmable gate array, and realizes pulse output with adjustable duty cycle and period, and is composed of a level converter, a DC-DC converter and a programmable potentiometer. The high-precision output voltage source realizes the output amplitude transformation, and finally realizes the pulse signal generator with precisely adjustable parameters. Through the interaction between the main control CPU and the host computer, the output of the signal generator can be easily adjusted.
应清楚地理解,本发明描述了如何形成和使用特定示例,但本发明的原理不限于这些示例的任何细节。相反,基于本发明公开的内容的教导,这些原理能够应用于许多其它实施方式。It should be clearly understood that this disclosure describes how to make and use specific examples and that the principles of this disclosure are not limited to any details of these examples. Rather, these principles can be applied to many other implementations based on the teachings of this disclosure.
图4根据本公开示例实施方式的主控CPU嵌入式程序框架图。FIG. 4 is a frame diagram of an embedded program of the main control CPU according to an example embodiment of the present disclosure.
如图4所示,主控CPU中的嵌入式程序主要实现了TCP/IP协议栈,通过TCP/IP协议接收上位机发送过来的数据,并在应用层对数据进行处理转发等。嵌入式程序代码结构在基于rt-thread操作系统框架下实现了以太网芯片驱动的移植和应用层程序,并通过UART驱动实现应用层数据的传输。As shown in Figure 4, the embedded program in the main control CPU mainly implements the TCP/IP protocol stack, receives the data sent by the upper computer through the TCP/IP protocol, and processes and forwards the data at the application layer. The embedded program code structure realizes the porting of the Ethernet chip driver and the application layer program under the framework of the rt-thread operating system, and realizes the data transmission of the application layer through the UART driver.
图5根据本公开示例实施方式的主控CPU嵌入式程序的流程图。5 is a flowchart of a host CPU embedded program according to an example embodiment of the present disclosure.
如图5所示,主控CPU通过以太网控制器接收到数据之后,首先对数据包的完整性进行检测。然后对占空比、电平等数据进行转换,转换为现场可编程门阵列中相应寄存器的值。相应寄存器的值包括:高电平时间,低电平时间,可编程电位器阻值。CPU通过UART异步串口接口写入现场可编程门阵列相应寄存器的值实现对现场可编程门阵列的控制。As shown in Figure 5, after the main control CPU receives the data through the Ethernet controller, it first checks the integrity of the data packet. Then the data such as duty ratio and level are converted to the value of the corresponding register in the field programmable gate array. The values of the corresponding registers include: high-level time, low-level time, and programmable potentiometer resistance. The CPU writes the value of the corresponding register of the field programmable gate array through the UART asynchronous serial port interface to realize the control of the field programmable gate array.
现场可编程门阵列逻辑主要包括数据包接收,数据包分发等。现场可编程门阵列通过UART异步串口接收主控CPU传输的数据值,并对其完整性进行校验,而后写入相应寄存器。其中高电平时间和低电平时间寄存器在现场可编程门阵列内部经过处理,对现场可编程门阵列内部锁相环输出时钟相位进行调整,根据不同相位产生的脉冲信号通过与逻辑之后形成输出波形。其中,可编程电位器阻值寄存器值通过SPI接口送入可编程电位器中,用来控制高精度输出电压源的反馈端电压,进而控制高精度输出电压源的输出端电平。延时寄存器中的值放入计数器中,用来控制输入输出信号之间的延时。由此,在现场可编程门阵列中就完成了对脉冲信号的周期,占空比,输出电平的配置。Field programmable gate array logic mainly includes data packet reception, data packet distribution and so on. The field programmable gate array receives the data value transmitted by the main control CPU through the UART asynchronous serial port, checks its integrity, and then writes the corresponding register. The high-level time and low-level time registers are processed inside the field programmable gate array to adjust the phase of the output clock of the phase-locked loop inside the field programmable gate array, and the pulse signals generated according to different phases are combined with logic to form an output waveform. Among them, the programmable potentiometer resistance value register value is sent into the programmable potentiometer through the SPI interface, which is used to control the feedback terminal voltage of the high-precision output voltage source, and then control the output terminal level of the high-precision output voltage source. The value in the delay register is put into the counter to control the delay between the input and output signals. Thus, the configuration of the period, duty cycle and output level of the pulse signal is completed in the field programmable gate array.
图6根据本公开示例实施方式的信号发生器与RIGOO DG5352信号源输出波形对比图。FIG. 6 is a comparison diagram of output waveforms of a signal generator and a RIGOO DG5352 signal source according to an exemplary embodiment of the present disclosure.
如图6所示,RIGOO DG5352为RIGOO公司生产的信号源,最大输出模拟带宽为350MHz,输出采样率为1GSPS。测试用示波器型号为RIGOO DS6104示波器,该示波器的带宽为1G,采样率为5Gsps,配合使用1.5G模拟带宽探头。从测试结果对比表(见表1)中可以看出输出波形特性的对比。As shown in Figure 6, RIGOO DG5352 is a signal source produced by RIGOO Company, the maximum output analog bandwidth is 350MHz, and the output sampling rate is 1GSPS. The test oscilloscope model is RIGOO DS6104 oscilloscope, the bandwidth of this oscilloscope is 1G, the sampling rate is 5Gsps, and the 1.5G analog bandwidth probe is used together. The comparison of output waveform characteristics can be seen from the test result comparison table (see Table 1).
表1.测试结果对比表Table 1. Comparison table of test results
图7根据本公开示例实施方式的驱动LED的可调谐脉冲信号发生器用于单光电子谱测试结果图。FIG. 7 is a graph of the results of a single photoelectron spectrum test using a tunable pulse signal generator for driving an LED according to an example embodiment of the present disclosure.
如图7所示,在一款光电倍增管单光电子谱测试试验中,采用RIGOODG5352信号源测试数据与本公开信号发生器测试数据的对比(见表2),可以看出本公开的信号发生器,可以完全满足单光电子谱的测试要求。As shown in FIG. 7 , in a photomultiplier tube single photoelectron spectrum test test, the test data of the RIGOODG5352 signal source and the test data of the signal generator of the present disclosure are compared (see Table 2), it can be seen that the signal generator of the present disclosure , which can fully meet the test requirements of single photoelectron spectroscopy.
表2光电倍增管单光电子谱测试结果对比Table 2 Comparison of test results of photomultiplier tube single photoelectron spectrum
以上具体地示出和描述了本公开的示例性实施方式。应可理解的是,本发明不限于这里描述的详细结构、设置方式或实现方法;相反,本发明意图涵盖包含在所附权利要求的精神和范围内的各种修改和等效设置。Exemplary embodiments of the present disclosure have been specifically shown and described above. It should be understood that the invention is not limited to the details of construction, arrangements, or implementations described herein; on the contrary, the invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510997573.0A CN106919101B (en) | 2015-12-25 | 2015-12-25 | Tunable pulse signal generator for driving LED |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510997573.0A CN106919101B (en) | 2015-12-25 | 2015-12-25 | Tunable pulse signal generator for driving LED |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106919101A CN106919101A (en) | 2017-07-04 |
CN106919101B true CN106919101B (en) | 2020-06-12 |
Family
ID=59456327
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510997573.0A Active CN106919101B (en) | 2015-12-25 | 2015-12-25 | Tunable pulse signal generator for driving LED |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106919101B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101241164A (en) * | 2008-01-25 | 2008-08-13 | 东南大学 | Multifunctional Cable Fault Tester |
CN201130865Y (en) * | 2007-12-11 | 2008-10-08 | 中南林业科技大学 | A pulse generating device for an intelligent battery test charger |
CN102595721A (en) * | 2012-02-03 | 2012-07-18 | 中国人民解放军总装备部军械技术研究所 | High-precision intelligent integrated driving power supply for semiconductor light-emitting device |
CN103956932A (en) * | 2014-04-02 | 2014-07-30 | 上海大学 | High-voltage pulse power supply for time-of-flight mass spectrometer |
CN204287877U (en) * | 2014-11-25 | 2015-04-22 | 河南安彩高科股份有限公司 | A kind of PLC debugging instrument with dipole inversion function |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103645665B (en) * | 2013-12-24 | 2016-06-08 | 南京富士通南大软件技术有限公司 | A kind of programmable signal generator and signal generating method thereof |
-
2015
- 2015-12-25 CN CN201510997573.0A patent/CN106919101B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201130865Y (en) * | 2007-12-11 | 2008-10-08 | 中南林业科技大学 | A pulse generating device for an intelligent battery test charger |
CN101241164A (en) * | 2008-01-25 | 2008-08-13 | 东南大学 | Multifunctional Cable Fault Tester |
CN102595721A (en) * | 2012-02-03 | 2012-07-18 | 中国人民解放军总装备部军械技术研究所 | High-precision intelligent integrated driving power supply for semiconductor light-emitting device |
CN103956932A (en) * | 2014-04-02 | 2014-07-30 | 上海大学 | High-voltage pulse power supply for time-of-flight mass spectrometer |
CN204287877U (en) * | 2014-11-25 | 2015-04-22 | 河南安彩高科股份有限公司 | A kind of PLC debugging instrument with dipole inversion function |
Also Published As
Publication number | Publication date |
---|---|
CN106919101A (en) | 2017-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104135253A (en) | Circuit structure of narrow-pulse-width high-repetition-frequency pulse current source | |
CN101789860A (en) | Chaos Signal Generator | |
CN106921368B (en) | Tunable pulse signal generator for array output | |
CN102196621B (en) | LED dimming circuit | |
CN104375163A (en) | Multichannel pulse amplitude analyzer | |
CN107356818B (en) | Duty ratio detection method and circuit, driving circuit and mobile terminal | |
CN103199813A (en) | Negative feedback idea-based memristor resistance value state control circuit | |
CN101394183B (en) | A/D direct computing conversion, A/D cascade converter and use thereof | |
CN102109875B (en) | Signal generator with pulse signal generation function, and method for generating pulse signal | |
CN106919101B (en) | Tunable pulse signal generator for driving LED | |
CN102684495B (en) | Digital power supply control circuit, control method and digital power supply using circuit and method | |
CN109239765B (en) | Nuclear-like pulse generation device and method | |
CN108241129B (en) | Device and method for monitoring output filter capacitor of switching power supply | |
CN104375162A (en) | Multi-channel pulse amplitude analyzer for loaded signal conditioning circuit | |
CN204479965U (en) | A kind of power invariability system of laser instrument | |
CN104753512A (en) | High-speed switch modulating system used for counting photomultiplier | |
CN102111129B (en) | There is the signal generator of output noise semiotic function and the method for output noise signal | |
CN105281715A (en) | Power-frequency synchronization depth storage ns-grade pulse multi-parameter generation system | |
JP2017085744A (en) | Reference voltage generating circuit and switching power supply device | |
CN102317798B (en) | Resistance detection device and method | |
CN205142160U (en) | Synchronous degree of depth storage ns level pulse many reference amounts generator of power frequency | |
CN104198779B (en) | Probe short-circuit signal detection device and signal generating method thereof | |
CN108872967A (en) | Laser radar narrow-pulse generation circuit and method | |
CN103532500A (en) | Wide input range capacitor-comparer type time amplification method and amplifier | |
CN103929160B (en) | Measuring instrument with clock driver circuit |
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 |