CN1598772A - Program updating method of single chip processor - Google Patents
Program updating method of single chip processor Download PDFInfo
- Publication number
- CN1598772A CN1598772A CN 200410040580 CN200410040580A CN1598772A CN 1598772 A CN1598772 A CN 1598772A CN 200410040580 CN200410040580 CN 200410040580 CN 200410040580 A CN200410040580 A CN 200410040580A CN 1598772 A CN1598772 A CN 1598772A
- Authority
- CN
- China
- Prior art keywords
- program
- single chip
- scm
- chip microcomputer
- outside
- 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.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses an approach of updating single chip machine program. It relates to computer technology, esp. single chip machine technology. Its steps are as follows: a. using outside LOADER to load program needed updating into outside SDRAM; b. copying inside LOADER to RAM inside MCU; c. erasing original data in FLASH and copying update program from outside SDRAM to FLASH. The invention can update software conveniently. It needn't open case to update software of RPTV adopting this invention. With merits of low cost and erasable program, products are more competitive.
Description
Technical field
The present invention relates to computer technology, particularly singlechip technology.
Background technology
The application of MCU is very extensive in the electric equipment products at present, and still, the MCU program upgrade of ROM is quite loaded down with trivial details in the no sheet.With the rear-projection TV is example, and as the popular best-selling product of near period, function is maked rapid progress, and software requirement is more and more, and software version is also brought in constant renewal in.Need open the cabinet operation to the upgrading of software at present, therefore need the user to send maintenance station maintenance upgrading or after sale service personnel to make house calls.But after complete machine dispatched from the factory, sending maintenance station maintenance upgrading or after sale service personnel to make house calls all can increase cost, also can make troubles to the user.Need the update software version when producing on the On-line Product if run into, maybe when the merchant returned the machinery requirement updating software release, opening the complete machine bonnet can be the thing of trouble of part, also can influence production efficiency.
Traditional way generally is in scheme or in MCU inside the ROM zone to be arranged, inner loader utility just is in wherein, arrive first corresponding inner ROM area operation after powering on, if upgrade request is arranged then enter upgrade status, if do not ask then program jumps to respective regions continues to carry out.Its system constitutes as shown in Figure 1.The back MCU that only need power in this case goes to judge whether upgrade request is arranged, and then passes through (or to claim IIC, I as I2C with the outside
2C) communication modes of a class obtains new program, this mode advantage is safe and reliable, if when promptly running into abnormal conditions such as power down in the escalation process, re-power still and can carry out the upgrading of software, do not have too big risk, shortcoming is that inner Loader program partly needs prior mask, and cost can increase, if internal processes is if need to change then need mask again in addition, not only the cycle is long and expense continues to raise.
Summary of the invention
Technical matters to be solved by this invention is, a kind of Single Chip Microcomputer (SCM) program upgrade method is provided, and can realize software upgrading by interface by outer computer.
The present invention solve the technical problem the technical scheme that is adopted, and a kind of Single Chip Microcomputer (SCM) program upgrade method is provided, and may further comprise the steps: a. is written into outside SDRAM with ROMPaq; B. copy inner LOADER to the MCU ram in slice; C. carry out inner LOADER program: it is former meaningful to wipe FLASH, and copies ROMPaq to FLASH from outside SDRAM.
Before step a, earlier existing program is detected, need to determine whether upgrading, if need then enter step a.Described step b is finished by outer computer control.Described outer computer is poured new procedures into SDRAM by the IIC mode, and tests, if new procedures can not normally move, then cancels updating operation.
The invention has the beneficial effects as follows, can realize software upgrading easily, need not to open cabinet when adopting rear-projection TV program upgrade of the present invention, need not to open cabinet, have and can reduce hardware cost, advantage such as can repeatedly programme makes product have more competitive power.
The invention will be further described below in conjunction with the drawings and specific embodiments.
Description of drawings
Fig. 1 is the prior art synoptic diagram.
Fig. 2 is a synoptic diagram of the present invention.
Fig. 3 is a process flow diagram of the present invention.
Fig. 4 is a built-up circuit synoptic diagram of the present invention.
Embodiment
As Fig. 2, be example with the rear-projection TV, realize the upgrading of software, finish communication between computing machine and the rear-projection TV by outside LOADER by breakout box, finish upgrade job in the MCU by inner LOADER.
As Fig. 3, program upgrade may further comprise the steps:
A. ROMPaq is written into outside SDRAM;
B. copy inner LOADER to the MCU ram in slice;
C. it is former meaningful to wipe FLASH, and duplicates ROMPaq to FLASH from outside SDRAM.
Before step a, earlier existing program is detected, need to determine whether upgrading, if need then enter step a.Before step a, read existing program version information and demonstration.Described outer computer is poured new procedures into SDRAM by the IIC mode through MCU and demoder (DECODER), tests new procedures then in SDRAM, if new procedures can not normally move, then cancels updating operation.
Outside Loader utilizes the computer parallel port, and (interrupt address is 0 * 378/0 * 379 or 0 * 278/0 * 279 or 0 * 3BC/0 * 3BD, below be example with 0 * 378) input/output function, finished the SDA of I2C bus, ACK feedback on SCL output and the sda line road etc., on computer parallel port write address 0 * 378, what be actually printer Design is the parallel mode output of 8bit, pin is Pin2~Pin9 of DSUB, because iic bus is a serial mode, therefore only used the BIT0 of 8bit and BIT1 to make SDA and SCL, used the Bit3 that reads address 0 * 379 and Bit4 to feed back high-low level state on SDA and the SCL bus then, pin is Pin13 and the Pin14 of DSUB.Circuit theory diagrams as shown in Figure 4.
Below be the realization that example illustrates inner Loader with the MCU TC93CS45 of TOSHIBA and the FLASHAT49F040 of ATMEL.
Want to realize online upgrading that complete machine hardware is had certain requirement, and the IC of store M CU instruction code must be able to repeatedly write, and can wipe operations such as renewal by the instruction of MCU.Because of the MCU of TOSHIBA does not have ROM in the sheet, all ROM are outside, exist in the FLASH (AT49F040), and the characteristics of FLASH are " 0 " state to be become one state by the ERASE order, and ERASE order is the whole clear space with AT49F040, need find a storage space to store when the LOADER program of having carried out after ERASE orders.Because outside do not have other can supply the space of the temporary transient operation of program, and TMP93CS45 Series MCU inside does not have ROM in the sheet yet, and MCU inside has the ram space of 2KBytes may supply program temporarily move.Therefore, the present invention's ram space that the LOADER program is put into 2K moves.
Fig. 4 be IIC to the built-up circuit between the computing machine, wherein, T1 is the 25P DSUB plug that is connected with computer parallel port, T2 is 74LS05N, T3 is a three-prong plug.
Concrete implementation step is as follows:
1, remote-controlled start-up enters the Loader pattern behind the complete machine powering, enters I2C OFF state again, and this moment, the serial i 2C bus of MCU quit work, and probably took about 12 seconds;
2, outside loader utility is poured the 512K program into MCU by the I2C mode by the I2C interface or the I2C interface on the mainboard (needing communicate with DPTV) of I2C bus mode from the MCU plate with PC, probably takes about 30 seconds (to comprise whole plug wire process);
3, withdraw from I2C OFF state after the end, i.e. MCU enabling, this moment, inner loader utility code was shifted among the RAM, and needing the time is the microsecond level;
4, the inside loader utility among the RAM is sent erase command;
5, wait for whether the detection of Polling position is in busy condition;
6, specify the first address of wanting reading, and the request reading;
7, reading and program write FLASH took about 30 seconds.
Claims (6)
1, the Single Chip Microcomputer (SCM) program upgrade method is characterized in that, may further comprise the steps:
The program that a. will need to upgrade is written into outside SDRAM with outside LOADER;
B. copy inner LOADER to the MCU ram in slice;
C. it is former meaningful to wipe FLASH, and copies ROMPaq to FLASH from outside SDRAM.
2, Single Chip Microcomputer (SCM) program upgrade method as claimed in claim 1 is characterized in that, before step a, earlier existing program is detected, and need to determine whether upgrading, if need then enter step a.
3, Single Chip Microcomputer (SCM) program upgrade method as claimed in claim 1 is characterized in that, before step a, reads existing program version information and demonstration.
4, Single Chip Microcomputer (SCM) program upgrade method as claimed in claim 1 is characterized in that, described step a is finished by outer computer and MCU control.
5, Single Chip Microcomputer (SCM) program upgrade method as claimed in claim 4 is characterized in that, described outer computer is poured new procedures into SDRAM by the IIC mode.
6, Single Chip Microcomputer (SCM) program upgrade method as claimed in claim 5 is characterized in that, if new procedures can not normally move, then cancels updating operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100405803A CN1294489C (en) | 2004-08-31 | 2004-08-31 | Program updating method of single chip processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100405803A CN1294489C (en) | 2004-08-31 | 2004-08-31 | Program updating method of single chip processor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1598772A true CN1598772A (en) | 2005-03-23 |
CN1294489C CN1294489C (en) | 2007-01-10 |
Family
ID=34664723
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100405803A Expired - Fee Related CN1294489C (en) | 2004-08-31 | 2004-08-31 | Program updating method of single chip processor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1294489C (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100368995C (en) * | 2006-01-17 | 2008-02-13 | 华为技术有限公司 | Upgrading device and method in operation for monolithic processor system |
CN100370423C (en) * | 2006-04-12 | 2008-02-20 | 华为技术有限公司 | Method and system for 51 one-chip computer on-system upgrading |
CN102063318A (en) * | 2010-12-22 | 2011-05-18 | Tcl通力电子(惠州)有限公司 | Upgrading method of power supply MCU (Micro Control Unit) |
CN103809995A (en) * | 2012-11-15 | 2014-05-21 | 海尔集团公司 | Single chip microcomputer as well as online upgrading method and online upgrading method of single chip microcomputer |
CN104200181A (en) * | 2014-08-13 | 2014-12-10 | 上海无线电设备研究所 | Dual-function intelligent programming module and method |
CN109542532A (en) * | 2018-10-29 | 2019-03-29 | 中国科学院西安光学精密机械研究所 | A method of chip, which is configured, from FPGA carries out program load to single-chip microcontroller |
CN112764379A (en) * | 2021-01-18 | 2021-05-07 | 四川长虹电器股份有限公司 | IAP control method based on DSP system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2752631B1 (en) * | 1996-08-22 | 1999-01-22 | Schneider Automation | METHOD FOR LOADING AN OPERATING SYSTEM |
US6604235B1 (en) * | 1999-01-06 | 2003-08-05 | Icebox, Llc | Operating system upgrading |
CN100426220C (en) * | 2001-12-29 | 2008-10-15 | 中兴通讯股份有限公司 | Device for realizing software down loading using single-chip processor in communication system and its method |
-
2004
- 2004-08-31 CN CNB2004100405803A patent/CN1294489C/en not_active Expired - Fee Related
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100368995C (en) * | 2006-01-17 | 2008-02-13 | 华为技术有限公司 | Upgrading device and method in operation for monolithic processor system |
CN100370423C (en) * | 2006-04-12 | 2008-02-20 | 华为技术有限公司 | Method and system for 51 one-chip computer on-system upgrading |
CN102063318A (en) * | 2010-12-22 | 2011-05-18 | Tcl通力电子(惠州)有限公司 | Upgrading method of power supply MCU (Micro Control Unit) |
CN103809995A (en) * | 2012-11-15 | 2014-05-21 | 海尔集团公司 | Single chip microcomputer as well as online upgrading method and online upgrading method of single chip microcomputer |
CN104200181A (en) * | 2014-08-13 | 2014-12-10 | 上海无线电设备研究所 | Dual-function intelligent programming module and method |
CN104200181B (en) * | 2014-08-13 | 2017-04-05 | 上海无线电设备研究所 | A kind of difunctional intelligent programming module and method |
CN109542532A (en) * | 2018-10-29 | 2019-03-29 | 中国科学院西安光学精密机械研究所 | A method of chip, which is configured, from FPGA carries out program load to single-chip microcontroller |
CN112764379A (en) * | 2021-01-18 | 2021-05-07 | 四川长虹电器股份有限公司 | IAP control method based on DSP system |
CN112764379B (en) * | 2021-01-18 | 2022-05-03 | 四川长虹电器股份有限公司 | IAP control method based on DSP system |
Also Published As
Publication number | Publication date |
---|---|
CN1294489C (en) | 2007-01-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102737102B (en) | Plc data log pattern and the method storing data wherein | |
CN100383737C (en) | SCM online loading and updating method and system | |
CN103049405B (en) | Android device file management method and system | |
CN103246534B (en) | operating system migration method and device | |
CN106569839B (en) | Circuit board and firmware burning method thereof | |
CN1464387A (en) | Hardware equipment drive program installing method and computer therefor | |
CN102063320A (en) | Work mode switching methods, USB (Universal Serial Bus) equipment and host machine equipment | |
CN103838585A (en) | Method for achieving automatic recording of ARM9 embedded system based on SD card | |
CN1185579C (en) | Debugging method by using serial port when system is in shutdown time and inactive state | |
CN1294489C (en) | Program updating method of single chip processor | |
CN103019797A (en) | Method for upgrading firmware of advertising machine terminal through USB (Universal Serial Bus) interface | |
CN1873632A (en) | Identification system and method for hot plug peripheral unit | |
CN1577252A (en) | Method and equipment for automatic assembling equipment and driving program | |
CN1199108C (en) | Method of automatic updating embedded device operating system using CF card | |
CN100531048C (en) | Method for dynamic setting management function at management interface of intelligent interface | |
CN101625644A (en) | Flash memory chip operation method, in-circuit emulator and flash memory chip operation system | |
CN101178660A (en) | Memory data automatic update method | |
CN101615127B (en) | Automatic installing method of operating system based on strategy | |
CN100578477C (en) | Method and system for realizing normal working of compound device | |
CN102135896B (en) | A kind of method and system based on Implementation of Embedded System software upgrading | |
CN102147739A (en) | Multi-mainboard server system and network-driving method thereof | |
CN113377404B (en) | New energy vehicle domain controller safety monitoring chip program updating method and system | |
CN1245682C (en) | Computer chip data write-in device and method | |
CN112988465A (en) | Method for automatically recovering operation of single chip microcomputer in upgrading failure | |
CN1291314C (en) | Memory controller driving program installing method and system |
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: 20070110 Termination date: 20170831 |
|
CF01 | Termination of patent right due to non-payment of annual fee |