Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Serial port communication method based on FPGA

A serial port communication and serial port technology, applied in the field of FPGA-based serial port communication, can solve the problems of increasing design redundancy, increasing equipment volume, hardware cost, etc., and achieve the effect of accelerating design progress, increasing functional versatility, and wide application scenarios

Pending Publication Date: 2022-03-01
TIANJIN JINHANG INST OF TECH PHYSICS
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] When an embedded device needs to use multiple serial ports, it will increase the size of the device and hardware cost
And in the design stage of embedded devices, it may not be possible to accurately predict how many serial ports the device will eventually use, which will increase unnecessary design redundancy

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Serial port communication method based on FPGA
  • Serial port communication method based on FPGA
  • Serial port communication method based on FPGA

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0061] An FPGA-based serial port communication method, including: a built-in FPGA encoding end and decoding end, please refer to figure 1 In the schematic diagram of the hardware structure shown, 10 shows the encoding end; 20 shows the decoding end.

[0062] Specifically, the FPGA-based serial port communication method includes the following steps:

[0063] The encoding end receives the original serial port data sent by the first serial port circuit;

[0064] The encoding end determines the serial port serial number corresponding to the first serial port circuit;

[0065] The encoding end splits the original serial port data to obtain the first original byte segment and the second original byte segment; please refer to figure 2 As shown in the coding diagram, figure 2 The original serial port data is split into two original bytes, namely: the first original byte segment and the second original byte segment, specifically, the original serial port data is set to 8 bytes, an...

Embodiment 2

[0069] A serial port communication method based on FPGA, comprising: built-in encoding end and decoding end of FPGA respectively, described method comprises the steps:

[0070] The encoding end is used to receive the original serial port data sent by the first serial port circuit and encode the original serial port data to obtain encoded bytes, and send the encoded bytes to the decoding end; the encoded bytes include: the first encoded byte and the second encoded byte Two encoding bytes; specifically, the encoding method at the encoding end is as shown in Embodiment 1.

[0071] The decoding end receives the encoded bytes;

[0072] The decoder judges whether the coded byte contains a preset code flag; specifically, the decoder has a built-in preset code flag of 4 bits, such as: 0xF;

[0073] If it is included, the decoding end caches the encoded byte and records it as the first serial port data;

[0074] If it is not included, the decoding end discards the encoded byte, obtai...

Embodiment 3

[0086] An FPGA-based serial port communication method, including: a built-in FPGA encoding end and decoding end, please refer to figure 1 In the schematic diagram of the hardware structure shown, 10 shows the encoding end; 20 shows the decoding end.

[0087] Specifically, the FPGA-based serial port communication method includes the following steps:

[0088] The encoding end receives the original serial port data sent by the first serial port circuit;

[0089] The encoding end determines the serial port serial number corresponding to the first serial port circuit;

[0090] The encoding end splits the original serial port data to obtain the first original byte segment and the second original byte segment; please refer to image 3 As shown in the coding diagram, image 3 The original serial port data is split into two original bytes, namely: the first original byte segment and the second original byte segment, specifically, the original serial port data is set to 8 bytes, and ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a serial port communication method based on an FPGA (Field Programmable Gate Array), which comprises a coding end and a decoding end which are internally provided with the FPGA, and comprises the following steps: the coding end receives original serial port data sent by a first serial port circuit; the coding end determines a serial port serial number corresponding to the first serial port circuit; the encoding end splits the original serial port data to obtain a first original byte segment and a second original byte segment; the coding end combines a preset coding mark and the first original byte segment to obtain a first coding byte; combining the serial port serial number and the second original byte segment to obtain a second coding byte; the first coding byte and the second coding byte jointly form a coding byte; the coding bytes are sent to a decoding end, and the decoding end is used for receiving the first coding bytes and the second coding bytes, extracting the serial port serial numbers and the original serial port data from the first coding bytes and the second coding bytes and sending the original serial port data to a second serial port circuit corresponding to the serial port serial numbers.

Description

technical field [0001] The present disclosure specifically discloses an FPGA-based serial port communication method. Background technique [0002] UART serial ports (RS232, RS422, etc.) are the most commonly used communication interfaces in embedded devices. Each serial port needs to be supported by corresponding hardware devices (such as interface chips, power supply circuits, etc.). [0003] When an embedded device needs to use multiple serial ports, it will increase the size of the device and hardware cost. And in the design stage of embedded devices, it may not be possible to accurately predict how many serial ports the device will eventually use, which will increase unnecessary design redundancy. Contents of the invention [0004] In view of the above-mentioned defects or deficiencies in the prior art, the present application aims to provide an FPGA-based serial communication method. [0005] In the first aspect, a serial port communication method based on FPGA, co...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F13/42
CPCG06F13/4286G06F13/4282
Inventor 宋万禄宋秋冬吴帅
Owner TIANJIN JINHANG INST OF TECH PHYSICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products