CN101201741A - Circuit capable of on-line system programming and method for on-line system programming - Google Patents

Circuit capable of on-line system programming and method for on-line system programming Download PDF

Info

Publication number
CN101201741A
CN101201741A CNA2006101194033A CN200610119403A CN101201741A CN 101201741 A CN101201741 A CN 101201741A CN A2006101194033 A CNA2006101194033 A CN A2006101194033A CN 200610119403 A CN200610119403 A CN 200610119403A CN 101201741 A CN101201741 A CN 101201741A
Authority
CN
China
Prior art keywords
program storage
line system
circuit
data
program
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
CNA2006101194033A
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.)
Shanghai Huahong Grace Semiconductor Manufacturing Corp
Original Assignee
Shanghai Hua Hong NEC 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 Shanghai Hua Hong NEC Electronics Co Ltd filed Critical Shanghai Hua Hong NEC Electronics Co Ltd
Priority to CNA2006101194033A priority Critical patent/CN101201741A/en
Publication of CN101201741A publication Critical patent/CN101201741A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a circuit which supports online system programming, and the invention comprises a program memory and a data memory, wherein, the program memory is connected with a program memory bus, and the data memory is connected with a selector circuit which is connected with a data memory bus and the program memory bus. The invention also discloses a method for online system programming, which switches the data memory to the program memory bus by the selector circuit and runs a program for online system programming which is stored in the data memory to update the programs in the program memory. The method for online system programming provided by the invention has simple steps and convenient implementation, and the circuits adopted by the invention have the advantages of simple structure, low cost and easy production.

Description

But the method for the circuit of on-line system programming and on-line system programming
Technical field
The present invention relates to a kind of logical circuit, but the circuit of especially a kind of on-line system programming.The invention still further relates to a kind of method of on-line system programming
Background technology
Sheet storage unit such as data-carrier store, program storage that present microcontroller chip is all integrated usually, wherein for system upgrade or debugging than the convenience of complication system, can use programmable program storage usually, as EEPROM, EFLASH etc.How this will inevitably run into the problem to the program storage programming, if requirement can not make system cut-off in the programming process, just this moment, nature will be used on-line system programming technique (ISP).
The circuit structure that is often implemented in the wire system programming at present can comprise two program storages referring to shown in Figure 1, the main program memory when one of them normally moves as system; On-line system program storer (ISP program storage) when another is programmed as ISP, main program memory and ISP program storage are connected on the program memory controller of a band ISP control function, and the program memory controller of described band ISP control function is connected on the program storage bus.Comprise also in the circuit that one is connected to data-carrier store on the data ram bus by the data-carrier store read-write control circuit.When system normally moves, the program memory controller of band ISP control function is connected to main program memory on the programmed control bus, program on the operation main program memory, and data-carrier store is communicated with data ram bus by its read-write controller control.If detect the request of ISP, then the program memory controller with the ISP control function switches to the ISP program storage with the program storage bus, utilizes the on-line system program that is kept in advance in the ISP program storage to carry out the on-line system programming then.
Because will adopt the method for two program storages to realize ISP, this can cause following two shortcomings:, may increase the difficulty or the complexity of technology if one adopt the program storage of different kinds; Even if two adopt storer of the same race also will inevitably increase the cost of product.
Summary of the invention
Technical matters to be solved by this invention is, but the circuit that provides a kind of on-line system to programme, and the enough better simply structures of energy be implemented in the wire system programming, thereby reduce the difficulty and the complexity of manufacture craft, reduce the cost of product simultaneously.
For solving the problems of the technologies described above, but the technical scheme of the circuit of the present invention's on-line system programming is, comprise a program storage and a data storer, described program storage is connected to the program storage bus, described data-carrier store is connected to a selector circuit, and described selector circuit is connected to data ram bus and program storage bus.
Another technical matters to be solved by this invention is that the method that provides a kind of on-line system to programme can be used better simply circuit structure, is implemented in the wire system programming.
For solving the problems of the technologies described above, the technical scheme of the method for on-line system programming of the present invention is to comprise the steps:
(1) the on-line system program in the described program storage is copied in the described data-carrier store;
(2) described selector circuit switches to the program storage bus, and described data-carrier store is connected with described program storage bus;
(3) the on-line system program on the described data-carrier store of operation upgrades the program on the described program storage;
(4) after program updates finished, described selector circuit switched to data ram bus, and described data-carrier store is connected to data ram bus.
On-line system programmed method provided by the invention, step is easy, is easy to realize that the circuit structure that it adopted is simple, and is with low cost, is easy to make.
Description of drawings
The present invention is further detailed explanation below in conjunction with drawings and Examples:
But Fig. 1 is the structural representation of the circuit of existing on-line system programming;
But Fig. 2 is the structural representation of the circuit of the present invention's on-line system programming.
Embodiment
But the structure of the circuit of the present invention's on-line system programming can be referring to shown in Figure 2, comprise a program storage and a data storer, described program storage is connected to the program storage bus, described data-carrier store is connected to a selector circuit, and described selector circuit is connected to data ram bus and program storage bus.Described selection circuit can switch data memory bus and program storage bus, promptly according to instruction data-carrier store is connected with data ram bus, perhaps data-carrier store is connected with the program storage bus.
Described program storage is connected on the described program storage bus by a program storage control circuit, described program storage control circuit can the control program storer read-write operation, a configuration register that is used for controlling described selector circuit and described program storage control circuit is connected respectively to described selector circuit and described program storage control circuit.Described configuration register can be connected with arithmetical unit, perhaps is connected with other module that can send instruction, and instruction storage in this configuration register, is controlled described selector circuit and described program register control circuit carries out corresponding action then.
Comprise the read-write control circuit that the data storer is controlled in the described selector circuit.
In the normal operation of system, described program storage is connected to the program storage bus, and data-carrier store is connected to data ram bus, and system is by program storage bus read routine, operation that the data storer is read or write afterwards from the program storage.
The present invention also provides a kind of method of carrying out the on-line system programming with foregoing circuit, comprises the steps:
(1) the on-line system program in the described program storage is copied in the described data-carrier store;
(2) described selector circuit switches to the program storage bus, and described data-carrier store is connected with described program storage bus, and the described program storage of described program storage control circuit is set to " writing " state;
(3) the on-line system program on the described data-carrier store of operation upgrades the program on the described program storage;
(4) after program updates finished, described selector circuit switched to data ram bus, and described data-carrier store is connected to data ram bus, and the described program storage of described program storage control circuit is set to " reading " state.
The action of described program storage control circuit and described selector circuit is unified control and management by described configuration register.
Usually all storer can be arranged usually in the system level chip now, storer can take the major part area of system, but compare with the circuit of existing on-line system programming, the present invention will realize in the common microcontroller chip that needed two program storages able to programme of ISP are reduced to one, this will significantly reduce area of chip, thereby reduce the manufacture difficulty and the cost of product.

Claims (6)

1. but the circuit of on-line system programming, it is characterized in that, comprise a program storage and a data storer, described program storage is connected to the program storage bus, described data-carrier store is connected to a selector circuit, and described selector circuit is connected to data ram bus and program storage bus.
2. but the circuit of on-line system programming according to claim 1, it is characterized in that, described program storage is connected on the described program storage bus by a program storage control circuit, and a configuration register that is used for controlling described selector circuit and described program storage control circuit is connected respectively to described selector circuit and described program storage control circuit.
3. but the circuit of on-line system programming according to claim 1 is characterized in that, comprises the read-write control circuit that the data storer is controlled in the described selector circuit.
4. a method of carrying out the on-line system programming with circuit as claimed in claim 1 is characterized in that, comprises the steps:
(1) the on-line system program in the described program storage is copied in the described data-carrier store;
(2) described selector circuit switches to the program storage bus, and described data-carrier store is connected with described program storage bus;
(3) the on-line system program on the described data-carrier store of operation upgrades the program on the described program storage;
(4) after program updates finished, described selector circuit switched to data ram bus, and described data-carrier store is connected to data ram bus.
5. the method for on-line system programming according to claim 4, it is characterized in that, before the on-line system program on the described data-carrier store of described (3) step operation, the described program storage of described program storage control circuit is set to " writing " state; After described (4) step program updates finished, the described program storage of described program storage control circuit was set to " reading " state.
6. the method for on-line system programming according to claim 4 is characterized in that the action of described program storage control circuit and described selector circuit is unified control and management by described configuration register.
CNA2006101194033A 2006-12-11 2006-12-11 Circuit capable of on-line system programming and method for on-line system programming Pending CN101201741A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006101194033A CN101201741A (en) 2006-12-11 2006-12-11 Circuit capable of on-line system programming and method for on-line system programming

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006101194033A CN101201741A (en) 2006-12-11 2006-12-11 Circuit capable of on-line system programming and method for on-line system programming

Publications (1)

Publication Number Publication Date
CN101201741A true CN101201741A (en) 2008-06-18

Family

ID=39516916

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006101194033A Pending CN101201741A (en) 2006-12-11 2006-12-11 Circuit capable of on-line system programming and method for on-line system programming

Country Status (1)

Country Link
CN (1) CN101201741A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916588A (en) * 2010-08-23 2010-12-15 中国航天科技集团公司第九研究院第七七一研究所 In-system-programming (ISP) module and method thereof for in-system-programming of FPAA
CN102565671A (en) * 2011-12-16 2012-07-11 电子科技大学 Dynamic allocation method for on-line programming of integrated circuit tester
CN102637009A (en) * 2012-04-25 2012-08-15 山东省计算中心 Online programmable controller and implementation method thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916588A (en) * 2010-08-23 2010-12-15 中国航天科技集团公司第九研究院第七七一研究所 In-system-programming (ISP) module and method thereof for in-system-programming of FPAA
CN102565671A (en) * 2011-12-16 2012-07-11 电子科技大学 Dynamic allocation method for on-line programming of integrated circuit tester
CN102565671B (en) * 2011-12-16 2013-12-11 电子科技大学 Dynamic allocation method for on-line programming of integrated circuit tester
CN102637009A (en) * 2012-04-25 2012-08-15 山东省计算中心 Online programmable controller and implementation method thereof

Similar Documents

Publication Publication Date Title
US9042197B2 (en) Power fail protection and recovery using low power states in a data storage device/system
CN110941395B (en) Dynamic random access memory, memory management method, system and storage medium
WO2016003559A1 (en) Techniques to communicate with a controller for a non-volatile dual in-line memory module
CN104679609B (en) Digital control system
CN103324503A (en) Data programming system and method
CN105702300A (en) NAND Flash fault tolerant system based on FPGA (Field Programmable Gate Array)
CN107291379B (en) Memory system and control method thereof
JP2018523205A (en) Soft processor based image signal source and image signal processing method
CN101494086A (en) Memory device, controller and switching method for flash memory
CN101166229A (en) A TV software update method
WO2016033941A1 (en) Boot on-line upgrading apparatus and method
CN109992525A (en) Flash memory control
CN111026325A (en) Flash memory controller, control method of flash memory controller and related electronic device
CN103473182B (en) Non-volatility memorizer access method and nonvolatile memory controller
CN101201741A (en) Circuit capable of on-line system programming and method for on-line system programming
CN101409106B (en) Control method for Flash memory on-line programming
CN111177027A (en) Dynamic random access memory, memory management method, system and storage medium
CN202632773U (en) Portable serial FLASH programmer based on SD (Secure Digital) card
CN105404591A (en) Processor system and storer control method for same
CN106258006A (en) Use status information recovery system
CN102568583A (en) In-circuit programing method for Flash memory of micro controller unit (MCU) in Freescale HCS12 series
CN104750430A (en) Access method and device of NAND Flash interface
JP2013069047A (en) Memory system
CN111324289B (en) Memory device
CN106980513A (en) A kind of switching method and device of dual boot file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication