Modern production and scientific research have increasing demands on image acquisition systems. As a front-end device for digital image acquisition and transmission, high-speed line scan cameras’ scanning speed and quality largely determine the performance of the entire system. Line scan cameras on the market are very expensive, so there is a need to develop affordable high-speed line scan cameras.
Designing a high-speed line scan camera includes the hardware structure of the camera itself and the related software for camera operation. From the perspective of the camera structure, the line scan camera is an image acquisition and visual information acquisition device, and its main function is to convert optical image signals into digital image signals. Generally speaking, it consists of an optical imaging part, a photoelectric conversion part (converting analog optical signals into analog electrical signals), and A/D conversion. The photoelectric conversion part is generally implemented by a solid-state image sensor.
Figure 1 System structure diagram of camera
Figure 2 Functional block diagram of the clock signal and control signal generated by the camera's internal CPLD
Figure 3 DSP camera workflow diagram
Introduction to TMS320C6201
TMS320C6201 is mainly composed of three parts: CPU, peripheral devices and memory. The address bus of C6201 is 32 bits, so the addressing range reaches 4GB. Its memory space can be divided into four parts: the on-chip program space can be used as Cache, on-chip data space, external storage space and internal peripheral device space. The address range of each space can be flexibly set by setting the five BOOTMODEs. The on-chip data RAM includes four 8K×16bit blocks. These blocks are interleaved, allowing the CPU to access two different blocks of the data RAM at the same time without conflict, improving the ability to read and write data in parallel. For larger programs, the on-chip program RAM can be used as a Cache to store frequently used codes, reducing the number of off-chip accesses and thereby increasing program running speed. Different from common chips, C6201 has eight functional units, divided into two groups. Each group includes a multiplier Mn and three arithmetic and logic operation units Dn, Sn, and Ln. They perform multiplication operations, addition and subtraction operations, linear and circular address calculations, and arithmetic and logical operations respectively. Because the input/output ports are independent of each other, the eight computing units can achieve parallel processing. Each group of computing units corresponds to a data path and can be used for circular address calculation.
Design and implementation of line scan camera
The system structure of this line scan camera is shown in Figure 1.
CCD analog image data acquisition part
This part includes CCD sensor and CCD signal processing channel chip. It mainly consists of image sensor IL-P1-4096 and CCD signal processing channel chip VSP2254. Its main function is to convert simulated light distribution information into digital image data. This part of the circuit receives various working clocks and various acquisition control signals provided by the CPLD, and outputs corresponding digital image data.
DSP data processing part
This part includes the buffer chip of digital image data, the processing chip and the processed data temporary storage chip. The main function of this part is to process the digital image data sent from the image acquisition part, and store the processed data into the corresponding storage unit. This part is composed of DSP chip TMS320C6201, FIFO data buffer circuit, dual-port RAM and other chips. In this circuit, the FIFO data buffer circuit not only receives the write clock and write control signal from the CPLD, but also receives the read clock and read control signal from the DSP chip. The input of the FIFO data buffer circuit is connected to the CCD channel processing chip VSP2254, and its output is sent to the 32-bit internal data bus under the control of the DSP. DSP provides different control signals to CPLD according to different working modes. These signals are processed by corresponding logic inside the CPLD and then serve as control signals for other parts. The DSP chip also provides corresponding read and write control signals for the dual-port RAM and corresponding DMA services for its data transmission. On the one hand, the dual-port RAM receives the processed image data from the DSP, and on the other hand, it provides preparation for data transmission. Dual-port RAM works under the dual control of DSP chip and CPLD logic circuit.
Clock and control signal generation circuit
This part includes the CPLD clock generation logic circuit and control logic circuit. The circuit is mainly composed of CPLD chip LC4128V100 and its peripheral circuits. The clock circuit of the camera mainly implements two functions: 1. Provides the basic clock required for camera operation, which includes the clock required for the operation of the CCD sensor and the working clock provided for the CCD signal processing channel (i.e., the CCD signal front shoulder sampling clock SHP, CCD signal sampling clock SHD, CCD signal dummy shielding clock CLPOB, CCD signal black level bit clock CLPDM and data transfer clock ADCCK), output synchronization clock DIR-STROBE and output row valid provided for the output circuit Synchronous clock DIR-LVAL and provides a 50MHz working FSB for the C6201 (this clock is output to 200MHz after being multiplied by 4 inside the C6201 as the DSP main frequency). 2. Together with the control signal output by the DSP, it forms a combinational logic circuit to realize the control of the peripheral circuit by the DSP chip (including the control of the flash memory chip AT49LV409, the dual-port RAM chip IDT70V261S, the FIFO chip IDT723635, as well as the external interface circuit and CCD signal acquisition circuit) . Judging from the functions of the above clock and control signal generation circuits, the programmable logic chips used to implement their functions must meet certain performance requirements. From the perspective of delay, since the internal access reference clock is 200MHz, the delay between chip pins is required to be less than 5ns, and the timing is better controllable. From a capacity perspective, there must be enough macro cells to achieve the above functions. The control function block diagram is shown in Figure 2.
Power supply and data output circuit
This part includes the CPLD address generation circuit and the LVDS data upload circuit. Its function is to provide the power required for the camera to work and complete the communication with the PC (this includes uploading the processed image data to the PC, receiving PC control signals, etc.). The power circuit provides several sets of power supplies such as +5V, -5V, +1.8V, +3.3V, and +15V for the entire camera. Among them, +5V is the main power supply for the whole machine.
The amount of image data collected based on horizontal scan line technology is relatively large. To upload images with large amounts of data to the computer in real time and quickly, there are certain requirements for the transmission rate of the data transmission interface. Among the several current computer interfaces, the one that can meet fast communication requirements and is easy to use in design is the LVDS interface. Moreover, the interface has strong driving capability and can transmit data at high speed in both directions. Chips DS90C31B and DS90C32B are data transceiver pairing chips specially used for LVDS interfaces. DS90C31B is a data sending chip, and DS90C32B is a data receiving chip. The control of these two chips is very simple, and the data transfer rate can reach 155.5Mbps (77.7MHz). However, in order to suppress signal reflection and balance differential signals during circuit connection, a 100 Ω resistor must be connected to each set of signal loops.
The working mode and process
of line scan camera comprehensively consider the working mode of the camera to adapt to different working environment requirements. Its working mode is divided into four categories: active real-time acquisition, active non-real-time acquisition, passive real-time acquisition, and passive non-real-time acquisition. kind. Due to space limitations, each working mode is not described in detail here. The workflow of the line scan camera is shown in Figure 3.
Conclusion:
The high-speed digital camera design proposed in this article is generally feasible and can realize the collection of dynamic images.
Previous article:Application of scheduler in DSP programming
Next article:Research on DSP-based vehicle video processing system
Recommended ReadingLatest update time:2024-11-16 22:53
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- 【GD32450I-EVAL】+ 05FreeRTOS porting and task creation
- stm32 got stuck halfway through downloading
- [Zero-knowledge ESP8266 tutorial] Quick start 27 Use of ADXL345 sensor module
- I need a total output of 3.3V 15A
- RT-Thread Application Practice-TI Temperature and Humidity HDC1000 Software Package Design and Production
- About Flash memory sectors, blocks, and pages
- Components Science Popularization: Component Selection Specifications
- Domestic PCB drawing software
- Solutions to the "Disconnected-you are now offline" issue when connecting to the Ubuntu system
- 【Perf-V Evaluation】UART