CN110908861A - External multi-signal-source monitoring processing method based on DSP - Google Patents

External multi-signal-source monitoring processing method based on DSP Download PDF

Info

Publication number
CN110908861A
CN110908861A CN201911047314.6A CN201911047314A CN110908861A CN 110908861 A CN110908861 A CN 110908861A CN 201911047314 A CN201911047314 A CN 201911047314A CN 110908861 A CN110908861 A CN 110908861A
Authority
CN
China
Prior art keywords
chip
serial port
port expansion
main control
control dsp
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
CN201911047314.6A
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.)
AVIC Aerospace Life Support Industries Ltd
Original Assignee
AVIC Aerospace Life Support Industries 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 AVIC Aerospace Life Support Industries Ltd filed Critical AVIC Aerospace Life Support Industries Ltd
Priority to CN201911047314.6A priority Critical patent/CN110908861A/en
Publication of CN110908861A publication Critical patent/CN110908861A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3027Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a bus
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention discloses an external multi-signal-source monitoring processing method based on a DSP (digital signal processor), which comprises a main control DSP chip and a serial port expansion chip connected with the main control DSP chip; the method comprises the following steps: 1) after the main control DSP chip is powered on, carrying out power-on RESET on a RESET pin of the serial port extension chip; 2) initializing four channels of the serial port expansion chip through a bus controller; 3) setting corresponding baud rates and FIFO (first in first out) trigger depths for four channels of the serial port expansion chip according to actual requirements and enabling receiving; 4) the main control DSP chip monitors and inquires level change of a XINT1 pin in a main program, if the level changes from high to low, a corresponding register in the serial port expansion chip is inquired through a bus controller, a trigger source of an external signal source is found, and data of a corresponding channel is received and processed; 5) and the rest two paths of data are received and processed through the original two serial communication interfaces. The present invention provides the master control chip with the capability of receiving and processing up to 6 external serial data sources simultaneously.

Description

External multi-signal-source monitoring processing method based on DSP
Technical Field
The invention relates to digital signal processing, in particular to an external multi-signal-source monitoring processing method based on a DSP.
Background
The X-type electronic program controller has up to 6 external data sources and is a serial interface of RS 422A. At present, the main control chip JDSP320F2812 has only two serial controllers (SCIA and SCIB), and the multiplexing condition of the two serial ports has reached the limit. At the same time, the X-type electronic program controller can only receive two paths of data at the same time for monitoring and processing. The shortage of serial port resources brings great challenges to the data receiving and processing capacity, self-detection, maintenance and product testability coverage rate improvement of the program controller.
The capability of simultaneously receiving and processing data sources of the product becomes a short board for continuously improving the testability and the health management capability of the X-type rocket ejection seat. There is a strong need to solve the simultaneous receiving and processing capability of up to 6 external serial data sources, and to achieve data packet loss prevention and timely response.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide an external multi-signal-source monitoring processing method based on DSP, aiming at the defects in the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows: a DSP-based external multi-signal-source monitoring processing method comprises a main control DSP chip and a serial port expansion chip connected with the main control DSP chip;
the method comprises the following steps:
1) after the master control DSP chip is powered on, a RESET pin of the serial port extension chip is powered on and RESET through a GPIOA12 port;
2) initializing four channels RXA, RXB, RXC and RXD of the serial port expansion chip through a bus controller;
3) setting corresponding baud rates and FIFO (first in first out) trigger depths for four channels of the serial port expansion chip according to actual requirements and enabling receiving;
4) after the initialization of the serial port expansion chip is finished, the main control DSP chip monitors and inquires the level change of an XINT1 pin in a main program, if the level changes from high to low, a corresponding register in the serial port expansion chip is inquired through a bus controller, a trigger source of an external signal source is found, and data of a corresponding channel is received and processed;
5) the remaining two paths of data pass through two serial communication interfaces of the DSP2812 itself: the SCIA and SCIB perform receive processing.
According to the scheme, the main control DSP chip is a DSP2812 chip, and the serial port expansion chip is a JXR16C854 chip.
According to the scheme, the connection between the main control DSP chip and the serial port expansion chip is as follows:
pins D0 to D7 of the master control DSP chip are correspondingly connected with pins D0 to D7 of the serial port expansion chip respectively;
a GPIOA12 port of the master control DSP chip is connected with a RESET pin of the serial port expansion chip;
an INTA pin and an INTB pin of the serial port expansion chip are input of a first OR gate, an INTC pin and an INTD pin of the serial port expansion chip are input of a second OR gate, output of the first OR gate and output of the second OR gate are input of a third OR gate, and output of the third OR gate is connected with XINT1 of the main control DSP chip;
the RD of the main control DSP chip is connected with the IOR # of the serial port expansion chip;
the WE of the main control DSP chip is connected with the IOW # of the serial port expansion chip;
pins A0 to A2 of the master control DSP chip are correspondingly connected with pins A0 to A2 of the serial port expansion chip respectively;
the A3 pin of the main control DSP chip and the CS0 after the NOT gate are used as the input of a first NAND gate, and the output of the first NAND gate is connected with the CSC #, of the serial port expansion chip;
the A4 pin of the main control DSP chip and the CS0 after the NOT gate are used as the input of a first NAND gate, and the output of a second NAND gate is connected with the CSD # of the serial port expansion chip;
the A5 pin of the main control DSP chip and the CS0 after NOT gate are used as the input of a first NAND gate, and the output of a third NAND gate is connected with the CSA # of the serial port expansion chip;
the pin A6 of the main control DSP chip and the CS0 after the NOT gate are used as the input of a first NAND gate, and the output of a fourth NAND gate is connected with the CSB # of the serial port expansion chip.
According to the scheme, the main control DSP chip and the serial port expansion chip are communicated with an external data source through the 422 conversion chip.
The invention has the following beneficial effects: the invention solves the problem that two serial port main control chips have the capability of receiving and processing up to 6 external serial data sources simultaneously by the connection of the expansion chips, and realizes no packet loss and timely response of data.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic structural diagram of an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A DSP-based external multi-signal-source monitoring processing method comprises a main control DSP chip and a serial port expansion chip connected with the main control DSP chip;
as shown in fig. 1, the connection between the master DSP2812 chip and the JXR16C854 chip is as follows:
pins D0 to D7 of the master control DSP chip are correspondingly connected with pins D0 to D7 of the serial port expansion chip respectively;
a GPIOA12 port of the master control DSP chip is connected with a RESET pin of the serial port expansion chip;
an INTA pin and an INTB pin of the serial port expansion chip are input of a first OR gate, an INTC pin and an INTD pin of the serial port expansion chip are input of a second OR gate, output of the first OR gate and output of the second OR gate are input of a third OR gate, and output of the third OR gate is connected with XINT1 of the main control DSP chip;
the RD of the main control DSP chip is connected with the IOR # of the serial port expansion chip;
the WE of the main control DSP chip is connected with the IOW # of the serial port expansion chip;
pins A0 to A2 of the master control DSP chip are correspondingly connected with pins A0 to A2 of the serial port expansion chip respectively;
the A3 pin of the main control DSP chip and the CS0 after the NOT gate are used as the input of a first NAND gate, and the output of the first NAND gate is connected with the CSC #, of the serial port expansion chip;
the A4 pin of the main control DSP chip and the CS0 after the NOT gate are used as the input of a first NAND gate, and the output of a second NAND gate is connected with the CSD # of the serial port expansion chip;
the A5 pin of the main control DSP chip and the CS0 after NOT gate are used as the input of a first NAND gate, and the output of a third NAND gate is connected with the CSA # of the serial port expansion chip;
the pin A6 of the main control DSP chip and the CS0 after the NOT gate are used as the input of a first NAND gate, and the output of a fourth NAND gate is connected with the CSB # of the serial port expansion chip.
The multi-signal-source monitoring processing method comprises the following steps:
1) after the master control DSP chip is powered on, a RESET pin of the serial port extension chip is powered on and RESET through a GPIOA12 port;
2) initializing four channels RXA, RXB, RXC and RXD of the serial port expansion chip through a bus controller;
3) setting corresponding baud rates and FIFO (first in first out) trigger depths for four channels of the serial port expansion chip according to actual requirements and enabling receiving;
4) after the JXR16C854 is initialized, the DSP2812 monitors and inquires the level change of an XINT1 pin in a main program, if the level changes from high to low, a corresponding register in the JXR16C854 is inquired through a bus controller, a trigger source of an external signal source is found, and data of a corresponding channel is received and processed;
5) the remaining two paths of data pass through two serial communication interfaces of the DSP2812 itself: the SCIA and SCIB perform receive processing.
The two paths of data interfaces of the main control DSP chip and the serial port expansion chip are communicated with an external data source through a 422 conversion chip.
It will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.

Claims (4)

1. A DSP-based external multi-signal-source monitoring processing method comprises a main control DSP chip and a serial port expansion chip connected with the main control DSP chip; it is characterized in that the preparation method is characterized in that,
the method comprises the following steps:
1) after the master control DSP chip is powered on, a RESET pin of the serial port extension chip is powered on and RESET through a GPIOA12 port;
2) initializing four channels RXA, RXB, RXC and RXD of the serial port expansion chip through a bus controller;
3) setting corresponding baud rates and FIFO (first in first out) trigger depths for four channels of the serial port expansion chip according to actual requirements and enabling receiving;
4) after the initialization of the serial port expansion chip is finished, the main control DSP chip monitors and inquires the level change of an XINT1 pin in a main program, if the level changes from high to low, a corresponding register in the serial port expansion chip is inquired through a bus controller, a trigger source of an external signal source is found, and data of a corresponding channel is received and processed;
5) the remaining two paths of data pass through two serial communication interfaces of the main control DSP chip: the SCIA and SCIB perform receive processing.
2. The DSP-based external multi-signal-source monitoring processing method according to claim 1, wherein the master DSP chip is a DSP2812 chip, and the serial port expansion chip is a JXR16C854 chip.
3. The external multi-signal-source monitoring processing method based on the DSP according to claim 2, wherein the connection between the main control DSP chip and the serial port expansion chip is as follows:
pins D0 to D7 of the master control DSP chip are correspondingly connected with pins D0 to D7 of the serial port expansion chip respectively;
a GPIOA12 port of the master control DSP chip is connected with a RESET pin of the serial port expansion chip;
an INTA pin and an INTB pin of the serial port expansion chip are input of a first OR gate, an INTC pin and an INTD pin of the serial port expansion chip are input of a second OR gate, output of the first OR gate and output of the second OR gate are input of a third OR gate, and output of the third OR gate is connected with XINT1 of the main control DSP chip;
the RD of the main control DSP chip is connected with the IOR # of the serial port expansion chip;
the WE of the main control DSP chip is connected with the IOW # of the serial port expansion chip;
pins A0 to A2 of the master control DSP chip are correspondingly connected with pins A0 to A2 of the serial port expansion chip respectively;
the A3 pin of the main control DSP chip and the CS0 after the NOT gate are used as the input of a first NAND gate, and the output of the first NAND gate is connected with the CSC #, of the serial port expansion chip;
the A4 pin of the main control DSP chip and the CS0 after the NOT gate are used as the input of a first NAND gate, and the output of a second NAND gate is connected with the CSD # of the serial port expansion chip;
the A5 pin of the main control DSP chip and the CS0 after NOT gate are used as the input of a first NAND gate, and the output of a third NAND gate is connected with the CSA # of the serial port expansion chip;
the pin A6 of the main control DSP chip and the CS0 after the NOT gate are used as the input of a first NAND gate, and the output of a fourth NAND gate is connected with the CSB # of the serial port expansion chip.
4. The external multi-signal-source monitoring processing method based on the DSP according to claim 1, wherein the main control DSP chip and the serial port expansion chip are both in communication with an external data source through a 422 conversion chip.
CN201911047314.6A 2019-10-30 2019-10-30 External multi-signal-source monitoring processing method based on DSP Pending CN110908861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911047314.6A CN110908861A (en) 2019-10-30 2019-10-30 External multi-signal-source monitoring processing method based on DSP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911047314.6A CN110908861A (en) 2019-10-30 2019-10-30 External multi-signal-source monitoring processing method based on DSP

Publications (1)

Publication Number Publication Date
CN110908861A true CN110908861A (en) 2020-03-24

Family

ID=69814666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911047314.6A Pending CN110908861A (en) 2019-10-30 2019-10-30 External multi-signal-source monitoring processing method based on DSP

Country Status (1)

Country Link
CN (1) CN110908861A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060095616A1 (en) * 1998-08-06 2006-05-04 Ahern Frank W Computing module with serial data conectivity
CN107291647A (en) * 2017-05-19 2017-10-24 中国科学院长春光学精密机械与物理研究所 The method that DSP reads receiving channel data in extended serial port
CN109656850A (en) * 2018-11-13 2019-04-19 河北汉光重工有限责任公司 The DSP serial communication circuit extended using single CPLD

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060095616A1 (en) * 1998-08-06 2006-05-04 Ahern Frank W Computing module with serial data conectivity
CN107291647A (en) * 2017-05-19 2017-10-24 中国科学院长春光学精密机械与物理研究所 The method that DSP reads receiving channel data in extended serial port
CN109656850A (en) * 2018-11-13 2019-04-19 河北汉光重工有限责任公司 The DSP serial communication circuit extended using single CPLD

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
梅培智等: "基于TL16C754B的TMS320F2812异步串行通信扩展" *

Similar Documents

Publication Publication Date Title
CN101420328B (en) System, interface card and method for remote upgrading field programmable gate array
CN110865958B (en) LRM-based integrated switching management module design method
CN207718364U (en) A kind of multichannel RS-422 serial ports expansion interfaces based on FPGA
CN103136163B (en) Protocol processor chip capable of allocating and achieving FC-AE-ASM and FC-AV protocol
CN107450987A (en) A kind of heterogeneous server of High Availabitity
CN103092652A (en) Multiprocessor program loading device and loading method
WO2023273140A1 (en) Signal transmission apparatus and method, and computer device and storage medium
CN107391419A (en) Support the universal serial bus hub equipment of more main frames and automobile-used main frame
CN104699654A (en) Interconnection adapting system and method based on CHI on-chip interaction bus and QPI inter-chip interaction bus
CN104765701A (en) Data access method and device
CN108667706B (en) Ethernet serial server with dynamically adjustable serial number and data transmission method thereof
CN105807886A (en) Chip arousing system, chip arousing method and mobile terminal
CN108614797A (en) A kind of high low-frequency serial bus integrated interface of polymorphic type
WO2021037026A1 (en) Communication device panel interface and communication device
CN110908861A (en) External multi-signal-source monitoring processing method based on DSP
CN109116314A (en) VPX module universal testing method
EP3968171A1 (en) Data exchange chip and server
CN107566301A (en) A kind of method and device realized RapidIO exchange system bus speed and automatically configured
CN205318374U (en) Redundant circuit of RS -232 serial ports
CN203366045U (en) A digital quantity input-output device based on a CAN bus
WO2023272989A1 (en) Bandwidth allocation method for ocp network card, and related apparatus
CN206258865U (en) A kind of signal processor ASIC frameworks of restructural
CN112612741B (en) Multi-path server
CN112615739A (en) Method and system for adapting OCP3.0 network card in multi-host application environment
RU158939U1 (en) PERIPHERAL INTERFACE CONTROLLER (KPI-2)

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