CN109885524A - A kind of serial ports expansion method of the airborne indicator based on FPGA - Google Patents

A kind of serial ports expansion method of the airborne indicator based on FPGA Download PDF

Info

Publication number
CN109885524A
CN109885524A CN201910135712.7A CN201910135712A CN109885524A CN 109885524 A CN109885524 A CN 109885524A CN 201910135712 A CN201910135712 A CN 201910135712A CN 109885524 A CN109885524 A CN 109885524A
Authority
CN
China
Prior art keywords
fifo
data
mcu
spi
uart
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.)
Withdrawn
Application number
CN201910135712.7A
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.)
Suzhou Changfeng Aviation Electronics Co Ltd
Original Assignee
Suzhou Changfeng Aviation Electronics Co Ltd
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 Suzhou Changfeng Aviation Electronics Co Ltd filed Critical Suzhou Changfeng Aviation Electronics Co Ltd
Priority to CN201910135712.7A priority Critical patent/CN109885524A/en
Publication of CN109885524A publication Critical patent/CN109885524A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

Present invention discloses a kind of serial ports expansion methods of airborne indicator based on FPGA, the airborne indicator includes main control unit MCU and programmable device FPGA, programmable device FPGA includes SPI sending/receiving module, SPI receiving module, UART sending module, UART receiving module, SEND_FIFO sends caching, REC_FIFO receives caching, establish SPI data communication, design FIFO caching mechanism, UART data collecting mechanism is established, realizes the foundation of external serial communication.The present invention solves the problems, such as that traditional monitor MCU serial port resource is inadequate, builds for hardware circuit compared to serial port chip is turned using SPI, can reduce hardware cost and improves the flexibility ratio of hardware design.It is used suitable for airborne indicator, serial ports expansion reliable design.

Description

A kind of serial ports expansion method of the airborne indicator based on FPGA
Technical field
The present invention relates to a kind of serial ports expansion method more particularly to a kind of serial ports expansions of the airborne indicator based on FPGA Method belongs to the technical field of airborne indicator serial ports expansion.
Background technique
In modern Aviation airborne display system, traditional airborne indicator having a single function is by multi-functional airborne aobvious Show replaced device, airborne indicator is mainly used for showing various parameters and the picture etc. that flight course needs, these parameters are main It is to be obtained by the communication between display and external other equipment, flight environment of vehicle more sophisticated, needs logical with the external world at present The information for interrogating interaction is more and more, and airborne indicator needs parameter to be shown also to become more, therefore airborne indicator needs pair The quantity of outer communication also becomes more, external flight environment accurately to be grasped convenient for pilot, and improve the flight of pilot Experience.
More stringent requirements are proposed for quantity of the multi-functional airborne indicator to display and external communication, airborne display field In, serial communication is the most common external communication modes of airborne display field.Multi-functional airborne indicator is to serial communication resource It is more demanding, current airborne indicator communication module is the most commonly used is the hardware structure based on MCU+FPGA, but the string of MCU Mouth resource is limited, is insufficient for the communication quantitative requirement of multifunction display.Although most of MCU include SPI and IIC etc. logical Communication interface, but directly cannot externally communicate, for such issues that, also occur some SPI in the market and turn the agreements such as serial ports turning Chip is changed, but price is more expensive, improves development cost;And it once selectes certain chip and builds hardware circuit, and is outer The mode of portion's serial communication has just fixed, and is unfavorable for the Function Extension in multi-functional airborne indicator later period.
Summary of the invention
Present invention aim to address above-mentioned the deficiencies in the prior art, for conventional conversion chip price valuableness and serial ports function The problem of capable of limiting, proposes a kind of serial ports expansion method of airborne indicator based on FPGA.
In order to achieve the above object, the technical scheme adopted by the invention is as follows:
A kind of serial ports expansion method of the airborne indicator based on FPGA, the airborne indicator include main control unit MCU and volume Journey device FPGA,
It is characterized in that serial ports expansion method the following steps are included:
S1 establishes SPI data communication,
SPI sending/receiving module and SPI receiving module are set in FPGA, establish SPI data communication with MCU;
S2 designs FIFO caching mechanism,
UART sending module, UART receiving module, SEND_FIFO are set in FPGA and send caching, REC_FIFO reception caching,
In external send, SEND_FIFO sends the serial communication data that caching sends the MCU that SPI receiving module receives It is written and is sent to external serial ports through UART sending module,
When receiving, REC_FIFO receives the data that caching receives UART receiving module and is written, and MCU is by reading REC_ FIFO receives the depth for being stored in data, judges whether carrying out serial communication data receiver, to decide whether to send out It send the piece of SPI to select with clock signal and establishes SPI data communication.
S3 establishes UART data collecting mechanism,
Baud rate generation module is set in FPGA,
MCU selects the baud rate of external serial communication,
UART sending module judges that SEND_FIFO sends caching non-empty and starts to read the data in SEND_FIFO transmission caching, And the parity information provided according to MCU, it is serially sent according to the baud rate that MCU is selected,
UART receiving module carries out serioparallel exchange to external serial data according to the baud rate that MCU is selected, and given according to MCU Type is verified, odd-even check is carried out, if data result is errorless, receives caching correct data write-in REC_FIFO is received, Otherwise it directly abandons.
The foundation of the external serial communication of S4,
The transmitting-receiving that serial communication is generated by UART sending module and UART receiving module is realized external by electrical level transferring chip Serial communication.
The beneficial effects are mainly reflected as follows:
1. solving the problems, such as that traditional monitor MCU serial port resource is inadequate, hardware electricity is built compared to serial port chip is turned using SPI For road, it can reduce hardware cost and improve the flexibility ratio of hardware design.
2. being suitable for airborne indicator to use, serial ports expansion reliable design.
Detailed description of the invention
Fig. 1 is a kind of functional block diagram of the serial ports expansion method of the airborne indicator based on FPGA of the present invention.
Specific embodiment
The present invention provides a kind of serial ports expansion method of airborne indicator based on FPGA.Below in conjunction with attached drawing to the present invention Technical solution is described in detail, so that it is more readily understood and grasps.
A kind of serial ports expansion method of the airborne indicator based on FPGA, as shown in Figure 1, being applied to airborne cockpit display In, it is made of on hardware composition MCU and FPGA, by SPI receiving module, SPI sending/receiving module, baud rate inside FPGA Generation module, UART sending module, UART receiving module, SEND_FIFO send caching, REC_FIFO receives the composition such as caching, As shown in Figure 1.The method takes following steps:
The data that transmitting serial port communicates between MCU and FPGA.
SPI data sending/receiving module is established, send the received external serial data of institute to MCU and receives MCU to outgoing The serial communication data sent.When externally sending data, FPGA only needs to receive the data that MCU is sent, so only needing one A SPI receiving module, for that will realize that the string of MOSI output data turns simultaneously;When MCU receives serial communication, it is necessary first to send One data returns to MCU, then sends out again to FPGA for notifying FPGA by the data length having been written into REC_FIFO Another data is given, notifies FPGA by the DSR of the storage in FIFO, is sent to MCU, so both being needed when receiving The sending module of SPI, it is also desirable to the receiving module of SPI, the reception for realizing MCU to external data.
FIFO caching is carried out to data.
SPI data sending/receiving module and UART sending/receiving module are carried out using the on piece storage resource FIFO of FPGA Data buffer storage, for solving the problems, such as two module data processing speed speeds.In external send, a transmission caching is needed The serial communication data that the MCU that SPI receiving module receives is sent are written in SEND_FIFO and are cached by SEND_FIFO;It is connecing Time receiving needs a reception data buffer storage REC_FIFO, the data write-in REC_FIFO caching that UART receiving module is received. The data rate converted when sending due to SPI receiving module is fast compared with UART sending module data rate, so as to prevent The problem of only externally sending loss of data.When receiving, the depth that MCU can be stored in data by reading FIFO, judgement Whether serial communication data receiver is being carried out, is then deciding whether that the piece choosing for sending SPI and clock signal are logical to establish SPI News.
UART delivery and reception module.
UART delivery and reception module needs a baud rate generation module and parity information, baud rate generation module It is that 4 kinds of baud rate clock outputs are realized using FPGA, MCU provides baud rate selection signal, for selecting external serial communication Baud rate.UART sending module judges SEND_FIFO non-empty, begins to read the data in SEND_FIFO, and according to MCU Parity information is provided, is serially sent according to the baud rate that MCU is selected.The wave that UART receiving module is selected according to MCU Special rate carries out serioparallel exchange, and the verification type given according to MCU to external serial data, odd-even check is carried out, if data knot Fruit is errorless, and REC_FIFO is written correct data are received, otherwise directly abandons, is not written into REC_FIFO.
The foundation of external serial communication.
By UART delivery and reception module, the transmitting-receiving of serial communication can produce, then pass through common level conversion Chip, so that it may realize common external serial communication, the serial communication external from realization MCU.
By above description it can be found that a kind of serial ports expansion method of the airborne indicator based on FPGA of the present invention, solution It has determined the inadequate problem of traditional monitor MCU serial port resource, has been built for hardware circuit compared to serial port chip is turned using SPI, It can reduce hardware cost and improve the flexibility ratio of hardware design.It is used suitable for airborne indicator, serial ports expansion reliable design.
Technical solution of the present invention is fully described above, it should be noted that specific embodiment party of the invention Formula is simultaneously not limited by the description set out above, the Spirit Essence of those skilled in the art according to the present invention structure, method or All technical solutions that function etc. is formed using equivalents or equivalent transformation, all fall within protection scope of the present invention Within.

Claims (1)

1. a kind of serial ports expansion method of the airborne indicator based on FPGA, the airborne indicator include main control unit MCU and Programmable device FPGA,
It is characterized in that serial ports expansion method the following steps are included:
S1 establishes SPI data communication,
SPI sending/receiving module and SPI receiving module are set in FPGA, establish SPI data communication with MCU;
S2 designs FIFO caching mechanism,
UART sending module, UART receiving module, SEND_FIFO are set in FPGA and send caching, REC_FIFO reception caching,
In external send, SEND_FIFO sends the serial communication data that caching sends the MCU that SPI receiving module receives It is written and is sent to external serial ports through UART sending module,
When receiving, REC_FIFO receives the data that caching receives UART receiving module and is written, and MCU is by reading REC_ FIFO receives the depth for being stored in data, judges whether carrying out serial communication data receiver, to decide whether to send out It send the piece of SPI to select with clock signal and establishes SPI data communication;
S3 establishes UART data collecting mechanism,
Baud rate generation module is set in FPGA,
MCU selects the baud rate of external serial communication,
UART sending module judges that SEND_FIFO sends caching non-empty and starts to read the data in SEND_FIFO transmission caching, And the parity information provided according to MCU, it is serially sent according to the baud rate that MCU is selected,
UART receiving module carries out serioparallel exchange to external serial data according to the baud rate that MCU is selected, and given according to MCU Type is verified, odd-even check is carried out, if data result is errorless, receives caching correct data write-in REC_FIFO is received, Otherwise it directly abandons;
The foundation of the external serial communication of S4,
The transmitting-receiving that serial communication is generated by UART sending module and UART receiving module is realized external by electrical level transferring chip Serial communication.
CN201910135712.7A 2019-02-25 2019-02-25 A kind of serial ports expansion method of the airborne indicator based on FPGA Withdrawn CN109885524A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910135712.7A CN109885524A (en) 2019-02-25 2019-02-25 A kind of serial ports expansion method of the airborne indicator based on FPGA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910135712.7A CN109885524A (en) 2019-02-25 2019-02-25 A kind of serial ports expansion method of the airborne indicator based on FPGA

Publications (1)

Publication Number Publication Date
CN109885524A true CN109885524A (en) 2019-06-14

Family

ID=66929117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910135712.7A Withdrawn CN109885524A (en) 2019-02-25 2019-02-25 A kind of serial ports expansion method of the airborne indicator based on FPGA

Country Status (1)

Country Link
CN (1) CN109885524A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114595182A (en) * 2022-03-03 2022-06-07 珠海昇生微电子有限责任公司 Bidirectional conversion circuit and method for multiple communication serial ports

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114595182A (en) * 2022-03-03 2022-06-07 珠海昇生微电子有限责任公司 Bidirectional conversion circuit and method for multiple communication serial ports

Similar Documents

Publication Publication Date Title
JP6138860B2 (en) Signal interface for higher data rates
KR100666603B1 (en) A multi display driving circuit and method of operating the same
US8873581B2 (en) Graphics multi-media IC and method of its operation
CN107451087A (en) A kind of similarities and differences based on FPGA walk changeable serial ports and application method
CN107005461A (en) A kind of data transmission method and equipment
CN107193769B (en) Data receiving and transmitting system based on ASI interface
CN106850047A (en) Information conversion transceiver terminal, foreign-going ship communication means and communication system
CN104991880B (en) A kind of FC AE ASM Communication Cards based on PCI E interfaces
CN110417780A (en) Customize the multi-channel high-speed data interface conversion module of Data Transport Protocol
CN109656850B (en) DSP serial port communication circuit adopting single CPLD extension
CN109962830A (en) A kind of efficient CAN interface based on FPGA
CN108259092A (en) A kind of underwater sound modem and modulator approach based on the modulation of orthogonal differential phase-shift keying (PSK)
CN109885524A (en) A kind of serial ports expansion method of the airborne indicator based on FPGA
CN204948223U (en) A kind of chromacoder based on programming device
CN104144137B (en) A kind of high speed LVDS serial synchronous communication controllers
CN205792561U (en) The transmission system of data
CN102208936B (en) Self-contained iridium satellite data multipath transmission terminal device
CN204795399U (en) Video data transmission device based on AXI bus
CN201331392Y (en) Intelligent multi-point temperature measurement transmitter
CN110768775A (en) Low-cost full-duplex communication method, communication system and computer readable storage medium
CN204667548U (en) With the intelligent express mail case system of sound wave payment module
CN113094319A (en) System and method for synchronously controlling one-way data transmission between two hosts
CN204990287U (en) Novel full duplex communication module
CN216285693U (en) Signal transmission device for radar remote calibration system
CN205609163U (en) But real -time communication's digital screen control 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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190614