CN102684625B - Signal amplifying system and signal amplifying method - Google Patents
Signal amplifying system and signal amplifying method Download PDFInfo
- Publication number
- CN102684625B CN102684625B CN201210183028.4A CN201210183028A CN102684625B CN 102684625 B CN102684625 B CN 102684625B CN 201210183028 A CN201210183028 A CN 201210183028A CN 102684625 B CN102684625 B CN 102684625B
- Authority
- CN
- China
- Prior art keywords
- amplification
- control
- signal
- amplification control
- synchronous
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000003199 nucleic acid amplification method Methods 0.000 claims abstract description 249
- 230000003321 amplification Effects 0.000 claims abstract description 247
- 230000001360 synchronised effect Effects 0.000 claims description 106
- 238000004458 analytical method Methods 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 4
- 230000008054 signal transmission Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
Landscapes
- Amplifiers (AREA)
Abstract
本发明涉及信号放大技术领域,提出一种信号放大系统及其放大方法。信号放大系统包括:复杂可编程逻辑器件CPLD,用于发送放大控制指令;分段放大电路,用于接收待放大信号和所述CPLD所发送的放大控制指令,并根据所述放大控制指令将所述待放大信号分段放大相应的倍数。信号放大方法,通过CPLD发送放大控制指令;通过分段放大电路接收并解析所述放大控制指令,并根据解析后的放大控制指令将待放大信号放大到相应的倍数。本发明用CPLD对整个分段放大电路进行控制,由于CPLD是逻辑器件,其控制数据都是预先设置好的,运行速度比单片机用程序控制的运行速度快,提高了信号放大的效率。
The invention relates to the technical field of signal amplification, and provides a signal amplification system and an amplification method thereof. The signal amplification system includes: a complex programmable logic device CPLD, which is used to send amplification control instructions; a segmented amplification circuit, which is used to receive the signal to be amplified and the amplification control instructions sent by the CPLD, and convert the amplification control instructions according to the amplification control instructions. Describe the corresponding multiplier for segmental amplification of the signal to be amplified. In the signal amplification method, the amplification control instruction is sent through the CPLD; the amplification control instruction is received and analyzed through the segmented amplification circuit, and the signal to be amplified is amplified to a corresponding multiple according to the analyzed amplification control instruction. The present invention uses CPLD to control the entire segmented amplifying circuit. Because CPLD is a logic device, its control data is pre-set, and its operating speed is faster than that controlled by a single-chip microcomputer, thereby improving the efficiency of signal amplification.
Description
技术领域 technical field
本发明涉及信号放大技术领域,尤其是涉及一种信号放大系统及其放大方法。The invention relates to the technical field of signal amplification, in particular to a signal amplification system and an amplification method thereof.
背景技术 Background technique
目前,信号放大一般都是采用单片机程控放大器。在这种放大器中,通过单片机中安装的程序控制信号放大的步骤。At present, signal amplification generally adopts a single-chip microcomputer program-controlled amplifier. In this amplifier, the steps of signal amplification are controlled by a program installed in a microcontroller.
然而,由于所有的控制进程均要在单片机上运行,耗费较多的时间,因此,每一个放大周期均会耗费较多的时间,造成了信号放大效率低的缺点。However, since all control processes must be run on the single-chip microcomputer, it takes a lot of time. Therefore, each amplification cycle will take a lot of time, resulting in the disadvantage of low signal amplification efficiency.
发明内容 Contents of the invention
本发明提出了一种信号放大系统及其方法,能够提高信号放大的效率。The invention provides a signal amplification system and a method thereof, which can improve the efficiency of signal amplification.
为了达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, the technical solution of the present invention is achieved in that:
信号放大系统,包括:Signal amplification system, including:
复杂可编程逻辑器件CPLD,用于发送放大控制指令;Complex programmable logic device CPLD, used to send amplification control instructions;
分段放大电路,用于接收待放大信号和所述CPLD所发送的放大控制指令,并根据所述放大控制指令将所述待放大信号分段放大相应的倍数。The segmental amplification circuit is used to receive the signal to be amplified and the amplification control instruction sent by the CPLD, and amplify the signal to be amplified by a corresponding multiple according to the amplification control instruction.
进一步的,所述CPLD包括:Further, the CPLD includes:
放大控制计数器:用于根据时间计数,每隔预设时间,计数加1;在放大控制输出模块输出放大控制指令后初始化;Amplification control counter: used for counting according to time, every preset time, the count is increased by 1; it is initialized after the amplification control output module outputs the amplification control command;
多个放大控制寄存器:用于保存预设的放大控制时间段信息;所述多个放大控制寄存器之间依次连接;A plurality of amplification control registers: used to save preset amplification control time period information; the plurality of amplification control registers are sequentially connected;
放大控制输出模块:用于在放大控制计数器计数值变化时将所述放大控制计数器当前的计数值与所述放大控制寄存器中保存的放大控制时间段信息进行比较;Amplification control output module: used to compare the current count value of the amplification control counter with the amplification control time period information stored in the amplification control register when the count value of the amplification control counter changes;
其中,所述比较是按照所述多个放大控制寄存器之间的连接顺序,先将所述放大控制计数器当前的计数值与第一个放大控制寄存器中保存的放大控制时间段信息进行比较,若相同则输出相应的放大控制指令,否则等待放大控制计数器数值变化后再次比较,直到相同为止;Wherein, the comparison is to compare the current count value of the amplification control counter with the amplification control time period information stored in the first amplification control register according to the connection sequence between the plurality of amplification control registers, if If they are the same, output the corresponding amplification control command, otherwise wait for the value of the amplification control counter to change and then compare again until they are the same;
输出放大控制指令后,将所述放大控制计数器当前的计数值继续与下一个放大控制寄存器中保存的放大控制时间段信息进行比较,直到所有放大控制寄存器中保存的放大控制时间段信息均被比较。After the amplification control command is output, the current count value of the amplification control counter is continuously compared with the amplification control time period information stored in the next amplification control register until all the amplification control time period information stored in all amplification control registers are compared .
进一步的,所述分段放大电路包括:Further, the segmented amplification circuit includes:
模拟多路复用器:用于接收并解析所述放大控制指令,选通电阻;An analog multiplexer: used to receive and analyze the amplification control command and gate resistor;
电阻:连接于所述模拟多路复用器和程控放大器之间,用于根据所述模拟多路复用器选通电阻的操作,实现不同的阻值,确定所述放大控制指令的放大倍数;Resistor: connected between the analog multiplexer and the program-controlled amplifier, used to realize different resistance values according to the operation of the gate resistor of the analog multiplexer, and determine the amplification factor of the amplification control command ;
程控放大器:用于根据解析后,且确定放大倍数的放大控制指令将待放大信号放大。Program-controlled amplifier: used to amplify the signal to be amplified according to the amplified control command after analysis and to determine the magnification factor.
优选的,所述信号放大系统还包括有:Preferably, the signal amplification system also includes:
信号发射机,用于根据CPLD发送的同步控制指令,发射待放大信号;The signal transmitter is used to transmit the signal to be amplified according to the synchronous control command sent by the CPLD;
所述CPLD进一步包括:Described CPLD further comprises:
发射控制模块,用于向所述信号发射机发送所述同步控制指令。A transmission control module, configured to send the synchronization control instruction to the signal transmitter.
进一步的所述发射控制模块包括:Further described emission control modules include:
同步控制计数器:用于根据时间计数,所述同步控制计数器与所述放大控制计数器同步计数,且在同步控制输出模块输出同步控制指令后初始化;Synchronous control counter: used for counting according to time, the synchronous control counter counts synchronously with the amplification control counter, and is initialized after the synchronous control output module outputs the synchronous control command;
同步控制寄存器:用于保存预设的同步控制时间段信息;Synchronous control register: used to save the preset synchronous control time period information;
同步控制输出模块:包含多个输出通道,用于根据同步控制计数器计数值和所述同步控制寄存器保存的同步控制时间段信息输出同步控制指令;Synchronous control output module: including a plurality of output channels, used to output synchronous control instructions according to the synchronous control counter count value and the synchronous control time period information saved by the synchronous control register;
其中,所述同步控制输出模块选通其包含有多个输出通道中的一个输出高电平信号,在同步控制计数器计数值变化时将所述同步控制计数器当前的计数值与所述同步控制寄存器中保存的放大控制时间段信息进行比较;当所述同步控制计数器的计数值与所述同步控制寄存器中保存的同步控制时间段信息相同时,输出低电平信号作为所述同步控制指令;在此过程中,所述同步控制输出模块上未选通的输出通道均输出低电平信号;所述多个输出通道轮替使用。Wherein, the synchronous control output module selects one of the multiple output channels to output a high-level signal, and compares the current count value of the synchronous control counter with the synchronous control register when the synchronous control counter count value changes. The amplification control period information saved in is compared; when the count value of the synchronous control counter is the same as the synchronous control period information preserved in the synchronous control register, output a low level signal as the synchronous control instruction; During this process, the unselected output channels on the synchronous control output module all output low-level signals; the multiple output channels are used in turn.
优选的,所述信号放大系统还包括:Preferably, the signal amplification system also includes:
上位机,用于向所述CPLD发送设置数据,对所述CPLD进行设置;通过向CPLD发送使能控制信号,启动CPLD进行工作;The host computer is used to send setting data to the CPLD to set the CPLD; to start the CPLD to work by sending an enabling control signal to the CPLD;
模数转换器:用于接收所述分段放大电路所输出的已放大信号,并将该已放大信号转换为数字信号,传入所述上位机。Analog-to-digital converter: used to receive the amplified signal output by the segmented amplification circuit, convert the amplified signal into a digital signal, and transmit it to the upper computer.
信号放大方法,包括步骤:Signal amplification method, comprising steps:
通过CPLD发送放大控制指令;Send amplification control instructions through CPLD;
通过分段放大电路接收并解析所述放大控制指令,并根据解析后的放大控制指令将待放大信号分段放大到相应的倍数。The amplifying control instruction is received and analyzed by a segmented amplification circuit, and the signal to be amplified is amplified in segments to corresponding multiples according to the amplified control instruction after analysis.
所述通过CPLD发送放大控制指令具体为:The described sending amplification control instruction by CPLD is specifically:
对放大控制寄存器进行放大控制时间段信息进行预设;Preset the amplification control time period information of the amplification control register;
将放大控制计数器初始化;Initialize the amplification control counter;
使放大控制计数器根据时间计数,每隔预设时间,计数加1;Make the amplification control counter count according to the time, and add 1 to the count every preset time;
令所述放大控制计数器当前的计数值与所述第一个放大控制寄存器中保存的放大控制时间段信息进行比较;comparing the current count value of the amplification control counter with the amplification control time period information stored in the first amplification control register;
若不同则等待放大控制计数器数值变化后再次比较,直到相同为止;If they are different, wait for the value of the amplification control counter to change and compare again until they are the same;
若相同则输出相应的放大控制指令,并将放大控制计数器初始化;If they are the same, the corresponding amplification control command is output, and the amplification control counter is initialized;
将所述放大控制计数器当前的计数值继续与下一个放大控制寄存器中保存的放大控制时间段信息进行比较,直到所有放大控制寄存器中保存的放大控制时间段信息均被比较;Continuing to compare the current count value of the amplification control counter with the amplification control time period information stored in the next amplification control register until all the amplification control time period information stored in all the amplification control registers are compared;
其中,所述比较是按照所述多个放大控制寄存器之间的连接顺序。Wherein, the comparison is according to the connection sequence among the multiple amplification control registers.
当信号放大系统包括信号发射机时,该方法进一步包括:When the signal amplification system includes a signal transmitter, the method further includes:
通过所述CPLD发送同步控制指令到信号发射机,具体为:Send synchronous control instructions to the signal transmitter through the CPLD, specifically:
对同步控制寄存器进行同步控制时间段信息进行预设;Preset the synchronous control period information of the synchronous control register;
将同步控制计数器初始化;Initialize the synchronous control counter;
使得所述同步控制计数器与放大控制计数器同步计数;making the synchronous control counter count synchronously with the amplification control counter;
从同步控制输出模块选通其包含有多个输出通道中的一个输出高电平信号,在同步控制计数器计数值变化时将所述同步控制计数器当前的计数值与所述同步控制寄存器中保存的放大控制时间段信息进行比较;From the synchronous control output module, it includes a high-level output signal in a plurality of output channels, and when the synchronous control counter count value changes, the current count value of the synchronous control counter is compared with the value saved in the synchronous control register. Zoom in on the control time period information for comparison;
若不同则等待同步控制计数器数值变化后再次比较,直到相同为止;If they are different, wait for the value of the synchronous control counter to change and compare again until they are the same;
若相同通过所述输出通道输出低电平信号作为同步控制指令;If the same, output a low-level signal through the output channel as a synchronous control instruction;
将同步控制计数器初始化并更换输出通道重复上述过程;Initialize the synchronous control counter and replace the output channel to repeat the above process;
其中,在此过程中,所述同步控制输出模块上未选通的输出通道均输出低电平信号;所述多个输出通道轮替使用。Wherein, during this process, the ungated output channels on the synchronous control output module all output low-level signals; the multiple output channels are used in turn.
在所述CPLD发送放大控制指令和同步控制指令前,还包括:Before the CPLD sends the amplification control command and the synchronous control command, it also includes:
通过上位机对所述CPLD进行数据设置;Carry out data setting to described CPLD by upper computer;
上位机向所述CPLD发送使能控制指令,启动CPLD进行工作;The host computer sends an enable control command to the CPLD, and starts the CPLD to work;
在所述分段放大电路将待放大信号放大后,还包括:After the segmental amplification circuit amplifies the signal to be amplified, it also includes:
模数转换器将所述放大后的信号转换为数字信号,并传入所述上位机。。The analog-to-digital converter converts the amplified signal into a digital signal and transmits it to the upper computer. .
本发明所提出的信号放大系统及其方法,具有以下优点:The signal amplification system and method thereof proposed by the present invention have the following advantages:
1、放大效率高。CPLD的各具体参数均通过上位机提前设定,在放大的过程中,所有信号放大的控制,均是通过CPLD来完成的,CPLD是逻辑器件,可以在很短的时间内输出信号,较之现有技术中单片机控制时程序的运行使用时间更短,从而提高了放大的效率。1. High amplification efficiency. The specific parameters of the CPLD are set in advance through the host computer. During the amplification process, all signal amplification control is completed through the CPLD. The CPLD is a logic device that can output signals in a short time. Compared with In the prior art, when the single-chip microcomputer is controlled, the running time of the program is shorter, thereby improving the amplification efficiency.
2、更具有实时性。由于CPLD是将放大倍数控制指令和信号发射指令两组控制信息同时发到分段放大电路和信号发射机,当信号发射机接收到信号发射指令后,会将待放大的信号发送给分段放大电路,经由分段放大电路进行放大,两组控制信息保证了信号发送和放大的时间同步,更具有实时性。2. It is more real-time. Since the CPLD sends the two sets of control information of the magnification control command and the signal transmission command to the segmental amplification circuit and the signal transmitter at the same time, when the signal transmitter receives the signal transmission command, it will send the signal to be amplified to the segmental amplification The circuit is amplified through a segmented amplification circuit, and two sets of control information ensure the time synchronization of signal transmission and amplification, which is more real-time.
附图说明 Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一个简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明一个实施例所提出的信号放大系统的结构图;Fig. 1 is the structural diagram of the signal amplification system that an embodiment of the present invention proposes;
图2是本发明实施例中所提出的CPLD和分段放大电路的具体结构图;Fig. 2 is the specific structural diagram of CPLD proposed in the embodiment of the present invention and segmental amplification circuit;
图3是本发明另一个实施例所提出的发射控制模块和信号发射机的结构图Fig. 3 is the structural diagram of the emission control module and signal transmitter proposed by another embodiment of the present invention
图4是本发明另一个实施例所提出的信号放大系统的结构图;Fig. 4 is a structural diagram of a signal amplification system proposed by another embodiment of the present invention;
图5是本发明实施例所提出一个的信号放大方法的流程图;FIG. 5 is a flowchart of a signal amplification method proposed by an embodiment of the present invention;
图6是本发明实施例中所提出的CPLD发送放大控制指令的流程图;Fig. 6 is the flow chart that CPLD proposed in the embodiment of the present invention sends the amplification control order;
图7是本发明另一个实施例所提出的CPLD发送同步控制指令的流程图;Fig. 7 is the flowchart that the CPLD that another embodiment of the present invention proposes sends synchronous control instruction;
图8是本发明另一个实施例所提出的信号放大方法的流程图。Fig. 8 is a flowchart of a signal amplification method proposed by another embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
参见图1,本发明提供的信号放大系统,包括:Referring to Fig. 1, the signal amplification system provided by the present invention includes:
复杂可编程逻辑器件CPLD1及分段放大电路2;Complex programmable logic device CPLD1 and segmented amplifier circuit 2;
其中,CPLD1用于发送放大控制指令;分段放大电路2用于接收待放大信号和所述CPLD1所发送的放大控制指令,并根据所述放大控制指令将所述待放大信号分段放大相应的倍数。Wherein, CPLD1 is used for sending amplification control instruction; segmental amplification circuit 2 is used for receiving the signal to be amplified and the amplification control instruction sent by the CPLD1, and amplifies the signal to be amplified in sections according to the amplification control instruction. multiple.
上述实施例所提出的信号放大系统,放大控制指令由CPLD1进行控制,既控制了分段放大电路2的放大倍数,且该放大控制指令是由CPLD1中预先设置的信息实时产生,且由于CPLD1是逻辑器件,在产生放大控制指令的时候所用时间少。而现有技术中,使用单片机控制的时候,单片机要同时完成多个不同的控制命令,会将控制命令的进程分为多个线程,在某一时间段,只完成某一个进程的某一线程,而多个进程的线程,交替完成,所完成的控制指令越多,耗费时间越久。因此,本发明提出的信号放大系统,信号放大的效率更高。In the signal amplification system proposed in the foregoing embodiments, the amplification control command is controlled by CPLD1, which has both controlled the amplification factor of the segmented amplification circuit 2, and the amplification control command is generated in real time by information preset in CPLD1, and because CPLD1 is The logic device takes less time to generate the amplification control command. In the prior art, when using a single-chip microcomputer to control, the single-chip microcomputer will complete a plurality of different control commands at the same time, and the process of the control command will be divided into multiple threads. In a certain period of time, only a certain thread of a certain process will be completed. , and the threads of multiple processes are completed alternately, the more control instructions are completed, the longer it takes. Therefore, the signal amplification system proposed by the present invention has higher signal amplification efficiency.
参见图2,在另一个实施例中,所述CPLD1包括:放大控制计数器3、放大控制寄存器4和放大控制输出模块5;Referring to Fig. 2, in another embodiment, described CPLD1 comprises: amplification control counter 3, amplification control register 4 and amplification control output module 5;
其中,所述放大控制计数器3用于根据时间计数,每隔预设时间,计数加1,并在放大控制输出模块5输出放大控制指令后初始化;Wherein, the amplification control counter 3 is used for counting according to time, every preset time, the count is increased by 1, and initialized after the amplification control output module 5 outputs the amplification control command;
放大控制寄存器4有多个,用于保存预设的放大控制时间段信息,且多个放大控制寄存器4之间依次连接;There are multiple amplification control registers 4, which are used to store preset amplification control time period information, and multiple amplification control registers 4 are sequentially connected;
所述放大控制输出模块5用于在放大控制计数器3计数值变化时将所述放大控制计数器3当前的计数值与所述放大控制寄存器4中保存的放大控制时间段信息进行比较;The amplification control output module 5 is used to compare the current count value of the amplification control counter 3 with the amplification control time period information stored in the amplification control register 4 when the count value of the amplification control counter 3 changes;
其中,所述比较是按照所述多个放大控制寄存器4之间的连接顺序,先将所述放大控制计数器3当前的计数值与第一个放大控制寄存器4中保存的放大控制时间段信息进行比较,若相同则输出相应的放大控制指令,否则等待放大控制计数器3数值变化后再次比较,直到相同为止;Wherein, the comparison is performed according to the connection sequence between the plurality of amplification control registers 4, and the current count value of the amplification control counter 3 is first compared with the amplification control time period information stored in the first amplification control register 4 Compare, if they are the same, output the corresponding amplification control command, otherwise wait for the value of the amplification control counter 3 to change and then compare again until they are the same;
输出放大控制指令后,将所述放大控制计数器3当前的计数值继续与下一个放大控制寄存器4中保存的放大控制时间段信息进行比较,直到所有放大控制寄存器4中保存的放大控制时间段信息均被比较。After outputting the amplification control instruction, the current count value of the amplification control counter 3 is continuously compared with the amplification control time period information preserved in the next amplification control register 4 until the amplification control time period information preserved in all the amplification control registers 4 are compared.
例如,放大控制指令为两路控制信号,分别为control0和control1;所述放大控制寄存器4有四个,分别为time1、time2、time3和time4,且time1、time2、time3和time4之间依次连接;四个放大控制寄存器4分别预设有四个不同的放大控制时间段信息。例如,分别将time1、time2、time3和time4设置为04、03、05和07,放大控制计数器3开始根据时间计数,每隔预设时间,所述放大控制计数器计数加1;当放大控制计数器4计数值与time1数值04相同时,选通control0和control1的值为00,放大控制输出模块5发送相应的电平信号到放大控制电路,初始化放大控制计数器3,开始重新计数,并将放大控制计数器3的计数值与time2中保存的数值比较,当计数器3计数值与time2数值03相同时,选通control0和control1的值为01,放大控制输出模块5发送相应的电平信号到放大控制电路,直到time1、time2、time3和time4均被比较完;发送结束信号。分段放大电路2可以根据上述四个电平信号将待放大信号分段放大到四个不同的倍数。For example, the amplification control command is two control signals, respectively control0 and control1; the amplification control register 4 has four, respectively time1, time2, time3 and time4, and time1, time2, time3 and time4 are connected in sequence; The four amplification control registers 4 are respectively preset with four different amplification control time period information. For example, time1, time2, time3 and time4 are set to 04, 03, 05 and 07 respectively, and the amplification control counter 3 starts counting according to the time, and at every preset time, the counting of the amplification control counter adds 1; when the amplification control counter 4 When the count value is the same as the time1 value 04, the value of strobe control0 and control1 is 00, the amplification control output module 5 sends the corresponding level signal to the amplification control circuit, initializes the amplification control counter 3, starts counting again, and sets the amplification control counter The count value of 3 is compared with the value saved in time2. When the count value of counter 3 is the same as the value 03 of time2, the value of gate control0 and control1 is 01, and the amplification control output module 5 sends a corresponding level signal to the amplification control circuit. Until time1, time2, time3 and time4 are all compared; send the end signal. The segmental amplification circuit 2 can segmentally amplify the signal to be amplified to four different multiples according to the above four level signals.
同理,当放大控制指令为三路控制信号,分别为control0、control1和control2时,对应的放大控制寄存器5有8个,分别为time1、time2、time3、time4、time5、time6、time7和time8,分别将time1、time2、time3、time4、time5、time6、time7和time8设置为02、05、04、05、04、05、04和06。将放大控制计数器4计数值与依次与放大控制寄存器5time1、time2、time3、time4、time5、time6、time7和time8中保存的数值相比较;此时,放大控制电路可以将待放大信号分段放大到八个不同的倍数。Similarly, when the amplification control command is three control signals, respectively control0, control1 and control2, there are 8 corresponding amplification control registers 5, which are time1, time2, time3, time4, time5, time6, time7 and time8, Set time1, time2, time3, time4, time5, time6, time7, and time8 to 02, 05, 04, 05, 04, 05, 04, and 06, respectively. The magnification control counter 4 count value is compared with the numerical value preserved in the amplification control register 5time1, time2, time3, time4, time5, time6, time7 and time8 in turn; at this moment, the amplification control circuit can amplify the signal segment to be amplified to Eight different multiples.
需要说明的是,以上time1、time2、time3、time4、time5、time6、time7和time8的中的数值并不局限于本发明实施例提供的数值,均通过实际需要预先设置。It should be noted that the above values of time1, time2, time3, time4, time5, time6, time7 and time8 are not limited to the values provided in the embodiment of the present invention, and are all preset according to actual needs.
分段放大电路2包括:模拟多路复用器6、电阻7和程控放大器8;The segmented amplification circuit 2 includes: an analog multiplexer 6, a resistor 7 and a program-controlled amplifier 8;
其中,所述模拟多路复用器6用于接收并解析放大控制指令,并选通相应的电阻7;Wherein, the analog multiplexer 6 is used to receive and analyze the amplification control instruction, and gate the corresponding resistor 7;
电阻7连接于所述模拟多路复用器6和所述程控放大器8之间,用于根据所述模拟多路复用器6选通电阻7的操作,实现不同的阻值,确定所述放大控制指令的放大倍数;Resistor 7 is connected between described analog multiplexer 6 and described programmable amplifier 8, is used for according to the operation of described analog multiplexer 6 gating resistance 7, realizes different resistance value, determines described Amplify the magnification of the control command;
程控放大器8:用于根据解析后,且确定放大倍数的放大控制指令将待放大信号放大。Programmable amplifier 8: used for amplifying the signal to be amplified according to the amplified control instruction after analysis and determining the magnification factor.
本实施例通过多个电阻7,实现了不同幅度的信号分段放大。程控放大器8增益可调,多路复用器6接收CPLD1所发送的放大控制指令,并通过对该指令的解析后,选通相应的电阻7,并通过该选通的电阻7,将解析后的放大控制指令输入到所述程控放大器8中,实现不同倍数信号的放大。所述电阻7的个数与所述放大控制寄存器4的个数相同。例如,当所述放大控制寄存器4为四个时,电阻7分别为R1、R2、R3和R4,当输入多路复用器的放大控制指令的数值分别为00、01、10和11时,分别选通与之相对应的R1、R2、R3和R4,程控放大器8将信号放大到相应的倍数。例如可以分别将分段放大电路的放大倍数分别设置为1倍、10倍100倍和1000倍,这个倍数与外接的电阻7的阻值有关,可以根据实际需要,更改电阻7的阻值,从而调节分段放大电路2不同的放大倍数。In this embodiment, multiple resistors 7 are used to realize segmental amplification of signals with different amplitudes. The gain of the program-controlled amplifier 8 is adjustable, and the multiplexer 6 receives the amplification control instruction sent by the CPLD1, and after analyzing the instruction, selects the corresponding resistor 7, and through the selected resistor 7, the analyzed The amplification control command is input into the program-controlled amplifier 8 to realize the amplification of signals with different multiples. The number of the resistors 7 is the same as the number of the amplification control registers 4 . For example, when there are four amplification control registers 4, the resistors 7 are R1, R2, R3 and R4 respectively, and when the values of the amplification control instructions input to the multiplexer are 00, 01, 10 and 11 respectively, The corresponding R1, R2, R3 and R4 are selected respectively, and the program-controlled amplifier 8 amplifies the signal to the corresponding multiple. For example, the magnification of the segmented amplification circuit can be set to 1 times, 10 times, 100 times and 1000 times respectively. This multiple is related to the resistance value of the external resistor 7. The resistance value of the resistor 7 can be changed according to actual needs, so that Different amplification factors of the sub-amplification circuit 2 are adjusted.
参见图3,在本发明中的另一个实施例中,所述信号放大系统还包括有信号发射机9;Referring to Fig. 3, in another embodiment of the present invention, the signal amplification system also includes a signal transmitter 9;
所述信号发射机9用于根据CPLD1所发送的同步控制指令,发射待放大信号;The signal transmitter 9 is used to transmit a signal to be amplified according to the synchronous control instruction sent by the CPLD1;
此时所述CPLD1进一步包括发射控制模块10:用于向所述信号发射机9发射所述同步控制指令。At this time, the CPLD1 further includes a transmission control module 10 : configured to transmit the synchronization control instruction to the signal transmitter 9 .
发射控制模块10包括:同步控制计数器11、同步控制寄存器12和同步输出模块13;The emission control module 10 includes: a synchronous control counter 11, a synchronous control register 12 and a synchronous output module 13;
其中,同步控制计数器11用于根据时间计数,所述同步控制计数器11与所述放大控制计数器3同步计数,且在同步控制输出模块13输出同步控制指令后初始化;Wherein, the synchronous control counter 11 is used for counting according to time, and the synchronous control counter 11 counts synchronously with the amplification control counter 3, and is initialized after the synchronous control output module 13 outputs a synchronous control command;
同步控制寄存器12用于保存预设的同步控制时间段信息;The synchronous control register 12 is used to save the preset synchronous control time period information;
所述同步控制输出模块13包含多个输出通道,用于根据同步控制计数器11计数值和所述同步控制寄存器12保存的同步控制时间段信息输出同步控制指令;The synchronous control output module 13 includes a plurality of output channels, which are used to output synchronous control instructions according to the synchronous control counter 11 count value and the synchronous control period information saved by the synchronous control register 12;
其中,所述同步控制输出模块13选通其包含有多个输出通道中的一个输出高电平信号,在同步控制计数器11计数值变化时将所述同步控制计数器11当前的计数值与所述同步控制寄存器12中保存的放大控制时间段信息进行比较;当所述同步控制计数器11的计数值与所述同步控制寄存器12中保存的同步控制时间段信息相同时,输出低电平信号作为所述同步控制指令;在此过程中,所述同步控制输出模块13上未选通的输出通道均输出低电平信号,且多个输出通道轮替使用。Wherein, the synchronous control output module 13 selects one of the multiple output channels to output a high-level signal, and compares the current count value of the synchronous control counter 11 with the synchronous control counter 11 when the count value changes. The amplification control period information preserved in the synchronous control register 12 compares; When the count value of the synchronous control counter 11 is identical with the synchronous control period information preserved in the synchronous control register 12, output a low level signal as the The synchronous control instruction; during this process, the output channels that are not selected on the synchronous control output module 13 all output low-level signals, and multiple output channels are used in turn.
例如,同步控制指令为两路PWM(脉宽调制)信号,分别为pwm0和pwm1,与之相对应的,所述输出通道有两个,同步控制寄存器12预设有同步控制时间段信息,同步控制计数器11开始与放大控制计数器3同步计数,选通pwm0输出高电平信号,当同步控制计数器11的计数值与同步控制寄存器12中所保存的同步控制时间段信息相同时,pwm0输出低电平信号作为同步信号;初始化同步控制计数器11;在此过程中,pwm1输出低电平信号即0。选通pwm1输出高电平信号重复上述过程。两路PWM信号轮替使用。For example, the synchronous control instruction is two PWM (pulse width modulation) signals, respectively pwm0 and pwm1, and correspondingly, there are two output channels, and the synchronous control register 12 is preset with synchronous control time period information, synchronous The control counter 11 starts counting synchronously with the amplification control counter 3, and the strobe pwm0 outputs a high level signal. When the count value of the synchronous control counter 11 is the same as the synchronous control period information stored in the synchronous control register 12, the pwm0 outputs a low power The flat signal is used as a synchronous signal; the synchronous control counter 11 is initialized; during this process, pwm1 outputs a low level signal, that is, 0. Strobe pwm1 output high level signal to repeat the above process. The two PWM signals are used alternately.
相同的,当同步控制指令的PWM(脉宽调制)信号,分别为pwm0、pwm1和pwm2时,三路PWM信号轮替使用。Similarly, when the PWM (pulse width modulation) signals of the synchronous control command are respectively pwm0, pwm1 and pwm2, the three PWM signals are used alternately.
优选的,所述模拟多路复用器12可以采用型号为ADG409的模拟多路复用器,程控放大器13可以采用型号为AD625的程控放大器。Preferably, the analog multiplexer 12 can be an analog multiplexer of model ADG409, and the program-controlled amplifier 13 can be a program-controlled amplifier of model AD625.
参见图4,在本发明的另外一个实施例中,信号放大系统还包括有:Referring to Fig. 4, in another embodiment of the present invention, the signal amplification system also includes:
上位机14,用于向所述CPLD1发送设置数据,对所述CPLD1进行设置;通过向CPLD1发送使能控制信号,启动CPLD1进行工作;The upper computer 14 is used to send setting data to the CPLD1 to set the CPLD1; to start the CPLD1 to work by sending an enabling control signal to the CPLD1;
模数转换器15:用于接收分段放大电路2所输出的已放大信号,并将该已放大信号转换为数字信号,传入所述上位机14。Analog-to-digital converter 15 : used to receive the amplified signal output by the sub-amplification circuit 2 , convert the amplified signal into a digital signal, and transmit it to the host computer 14 .
参见图5,本发明实施例还提供一种信号放大方法,包括:Referring to FIG. 5, an embodiment of the present invention also provides a signal amplification method, including:
步骤101:通过CPLD发送放大控制指令;Step 101: sending an amplification control command through the CPLD;
步骤102:通过分段放大电路接收并解析所述放大控制指令,并根据解析后的放大控制指令将待放大信号分段放大到相应的倍数。Step 102: Receive and analyze the amplification control instruction through a segmented amplification circuit, and amplify the signal to be amplified in segments to a corresponding multiple according to the analyzed amplification control instruction.
参见图6,在上述实施例中,通过CPLD发送放大控制指令具体为:Referring to Fig. 6, in the foregoing embodiment, the amplification control instruction sent by the CPLD is specifically:
步骤201:对放大控制寄存器进行放大控制时间段信息进行预设;Step 201: Presetting the amplification control period information of the amplification control register;
步骤202:将放大控制计数器初始化;Step 202: Initialize the amplification control counter;
步骤203:使放大控制计数器根据时间计数,每隔预设时间,计数加1;Step 203: Make the amplification control counter count according to the time, and add 1 to the count every preset time;
步骤204:令所述放大控制计数器当前的计数值与第一个放大控制寄存器中保存的放大控制时间段信息进行比较;Step 204: comparing the current count value of the amplification control counter with the amplification control time period information stored in the first amplification control register;
步骤205:若不同则等待放大控制计数器数值变化后再次比较,直到相同为止;Step 205: If they are different, wait for the value of the amplification control counter to change and compare again until they are the same;
步骤206:若相同则输出相应的放大控制指令,并将放大控制计数器初始化;Step 206: if they are the same, output the corresponding amplification control command, and initialize the amplification control counter;
步骤207:将所述放大控制计数器当前的计数值继续与下一个放大控制寄存器中保存的放大控制时间段信息进行比较,直到所有放大控制寄存器中保存的放大控制时间段信息均被比较。Step 207: Continue to compare the current count value of the amplification control counter with the amplification control time period information stored in the next amplification control register until all the amplification control time period information stored in the amplification control registers are compared.
在上述步骤中,所述比较是按照所述多个放大控制寄存器之间的连接顺序,至所有的放大控制寄存器中保存的放大控制时间段信息均被比较。In the above steps, the comparison is performed according to the connection sequence among the multiple amplification control registers, until the amplification control time period information stored in all the amplification control registers are compared.
参见图7,在本发明另一个实施例中,当信号放大系统包括信号发射机时,信号放大方法进一步包括:通过CPLD发送同步控制指令到信号发射机。Referring to FIG. 7 , in another embodiment of the present invention, when the signal amplification system includes a signal transmitter, the signal amplification method further includes: sending a synchronization control command to the signal transmitter through the CPLD.
通过CPLD发送同步控制指令到信号发射机具体为:Send synchronous control instructions to the signal transmitter through CPLD, specifically:
步骤301:对同步控制寄存器进行同步控制时间段信息进行预设;Step 301: Presetting the synchronous control period information of the synchronous control register;
步骤302:将同步控制计数器初始化;Step 302: Initialize the synchronous control counter;
步骤303:使得所述同步控制计数器与放大控制计数器同步计数;Step 303: making the synchronous control counter count synchronously with the amplification control counter;
步骤304:从同步控制输出模块选通其包含有多个输出通道中的一个输出高电平信号,在同步控制计数器计数值变化时将所述同步控制计数器当前的计数值与所述同步控制寄存器中保存的放大控制时间段信息进行比较;Step 304: select one of the multiple output channels from the synchronous control output module to output a high-level signal, and compare the current count value of the synchronous control counter with the synchronous control register when the synchronous control counter count value changes Compare the zoom-in control time period information saved in the
步骤305:若不同则等待同步控制计数器数值变化后再次比较,直到相同为止;Step 305: If they are different, wait for the value of the synchronous control counter to change and then compare again until they are the same;
步骤306:若相同通过所述输出通道输出低电平信号作为同步控制指令;Step 306: If they are the same, output a low-level signal through the output channel as a synchronous control instruction;
步骤307:将同步控制计数器初始化并更换输出通道重复上述过程;Step 307: Initialize the synchronous control counter and replace the output channel to repeat the above process;
在上述过程中,所述同步控制输出模块上未选通的输出通道均输出低电平信号;所述多个输出通道轮替使用;所同步控制计数器与放大控制计数器同步计数。In the above process, the ungated output channels on the synchronous control output module all output low-level signals; the multiple output channels are used in turn; the synchronous control counter and the amplification control counter count synchronously.
参见图8,在本发明另外一个实施例中,当信号放大系统还包括有上位机和模数转换器时,信号放大方法为:Referring to Fig. 8, in another embodiment of the present invention, when the signal amplification system also includes a host computer and an analog-to-digital converter, the signal amplification method is:
步骤401:通过上位机对所述CPLD进行数据设置;Step 401: Perform data setting on the CPLD through the host computer;
步骤402:通过上位机向所述CPLD发送使能控制指令,启动CPLD进行工作;Step 402: sending an enable control command to the CPLD through the host computer, and starting the CPLD to work;
步骤403:通过CPLD发送放大控制指令和同步控制指令;Step 403: sending an amplification control command and a synchronization control command through the CPLD;
步骤404:通过信号发射机接收所述同步控制指令,并发送待放大信号到分段放大电路;Step 404: Receive the synchronous control command through the signal transmitter, and send the signal to be amplified to the segmented amplifying circuit;
步骤405:通过分段放大电路接收并解析所述放大控制指令,并根据解析后的放大控制指令将待放大信号放大到相应的倍数;Step 405: receiving and analyzing the amplification control instruction through the segmented amplification circuit, and amplifying the signal to be amplified to a corresponding multiple according to the analyzed amplification control instruction;
步骤406:模数转换器将已放大信号转换为数字信号,并传入所述上位机。Step 406: The analog-to-digital converter converts the amplified signal into a digital signal, and transmits it to the host computer.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210183028.4A CN102684625B (en) | 2012-06-05 | 2012-06-05 | Signal amplifying system and signal amplifying method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210183028.4A CN102684625B (en) | 2012-06-05 | 2012-06-05 | Signal amplifying system and signal amplifying method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102684625A CN102684625A (en) | 2012-09-19 |
CN102684625B true CN102684625B (en) | 2015-02-04 |
Family
ID=46816097
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210183028.4A Expired - Fee Related CN102684625B (en) | 2012-06-05 | 2012-06-05 | Signal amplifying system and signal amplifying method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102684625B (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN86102014B (en) * | 1986-03-28 | 1988-08-31 | 中国人民解放军空军后勤部工程设计局 | Multifunctional automatic microdeformation monitor |
CN1296705C (en) * | 2003-06-11 | 2007-01-24 | 宇东科技股份有限公司 | Control Circuit of Adjustable Biosensor |
CN100535654C (en) * | 2006-07-12 | 2009-09-02 | 广东汕头超声电子股份有限公司 | Gain compensating method for flaw detector |
-
2012
- 2012-06-05 CN CN201210183028.4A patent/CN102684625B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN102684625A (en) | 2012-09-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102175269B (en) | Sensor device capable of changing sampling frequency and control method thereof | |
CN105044420B (en) | A kind of waveform searching method of digital oscilloscope | |
RU2708791C1 (en) | Error generator of one-sided nibble transmission | |
CN100362449C (en) | Fan monitoring device and monitoring method thereof | |
CN104822032B (en) | A kind of signal acquisition and automatic exposure circuit and its method based on linear CCD | |
CN107966975B (en) | Fan control panel testing system and method | |
US9003256B2 (en) | System and method for testing integrated circuits by determining the solid timing window | |
CN102684625B (en) | Signal amplifying system and signal amplifying method | |
RU2667031C1 (en) | Data collection system | |
CN111327319A (en) | Multichannel analog signal sampling method and device | |
CN100420228C (en) | Different priority CAN message sending and receiving display system and detection method | |
CN104698286A (en) | Timer-based PWM (Pulse Width Modulation) wave acquisition method | |
CN101770684A (en) | Remote control signal simulator for small satellite ground test and remote control signal analogy method | |
CN104898474B (en) | A kind of Multichannel uniform servo pulse generation method based on MCU | |
CN203798961U (en) | Testing device based on fault waveform playback | |
CN103324338B (en) | Touch device and driving method thereof | |
CN203838301U (en) | Automatic testing device for pre-amplifier | |
CN204517709U (en) | A kind of drive unit of DC brushless motor and drive system thereof | |
CN102739203A (en) | Output method and device for impulse waveform | |
CN111510133A (en) | Clock phase control circuit, clock phase control method, power amplification device and audio equipment | |
CN102213627A (en) | Torque testing system and method | |
CN201707320U (en) | Semiautomatic scanning control device applicable to complex profile eddy current detection | |
CN112787656B (en) | Sample-hold control method, device and host | |
CN115458034A (en) | Automatic test system, method, computer equipment and storage medium | |
CN204215219U (en) | A kind of laser projection hardware system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150204 Termination date: 20160605 |