[go: up one dir, main page]

CN110475076B - A multi-light source exposure controller and method based on FPGA - Google Patents

A multi-light source exposure controller and method based on FPGA Download PDF

Info

Publication number
CN110475076B
CN110475076B CN201910768225.4A CN201910768225A CN110475076B CN 110475076 B CN110475076 B CN 110475076B CN 201910768225 A CN201910768225 A CN 201910768225A CN 110475076 B CN110475076 B CN 110475076B
Authority
CN
China
Prior art keywords
light source
unit
control module
trigger signal
trigger
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910768225.4A
Other languages
Chinese (zh)
Other versions
CN110475076A (en
Inventor
熊显名
周航汛
张文涛
曾启林
杜浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guilin University of Electronic Technology
Original Assignee
Guilin University of Electronic Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guilin University of Electronic Technology filed Critical Guilin University of Electronic Technology
Priority to CN201910768225.4A priority Critical patent/CN110475076B/en
Publication of CN110475076A publication Critical patent/CN110475076A/en
Application granted granted Critical
Publication of CN110475076B publication Critical patent/CN110475076B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/65Control of camera operation in relation to power supply
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Studio Devices (AREA)

Abstract

本发明公开了一种基于FPGA的多光源曝光控制器及方法,基于FPGA的多光源曝光控制器包括多光源曝光控制模块和系统控制模块,系统控制模块用于接收相机传输的图像信息,同时通过串口通讯向串口通讯单元发送数值序列;外触发输入单元用于隔离输入系统控制模块的触发信号;FPGA处理单元用于接收外触发输入单元发送的触发信号和通过串口通讯单元发送的数值序列进行比较处理,向多光源触发单元发送光源触发信号;多光源触发单元用于将FPGA处理单元输出的光源触发信号输出至至少两个光源控制器,同时进行隔离。满足多光源曝光检测技术对多场景多组合光源控制的需求。

Figure 201910768225

The invention discloses an FPGA-based multi-light source exposure controller and a method. The FPGA-based multi-light source exposure controller includes a multi-light source exposure control module and a system control module. The system control module is used for receiving image information transmitted by a camera, and simultaneously through The serial port communication sends the numerical sequence to the serial communication unit; the external trigger input unit is used to isolate the trigger signal of the input system control module; the FPGA processing unit is used to receive the trigger signal sent by the external trigger input unit and compare the numerical sequence sent by the serial communication unit processing, sending a light source trigger signal to the multi-light source trigger unit; the multi-light source trigger unit is used for outputting the light source trigger signal output by the FPGA processing unit to at least two light source controllers, and at the same time for isolation. Meet the needs of multi-light source exposure detection technology for multi-scenario and multi-combination light source control.

Figure 201910768225

Description

FPGA-based multi-light-source exposure controller and method
Technical Field
The invention relates to the technical field of multi-light-source exposure detection, in particular to a multi-light-source exposure controller and a method based on an FPGA.
Background
The existing exposure and image acquisition detection technology is widely applied to the detection field, and particularly has a good detection effect on shape measurement precision equipment by using a multi-light-source exposure detection technology. When the topography measurement precision equipment uses a multi-light-source exposure image acquisition technology for detection, the requirement on light source exposure is high, different light sources are required to be used in different measurement scenes, and even the combination of multiple light sources, so the control requirement brings challenges to the control of multi-light-source exposure. Meanwhile, in the process of detecting the operation of the equipment, the control of the exposure of various light sources under different scenes also directly influences the detection efficiency, and further influences the yield of the equipment, so that the point that the speed of controlling the light sources is improved as much as possible on the premise of meeting the control function of the exposure of multiple light sources is also the main point of the control module of the exposure of multiple light sources, which undoubtedly increases the difficulty for controlling the exposure of multiple light sources.
The main functions of the existing camera controller are concentrated on the synchronous control triggering of multiple cameras or the synchronous control of multiple light sources, and the requirement of the multiple light source exposure detection technology on the control of multiple scenes and multiple combined light sources cannot be met.
Disclosure of Invention
The invention aims to provide a multi-light-source exposure controller and a method based on FPGA, which adopt a hardware triggering mode to obviously improve the time overhead of software for realizing light source control; the multi-scene multi-combination light source control function is completed by adopting a mechanism of a counter, an FIFO memory and a comparator in the multi-light source exposure control module, and the problem that the existing camera controller cannot meet the requirement of a multi-scene multi-combination light source control technology is solved.
In a first aspect, the invention provides a multi-light-source exposure controller based on an FPGA, which comprises a multi-light-source exposure control module and a system control module, wherein the multi-light-source exposure control module comprises a serial communication unit, an external trigger input unit, an FPGA processing unit and a multi-light-source trigger unit, the serial communication unit, the external trigger input unit and the multi-light-source trigger unit are all electrically connected with the FPGA processing unit, the system control module is electrically connected with the external trigger input unit, the serial communication unit and a camera, and the multi-light-source trigger unit is electrically connected with the camera through at least two light source controllers; wherein:
the system control module is used for receiving image information transmitted by the camera and sending a numerical sequence to the serial port communication unit through serial port communication;
the serial port communication unit is used for isolating, converting and transmitting serial port signals between the system control module and the FPGA processing unit;
the external trigger input unit is used for isolating and inputting the trigger signal of the system control module;
the FPGA processing unit is used for receiving the count value of the trigger signal sent by the external trigger input unit, comparing the count value with the numerical sequence sent by the serial port communication unit, and sending a light source trigger signal to the multi-light source trigger unit;
and the multi-light source triggering unit is used for outputting the light source triggering signals output by the FPGA processing unit to at least two light source controllers and isolating the light source controllers simultaneously.
In one embodiment, the FPGA processing unit comprises a counter, at least two comparators and at least two FIFO memories, the number of the comparators and the FIFO memories being equal; the counter is electrically connected with the external trigger input unit and at least two comparators, each comparator is electrically connected with each FIFO memory and the multi-light source trigger unit, and each FIFO memory is electrically connected with the serial port communication unit; wherein:
the counter is used for adding one to the trigger signal input by the external trigger input unit, storing the trigger signal in a specified register and providing a count value to each comparator;
the comparator is used for acquiring a current serial number value from the corresponding FIFO memory after receiving the count value provided by the counter, comparing the serial number value acquired from the FIFO memory with the count value, and outputting a light source trigger signal with a specified pulse width to the multi-light source trigger unit if the serial number value is the same as the count value;
the FIFO memory is used for receiving the numerical value sequence sent by the serial port communication unit, storing the numerical value for comparison of the comparator according to the stack queue, automatically outputting the numerical value at the top end of the queue for comparison when the comparator compares each time, and automatically moving the numerical value of the whole queue forward for next output.
In an embodiment, the multi-light-source exposure control module further includes a power supply unit, and the power supply unit is electrically connected to the FPGA processing unit and is configured to provide a power supply for the multi-light-source exposure control module.
In an embodiment, the multi-light-source exposure control module further includes a reset circuit unit, and the reset circuit unit is electrically connected to the FPGA processing unit and is used for manually resetting the multi-light-source exposure control module.
In one embodiment, the FPGA-based multi-light-source exposure controller further includes a step control module electrically connected to the system control module, the external trigger input unit, and the camera; wherein:
the system control module is also used for controlling the stepping control module to move by software;
the external trigger input unit is also used for receiving a motion-in-place trigger signal sent by the stepping control module;
the stepping control module is used for receiving a trigger signal output after the camera finishes image acquisition or receiving a motion trigger signal sent by the system control module, controlling the motion platform bearing the detection object to step to the next detection point, and outputting a motion in-place trigger signal to the external trigger input unit after stepping is finished.
In a second aspect, the present invention provides a multi-light source exposure control method based on an FPGA, including:
acquiring a numerical sequence transmitted by a system control module through a serial port communication unit, and storing the numerical sequence into a corresponding FIFO memory;
after receiving a trigger signal sent by an external trigger input unit or a motion-in-place trigger signal sent by a stepping control module, counting the trigger signals, comparing the counted trigger signals with a numerical value sequence stored in the FIFO memory, and outputting a light source trigger signal;
switching the state of the light source controller according to the light source trigger signal, and outputting a feedback trigger signal for completing the switching of the light source after the switching is completed;
exposure image collection is started, after image collection is finished, an image collection completion trigger signal is output, and images are transmitted to the system control module to be stored and analyzed;
and after receiving the picture-taking completion trigger signal, controlling the motion platform to move to the next detection point, and then outputting a motion-in-place trigger signal.
In one embodiment, the counting the trigger signals and comparing the counted trigger signals with the value sequence stored in the FIFO memory to output the light source trigger signals includes:
acquiring a trigger signal input by the external trigger input unit and adding one count;
acquiring a sequence number value stored in the FIFO memory;
correspondingly comparing the counting value with the serial number value, and if the counting value is equal to the serial number value, outputting a light source trigger signal with a specified pulse width to a multi-light source trigger unit; and if the count value is not equal to the serial number value, outputting a light source closing signal to the multi-light source triggering unit.
The invention provides a multi-light source exposure controller and a method based on FPGA, wherein the FPGA processing unit receives a trigger signal sent by an external trigger input unit and compares the trigger signal with a numerical sequence sent by a serial port communication unit, and sends a light source trigger signal to the multi-light source trigger unit; the method comprises the steps of realizing the opening and closing of corresponding multiple combined light source controllers according to different scenes, controlling a motion table bearing a detection object to step to a next detection point after a stepping control module receives a trigger signal output after a camera finishes image acquisition or receives a motion trigger signal sent by a system control module, outputting a motion in-place trigger signal to an external trigger input unit after stepping is finished, adopting a hardware trigger mode, obviously improving the time overhead of software for realizing light source control, and meeting the requirement of a multi-scene multi-combined light source control technology for a multi-light source exposure detection technology.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of the structure of the FPGA-based multi-light-source exposure controller of the present invention;
FIG. 2 is a schematic diagram of the FPGA processing unit of the present invention;
FIG. 3 is a schematic diagram of the internal structure of the FIFO memory of the present invention;
FIG. 4 is a schematic flow chart of the FPGA-based multi-light-source exposure control method of the present invention;
in the figure: 10-a multi-light-source exposure control module, 20-a system control module, 30-a stepping control module, 101-a serial port communication unit, 102-an external trigger input unit, 103-an FPGA processing unit, 104-a multi-light-source trigger unit, 105-a power supply unit, 106-a reset circuit unit, 1031-a counter, 1032-a comparator and 1033-a FIFO memory.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
In a first aspect, please refer to fig. 1, which is a schematic structural diagram of an FPGA-based multi-light-source exposure controller according to the present invention, the FPGA-based multi-light-source exposure controller includes a multi-light-source exposure control module 10 and a system control module 20, the multi-light source exposure control module 10 comprises a serial communication unit 101, an external trigger input unit 102, an FPGA processing unit 103, a power supply unit 105, a reset circuit unit 106 and a multi-light source trigger unit 104, the serial port communication unit 101, the external trigger input unit 102, the power supply unit 105, the reset circuit unit 106 and the multi-light source trigger unit 104 are all electrically connected to the FPGA processing unit 103, the system control module 20 is electrically connected to the external trigger input unit 102, the serial communication unit 101 and the camera, the multi-light source trigger unit 104 is electrically connected with the camera through at least two light source controllers;
the system control module 20 is configured to receive image information transmitted by a camera, and send a numerical sequence to the serial communication unit 101 through serial communication; the system control module 20 is an integrated circuit that integrates a computer or other electronic system into a single chip, and can process digital signals, analog signals, mixed signals, and even higher frequency signals, the model being FH 8610. The serial port communication unit 101 is composed of a serial port transceiver circuit, and is used for isolating, converting and transmitting serial port signals between the system control module 20 and the FPGA processing unit 103; the external trigger input unit 102 is configured to isolate a trigger signal input to the system control module 20;
the FPGA processing unit 103 is configured to receive the trigger signal sent by the external trigger input unit 102, count the trigger signal, compare the count with the numerical sequence sent by the serial port communication unit 101, and send a light source trigger signal to the multi-light source trigger unit 104; the FPGA processing unit 103 is a field programmable gate array chip, is a hardware reconfigurable system structure, has strong computing power and enough flexibility, has pipeline parallelism and data parallelism, and has high operation speed, and the model is EP2C20F484C 8N. The multi-light source triggering unit 104 is composed of an optical coupler circuit, and is configured to output the light source triggering signal output by the FPGA processing unit 103 to at least two light source controllers, and perform isolation simultaneously. The power supply unit 105 is configured to provide power to the multi-light-source exposure control module 10. The reset circuit unit 106 is used for manually resetting the multi-light-source exposure control module 10.
Referring to fig. 2, the FPGA processing unit 103 includes a counter 1031, at least two comparators 1032 and at least two FIFO memories 1033, and the numbers of the comparators 1032 and the FIFO memories 1033 are equal; the counter 1031 is electrically connected to the external trigger input unit 102, and is electrically connected to at least two comparators 1032, each comparator 1032 is electrically connected to each FIFO memory 1033, and is electrically connected to the multi-light source trigger unit 104, and each FIFO memory 1033 is electrically connected to the serial port communication unit 101; wherein:
the counter 1031 is a logic circuit for realizing operation, and mainly counts the number of pulses to realize the functions of detection, counting and storage, the counter 1031 is composed of a basic counting unit and a plurality of control gates, the counting unit is composed of a series of various triggers with the function of storing information, the triggers include an RS trigger, a T trigger, a D trigger, a JK trigger and the like, the model is CAT66 6612CQ, the counter 1031 is used for adding one to the trigger signal input by the external trigger input unit 102, storing the trigger signal in a specified register, and providing the count value to each comparator 1032;
the comparator 1032 is a circuit or a device for comparing the two signals to determine whether the two signals are equal, and the model is CAT6612CQ, and is configured to obtain the current serial number value from the corresponding FIFO memory 1033 after receiving the count value provided by the counter 1031, compare the serial number value obtained from the FIFO memory 1033 with the count value, and output a light source trigger signal with a specified pulse width to the multi-light source trigger unit 104 if the serial number value and the count value are the same;
the FIFO memory 1033 is configured to receive the numerical sequence sent by the serial port communication unit 101, store numerical values for comparison by the comparator 1032 according to a stack queue, automatically output a numerical value at the top of the queue for comparison each time the comparator 1032 compares, and automatically move forward the numerical value of the whole queue for the next output.
The FIFO memory 1033 is a first-in first-out double-port buffer, i.e. the first data entering it is shifted out first, one of which is the input port of the memory and the other is the output port of the memory, and is of type H5TQ2G63 GFR-RDC. The FIFO memory is divided into a write-only area and a read-only area. The read operation and the write operation can be performed asynchronously, and the data written on the write area is read from the area at the read end in the order of writing, similar to a buffer that absorbs the speed difference between the write end and the read end. The FIFO memory is a buffer link of the system and has the following characteristics: 1. caching continuous data streams to prevent data loss during incoming and storage operations; 2. the data are gathered to be sent to the computer and stored, so that frequent bus operation can be avoided, and the burden of a processor is relieved.
The numerical sequence stored in the FIFO memory 1033 represents a state corresponding to a light source to be switched at each detection point, a sampling frequency of the external trigger signal of the counter 1031 in the multi-light source exposure controller may be set to be 10MHz at most, and a pulse width of the trigger signal output by the comparator 1032 may be set to be in a range of 0.1us to 3.2765 ms. As shown in fig. 3, the internal storage structure of the FIFO memory 1033 is configured to increment addresses from top to bottom, and sequentially increment serial numbers, where the uppermost value is the light source state value of the first detection point, and if the light source state value is the same as the serial number value, it indicates that the light source corresponding to the detection point should be turned on, otherwise, the light source should be turned off. For example, the value of the 3 rd detection point in fig. 3 is 0, which is not equal to 3, so the state of the point light source should be switched off, and the other points are all on.
The invention provides a multi-light source exposure controller and a method based on FPGA, which are characterized in that a trigger signal sent by an external trigger input unit 102 is received by an FPGA processing unit 103 and compared with a numerical sequence sent by a serial port communication unit 101, and a light source trigger signal is sent to a multi-light source trigger unit 104; the corresponding multi-combination light source controller is turned on and off according to different scenes, meanwhile, the stepping control module 30 receives a trigger signal output after the camera finishes image acquisition or receives a motion trigger signal sent by the system control module 20, controls a motion table bearing a detection object to step to a next detection point, outputs a motion in-place trigger signal to the external trigger input unit 102 after stepping is finished, adopts a hardware trigger mode, obviously improves the time overhead of software for realizing light source control, and meets the requirement of a multi-scene multi-combination light source control technology for a multi-light source exposure detection technology.
In a second aspect, please refer to fig. 4, which is a schematic flow chart of a multi-light-source exposure control method based on FPGA according to the present invention. Specifically, as shown in fig. 4, the multi-light-source exposure control method based on the FPGA may include the following steps:
s101, acquiring a numerical sequence transmitted by the system control module 20 through the serial communication unit 101, and storing the numerical sequence in the corresponding FIFO memory 1033;
s102, after receiving the trigger signal sent by the system control module 20 or the motion-in-place trigger signal sent by the step control module 30, counting and comparing the trigger signals according to the numerical sequence stored in the FIFO memory 1033, and outputting a light source trigger signal;
s103, switching the state of the light source controller according to the light source trigger signal, and outputting a feedback trigger signal for completing the switching of the light source after the switching is completed;
s104, starting exposure and image acquisition, outputting an image acquisition completion trigger signal after image acquisition is completed, and simultaneously transmitting an image to the system control module 20 for storage and analysis;
and S105, after receiving the picture-taking completion trigger signal, controlling the motion platform to move to the next detection point, and then outputting a motion-in-place trigger signal.
The specific process is as follows: the system controller transmits the numerical sequence of the multi-light source exposure controller through a serial port; the multi-light source exposure controller receives the numerical value sequence transmitted by the system controller through the serial port communication module and stores the numerical value sequence in the corresponding FIFO memory 1033; the system controller outputs the motion trigger signal of the stepping controller through software; after the step controller receives the motion trigger signal, the step controller controls the motion platform to move to the next detection point and then outputs a motion in-place trigger signal; after receiving the in-place movement trigger signal, the multi-light-source exposure controller counts the trigger signal and compares the trigger signal with the input light source control trigger signal; the counter 1031 counts the input trigger signals by one, the comparator 1032 correspondingly compares the count value with the serial number value of the numerical sequence, and if the count value is equal to the serial number value, the light source trigger signal with the specified pulse width is output to the multi-light-source trigger unit 104; if the count value is not equal to the serial number value, outputting a light source turn-off signal to the multi-light source triggering unit 104; the light source controllers receive the light source triggering signals or the light source closing signals, switch the state of the light sources according to the signals, and output light source switching completion feedback triggering signals after the switching is completed; the camera starts exposure image collection after receiving a light source switching completion feedback signal, outputs an image collection completion trigger signal after image collection is completed, and simultaneously transmits an image to the system controller for storage and analysis; the step controller controls the motion platform to move to the next detection point after receiving the picture-taking completion trigger signal, and then outputs a motion-in-place trigger signal; and then, after receiving the trigger signal for moving to the right position from the multi-light source exposure controller, repeating the operation to complete multi-point detection, wherein the system controller can continuously transmit numerical values carrying state information of the point light source detection through a serial port. The time overhead from the receiving of the external motion in-place trigger signal to the completion of counting, comparing and outputting the light source control trigger signal by the multi-light source exposure controller is only about 400ns, and the time overhead of the multi-light source exposure control is far lower than that of a software control mode.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (6)

1.一种基于FPGA的多光源曝光控制器,其特征在于,1. a multi-light source exposure controller based on FPGA, is characterized in that, 包括多光源曝光控制模块和系统控制模块,所述多光源曝光控制模块包括串口通讯单元、外触发输入单元、FPGA处理单元和多光源触发单元,所述串口通讯单元、所述外触发输入单元和所述多光源触发单元均与所述FPGA处理单元电性连接,所述系统控制模块与所述外触发输入单元、所述串口通讯单元和相机电性连接,所述多光源触发单元通过至少两个光源控制器与相机电性连接;其中:Including a multi-light source exposure control module and a system control module, the multi-light source exposure control module includes a serial port communication unit, an external trigger input unit, an FPGA processing unit and a multi-light source trigger unit, the serial port communication unit, the external trigger input unit and the The multi-light source triggering unit is electrically connected with the FPGA processing unit, the system control module is electrically connected with the external trigger input unit, the serial communication unit and the camera, and the multi-light source triggering unit is electrically connected through at least two Each light source controller is electrically connected to the camera; wherein: 所述系统控制模块,用于接收相机传输的图像信息,同时通过串口通讯向所述串口通讯单元发送数值序列;The system control module is used for receiving the image information transmitted by the camera, and at the same time sending a numerical sequence to the serial communication unit through serial communication; 所述串口通讯单元,用于所述系统控制模块和所述FPGA处理单元之间的串口信号隔离转换和传输;The serial port communication unit is used for isolation, conversion and transmission of serial port signals between the system control module and the FPGA processing unit; 所述外触发输入单元,用于隔离输入所述系统控制模块的触发信号;The external trigger input unit is used to isolate the trigger signal input to the system control module; 所述FPGA处理单元,用于接收所述外触发输入单元发送的触发信号的计数值,最后和通过所述串口通讯单元发送的数值序列进行比较处理,向所述多光源触发单元发送光源触发信号;The FPGA processing unit is used to receive the count value of the trigger signal sent by the external trigger input unit, and finally compare and process the numerical sequence sent by the serial port communication unit, and send a light source trigger signal to the multi-light source trigger unit ; 所述多光源触发单元,用于将所述FPGA处理单元输出的光源触发信号输出至至少两个光源控制器,同时进行隔离;The multi-light source triggering unit is configured to output the light source triggering signal output by the FPGA processing unit to at least two light source controllers, and isolate them at the same time; 所述FPGA处理单元包括一个计数器、至少两个比较器和至少两个FIFO存储器,所述比较器和所述FIFO存储器的数量相等;所述计数器与所述外触发输入单元电性连接,且与至少两个所述比较器电性连接,每一所述比较器与每一所述FIFO存储器电性连接,且与所述多光源触发单元电性连接,每一所述FIFO存储器与所述串口通讯单元电性连接;其中:The FPGA processing unit includes a counter, at least two comparators and at least two FIFO memories, the comparators and the FIFO memories are equal in number; the counter is electrically connected to the external trigger input unit, and is connected to the external trigger input unit. At least two of the comparators are electrically connected, each of the comparators is electrically connected to each of the FIFO memories, and is electrically connected to the multi-light source triggering unit, and each of the FIFO memories is electrically connected to the serial port The communication unit is electrically connected; wherein: 所述计数器,用于对所述外触发输入单元输入的触发信号进行加一计数,并存储在指定的寄存器中,将计数值提供给每一所述比较器;The counter is used to count up the trigger signal input by the external trigger input unit, and store it in a designated register, and provide the count value to each of the comparators; 所述比较器,用于接收到所述计数器提供的计数值后从对应的所述FIFO存储器中获取当前序号值,并对从FIFO存储器中获取的序号值和计数值进行比较,如果数值相同就输出指定脉宽的光源触发信号至所述多光源触发单元;The comparator is used to obtain the current serial number value from the corresponding FIFO memory after receiving the count value provided by the counter, and compare the serial number value obtained from the FIFO memory with the count value, and if the values are the same, outputting a light source trigger signal with a specified pulse width to the multi-light source trigger unit; 所述FIFO存储器,用于接收所述串口通讯单元发送的数值序列,按照堆栈队列进行存储用于所述比较器比较的数值,在每次所述比较器比较时自动输出队列最顶端的数值用于比较,同时整个队列数值自动前移,用于下一次输出。The FIFO memory is used to receive the numerical sequence sent by the serial communication unit, store the numerical value used for the comparator comparison according to the stack queue, and automatically output the numerical value at the top of the queue every time the comparator compares. For comparison, the entire queue value is automatically moved forward for the next output. 2.如权利要求1所述的基于FPGA的多光源曝光控制器,其特征在于,2. FPGA-based multi-light source exposure controller as claimed in claim 1, is characterized in that, 所述多光源曝光控制模块还包括电源单元,所述电源单元与所述FPGA处理单元电性连接,用于为所述多光源曝光控制模块提供电源。The multi-light source exposure control module further includes a power supply unit, which is electrically connected to the FPGA processing unit and used to provide power for the multi-light source exposure control module. 3.如权利要求1所述的基于FPGA的多光源曝光控制器,其特征在于,3. FPGA-based multi-light source exposure controller as claimed in claim 1, is characterized in that, 所述多光源曝光控制模块还包括复位电路单元,所述复位电路单元与所述FPGA处理单元电性连接,用于所述多光源曝光控制模块的手动复位。The multi-light source exposure control module further includes a reset circuit unit, which is electrically connected to the FPGA processing unit and used for manual reset of the multi-light source exposure control module. 4.如权利要求1所述的基于FPGA的多光源曝光控制器,其特征在于,4. FPGA-based multi-light source exposure controller as claimed in claim 1, is characterized in that, 所述基于FPGA的多光源曝光控制器还包括步进控制模块,所述步进控制模块与所述系统控制模块、所述外触发输入单元和相机电性连接;其中:The FPGA-based multi-light source exposure controller further includes a stepping control module, which is electrically connected to the system control module, the external trigger input unit and the camera; wherein: 所述系统控制模块,还用于软件控制所述步进控制模块运动;The system control module is also used for software to control the movement of the stepping control module; 所述外触发输入单元,还用于接收所述步进控制模块发送的运动到位触发信号;The external trigger input unit is further configured to receive a motion-in-position trigger signal sent by the stepping control module; 所述步进控制模块,用于接收相机采图完成后输出的触发信号或是接收到所述系统控制模块发送的运动触发信号后,控制承载检测物的运动台步进至下一检测点,步进完成后输出运动到位触发信号至所述外触发输入单元。The step control module is used for receiving the trigger signal output by the camera after the image acquisition is completed or after receiving the motion trigger signal sent by the system control module, and controlling the moving table carrying the detection object to step to the next detection point, After the stepping is completed, a motion-in-position trigger signal is output to the external trigger input unit. 5.一种基于FPGA的多光源曝光控制方法,其特征在于,包括:5. a multi-light source exposure control method based on FPGA, is characterized in that, comprises: 获取系统控制模块通过串口通讯单元传输的数值序列,并存储至相应的FIFO存储器中;Obtain the numerical sequence transmitted by the system control module through the serial communication unit, and store it in the corresponding FIFO memory; 接收外触发输入单元发送的触发信号或步进控制模块发送的运动到位触发信号后,对触发信号进行计数,与存储至所述FIFO存储器的数值序列进行比较,输出光源触发信号;After receiving the trigger signal sent by the external trigger input unit or the movement in-position trigger signal sent by the stepping control module, the trigger signal is counted, compared with the numerical sequence stored in the FIFO memory, and the light source trigger signal is output; 根据光源触发信号切换光源控制器的状态,切换完成后输出光源切换完成反馈触发信号;Switch the state of the light source controller according to the light source trigger signal, and output the light source switching completion feedback trigger signal after the switch is completed; 开始曝光采图,采图完成后输出采图完成触发信号,同时传输图像至所述系统控制模块进行存储分析;Start exposure and image capture, output image capture completion trigger signal after image capture, and transmit the image to the system control module for storage and analysis at the same time; 接收到采图完成触发信号后控制运动台运动到下一检测点,然后输出运动到位触发信号。After receiving the trigger signal of completion of image acquisition, it controls the motion stage to move to the next detection point, and then outputs the trigger signal of movement in place. 6.如权利要求5所述的基于FPGA的多光源曝光控制方法,其特征在于,所述对触发信号进行计数,与存储至所述FIFO存储器的数值序列进行比较,输出光源触发信号,包括:6. The FPGA-based multi-light source exposure control method according to claim 5, wherein the trigger signal is counted, compared with the numerical sequence stored in the FIFO memory, and the light source trigger signal is output, comprising: 获取所述外触发输入单元输入的触发信号进行加一计数;Acquiring the trigger signal input by the external trigger input unit to count up by one; 获取存储至所述FIFO存储器中的序号值;Obtain the sequence number value stored in the FIFO memory; 将计数值与序号值进行对应比较,若计数值与序号值相等,则输出指定脉宽的光源触发信号至多光源触发单元;若计数值与序号值不相等,则输出光源关闭信号至所述多光源触发单元。Compare the count value with the serial number value, if the count value is equal to the serial number value, output the light source trigger signal with the specified pulse width to the multi-light source trigger unit; if the count value is not equal to the serial number value, output the light source off signal to the multi-light source trigger unit Light source trigger unit.
CN201910768225.4A 2019-08-20 2019-08-20 A multi-light source exposure controller and method based on FPGA Active CN110475076B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910768225.4A CN110475076B (en) 2019-08-20 2019-08-20 A multi-light source exposure controller and method based on FPGA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910768225.4A CN110475076B (en) 2019-08-20 2019-08-20 A multi-light source exposure controller and method based on FPGA

Publications (2)

Publication Number Publication Date
CN110475076A CN110475076A (en) 2019-11-19
CN110475076B true CN110475076B (en) 2021-01-05

Family

ID=68511990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910768225.4A Active CN110475076B (en) 2019-08-20 2019-08-20 A multi-light source exposure controller and method based on FPGA

Country Status (1)

Country Link
CN (1) CN110475076B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112165577B (en) * 2020-09-27 2022-01-04 展讯通信(上海)有限公司 Light source control method and device of multi-light source camera equipment, medium and terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102176199A (en) * 2011-01-28 2011-09-07 中国科学院西安光学精密机械研究所 True random number generation method and device
CN105991933A (en) * 2015-02-15 2016-10-05 比亚迪股份有限公司 Image sensor
CN107172781A (en) * 2017-06-12 2017-09-15 广东奥普特科技股份有限公司 Control system and implementation method of programmable strobe mode of visual light source controller
WO2018055611A1 (en) * 2016-09-20 2018-03-29 Brightway Vision Ltd. Pulsed light illuminator having a configurable setup
CN107948525A (en) * 2017-12-26 2018-04-20 北京航空航天大学 A kind of timing control and tape deck for being suitable for High Speed Photography Images and sensor signal
CN108139482A (en) * 2015-10-09 2018-06-08 松下知识产权经营株式会社 Photographic device and the solid-state imager used wherein

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8249171B2 (en) * 2006-11-10 2012-08-21 Texas Instruments Incorporated MPEG-2 transport stream packet synchronizer
CN208795371U (en) * 2018-10-19 2019-04-26 中国科学技术大学 A multiphoton coincidence counting device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102176199A (en) * 2011-01-28 2011-09-07 中国科学院西安光学精密机械研究所 True random number generation method and device
CN105991933A (en) * 2015-02-15 2016-10-05 比亚迪股份有限公司 Image sensor
CN108139482A (en) * 2015-10-09 2018-06-08 松下知识产权经营株式会社 Photographic device and the solid-state imager used wherein
WO2018055611A1 (en) * 2016-09-20 2018-03-29 Brightway Vision Ltd. Pulsed light illuminator having a configurable setup
CN107172781A (en) * 2017-06-12 2017-09-15 广东奥普特科技股份有限公司 Control system and implementation method of programmable strobe mode of visual light source controller
CN107948525A (en) * 2017-12-26 2018-04-20 北京航空航天大学 A kind of timing control and tape deck for being suitable for High Speed Photography Images and sensor signal

Also Published As

Publication number Publication date
CN110475076A (en) 2019-11-19

Similar Documents

Publication Publication Date Title
CN103676739B (en) A kind of DMA data transmission system based on embedded motion control board card and transmission method thereof
US7921333B2 (en) Method and systems for providing data replay, reprocess and retrigger functions in an analyzer
CN109600532B (en) Unmanned aerial vehicle multi-channel video seamless switching system and method
CN110475076B (en) A multi-light source exposure controller and method based on FPGA
KR20160111828A (en) Digital Micromirror Device Controller for processing light exposure data at high speed with type based by location and system thereof
CN103176014A (en) Wave form data decoding device and oscilloscope
US10298842B2 (en) Information processing device, image system, and method of transferring data
CN210007776U (en) General type image acquisition system
US20240303215A1 (en) Communication device, communication system, and communication method
Yan et al. Design of CMOS image acquisition system based on FPGA
CN110069435B (en) Multi-camera module configuration method based on USB 3.0-SCCB
CN110012201B (en) USB3.0 ultra-high-speed camera based on fully programmable SOC and working method thereof
CN116506057B (en) Time sequence controller and imaging control device
US10425583B2 (en) Imaging device
CN214205739U (en) General type high definition display system based on FPGA for photoelectric platform
CN111556246B (en) System and method for controlling high-speed data transmission of micro-nano camera
CN100481913C (en) Device of asynchronous acquisition for image in real time
CN103064811A (en) High-speed high-definition image collecting and storing device for biological microscope
CN104717446A (en) Method for automatically converting videos of multiple formats to video of ITU 656 protocol PAL format
CN208888840U (en) Image object detection device
CN109359068A (en) Labview-based method for processing angle measurement data of circular grating with high throughput
CN210807463U (en) Video camera
CN115604809B (en) Data synchronization method and data acquisition device between multiple wireless synchronous data acquisition modules
CN217467505U (en) Multifunctional synchronous control device
KR100320151B1 (en) Control Unit for Multi Image Signal Storage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant