High-speed CCD sound and light signal acquisition system based on FPGA and USB2.0

Publisher:Blissful5Latest update time:2010-03-17 Source: 现代电子技术Keywords:FPGA Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

0 Introduction

In the field of modern communications and radar, broadband, high gain, and real-time parallel processing are important features of modern receivers. Therefore, this kind of acousto-optic processing system with high-speed parallel processing capability and unique large bandwidth performance has huge potential advantages. In addition to the characteristics of broadband, high gain, and real-time parallel processing, the receiver based on acousto-optic devices also has the advantages of large capacity, small size, and low power consumption. Therefore, it is of great significance to use acousto-optic signal processing technology to solve the problems of bandwidth, high gain, and real-time parallel processing. The design of the acousto-optic signal acquisition system is one of the keys to the entire acousto-optic system. Here, a high-speed CCD acousto-optic signal acquisition system based on FPGA and USB 2.0 is designed to provide a hardware platform for acousto-optic signal acquisition.

1 System Overview

The block diagram of the sound and light signal acquisition system is shown in Figure 1. The system mainly consists of four parts: CCD sound and light signal acquisition module, A/D conversion module, FPGA drive and control module and USB interface transmission module.

Block diagram of the acoustic and optical signal acquisition system

After the system is powered on, the USB device completes the initialization setting and acquisition control of FPGA data acquisition parameters according to the command of the host computer. RL2048P works under the strict control of the drive timing. The collected analog signals are cached in the FIFO configured inside EP2C35 after the correlated double sampling and analog/digital conversion of the dedicated CCD signal processing chip AD9822. Then, when the data in the FIFO reaches 2 048 B, the data is asynchronously written to the USB controller CY7C68013A. Since the USB is set to automatic IN mode, the data in the FIFO can be directly transferred to the hard disk file of the PC host computer, thus completing the acquisition, transmission and storage of CCD sound and light signals.

2 Design of system modules

The system modules are designed as follows:

The FPGA drive and control module system uses Altera's CycloneⅡ series. EP2C35F672C6 chip, with high cost performance and rich logic resources, can meet the requirements of the system. There are 4 PLLs, 33 216 LEs, 48 ​​KB memory resources, which can be configured into various modes of ROM, RAM and FIFO, 35 18×18 dedicated multipliers. The main functions of FPGA are to generate RL2048P drive timing, control AD9822 sampling and serial programming of its registers, configure internal FIFO cache data and communicate with USB interface, and transmit data to the host computer.

The CCD acoustic and optical signal acquisition module uses the RL2048P linear array CCD of PerkinElmer. This chip is mainly used for high-speed signal acquisition, with 2,048 effective pixels, high sensitivity, large dynamic range, wide spectral range, etc. The maximum operating frequency is 40 MHz, and the system is designed for 10 MHz. The timing drive output of EP2C35 is 3.3 V LVTTL level, which cannot directly drive RL2048P (multi-level requirements). Therefore, DG642 and 74FCT16244TV chips are used to complete the level conversion and enhance the driving ability. Figure 2 is the RL2048P drive timing diagram; Figure 3 is the QuartusⅡ simulation of the drive timing written in Verilog HDL. From the comparison, it can be seen that the design can fully meet the strict requirements of the timing.

Timing diagram and simulation [page]

The A/D conversion module AD9822 is a dedicated CCD signal processing chip of ADI. It integrates CDS, PGA, 14-bit ADC , dark level automatic calibration, bias voltage control and serial interface functions, and the sampling speed is up to 15 MHz. The falling edge of ADCCLK outputs the high 8 bits of data, and the rising edge of ADCCLK outputs the low 6 bits of data. The AD9822 sampling control timing and register programming are implemented by EP2C35, which is synchronized with the output signal of RL2048P to ensure the correctness of the collected data. The correlated double sampling mode can suppress the reset noise of CCD. The registers of this system are set to 0x0058, 0x10C0, 0x2000, and 0x50FF respectively.

The USB interface transmission module USB 2.0 protocol has a transmission speed of up to 480 Mb/s, and has the advantages of simple interface and low bit error rate, which can meet the needs of high-speed transmission of the system. The new generation of low-power CY7C68013A chip from Cypress is selected, and the corresponding development kit and development documents are relatively complete, which shortens the development cycle and reduces the development difficulty. In order to ensure the speed of data transmission, CY7C68013A works in SlaveFIFO mode, and can complete data transmission with FPGA without the CPU intervention of EZ-USB FX2LP. The communication between EP2C35 and CY7C68013A adopts the asynchronous mode in Slave FIFO mode, writes data to the large endpoint EP6, configures it as a 512 B quadruple buffer, batch AUTO IN transmission mode, and automatically submits 512 B data each time. Figure 4 shows the interface connection between EP2C35 and CY7C68013A.

Interface connection between EP2C35 and CY7C68013A

3 System Software Design

System software design includes:

Firmware design The main function of the device firmware is to control CY7C68013A to receive and process the requests of the USB driver. Such as requesting device descriptors, requesting or setting device status, requesting or setting device interfaces and other USB 2.0 standard requests; assisting hardware to complete device re-enumeration, endpoint configuration, control and monitoring USB activities, and data exchange with peripheral circuits according to the commands of the PC host. Cy-press provides users with a firmware program framework, which is a highly versatile modular program. Based on the framework, users only need to write Function. c files to complete USB function development. It mainly includes: initialization of Slave FIFO mode and user-defined requests.

The driver development system includes two USB drivers: one driver is dedicated to download the chip firmware program CCDloader.sys, and the other general driver ccdusb.sys is used to realize the communication and control between USB devices and applications. The chip firmware program is on the host. When the system is powered on, the former downloads it to the chip's RAM and is executed by the enhanced 8051 microprocessor . When the firmware download is completed, a disconnection and reconnection is simulated . At this time, the downloaded firmware responds to USB enumeration and loads the USB device general driver. The USB driver is of WDM type and can be developed using Windows DDK, WinDriver, and DriverStudio.

The main task of application development is to communicate with the USB driver and control the process of sound and light signal acquisition. Here, Visual C++6.0 is used for program design. The CyAPI control function class provides a very fine control interface for the FX2LP series USB interface chip. You only need to add the header file CyAPI.h and the library file CyAPI.lib to the application to call the corresponding control function, open the USB device to read the data and store it in the CcdData.txt file on the host hard disk. [page]

4 Experimental data analysis

Using the TEKTRONIX oscilloscope, the RL2048P output signal after DC isolation was tested and analyzed under various experimental conditions. As shown in Figure 2, VOUT is the pixel output signal. Each pixel output signal has a synchronous reference signal at the beginning, and the latter part is the effective signal output. Since the CCD output signal is a negative polarity signal, the effective signal value is negative relative to the reference signal.

Figure 5 shows the output of RL2048P under full darkness. Since there is no light on the photosensitive surface, only dark level signal is output, so the effective signal of the pixel output is almost zero. Figure 6 shows the output of RL2048P under weak light condition, and the effective signal amplitude has changed. Figure 7 shows the output of RL2048P under full brightness condition, and the effective signal has reached the saturation value. The actual output of RL2048P is consistent with the theoretical analysis and works normally. The acoustic and optical signals are shone on the CCD through the opaque shielding plate with a hole in the middle, and the application software is used for data acquisition. 8192 pixel points, i.e. four frames of CCD data, are continuously extracted from the CCD Data.txt data file, and the Matlab software analysis is shown in Figure 8.

Output of RL2048P under various conditions

The position with light irradiation corresponds to the highest position, and the measured data is consistent with the theoretical value. Related experiments were also conducted under other conditions, and the results were basically consistent with the theory. Due to space limitations, this article does not provide a detailed introduction. The experimental results show that the system is fully functional and can achieve high-speed acquisition, transmission and storage of acoustic and optical signals.

5 Conclusion

The system uses on-site FPGA as the hardware design core and uses Veritog language to describe the hardware, making the system more flexible, online programmable, and easy to expand and upgrade. The CCD drive timing here adopts a new method combining state machine and frequency division. The actual test drive waveform is stable and has no burrs, and the CCD output signal quality is high. USB is used in Slave FIFO high-speed transmission mode, which meets the requirements of high-speed CCD sound and light signal acquisition, and has the characteristics of real-time, high speed, stability, and reliability.

Keywords:FPGA Reference address:High-speed CCD sound and light signal acquisition system based on FPGA and USB2.0

Previous article:Design of image compression wireless transmission system based on DSP
Next article:Design of a permanent magnet synchronous motor controller based on FPGA

Recommended ReadingLatest update time:2024-11-17 00:56

Research on System Testability Based on FPGA
introduction Modern technology has put forward higher requirements for system reliability, and FPGA technology has been widely used in electronic systems, so the testability of FPGA has become very important. The internal signals of FPGA to be obtained are very limited, and the electrical noise of FPGA packaging and
[Test Measurement]
Research on System Testability Based on FPGA
AMD acquires Xilinx? Where will the development of FPGA go?
In 1984, Ross Freeman and his colleagues founded Xilinx and launched the world's first true FPGA chip, the XC2064, and a new industry was born.   In 2020, after 36 years of development, Xilinx has become a star company in Silicon Valley, and the FPGA industry is no longer what it used to be. 5G and AI have brought
[Embedded]
AMD acquires Xilinx? Where will the development of FPGA go?
A remote temperature monitoring system based on single chip microcomputer and FPGA
Temperature has different degrees of influence on industrial and agricultural production and national defense. There are many kinds of power equipment failures, but most of them are accompanied by heating, and the loss of an accident is huge; in industries such as textiles, food, and tobacco, high temperatures can e
[Embedded]
A remote temperature monitoring system based on single chip microcomputer and FPGA
What are the differences between microcontrollers, ARM, and FPGA embedded systems, and what are their respective characteristics?
Features of MCU: (1) Limited by the integration level, the on-chip memory capacity is small, generally ROM: less than 8KB; (2) RAM: less than 256KB. (3) High reliability (4) Easy to expand (5) Strong control function (6) Easy to develop Features of ARM: (1) Built-in cheap program memory (FLASH) and non-volatile data m
[Microcontroller]
Lattice sensAI 4.1 Tools and IP Turn FPGAs into Intelligent AI/ML Computing Engines at the Network Edge
introduction No doubt you’ve read or heard about the massive and growing data streams generated by the proliferation of devices at the edge of the network, including self-driving cars, IoT devices, consumer electronics, and even laptops and PCs. According to multiple estimates, there will be tens of b
[Embedded]
Lattice sensAI 4.1 Tools and IP Turn FPGAs into Intelligent AI/ML Computing Engines at the Network Edge
Design of a frequency monitoring system based on FPGA and single chip microcomputer
O. Introduction This system effectively combines the microcontroller and FPGA to realize equal-precision frequency measurement and IDDS technology, giving full play to their respective advantages, making the design easier and more flexible, and has the characteristics of wide frequency measurement range, hi
[Embedded]
Design of a frequency monitoring system based on FPGA and single chip microcomputer
Design of Profibus-DP Master Station Communication Platform Based on FPGA and ARM
Abstract: This paper proposes a solution to realize the Profibus-DP master station (class 1) communication platform using FPGA and ARM microcontroller; analyzes the Profibus-DP communication protocol, focusing on the token rotation protocol; and gives the system construction of the master station communication platf
[Embedded]
Design of Profibus-DP Master Station Communication Platform Based on FPGA and ARM
FPGA-based PCI bus interface hardware debugging strategy
0 Introduction In the FPGA design process, completing the design input and successful synthesis, layout and routing can only mean that the design meets certain syntax specifications, but it cannot guarantee that it meets the functional requirements of the designer, so the design needs to be verified through
[Embedded]
FPGA-based PCI bus interface hardware debugging strategy
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号