CN111324566A - Synchronous RS422 data receiving equipment based on USB interface - Google Patents

Synchronous RS422 data receiving equipment based on USB interface Download PDF

Info

Publication number
CN111324566A
CN111324566A CN201811543240.0A CN201811543240A CN111324566A CN 111324566 A CN111324566 A CN 111324566A CN 201811543240 A CN201811543240 A CN 201811543240A CN 111324566 A CN111324566 A CN 111324566A
Authority
CN
China
Prior art keywords
data
fpga
fifo
synchronous
usb interface
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.)
Pending
Application number
CN201811543240.0A
Other languages
Chinese (zh)
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.)
Beijing Huahang Radio Measurement Research Institute
Original Assignee
Beijing Huahang Radio Measurement Research Institute
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 Beijing Huahang Radio Measurement Research Institute filed Critical Beijing Huahang Radio Measurement Research Institute
Priority to CN201811543240.0A priority Critical patent/CN111324566A/en
Publication of CN111324566A publication Critical patent/CN111324566A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4286Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a handshaking protocol, e.g. RS232C link
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

A synchronous RS422 data receiving device based on a USB interface comprises a level conversion module, a level conversion module and a Field Programmable Gate Array (FPGA), wherein the level conversion module converts an RS422 level signal into a linear voltage transistor logic (LVTTL) signal and outputs the LVTTL signal to the FPGA for processing; the programmable logic device (FPGA) is used for receiving data, synchronous code detection is carried out through shifting, conversion from bit flow to Byte data is completed, the Byte data is stored into an FIFO inside the FPGA, and the data of the FIFO inside the FPGA is transferred to a USB interface chip endpoint FIFO; the USB interface transmits the data in the endpoint FIFO to the computer through a USB bus according to a USB reading request of the computer interface; and the power supply module obtains a 5V direct current power supply from the USB interface. The invention aims to meet the test requirement of the data output device with the synchronous RS422 interface.

Description

Synchronous RS422 data receiving equipment based on USB interface
Technical Field
The invention belongs to the field of test equipment, and particularly relates to synchronous RS422 data receiving equipment.
Background
The synchronous RS422 interface is a communication interface commonly used on military equipment, Byte bytes are transmitted according to bit stream according to an input source clock beat through a pair of clock lines and a pair of data lines, the interference resistance is equivalent to that of the asynchronous RS422, and the transmission efficiency is far higher than that of an asynchronous RS422 transmission mode. The synchronous RS422 interface is currently used more as a communication interface between the data source and the wireless data link. In the process of converting the data from Byte to Bit stream, the position information of the Bit-to-Byte mapping is lost. In order to solve the problem, two bytes 0xEB and 0x90 are regularly inserted as a synchronization code when the Byte data is transmitted, Bit is shifted at a receiving end, and when the Bit is equal to the synchronization code, the corresponding relation between Bit and Byte can be determined, so that the data can be synchronized and recovered.
At present, PCI/PCIe and other general digital acquisition cards are mostly adopted, and the system is only suitable for industrial personal computers with card slots, and is large in size and complex in development difficulty.
Disclosure of Invention
The invention aims to meet the test requirement of data output equipment (pod and seeker) with a synchronous RS422 interface. The system meets the requirements of real-time acquisition and storage, has the advantages of hardware synchronization, low cost and easy portability.
A synchronous RS422 data receiving device based on a USB interface comprises a level conversion module, a programmable logic device (FPGA), the USB interface and a power supply module; the level conversion module converts the RS422 level signal into an LVTTL signal and outputs the LVTTL signal to the FPGA for processing; the programmable logic device (FPGA) is used for receiving data, synchronous code detection is carried out through shifting, conversion from bit flow to Byte data is completed, the Byte data is stored into an FIFO inside the FPGA, the FIFO state of a USB interface chip endpoint is detected, and the data of the FIFO inside the FPGA is transferred to the FIFO of the USB interface chip endpoint; the USB interface transmits the data in the endpoint FIFO to the computer through a USB bus according to a USB reading request of the computer interface; the power supply module obtains a 5V direct current power supply from the USB interface and converts a power supply required by an on-board chip by adopting the LDO.
The invention has low cost, low power consumption and light weight, can be used on equipment with a USB2.0 interface, such as a notebook computer and the like, and has easy portability and wider application range compared with a PCI/PCIe and other general digital acquisition cards. The invention solves the problem of testing the synchronous RS422 interface and meets the test requirement of military load equipment in the market.
Drawings
FIG. 1 is a block diagram of a synchronous RS422 data acquisition device;
FIG. 2 is a synchronization principle;
FIG. 3 is a state machine for FPGA control USB endpoint FIFO write control.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
The device realizes data acquisition through a universal USB2.0 data transmission interface, selects a mature, stable and reliable mainstream chip in the aspect of device selection, and considers the requirements of small volume and low power consumption.
A synchronous RS422 data receiving device based on a USB interface, as shown in fig. 1, includes a level conversion module, a programmable logic device, a USB interface, and a power supply module.
In the level conversion module, the low-voltage high-speed four-way differential line receiver AM26LV32 of the TI company is adopted in this embodiment, an RS422 level signal is converted into an LVTTL signal, and an output signal is accessed to the FPGA. The chip adopts 3.3V power supply, and the maximum wire rate of 32Mbps is supported.
The programmable logic device (FPGA) adopts Spartan6 series FPGA of Xilinx company, the selected model is XC6SLX9, and a 45nm low-power-consumption technology is adopted, so that the power consumption, the performance and the cost are well balanced. The development is realized through a hardware description language.
The following functions are realized, the DATA converted into LVTTL level and the associated clock CLK signal are received, and by performing a shift operation on the DATA signal, it is determined whether the DATA in the shift register is equal to 0xEB90, if so, the DATA is synchronized, otherwise, the shift is continued until the DATA is synchronized, as shown in fig. 2. And (3) forming Byte by the synchronized data and storing the Byte into an internal FIFO (first in first out) of the FPGA, and for the data input rate of 10Mbps, the depth of the FIFO is not less than 256. And detecting the state of the double ping-pong FIFO of the USB endpoint, reading data of the internal FIFO of the FPGA and writing the data into the endpoint FIFO when the endpoint FIFO is not empty, as shown in FIG. 3.
The USB interface adopts a CY7C68013 chip of Cypress technology, a 51-chip microcomputer inner core is arranged in the USB interface, a USB2.0 protocol is integrated, official firmware is adopted, the USB2.0 function can be completed only by simple configuration, data transmission is performed between the USB interface and the FPGA in a double-ping-pong Slave FIFO mode,
the power supply module adopts TLV1117LV33 and TLV1117LV18 low-voltage difference linear voltage-stabilizing chips of TI company to convert a 5V VBUS direct-current power supply provided by a USB interface into 3.3V and 1.2V required by equipment.
The device is matched with an official API function provided by a USB2.0 chip manufacturer, data acquisition and storage can be realized, the device is simple and easy to use, low in cost, easy to carry, stable and reliable in the actual use process, and the problem of acquiring synchronous RS422 data is solved.

Claims (8)

1. A synchronous RS422 data receiving device based on a USB interface comprises a level conversion module, a programmable logic device (FPGA), the USB interface and a power supply module; the level conversion module converts the RS422 level signal into an LVTTL signal and outputs the LVTTL signal to the FPGA for processing; the programmable logic device (FPGA) is used for receiving data, synchronous code detection is carried out through shifting, conversion from bit flow to Byte data is completed, the Byte data is stored into an FIFO inside the FPGA, the FIFO state of a USB interface chip endpoint is detected, and the data of the FIFO inside the FPGA is transferred to the FIFO of the USB interface chip endpoint; the USB interface transmits the data in the endpoint FIFO to the computer through a USB bus according to a USB reading request of the computer interface; the power supply module obtains a 5V direct current power supply from the USB interface and converts a power supply required by an on-board chip by adopting the LDO.
2. The synchronous RS422 data receiving device according to claim 1, wherein said level conversion module uses a low voltage high speed four-way differential line receiver AM26LV32 of TI corporation, and is powered by 3.3V, and supports a line rate of up to 32 Mbps.
3. The synchronous RS422 data receiver of claim 1, wherein said programmable logic device (FPGA) is a Spartan6 series FPGA from Xilinx corporation, selected as model XC6SLX9, developed through a hardware description language.
4. The synchronous RS422 DATA receiving apparatus of claim 1 or 3, wherein a programmable logic device (FPGA) receives the DATA converted into LVTTL level and the associated clock CLK signal, judges whether the DATA in the shift register is equal to 0xEB90 by shifting the DATA signal, if so, the DATA is synchronized, otherwise, the shifting is continued until the DATA is synchronized, and stores the synchronized DATA into Byte stored in an internal FIFO of the FPGA; and detecting the state of the double ping-pong FIFO of the USB endpoint, reading the data of the FIFO inside the FPGA when the FIFO of the endpoint is not empty, and writing the data into the FIFO of the endpoint.
5. The synchronous RS422 data receiving apparatus of claim 4 wherein the FIFO depth is not less than 256 for a 10Mbps data input rate.
6. The synchronous RS422 data receiving device of claim 1, wherein the USB interface uses CY7C68013 chip of Cypress technology, has 51 single chip core inside, integrates USB2.0 protocol, uses official firmware, and uses double ping-pong Slave FIFO mode to transmit data between FPGA.
7. The synchronous RS422 data receiving device as claimed in claim 1, wherein the power supply module uses TLV1117LV33 and TLV1117LV18 low dropout linear regulator chips of TI company to convert the 5V VBUS DC power provided by the USB interface into 3.3V and 1.2V required by the device.
8. The synchronous RS422 data receiving device of claim 17 wherein the low dropout linear regulator chip cooperates with an official API function provided by a USB2.0 chip manufacturer to implement data collection and storage.
CN201811543240.0A 2018-12-17 2018-12-17 Synchronous RS422 data receiving equipment based on USB interface Pending CN111324566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811543240.0A CN111324566A (en) 2018-12-17 2018-12-17 Synchronous RS422 data receiving equipment based on USB interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811543240.0A CN111324566A (en) 2018-12-17 2018-12-17 Synchronous RS422 data receiving equipment based on USB interface

Publications (1)

Publication Number Publication Date
CN111324566A true CN111324566A (en) 2020-06-23

Family

ID=71170675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811543240.0A Pending CN111324566A (en) 2018-12-17 2018-12-17 Synchronous RS422 data receiving equipment based on USB interface

Country Status (1)

Country Link
CN (1) CN111324566A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408607A (en) * 2008-11-26 2009-04-15 中国科学院上海技术物理研究所 Star base reinforced satellite positioning and GPS compatible software receiver system
CN201449607U (en) * 2009-05-26 2010-05-05 西北工业大学 Data collector based on USB 2.0
CN101777036A (en) * 2009-01-09 2010-07-14 比亚迪股份有限公司 Device, USB equipment and method for realizing drive-free image data transmission
CN201654787U (en) * 2010-04-09 2010-11-24 成都远望科技有限责任公司 Data collecting device based on USB
KR20160050321A (en) * 2014-10-29 2016-05-11 이명해 Apparatus for motion control

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408607A (en) * 2008-11-26 2009-04-15 中国科学院上海技术物理研究所 Star base reinforced satellite positioning and GPS compatible software receiver system
CN101777036A (en) * 2009-01-09 2010-07-14 比亚迪股份有限公司 Device, USB equipment and method for realizing drive-free image data transmission
CN201449607U (en) * 2009-05-26 2010-05-05 西北工业大学 Data collector based on USB 2.0
CN201654787U (en) * 2010-04-09 2010-11-24 成都远望科技有限责任公司 Data collecting device based on USB
KR20160050321A (en) * 2014-10-29 2016-05-11 이명해 Apparatus for motion control

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
冯阳: ""基于单片机和FPGA的信号模拟器主机设计"", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *
张鹏 等: ""基于FPGA的PCM码收发模块设计"", 《计算机与数字工程》 *

Similar Documents

Publication Publication Date Title
CN101335736B (en) High-speed peripheral interconnecting interface
CN101334762B (en) Data-transmission system for computer
CN106571657B (en) Terminal, converter, and connection conversion system and method
TW201234184A (en) Adaptive USB charging method and system
CN101901202B (en) Circuit for cross clock domain accessing of AHB bus equipment to APB bus equipment
CN103823776A (en) Unibus in communication with master equipment and slave equipment and communication method
CN104915303A (en) High-speed digital I/O system based on PXIe bus
CN103678211B (en) The method for transmitting signals of USB interface and device thereof
CN102163184A (en) Master-slave transmission system and method based on special multi-chip serial interconnection interface
CN105786741B (en) SOC high-speed low-power-consumption bus and conversion method
CN104991880B (en) A kind of FC AE ASM Communication Cards based on PCI E interfaces
CN1328679C (en) Method for enhancing transfer rate of multimedia card using differential signal
CN109491940A (en) Conversion circuit and conversion method for TLK2711 transmission interface and USB3.0 transmission interface
CN102253916B (en) Double-end double-channel first in first out (FIFO) for synchronous-to-asynchronous conversion
CN201378851Y (en) CCD image data collecting device
CN103793353A (en) High-speed optical fiber data acquiring equipment of USB (universal serial bus) 3.0
CN104199343A (en) Micro data collection system based on serial storage mode
Cao et al. Working principle and application analysis of UART
CN103226531B (en) A kind of dual-port peripheral configuration interface circuit
CN111324566A (en) Synchronous RS422 data receiving equipment based on USB interface
CN105224486A (en) Based on the 1553B bus protocol module of LBE bus
CN209312015U (en) Conversion circuit of TLK2711 transmission interface and USB3.0 transmission interface
CN103853684A (en) Serial bus communication bridging device
CN203786725U (en) Serial bus communication bridge
CN103679101B (en) Handset audio reader device and system

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200623

WD01 Invention patent application deemed withdrawn after publication