CN101963936B - Method for storing working parameter state by DSP (Digital Signal Processor) equipment through CF (Compact Flash) memory card - Google Patents

Method for storing working parameter state by DSP (Digital Signal Processor) equipment through CF (Compact Flash) memory card Download PDF

Info

Publication number
CN101963936B
CN101963936B CN2010102767378A CN201010276737A CN101963936B CN 101963936 B CN101963936 B CN 101963936B CN 2010102767378 A CN2010102767378 A CN 2010102767378A CN 201010276737 A CN201010276737 A CN 201010276737A CN 101963936 B CN101963936 B CN 101963936B
Authority
CN
China
Prior art keywords
compact flash
dsp
data
fpga
status data
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.)
Expired - Fee Related
Application number
CN2010102767378A
Other languages
Chinese (zh)
Other versions
CN101963936A (en
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.)
Changchun Institute of Optics Fine Mechanics and Physics of CAS
Original Assignee
Changchun Institute of Optics Fine Mechanics and Physics of CAS
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 Changchun Institute of Optics Fine Mechanics and Physics of CAS filed Critical Changchun Institute of Optics Fine Mechanics and Physics of CAS
Priority to CN2010102767378A priority Critical patent/CN101963936B/en
Publication of CN101963936A publication Critical patent/CN101963936A/en
Application granted granted Critical
Publication of CN101963936B publication Critical patent/CN101963936B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method for storing a working parameter state by DSP (Digital Signal Processor) equipment through a CF (Compact Flash) memory card, belonging to the technical field of electronics. The method comprises the following steps of: connecting a data bus of the DSP with an FPGA (Field Programmable Gate Array); sending working parameter state data transmitted by the DSP to the CF memory card through the FPGA; and storing the received data in real time by the CF memory card, wherein the CF memory card works in a Memory mode. The invention has the advantages that even if the DSP equipment is suddenly subjected to the interruption of power supply, the data stored in the CF storage card cannot be influenced; and when the DSP has a fault, analysis can be carried out according to the data in the CF storage card to position the position of the fault.

Description

DSP equipment is through the method for Compact Flash store operational parameters state
Technical field
The invention belongs to art of electronics, relate to a kind of memory interface technology, relate in particular to the method for a kind of DSP equipment through Compact Flash store operational parameters state.
Background technology
Current in fields such as signal Processing, Digital Image Processing; The applied more and more of DSP (digital signal processor), the complicacy of task is also increasingly high, and this just needs the DSP equipment running to be got off by effective real time record; Be convenient to operating personnel or programming personnel data and DSP buffer status through analytic record; To reach the purpose of judging the DSP equipment running, just as the black box of aircraft, state of flight that can the real time record aircraft; Be used for the ex-post analysis work of aircraft, guarantee the flight safety of aircraft.
More common DSP equipment does not generally have the equipment of duty real-time storage at present; When it breaks down, need professional programming personnel to connect special-purpose developing engine and debug, on computer interface, show operation result, like this with other computing machines; The duty with DSP that can not be real-time is reacted to the programming personnel; And, use developing engine to debug, can not reflect the state of DSP equipment running hours; Make that the general operation personnel can't be through observing, location of fault appears in the location.Therefore, provide the method for a kind of analysis and judgement DSP equipment failure position imperative.
Summary of the invention
In order to solve the existing in prior technology problem, the present invention provides the method for a kind of DSP equipment through Compact Flash store operational parameters state, is used to analyze, locate the abort situation of DSP equipment.
The technical scheme that technical solution problem of the present invention is adopted is following:
DSP equipment comprises the steps: through the method for Compact Flash store operational parameters state
1) FPGA (PLD) sends the EXT5 look-at-me to DSP, and DSP receives this look-at-me, and the response interrupt request; The running parameter status data of self chip is configured; Use the CLK2 clock as synchronously, the addressing of address that utilizes address wire A2 to send as data to A11 arrives seven address wires of D7 through D0; The running parameter status data is sent to FPGA, the transport process of completion status data from DSP to FPGA;
2) FPGA receives the status data that transmits from DSP, and the status data of DSP is stored among the inner buffer memory of FPGA, reads the BUSY signal of Compact Flash then;
3) when the BUSY of the Compact Flash that reads signal is low level; FPGA carries out read-write control to Compact Flash; The write signal of Compact Flash is put low, Compact Flash is carried out write operation, CE, OE, WAIT signal are put high level; Enable Compact Flash, and the data line that writes data and the address wire of gating Compact Flash;
4) according to the operation requirement of Compact Flash, dispose the status register of Compact Flash, confirm to write the starting cluster position of data, accomplish the initial configuration of Compact Flash;
5) will be buffered in the inner DSP running parameter status data of FPGA and be written in the Compact Flash, accomplish the storage of DSP running parameter status data.
The invention has the beneficial effects as follows: adopt method of the present invention, even DSP equipment generation sudden power can not have influence on the data that are stored in the Compact Flash the inside yet; When DSP breaks down, can analyze according to the data in the Compact Flash, the fault location position.
Description of drawings
Fig. 1 is the method schematic diagram of DSP equipment of the present invention through Compact Flash store operational parameters state.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment the present invention is explained further details.
The present invention utilizes the data bus of DSP and FPGA to link, and through FPGA the video data that DSP sends is sent to Compact Flash, and Compact Flash is operated in the Memory pattern, and the data that obtain are carried out real-time storage.Like this, even DSP equipment generation sudden power can not have influence on the data that are stored in the Compact Flash the inside yet.
At first, utilize dsp chip, the buffer status data of dsp chip are read, carry out packing data, every bag data are 8, and the data number need add up according to register; Then, the every 20MS of fpga chip reads the packet of a dsp chip, carries out buffer memory, is written among the Compact Flash.
As shown in Figure 1, DSP of the present invention adopts the TMS320C6416 chip, and it is a kind of of company of Texas Instruments (TI) the TMS320C6000 series processors of producing.The TMS320C6000 series DSP is the high-performance digital signal processor that TI company produces, and is designed to Harvard's bus structure of revising in the sheet, the TMS320C6416A6E3 that present embodiment is selected for use, and the main clock frequency of DSP is 600MHz.
FPGA adopts the EP2C20 chip, and it is the FPGA FPGA that ALTERA company produces, and it can carry out programming Control according to the purposes difference.
Compact Flash adopts is that the capacity of SanDisk company is the CompactFlash storage card of 16GB, and memory rate is 30MB/S, and it can carry out real-time storage with the data in the FPGA.
Utilize the internal storage of EP2C20 chip to be barricaded as the dual-ported memory of a 1K*8bit.EP2C20 utilizes the CLK2 of TMS320C6416, and (this pin is 6416 output clock pin; The output clock is 150MHz; Insert the clock pin of EP2C20) the frequency division clocking, the one tunnel through six frequency divisions generation 25MHz clock signal, supplies with Compact Flash and makes clock signal; One the tunnel through frequency division counter generation 50Hz clock signal; Supply with the EXT5 pin of TMS320C6416; The EXT5 pin is the interruption 5 of TMS320C6416; When the upper edge of clock is come then; Cause the interruption (interrupt 5) of TMS320C6416, TMS320C6416 knows that new interruption arrives interrupting 5, TMS320C6416 interrupt in 5 through D0---D7 and A2---A11 ,/WR ,/control lines such as RD deposit the external interface buffer status of current DSP and the status data of DSP inner buffer distribution register in the dual-ported memory of the 1K*8bit in EP2C20 inside.CE2 is used for the chip selection signal end of the dual-ported memory of the inner 1K*8bit of EP2C20.The CE of Compact Flash, OE, Wait, REG are the control pins of Compact Flash; Be used for the initialization control of Compact Flash and writing of data; BUSY is the feedback of status signal of Compact Flash; When the BUSY signal was " 1 ", the expression Compact Flash was writing data, when the BUSY signal is " 0 ", representes that the Compact Flash data write completion.The dual-ported memory of EP2C20 uses the clock of 25MHz; At first control signals such as CE, OE, Wait, REG; Accomplish the configuration that the Compact Flash data write register; Data with dual-port send in the Compact Flash through data line then, realize that Compact Flash is written to the status register data in real time of DSP equipment in the middle of the Compact Flash.
When DSP receives after the EXT5 of fpga chip look-at-me, the response interrupt request is with DSRs such as the duty of chip itself, parameters; Use the CLK2 clock as synchronously, the addressing of address that utilizes address wire A2 to send as data to A11 arrives seven address wires of D7 through D0; Send the data to fpga chip, when sending data, the write data sign of DSP/WR zero setting level; Read data sign/RD puts high level, and DSP sends the chip selection signal CE2 gating of data port.Like this, status data has just been accomplished the transmission course from DSP to FPGA.After fpga chip EP2C20 accomplishes Data Receiving; The status data of DSP is stored among the inner buffer memory of FPGA, reads the BUSY signal of Compact Flash then, BUSY is the status signal of Compact Flash; When the BUSY signal is high level; Compact Flash is duty in the card, at this time, is invalid to the write operation of Compact Flash.When the BUSY of Compact Flash signal is low level, can operate Compact Flash.At first, fpga chip carries out read-write control to Compact Flash, puts the write signal of Compact Flash low; Compact Flash is carried out write operation; CE, OE, WAIT signal are put high level, enable Compact Flash, and the data line that writes data and the address wire of gating Compact Flash.According to the operation requirement of Compact Flash, dispose the status register of Compact Flash then, confirm to write the starting cluster position of data.Promptly utilize A0 to four address wire gatings of A3 different address, come on the same stage status register is not carried out gating, simultaneously, the data of configuration are write register through data bus DD0 to DD7.Accomplish the initial configuration of Compact Flash, just can be written in the Compact Flash to DD7 to A3 address wire and data bus DD0 through A0, accomplish the storage of data being buffered in the inner dsp chip status data of FPGA.Whenever write one group of status data, the memory address of Compact Flash will add up 1 successively on initialized starting cluster address, guarantees the continuous different position that is stored in of data, to avoid losing and covering of data, simultaneously, also makes things convenient for reading of data.
After the Compact Flash storage is full, program will begin that the data in the Compact Flash are carried out data from the starting cluster address and cover, and new data will be replaced original storage data.
After the DSP device powers down, Compact Flash takes off from DSP equipment, through the card reader of standard; Use a computer and just can read the data of storing in the Compact Flash; Through analyzing these data, thereby the programming personnel can recognize DSP equipment work situation, fault location promptly and accurately.

Claims (2)

1.DSP equipment is characterized in that through the method for Compact Flash store operational parameters state this method comprises the steps:
1) FPGA sends the EXT5 look-at-me to DSP, and DSP receives this look-at-me, and the response interrupt request; The running parameter status data of self chip is configured; Use the CLK2 clock as synchronously, the addressing of address that utilizes address wire A2 to send as data to A11 arrives seven address wires of D7 through D0; The running parameter status data is sent to FPGA, the transport process of completion status data from DSP to FPGA;
2) FPGA receives the status data that transmits from DSP, and the status data of DSP is stored among the inner buffer memory of FPGA, reads the BUSY signal of Compact Flash then;
3) when the BUSY of the Compact Flash that reads signal is low level; FPGA carries out read-write control to Compact Flash; The write signal of Compact Flash is put low, Compact Flash is carried out write operation, CE, OE, WAIT signal are put high level; Enable Compact Flash, and the data line that writes data and the address wire of gating Compact Flash;
4) according to the operation requirement of Compact Flash, dispose the status register of Compact Flash, confirm to write the starting cluster position of data, accomplish the initial configuration of Compact Flash;
5) will be buffered in the inner DSP running parameter status data of FPGA and be written in the Compact Flash, accomplish the storage of DSP running parameter status data;
Above-mentioned DSP is TMS320C6416A6E3, and the main clock frequency of DSP is 600MHz; FPGA is the EP2C20 chip; Compact Flash is that the capacity of SanDisk company is the CompactFlash storage card of 16GB, and memory rate is 30MB/S.
2. DSP equipment as claimed in claim 1 is through the method for Compact Flash store operational parameters state; It is characterized in that; After the storage of the status data in the Compact Flash is full; To begin that the data in the Compact Flash are carried out data from the starting cluster address and cover, new data are replaced original storage data.
CN2010102767378A 2010-09-09 2010-09-09 Method for storing working parameter state by DSP (Digital Signal Processor) equipment through CF (Compact Flash) memory card Expired - Fee Related CN101963936B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102767378A CN101963936B (en) 2010-09-09 2010-09-09 Method for storing working parameter state by DSP (Digital Signal Processor) equipment through CF (Compact Flash) memory card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102767378A CN101963936B (en) 2010-09-09 2010-09-09 Method for storing working parameter state by DSP (Digital Signal Processor) equipment through CF (Compact Flash) memory card

Publications (2)

Publication Number Publication Date
CN101963936A CN101963936A (en) 2011-02-02
CN101963936B true CN101963936B (en) 2012-09-19

Family

ID=43516810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102767378A Expired - Fee Related CN101963936B (en) 2010-09-09 2010-09-09 Method for storing working parameter state by DSP (Digital Signal Processor) equipment through CF (Compact Flash) memory card

Country Status (1)

Country Link
CN (1) CN101963936B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9348783B2 (en) 2012-04-19 2016-05-24 Lockheed Martin Corporation Apparatus and method emulating a parallel interface to effect parallel data transfer from serial flash memory
CN104021106B (en) * 2014-06-19 2017-03-22 哈尔滨工业大学 DSP interrupt extension logic system based on FPGA and DSP interrupt extension method based on FPGA
CN108132857B (en) * 2017-12-15 2021-05-25 天津津航计算技术研究所 FPGA power-off state accurate recovery method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770424A (en) * 2010-01-05 2010-07-07 天津七一二通信广播有限公司 Data acquisition and emulation system suitable for underlying protocol stack of digital communication terminal
CN201576317U (en) * 2009-12-24 2010-09-08 厦门联创微电子股份有限公司 Video type vehicle traveling data recorder

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2083525A1 (en) * 2008-01-28 2009-07-29 Merging Technologies S.A. System to process a plurality of audio sources

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201576317U (en) * 2009-12-24 2010-09-08 厦门联创微电子股份有限公司 Video type vehicle traveling data recorder
CN101770424A (en) * 2010-01-05 2010-07-07 天津七一二通信广播有限公司 Data acquisition and emulation system suitable for underlying protocol stack of digital communication terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
鲁剑锋.基于CF卡的数字视频存储系统的设计.《仪器仪表学报》.2010,第31卷(第8期),549-552. *

Also Published As

Publication number Publication date
CN101963936A (en) 2011-02-02

Similar Documents

Publication Publication Date Title
US6018809A (en) Apparatus and method for capturing information off a plurality of bi-directional communication buses
CN102831090B (en) Address line for space-borne DSP (Digital Signal Processor) and FPGA (Field Programmable Gate Array) communication interfaces and optimization method for address line
CN107562504A (en) A kind of serial port implementing method of DSP program segmentings loading
CN102261929B (en) Task scheduling method of small multi-channel data recorder
CN101458725B (en) Microcontroller chip and debug method thereof
CN103941619B (en) A kind of development platform based on the reconfigurable Microcomputer Protection of FPGA
CN102192794A (en) Temperature data acquisition device, and storing and transmitting method thereof
CN108549591A (en) A kind of black box device and its implementation of embedded system
CN101963936B (en) Method for storing working parameter state by DSP (Digital Signal Processor) equipment through CF (Compact Flash) memory card
CN107505932A (en) A kind of DSP remote testing devices and method based on serial communication
CN105487533A (en) Vehicle-mounted diagnostic data sharing terminal system
CN100492415C (en) Diesel engine operation data recoding method
CN103324583A (en) Offline high-speed fiber-optic gyroscope data acquisition method
CN105487532A (en) Vehicle-mounted diagnostic data sharing terminal system
CN101751327A (en) Method for tracing embedded processor debugging
CN206146465U (en) Box transformer monitoring device
CN113436055A (en) Miniaturized onboard high-speed image storage and processing system
CN104461796B (en) JTAG debugging modules and adjustment method for embedded 8051CPU
CN103631739A (en) Positioning analysis method for embedded system and embedded system
CN102033823B (en) Method and device for storing data
CN115221070B (en) NVMe disk-based system-on-chip diagnosis method
CN105242603A (en) Power collection terminal with USB OTG interface and debugging upgrade method thereof
CN103150262B (en) Pipeline access means
CN103246584A (en) Chip structure of system-on-chip and method for storing debug information
CN100371907C (en) Tracing debugging method and system for processor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120919

Termination date: 20140909

EXPY Termination of patent right or utility model