| The thesis comes from the actual project of high-resolution CCD Imaging Electronic system.This paper generally introduces the control part of the system as well as discusses the principles and implementation of the software and hardware. The system is divided into the following two parts: the slave part based on FPGA, and the master part based on MFC. The slave part mainly carrys out the acquisition of image and transmitting it by means of LVDS technology. Meanwhile, the master part is responsible for the acquisition, display and storage of the image.The slave part is designed according to the core device-CCD. The key part of the CCD drive circuit is a pulse generation circuit, for the present, which is generally achieved by employing the programmable logic devices at home and abroad. In this design, aimed at characteristics of the selected CCD chip, this part is mainly accomplished by the FPGA. As the controlling core, the FPGA is mainly responsible for the communications with PC through the RS-422 interface, and the configuration of programmable ADC through the SPI interface, and the control of acquisition process of four ADC, and the cache and re-order processing of the collected data, and the histogram statistics and lining up a sequence of image data with pixel sync signal, line sync signal and frame sync signal which are transmitted to the LVDS signal drive unit. The LVDS signal drive unit changes the LVTTL image signal into LVDS signal so as to be received by the PC.The interactive interface is designed using MFC in PC. The remote control is completed by RS-232. The LVDS image acquisition card PCI-1424 is employed to carry out the high-speed image data acquisition. For black and white version of the CCD, the image is stored as uncompressed bitmap format; For the color version of CCD, the color interpolation algorithm is adopted so as to form the RGB image,which is also stored as uncompressed bitmap format. Meanwhile, the PC can display the image real time so as to achieve picture preview. In the process of collection and storage, a multi-thread technology is employed in order to prevent loss of image data frames from happening.After the design is completed, the whole system is debugged. The result shows that all the functions are realized. And the high resolution image photoed by the system is achievable. |