FPGA-based enhanced serial port

An enhanced, serial port technology, applied in the direction of instrumentation, electrical digital data processing, etc., can solve the problems of occupying its own resources and processing time, spending hardware resources, and occupying the main program time, etc., to achieve fast baud rate switching speed, baud rate Precise rate control, flexible and simple configuration

Inactive Publication Date: 2012-11-14
SICHUAN JIUZHOU ELECTRIC GROUP
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] During RS232 communication, the data is in units of bytes. When receiving data, the hardware serial port integrated in the microcontroller, DSP, etc. has the function of setting the corresponding flag after receiving one (or more) bytes. When the data volume is large Sometimes, the main program needs to frequently perform interrupt response or flag bit query operations, control the receiving process and cache the received data, which will take up the time of the main program and spend hardware resources for process control; when sending data, it is necessary to query the current serial port state, to control the sending process, which will also occupy its own resources and processing time

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
  • FPGA-based enhanced serial port
  • FPGA-based enhanced serial port
  • FPGA-based enhanced serial port

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] All features disclosed in this specification, or steps in all methods or processes disclosed, may be combined in any manner, except for mutually exclusive features and / or steps.

[0034] Any feature disclosed in this specification (including any appended claims, abstract and drawings), unless expressly stated otherwise, may be replaced by alternative features which are equivalent or serve a similar purpose. That is, unless expressly stated otherwise, each feature is one example only of a series of equivalent or similar features.

[0035] When performing data transmission, the start bit is sent first, then the data bit, and finally the stop bit.

[0036] Receive data: When the data arrives, the design detects the start bit and immediately starts the receiving logic, samples the middle position of each bit of data according to the baud rate setting, and starts the "receiving timeout judgment logic" module at the same time to detect this time Whether the data stream has b...

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 discloses an FPGA-based enhanced serial port and working method thereof. The FPGA (Field Programmable Gate Array) is taken as hardware, and the serial port is constructed in the FPGA by using an HDL language; the Baud rate, check mode, data length and the like of the serial port are conveniently and quickly configured by an external program, and the serial port automatically receives and sends data; the size of a cache for transceiving the data only depends on the scale of the FPGA; and a plurality of serial ports can be generated by multiplexing through simple operation, and the processing time and hardware resource of a main program are not occupied. For the main program, it is similar to operation on an external storage, so the main program is freed from the frequently interruption or query operation, the running efficiency of the main program is improved, the stability of the system is improved and the transplantability and the expandability of software are improved.

Description

technical field [0001] The invention relates to an enhanced serial port built on the basis of FPGA and a working method thereof. The FPGA is used as the hardware basis and Verilog HDL is used to write codes to realize. Background technique [0002] During RS232 communication, the data is in units of bytes. When receiving data, the hardware serial port integrated in the microcontroller, DSP, etc. has the function of setting the corresponding flag after receiving one (or more) bytes. When the data volume is large Sometimes, the main program needs to frequently perform interrupt response or flag bit query operations, control the receiving process and cache the received data, which will take up the time of the main program and spend hardware resources for process control; when sending data, it is necessary to query the current serial port Status, to control the sending process, which will also occupy its own resources and processing time. Contents of the invention [0003] Th...

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 Patents(China)
IPC IPC(8): G06F13/40
Inventor 江勇杨杰
Owner SICHUAN JIUZHOU ELECTRIC GROUP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products