A timing controller and imaging control device
Through the combined architecture of ARM communication module and FPGA module, the timing of the laser light source and image acquisition device is controlled, which solves the problem of timing inconsistency in traditional technology and achieves the accuracy of pulse output and imaging at high frequencies.
Patent Information
- Application Number
- CN202310508749.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-08
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2043-05-08
AI Technical Summary
Due to the large counting granularity of the host computer and the unavoidable communication time, the traditional synchronization timing module is prone to logic errors at high frequencies, outputs an unexpected number of pulses, or cannot perform continuous timing sweeps accurately, resulting in accurate imaging. .
Using the combined architecture of ARM communication module and FPGA module, the delay time of the second output signal is controlled by the FPGA module, which solves the problem of timing inconsistency caused by the large counting granularity and communication time of the host computer, making the imaging accurate.
It achieves the accuracy and continuity of pulse output under high-frequency timing, ensures the accuracy of imaging, reduces external trigger jitter, and improves the resolution of timing push sweep and the accuracy of delay adjustment.
Smart Images

Figure CN116506057B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of laser imaging, and in particular to a timing controller and an imaging control device. Background Art
[0002] In the field of gated imaging, after the pulsed laser emitted by the laser is reflected by the target object, it needs a pulse to turn it on synchronously when it returns to the image acquisition device, so as to capture the reflected photon information and realize the imaging of objects at a specific distance. By changing the delay, images of target objects at different distances can be captured. Figure 1 As shown, when it is necessary to shoot all objects within a specific distance range, it is necessary to shoot in a delay interval, slice the delay interval, start from the starting position of the interval, and push-scan according to a specific delay step. Each change in the delay captures a frame of image, and ultimately the image information of all targets within the distance range can be obtained.
[0003] However, the traditional synchronous timing module uses the host computer timing method to reconfigure the pulse output and the delay information of the timing push-scan. Due to the large counting granularity of the host computer and the unavoidable communication time, logical errors are prone to occur at high frequencies, outputting an unexpected number of pulses, or failing to accurately perform continuous timing push-scanning, resulting in inaccurate imaging.
[0004] Therefore, it is necessary to provide a timing controller and an imaging control device to effectively solve the above problems. Summary of the invention
[0005] The invention provides a timing controller and an imaging control device.
[0006] An embodiment of the present invention provides a timing controller, including:
[0007] ARM communication module, used to connect with the host computer to achieve communication with the host computer to obtain transmission pulse information and reception pulse information;
[0008] The FPGA module is connected to the ARM communication module, and is used to obtain a first output signal based on the emission pulse information and control the laser light source to output pulse laser based on the first output signal; it is also used to obtain a second output signal based on the received pulse information, and obtain a trigger signal, and when the trigger signal is received, control the image acquisition device to receive image information based on the second output signal, and the first pulse of the second output signal is delayed by a specific delay time compared to the moment when the trigger signal is received.
[0009] Preferably, the working modes of the timing controller include a normal mode and a timing push-scan mode;
[0010] In the normal mode, the specific delay time is a burst delay time;
[0011] In the sequential push-scan mode, the specific delay time is the burst initial delay time, and a delay is performed once for each preset value of pulses in the second output signal, and each delay time is one burst delay step longer than the previous delay time.
[0012] Preferably, the FPGA module is also used to obtain an enable signal output by the host computer from the ARM communication module, and control the second output signal to stop outputting pulses based on the enable signal.
[0013] Preferably, it further comprises an external trigger circuit, the external trigger circuit is connected to an external trigger source, the ARM communication module and the FPGA module, the external trigger circuit is used to receive an external trigger signal sent by the external trigger source; the FPGA module also receives a trigger mode signal sent by the host computer through the ARM communication module, and the trigger mode signal controls the FPGA module to operate in an external trigger mode or an internal trigger mode;
[0014] In the internal trigger mode, the trigger signal is a rising edge signal of the first output signal;
[0015] In the external trigger mode, the trigger signal is a rising edge signal of the external trigger signal.
[0016] Preferably, the external trigger circuit includes: a first resistor, a second resistor, a third resistor, a first switch, and an equipotential device. The first resistor, the second resistor and the equipotential device are connected in sequence and the other end of the first resistor is grounded. The other end of the equipotential device is connected to the FPGA module. The first resistor and the second resistor are connected to the external trigger source and to one end of the third resistor. The other end of the third resistor is connected to the first connection end of the first switch. The second connection end of the first switch is grounded. The control end of the first switch is connected to the ARM communication module. The equipotential device is also connected to the ARM communication module.
[0017] Preferably, the ARM communication module includes:
[0018] A communication unit, used to connect to the host computer and receive and send command data;
[0019] An instruction parser, connected to the communication unit, for parsing the instruction data to obtain the transmission pulse information, the reception pulse information and the trigger mode signal;
[0020] A data sending unit connected to the FPGA module;
[0021] A command executor, connected to the instruction parser and the data sending unit, configured to send the transmission pulse information, the reception pulse information and the trigger mode signal to the FPGA module through the data sending unit, and output a digital trigger signal of the external trigger circuit;
[0022] a digital-to-analog converter, connected to the external trigger circuit and the command executor, for converting the digital trigger signal into an analog voltage signal to provide a configurable trigger level for the external trigger circuit;
[0023] a storage unit, connected to the command executor, and used to store data of the command executor;
[0024] A data verification unit is connected to the command executor and is used to verify the data of the command executor.
[0025] Preferably, the FPGA module comprises:
[0026] A second communication unit, connected to the ARM communication module to receive the transmission pulse information, the reception pulse information and the trigger mode signal;
[0027] A clock unit, connected to an external clock and the second communication unit, for frequency conversion;
[0028] A delay unit, connected to each part in the FPGA, for controlling the delay time;
[0029] A register group, connected to the second communication unit, for storing the transmit pulse parameter and the receive pulse parameter;
[0030] a control unit connected to the clock unit and the register group, and configured to calculate the time of each delay in the second output signal in the sequential push-scan mode;
[0031] A first output unit, connected to the register group, and configured to output the first output signal;
[0032] a second output unit, connected to the register group, the first output unit and the control unit, and configured to trigger the second output signal based on the trigger mode signal or the rising edge signal of the first output signal, or trigger the second output signal based on the external trigger signal;
[0033] The external trigger detection unit is connected to the external trigger circuit and the second output unit, and is used to obtain the external trigger signal and output it to the second output unit to control the second output signal to be triggered based on the external trigger signal.
[0034] Preferably, the external trigger detection unit comprises:
[0035] The delay unit is also connected to the external trigger circuit and is used to obtain a plurality of detection timings with different delay times based on the delay of the second clock unit;
[0036] A multiplexer is connected to the delay unit and is used to select an output from a plurality of detection timings with different delay times for detecting the external trigger signal.
[0037] Preferably, the timing controller further comprises a delay circuit, which is connected to the FPGA module and is used for fine-tuning the delay of the output time of the first output signal and / or the second output signal.
[0038] The present invention further provides an imaging control device, comprising the laser light source, the image acquisition device and a timing controller as described in any one of the above items.
[0039] Compared with the prior art, the technical solution of the embodiment of the present invention has the following beneficial effects: the present invention is an FPGA module and an ARM communication module architecture, which controls the delay time of the second output signal through the FPGA module, thereby solving the problems of large counting granularity of the host computer, unavoidable communication time, and inability to ensure timing consistency in the traditional technology, thereby ensuring accurate imaging. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are some embodiments of the present invention, not all embodiments. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.
[0041] Figure 1 A schematic diagram of the principle of an imaging control device provided by conventional technology.
[0042] Figure 2 A schematic diagram of the timing push-scan imaging principle provided for traditional technology.
[0043] Figure 3 A schematic diagram of the burst functional imaging principle provided by traditional technology.
[0044] Figure 4 A system block diagram of a timing controller provided by one embodiment of the present invention.
[0045] Figure 5 A timing diagram of a first output signal and a second output signal in a normal mode is provided for an embodiment of the present invention.
[0046] Figure 6 A schematic diagram of the timing of the first output signal and the second output signal of the burst function in the normal mode provided by an embodiment of the present invention.
[0047] Figure 7 A schematic diagram of the timing sequence of the first output signal and the second output signal of the burst function in the sequential push-sweep mode provided by one embodiment of the present invention.
[0048] Figure 8 A timing diagram of a first output signal and a second output signal of a burst function in a sequential push-sweep mode is provided for another embodiment of the present invention.
[0049] Fig. 9 A circuit diagram of an external trigger circuit provided for one embodiment of the present invention.
[0050] Fig.10 A structural block diagram of an ARM communication module provided for one embodiment of the present invention.
[0051] Fig.11 A structural block diagram of an FPGA module provided for one embodiment of the present invention.
[0052] Fig.12 A structural block diagram of an external trigger detection unit provided for one embodiment of the present invention.
[0053] Fig.13 A structural block diagram of a power supply module provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0056] like Figure 1As shown, in the field of gated imaging, after the pulsed laser emitted by the laser 12 is reflected by the target object 14, a pulse is required to turn it on synchronously when it returns to the image acquisition device 13, so as to capture the reflected photon information and realize the imaging of the target object 14 at a specific distance d. By changing the delay t between the pulse that turns on the image acquisition device 13 and the pulse that triggers the laser 12, images of target objects 14 at different distances can be captured. When it is necessary to capture all objects within a specific distance range, it is necessary to shoot in a delay interval, slice the delay interval, start from the starting position of the interval, and push-scan according to a specific delay step. Each change in the delay captures a frame of image, and finally the image information of all target objects 14 within the distance range can be obtained. Figure 2 As shown, the pulse with delay t1 collects the image at distance d1, the pulse with delay t2 collects the image at distance d2, and so on, and finally all the target objects 14 within the distance range of d0 to dn are photographed. In addition, in a weak light environment, it is necessary to emit multiple pulsed lasers to the target object 14 at one time to enhance the image information. In this case, the camera needs to receive multiple reflected light signals within one exposure time and accumulate them, that is, the burst mode. Figure 3 As shown, n pulse lasers are emitted, and n images are collected at the same delay, and the photon information collected n times is accumulated to obtain an enhanced image. Therefore, it is necessary to design a timing controller 11 with a burst function that can meet the requirements of automatic timing push scanning.
[0057] The conventional timing controller 11 uses the host computer timing method to reconfigure the pulse output and the delay information of the timing push-sweep. Due to the timing error and the unavoidable communication time, it is easy to have logic errors at high frequencies, output an unexpected number of pulses, or fail to perform the timing push-sweep continuously. In addition, the existing timing controller 11 also has the problem of large external trigger jitter.
[0058] Based on the problems existing in the prior art, an embodiment of the present invention provides a timing controller and an imaging control device.
[0059] Figure 4 A system block diagram of a timing controller provided by an embodiment of the present invention. Figure 4 As shown, a timing controller 21 at least includes an ARM communication module 211 and a field programmable gate array (FPGA) module 212. In other examples, the timing controller 21 may also include an RS232 module 214, a power module 213, an external trigger circuit 215, an output driver 216, a delay circuit 218 and a plurality of channels 217.
[0060] The ARM communication module 211 is used to connect to the host computer 22 to achieve communication with the host computer 22 to obtain transmission pulse information and reception pulse information.
[0061] The FPGA module 212 is connected to the ARM communication module 211, and is used to obtain a first output signal based on the emission pulse information and control the laser light source to output a pulsed laser based on the first output signal; it is also used to obtain a second output signal based on the received pulse information, and obtain a trigger signal, and when the trigger signal is received, the image acquisition device is controlled to receive image information based on the second output signal, and the first pulse of the second output signal is delayed by a specific delay time compared to the moment when the trigger signal is received. It should be noted that the emission pulse information and the reception pulse information output by the host computer in this embodiment are pulse information in a broad sense, which includes configuration information such as pulse delay, pulse width, and frequency. After the ARM communication module 211 receives and parses the pulse output parameters sent by the host computer 22 according to the protocol, these parameters are configured to the FPGA module 212.
[0062] In some embodiments, the RS232 module 214 is connected to the host computer 22 and the ARM communication module 211, and the RS232 module 214 is used to forward the information sent by the host computer 22 to the ARM communication module 211 and forward the information sent by the ARM communication module 211 to the host computer 22. That is, the ARM communication module 211 realizes communication with the host computer 22 through the RS232 module 214.
[0063] Specifically, the RS232 module 214 can convert the level of information received from the host computer 22 and send it to the ARM communication module 211, and convert the level of information returned by the ARM communication module 211 and send it to the host computer 22. The RS232 module 214 can be connected to the ARM communication module 211 using a three-wire connection.
[0064] The host computer 22 can send the command data to the ARM communication module 211 through the RS232 module 214. After the ARM communication module 211 parses the command data, it can obtain information such as the transmission pulse information and the reception pulse information. Among them, the host computer 22 can be a device such as an industrial computer. An automatic program can be set in the host computer 22 to control the imaging process automatically, and the command data can also be input through the host computer 22.
[0065] The transmission pulse information parsed by the ARM communication module 211 contains the necessary information for forming the first output signal, and the reception pulse information contains the necessary information for forming the second output signal, such as the sequence starting position, sequence pulse width, sequence direction, etc., so that the FPGA module 212 can obtain the first output signal based on the transmission pulse information and obtain the second output signal based on the reception pulse information. The output driver 216 is connected to the FPGA module 212 and to each channel 217, and each channel 217 is respectively connected to a corresponding lower computer 24. The output driver 216 is used to adjust the first output signal and the second output signal to the required amplitude voltage for output, thereby improving the driving ability of the output. The output interface of each channel 217 and the external trigger input interface can use a standard SMA connector to improve the stability of signal transmission.
[0066] In some examples, channel 217 may include channel A, channel B...channel n, and lower computer 24 may include lower computer 1, lower computer 2...lower computer n. Channel A is connected to lower computer 1, and channel B is connected to lower computer 2. The first output signal can be output to lower computer 1 through channel A, and the second output signal can be output to lower computer 2 through channel B. Lower computer 1 can be a laser light source, thereby controlling the laser light source to emit a laser beam based on the first output signal. Lower computer 2 can be an image acquisition device, and the image acquisition device acquires the light beam information reflected by the target object based on the second output signal to obtain image information. It should be noted that the timing controller provided by the present invention is not limited to the application scenarios of laser light sources and image acquisition devices, and is applicable to other applicable fields known in the art.
[0067] The present invention adopts an ARM communication module 211 and an FPGA module 212 as the core architecture. The ARM communication module 211 realizes communication with the host computer 22. Its main functions include receiving configuration instructions sent by the host computer 22, parsing instructions, saving necessary information, configuring and verifying pulse output parameters, etc. After parsing, the pulse output parameters are configured to the FPGA module 212 through the serial peripheral interface (SPI) bus. The FPGA module 212 outputs corresponding timing pulses according to the configured timing pulse parameters, adjusts the delay between each channel 217, and achieves the purpose of slave synchronization.
[0068] In some examples, the working mode of the timing controller 21 includes a normal mode and a timing push-sweep mode. In the normal mode, the specific delay time is a burst delay time. In the timing push-sweep mode, the specific delay time is a burst initial delay time, and a delay is performed once for each preset value of pulses in the second output signal, and each delay time is one more than the previous delay time by the burst delay step.
[0069] Specifically, burst is a burst output, which refers to the number of pulses output continuously. For example, if burst = 3 and the burst interval is 1s, the waveform is to output 3 pulses continuously at the set output frequency. After an interval of 1s, 3 more pulses are output. The 3 pulses here are a pulse train, that is, burst = 3. The burst delay step is the change in the delay of each step sequence. In the sequential push-sweep mode, burst is the number of pulses output in each step sequence.
[0070] In some examples, such as Figure 5 As shown, in the normal mode and without using the burst function, channel A outputs the first output signal CHA1 according to the configured frequency and pulse width, and the first output signal CHA1 is a pulse signal. Channel B is triggered by the rising edge of the first output signal CHA1 output by channel A, and outputs the second output signal CHB1 according to the configured delay t1 and pulse width. The present invention adds a burst function on the basis of the ordinary timing synchronization module, such as Figure 6 As shown, when the burst function is turned on in channel A, the number of pulses of the burst output can be configured by the host computer 22, and at the same time, channel B is triggered by the first output signal CHA2 output by channel A, and the second output signal CHB2 is output according to the configured delay t22, i.e., the burst delay time, the number of bursts and the pulse width. The number of burst pulses (burst number) in the second output signal CHB2 is 3.
[0071] In some examples, such as Figure 7 As shown, in the sequential push-scan mode, the first output signal CHA3 is a sequence signal, and the FPGA module 212 pre-configures the system sequence parameters based on the transmit pulse information and the receive pulse information. The sequence parameters include sequence direction, sequence start value, sequence step, sequence step number, etc. Among them, the sequence direction is the direction of delay change, and the absolute delay increase is defined as positive, and the absolute delay decrease is defined as reverse. The value configured by the sequence start value is the moment obtained by counting backward from the rising edge of the channel A output. The sequence step is the time of each delay change. The sequence step number is the total number of delay changes. This embodiment Figure 7 In the example, burst = 2, sequence start value = 1, sequence step = 1, and sequence step number = 2, where t31 = 1, t32 = 2, and t33 = 3. A delay is performed every two pulses (burst number), and each delay time is one burst delay step longer than the previous delay time (sequence step).
[0072] In some examples, the FPGA module 212 is also used to obtain the enable signal output by the host computer 22 from the ARM communication module 211, and control the second output signal to stop outputting pulses based on the enable signal. The enable signal in this embodiment includes the enable interval information, and the sequence output is only available within the enable interval, such as: the sequence has 10 steps, the sequence enable interval [step 3 to step 8], when the system sequence reaches step 3, the second output signal is output according to the delay of the third part of the sequence, and stops outputting after the output of step 8 is completed. Figure 8 As shown, channel B sequence start step s: after the sequence starts, the sequence pulse output starts from the sth step according to the sequence parameters. Channel B sequence end step e: after the sequence starts, the sequence pulse output stops from the eth step. Channel B sequence start step = 0, sequence end step = 1, where t41 = 1, t42 = 2, the second output pulse ends after output step number 1, and the output pulse stops at step number 2, at which time the corresponding lower computer 242, i.e., the image acquisition device, also stops acquiring images.
[0073] In some examples, the timing controller 21 also includes an external trigger circuit 215, which is connected to the external trigger source 23, the ARM communication module 211 and the FPGA module 212, and the external trigger circuit is used to receive the external trigger signal sent by the external trigger source 23. The FPGA module 212 also receives the trigger mode signal sent by the host computer 22 through the ARM communication module 211, and the trigger mode signal controls the FPGA module 212 to operate in the external trigger mode or the internal trigger mode. In the internal trigger mode, the trigger signal is the rising edge signal of the first output signal. In the external trigger mode, the trigger signal is the rising edge signal of the external trigger signal. Exemplarily, the ARM communication module 211 outputs an analog voltage to the external trigger circuit as the trigger level of the external trigger signal, thereby selecting the external trigger mode. The internal trigger mode and the external trigger mode can be determined by the register value inside the FPGA module 212 and configured by the host computer 22.
[0074] Figures 5 to 8 That is, in the internal trigger mode, the second output signal is triggered by the rising edge of the first output signal, and the pulse of the second output signal is output after a certain delay after the rising edge trigger signal of the first output signal is triggered. In the external trigger mode, the pulse of the second output signal is output after a certain delay after being triggered by the rising edge signal of the external trigger signal.
[0075] Specifically, Fig. 9As shown, the external trigger circuit 215 includes a first resistor R1, a second resistor R2, a third resistor R3, a first switch S1, and an equipotential device M1. The first resistor R1, the second resistor R2, and the equipotential device M1 are connected in sequence, and the other end of the first resistor R1 is grounded, the other end of the equipotential device M1 is connected to the FPGA module 212, the first resistor R1 and the second resistor R2 are connected to the external trigger source 23 and to one end of the third resistor R3, the other end of the third resistor R3 is connected to the first connection end of the first switch S1, the second connection end of the first switch S2 is grounded, the control end of the first switch S3 is connected to the ARM communication module 211, and the equipotential device M1 is also connected to the ARM communication module 211.
[0076] In this embodiment, the on and off of the first switch S1 is controlled by the ARM communication module 211, and the external trigger signal input impedance can be set to the third resistor R3 or the first resistor R1, and the second resistor R2 is a current limiting resistor. The signal connected between the equipotential device M1 and the ARM communication module 211 is the analog voltage signal output by the digital-to-analog converter of the ARM communication module 211 as the external trigger level.
[0077] In this embodiment, the input impedance of the external trigger signal can be set to the common 50Ω / 10KΩ, and the threshold level of the external trigger signal can be set by the ARM analog-to-digital converter (DAC). The external trigger signal is converted into a low-voltage differential signal (LVDS) with strong anti-interference ability by the signal buffer and then input into the FPGA module 212 to trigger the timing pulse.
[0078] In some embodiments, Fig.10 As shown, the ARM communication module 211 includes a communication unit 2113, an instruction parser 2112, a data sending unit 2117, a command executor 2115, a storage unit 2111, a data checking unit 2114 and a digital-to-analog converter 2116.
[0079] Among them, the communication unit 2113 is connected to the host computer 22 for receiving and sending instruction data. The instruction parser 2112 is connected to the communication unit 2113 for parsing the instruction data to obtain the transmission pulse information, the reception pulse information and the trigger mode signal. The data sending unit 2117 is connected to the FPGA module 212. The command executor 2115 is connected to the instruction parser 2112 and the data sending unit 2117 for sending the transmission pulse information, the reception pulse information and the trigger mode signal to the FPGA module 212 through the data sending unit 2117, and outputting the digital trigger signal of the external trigger circuit 215. The digital-to-analog converter 2116 is connected to the external trigger circuit 215 and the command executor 2115 for converting the digital trigger signal into an analog voltage signal to provide a configurable external trigger level for the external trigger circuit 215. The storage unit 2111 is connected to the command executor 2115 for storing the data of the command executor 2115. The data verification unit 2114 is connected to the command executor 2115 for verifying the data of the command executor 2115.
[0080] Specifically, the communication unit 2113 receives the instruction data sent by the host computer 22 through the RS232 module 214, and after parsing and executing, the execution result can be returned to the host computer 22 through the RS232 module 214. The data sending unit 2117 can be a 4-wire service provider interface (SPI, Service Provider Interface) transmission bus. After the instruction parsing is completed, the command executor 2115 sends the corresponding data information to the FPGA module 212 through the 4-wire SPI transmission bus. The data verification unit 2114 is used to verify the parsed instruction data to prevent the parameters from exceeding the reasonable range and outputting unexpected timing pulses.
[0081] Specifically, the configuration of FPGA parameters by the command executor 2115 may include trigger mode setting (internal trigger mode, external trigger mode); sequence item setting (sequence delay, sequence pulse width); sequence direction setting (forward means increase, reverse means decrease); sequence starting position setting (i.e., the position where the sequence function starts with the rising edge of the trigger signal as the reference); sequence step setting (i.e., the amount of change in delay / pulse width each time in the sequence function); setting the number of sequence steps (i.e., the total number of times the delay / pulse width needs to be changed for one sequence push-scan); sequence enable setting; and A channel 217 output enable (internal trigger reference signal) setting. The first output signal and the second output signal at least include channel A frequency setting; channel A pulse width setting; channel A burst setting (the number of pulses output by a pulse train); channel A burst interval time setting (rest time between pulse trains); channel B output enable setting; channel B delay setting (delay time with the rising edge of the trigger signal in non-sequential mode); channel B pulse width setting (pulse width); channel B sequence start step (the starting point of the output enable interval in sequence mode); channel B sequence end step (the end point of the output enable interval in sequence mode). The configuration information of the remaining automatic timing push-scan channels 217 is the same as that of channel B. Each channel 217 can be turned off individually, and the sequence enable interval of each channel 217 cannot exceed the system's timing sequence interval (sequence start position + sequence step size * sequence step number).
[0082] In some examples, such as Fig.11 , 12 As shown, the FPGA module 212 is an output execution module, and has functions such as pulse output, timing control, and external trigger output. Specifically, the FPGA module 212 includes a second communication unit 2122, a clock unit 2121, a delay unit 922, a register group 2123, a control unit 2124, a first output unit 2126, a second output unit 2127, and an external trigger detection unit 2125.
[0083] The second communication unit 2122 is connected to the ARM communication module 211 to receive the transmission pulse information, the reception pulse information and the trigger mode signal. The clock unit 2121 is connected to the external clock 91 and the second communication unit 2122 for frequency conversion. The delay unit 922 is connected to each part of the FPGA module 212 to control the delay time. Specifically, the clock unit 2121 receives the external clock signal, and outputs it to the delay unit 922 (IODELAY2 delay unit inside the FPGA module) after the internal PLL frequency conversion. The output of the delay unit 922 is connected to all modules in the FPGA module 212 as the global clock for the operation of the FPGA module 212. The register group 2123 is connected to the second communication unit 2122 to save the transmission pulse parameters and the reception pulse parameters, that is, the register group 2123 is used to save the configuration pulse output and timing parameters. The control unit 2124 is connected to the clock unit 2121 and the register group 2123 to calculate the time of each delay in the second output signal in the timing push-sweep mode, that is, the control unit 2124 only works in sequence. The control unit 2124 has the following functions: before each step sequence is output, the control unit 2124 calculates the delay of the step and sets it to the second output unit 2127, which is then output after the delay. The first output unit 2126 is connected to the register group 2123 for outputting the first output signal. The second output unit 2127 is connected to the register group 2123, the first output unit 2126 and the control unit 2124 for triggering the second output signal based on the rising edge signal of the first output signal based on the trigger mode signal or based on an external trigger signal. The external trigger detection unit 2125 is connected to the external trigger circuit 215 and the second output unit 2127 for acquiring the external trigger signal and outputting it to the second output unit 2127 to control the second output signal output by the second output unit 2127 of the FPGA module 212 to be triggered based on the external trigger signal. Specifically, there is a register in the register group 2123 for controlling the trigger mode to be the internal trigger mode or the external trigger mode. In the external trigger mode, the output of the second output unit 2127 is triggered by the output signal of the external trigger detection unit 2125. The external trigger detection unit 2125 is connected to the external trigger circuit 215 and the second output unit 2127, and is used to obtain the external trigger signal and output it to the second output unit 2127 to control the second output signal to be triggered based on the external trigger signal.
[0084] Further, such as Fig.12As shown, the external trigger detection unit 2125 includes a delay unit 922 and a multiplexer 923. The second clock unit 921 is used for timing. The delay unit 922 is also connected to the external trigger circuit 215, and is used to obtain a plurality of detection timings with different delay times based on the delay of the second clock unit 921. The multiplexer 923 is connected to the delay unit 922, and is used to select one of the detection timings with different delay times to output for detecting the external trigger signal.
[0085] Specifically, the FPGA module 212 is driven by the external clock 91, multiplied to the operating frequency by the internal clock unit 2121, and output to the delay unit 922. When internal triggering is performed, tap0 is selected, and the output clock is the internal operating clock. Specifically, tap0 is a clock signal with a PLL output clock delay of 0, and the multiplexer 923 selects this signal as the system operating clock in the internal trigger mode; in the external trigger mode, the first signal tapx that detects a high level of the external trigger signal is selected as the system operating clock.
[0086] The SPI module communicates data with ARM and saves the received timing parameters in the register group 2123. The first output signal CHA is output in pulse or burst mode by means of a counter. The second output signal CHB counts the timing parameters stored in the register through the first output signal CHA or the pulse signal detected by the external trigger, and outputs the timing pulse. In the sequence mode, after the trigger signal outputs a burst pulse string, the control unit 2124 calculates the delay of the next output of the second output signal CHB and updates the count value of the delay counter of the second output signal CHB in real time to achieve precise control of the sequence. The external trigger detection unit 2125 delays the working clock through the delay unit 922 of the FPGA module 212, generates 32 detection clocks, each clock delay is 1 / 32 of half a clock cycle, detects the rising edge of the external input trigger signal respectively, and uses the clock with the first detected clock rising edge as the output clock, which can improve the detection resolution and reduce the external trigger jitter. In this embodiment, the second clock unit 921 outputs a 200MHz clock.
[0087] In some examples, such as Figure 4 As shown, the timing controller 21 also includes a delay circuit 218, which is connected to the FPGA module 212 and is used to fine-tune the output time of the first output signal and / or the second output signal, and can also fine-tune the delay of other output signals such as the third output signal, so as to ensure the accuracy of the output signal. The delay circuit 218 is implemented using a delay chip with adjustable gears, and each output channel 217 is equipped with a fine-tuning delay chip.
[0088] In some examples, the power module 213 can be connected to the external power source 2131 and various parts of the timing controller 21 to provide power to each part separately. Fig.13 As shown, in some embodiments, the power supply module 213 may include a linear stabilizer 2132 and a voltage divider circuit 2133. The linear stabilizer 2132 is connected to an external power supply 2131, and the linear stabilizer 2132 may be a low dropout regulator 2132 (LDO) for stabilizing the power supply voltage. The input end of the voltage divider circuit 2133 is connected to the linear stabilizer 2132, and is used to adjust the power supply voltage to the voltage required by each part of the timing controller 21 to power them. In this embodiment, the output end of the voltage divider circuit 2133 can be connected to the ARM communication module 211, the FPGA module 212, the RS232 module 214, the external trigger circuit 215, the output driver 216 and the delay circuit 218 in the timing controller 21 to power them.
[0089] The present invention uses an ARM communication module 211 and an FPGA module 212 as the main architecture design. The logic control of all pulse outputs and timing push-sweep is completed by the FPGA module 212, realizing precise control of pulse output and timing push-sweep delay changes. The push-sweep resolution can reach 5ns, providing at least one timing reference signal output channel A and one automatic timing push-sweep channel B. The timing push-sweep channel B can be triggered by channel A or by an external signal input to the FPGA through an external trigger circuit 215 from an external signal source. The above embodiment has one timing push-sweep channel 217. Theoretically, there is no limit on the number of timing push-sweep channels 217, and the actual number is determined by the internal resources and design requirements of the selected FPGA module 212. In addition, the present invention uses a delay unit 922 (IODELAY2) at the internal source level of the FPGA module 212 to increase the external trigger jitter to 1ns. By using a fine-tuning delay chip, a minimum delay adjustment accuracy of 10ps can be achieved.
[0090] 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 it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A timing controller, characterized in that: include: ARM communication module, used to connect with the host computer to achieve communication with the host computer to obtain transmission pulse information and reception pulse information; An FPGA module, connected to the ARM communication module, for obtaining a first output signal based on the emission pulse information and controlling a laser light source to output pulsed laser via channel A based on the first output signal; It is also used to obtain a second output signal based on the received pulse information, and to obtain a trigger signal, and when the trigger signal is received, control the image acquisition device through channel B to receive image information based on the second output signal, wherein the first pulse of the second output signal is delayed by a specific delay time compared to the moment when the trigger signal is received; The working modes of the timing controller include a normal mode and a timing push-scan mode; In the normal mode, the specific delay time is a burst delay time; The channel B is triggered by the first output signal output by the channel A, and outputs the second output signal according to the configured burst delay time, burst number and pulse width; wherein the burst delay time, the burst number and the pulse width are configured by the host computer, and the burst number is the number of pulses output continuously; In the sequential push-scan mode, the specific delay time is the burst initial delay time, and a delay is performed once for each preset value of pulses in the second output signal, and each delay time is one burst delay step longer than the previous delay time; the first output signal is a sequence signal, and the FPGA module pre-configures sequence parameters of the first output signal based on the transmit pulse information and the receive pulse information, and the sequence parameters include sequence direction, sequence start value, sequence step length, and sequence step number; The timing controller also includes an external trigger circuit, which is connected to an external trigger source, the ARM communication module and the FPGA module, and is used to receive an external trigger signal sent by the external trigger source; the FPGA module also receives a trigger mode signal sent by the host computer through the ARM communication module, and the trigger mode signal controls the FPGA module to operate in an external trigger mode or an internal trigger mode; in the internal trigger mode, the trigger signal is a rising edge signal of the first output signal; in the external trigger mode, the trigger signal is a rising edge signal of the external trigger signal; The FPGA module includes an external trigger detection unit, which includes: a delay unit connected to the external trigger circuit, used to obtain a plurality of detection timings with different delay times based on the delay of the second clock unit; a multiplexer connected to the delay unit, used to select an output from the plurality of detection timings with different delay times for detecting the external trigger signal; wherein: The FPGA module is driven by an external clock, and after being multiplied to the working frequency by the internal clock unit, the internal working clock is output to the delay unit, and the clock tap0 during internal triggering is selected as the clock signal with the internal working clock delay of 0 output; the multiplexer selects the clock signal with the internal working clock delay of 0 as the system working clock in the internal trigger mode, and selects the first external trigger signal detected as the system working clock in the external trigger mode; The FPGA module also includes: A second communication unit, connected to the ARM communication module to receive the transmission pulse information, the reception pulse information and the trigger mode signal; A clock unit, connected to an external clock and the second communication unit, for frequency conversion; A register group, connected to the second communication unit, for storing transmission pulse parameters and reception pulse parameters; a control unit connected to the clock unit and the register group, and configured to calculate the time of each delay in the second output signal in the sequential push-scan mode; The clock unit receives a signal of an external clock, and outputs the signal to the delay unit after frequency conversion by the clock unit; the output of the delay unit is connected to all modules in the FPGA module to serve as a global clock for the operation of the FPGA module.
2. The timing controller according to claim 1, characterized in that: The FPGA module is also used to obtain the enable signal output by the host computer from the ARM communication module, and control the second output signal to stop outputting pulses based on the enable signal.
3. The timing controller according to claim 1, characterized in that: The external trigger circuit includes: a first resistor, a second resistor, a third resistor, a first switch, and an equipotential device. The first resistor, the second resistor and the equipotential device are connected in sequence and the other end of the first resistor is grounded. The other end of the equipotential device is connected to the FPGA module. The first resistor and the second resistor are connected to the external trigger source and to one end of the third resistor. The other end of the third resistor is connected to the first connection end of the first switch, and the second connection end of the first switch is grounded. The control end of the first switch is connected to the ARM communication module, and the equipotential device is also connected to the ARM communication module.
4. The timing controller according to claim 1, characterized in that: The ARM communication module includes: A communication unit, used to connect to the host computer and receive and send command data; An instruction parser, connected to the communication unit, for parsing the instruction data to obtain the transmission pulse information, the reception pulse information and the trigger mode signal; A data sending unit connected to the FPGA module; A command executor, connected to the instruction parser and the data sending unit, configured to send the transmission pulse information, the reception pulse information and the trigger mode signal to the FPGA module through the data sending unit, and output a digital trigger signal of the external trigger circuit; a digital-to-analog converter, connected to the external trigger circuit and the command executor, for converting the digital trigger signal into an analog voltage signal to provide a configurable external trigger level for the external trigger circuit; a storage unit, connected to the command executor, and used to store data of the command executor; A data verification unit is connected to the command executor and is used to verify the data of the command executor.
5. The timing controller according to claim 1, characterized in that: The FPGA module further includes: a first output unit connected to the register group and configured to output the first output signal; A second output unit is connected to the register group, the first output unit and the control unit, and is used to trigger the second output signal based on the trigger mode signal, based on the rising edge signal of the first output signal, or based on the external trigger signal; wherein, The external trigger detection unit is connected to the external trigger circuit and the second output unit, and is used to obtain the external trigger signal and output it to the second output unit to control the second output signal to be triggered based on the external trigger signal; The delay unit is connected to each part in the FPGA and is used to control the delay time.
6. The timing controller according to claim 5, characterized in that: The timing controller also includes a delay circuit, which is connected to the FPGA module and is used to fine-tune the delay of the output time of the first output signal and / or the second output signal.
7. An imaging control device, characterized in that: It comprises a laser light source, an image acquisition device and a timing controller as described in any one of claims 1 to 6.
