| In nuclear magnetic resonance spectrometer, usually use CAN bus for high-speed data transmission. CAN bus has the advantages of easy to use, high data reliability, But with the increasing of nuclear magnetic resonance spectrometer’s resonance frequency in the study, CAN bus IMbps transmission speed has gradually become a bottleneck to limit the system of data transmission, but USB2.0interface technology has up to480Mbps transfer rate, with High reliability of data transmission,which is fully able to meet the increasing frequency of nuclear magnetic resonance spectrometer data collection and transmission requirements.USB is the most widely used computer peripheral interface standard, with the advantages of Plug and Play, high-speed transfer rate and so on. Cypress company’s EZ-USB FX2series chip integrated USB2.0transceiver,enhanced8051microcontroller, serial interface engine, and programmable external interfaces in a single-chip, with the FPGA for the control of external logic, they can constitute a high-speed data transmission systemIn this paper, I’m on the basis of in-depth understanding of the USB2.0protocol,use EZ-USB FX2chip and the EP1C6FPGA chip build a hardware platform, design a data transmission system based on USB2.0and FPGA with the combination of hardware and software, achieve the data transmission based on the SLAVE FIFO mode and GPIF mode between the EZ-USB FX2chip and FPGA, and test the speed, and hope this study can be applied in the data transmission system of nuclear magnetic resonance spectrometer in the future. The main work done in this paper can be summarized as follows:(1) Study the USB bus protocol In-depth, to lay a theoretical foundation for the design of the data transmission system.(2) On the basis of deep understanding of the USB2.0specification, overally design data transmission system from hardware platforms and software modules.Use the EZ-USB FX2chip and the EP1C6the FPGA chip to build a hardware platform, And plan a system of three software modules:USB firmware, FPGA logic program and the host computer applications program.(3) Use Cypress USB device firmware development package framework to prepare the USB firmware, use the VHDL hardware description language write the external logic control program, finally, use VC++to write PC applications, and control operation via a PC application interface,realize high-speed data transmission by SLAVE FIFO mode and GPIF mode ultimatly and conducta speed test.The final results show that the data transmission system based on USB2.0and FPGA is fully capable of performing high-speed data transmission,which is for this technology used in nuclear magnetic resonance spectrometer data acquisition and transmission system provides a good guide and reference in the future. |