CN1512336A - 8051 monolithic system upgrading method and monitoring circuit - Google Patents

8051 monolithic system upgrading method and monitoring circuit Download PDF

Info

Publication number
CN1512336A
CN1512336A CNA021399301A CN02139930A CN1512336A CN 1512336 A CN1512336 A CN 1512336A CN A021399301 A CNA021399301 A CN A021399301A CN 02139930 A CN02139930 A CN 02139930A CN 1512336 A CN1512336 A CN 1512336A
Authority
CN
China
Prior art keywords
chip microcomputer
scm
pin
single chip
type flip
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
CNA021399301A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNA021399301A priority Critical patent/CN1512336A/en
Publication of CN1512336A publication Critical patent/CN1512336A/en
Pending legal-status Critical Current

Links

Images

Abstract

The present invention relates to the upgrading process and monitoring circuit for 8051 monolithic computer system. The upgrading process includes the following steps: receiving the newest upgrading program via DSLAM equipment network management and external data interface, setting in local buffering memory and sending on-line upgrading command; power-on to start the 8051 monolithic computer system, and performing proper mode switching with some control pins of the 8051 monolithic computer system and peripheral logic control circuit to realize the on-line upgrading of the system via the cooperation of the different work modes. The on-line upgrading may be completed without needing the maintenance worker to attend site, being fast and saving in time and labor.

Description

A kind of 8051 Single Chip Microcomputer (SCM) system upgrade method and supervisory circuits
Technical field
The present invention relates to a kind of 8051 Single Chip Microcomputer (SCM) system upgrade method and supervisory circuits.
Background technology
8051 single-chip microcomputers have ratio of performance to price height, flexible function, are easy to characteristics such as man-machine conversation and good data processing power, have been widely used in the various telecommunications systems arrangements.Performance for the equipment of improving constantly, satisfy user's diversified demand, the continuous upgrading of telecommunications systems arrangement is essential, upgrading in some situation, Control Software in the system, controlled variable need be upgraded, prior art is normally unloaded the data-carrier store on the circuit board (EPROM, EEPROM etc.) down, then with special-purpose programmable device with new software and parameter downloads in data-carrier store or directly upgrade these storeies.It is on-the-spot that this method needs professional maintainer directly to arrive, and expended lot of manpower and material resources, and efficient is lower.
Summary of the invention
The present invention will solve is the existing 8051 Single Chip Microcomputer (SCM) system inefficient technical matterss of upgrading.
In order to solve above technical matters, the present invention proposes the method for 8051 Single Chip Microcomputer (SCM) system upgrading and the supervisory circuit that this method is used:
A kind of 8051 Single Chip Microcomputer (SCM) system upgrade methods is characterized in that, may further comprise the steps:
The first step:, put into local cache, and send the online upgrading order by DSLAM equipment webmaster and the outside up-to-date ROMPaq of data-interface reception;
Second step: electrifying startup 8051 Single Chip Microcomputer (SCM) system, utilize the multifunction programable I/O pin of 8051 Single Chip Microcomputer (SCM) system, cooperate peripheral logic control circuit, carry out the suitable switching of mode of operation, different mode of operations cooperatively interacts and realizes system's online upgrading function respectively.
Described second step specifically may further comprise the steps:
After A, electrifying startup 8051 Single Chip Microcomputer (SCM) system, the used program of different working modes is placed on respectively in the different memory areas, enters a kind of mode of operation by the signal condition control single chip computer of multifunction programable I/O pin;
B, when being operated in the mode of operation that enters, single-chip microcomputer detects the program of another mode of operation, judges whether testing result normal; If normal,, carry out corresponding program code by the pattern that control signal and software reset switch to this program of execution; If undesired, wait for the online upgrading order, by erasable instruction refresh routine code.
In the described steps A the used program of different working modes is placed on respectively and is meant in the different memory areas and can the guiding trace routine be placed in the memory block of a certain mode of operation correspondence, and the application program that will upgrade is placed on the memory block of another mode of operation correspondence.
A kind of supervisory circuit that realizes claim 1 method, comprise 8051 Single Chip Microcomputer (SCM) system, house dog and CPLD programmable logic device (PLD), it is characterized in that, house dog output reset signal RESET controls peripheral control circuit d type flip flop clear terminal, described 8051 Single Chip Microcomputer (SCM) system have the online upgrading function, two pins in its multifunction programable I/O pin link to each other with d type flip flop output with a pin as the clock input and the data input pin of d type flip flop again.
Described 8051 single-chip microcomputers are W78E516B, and the 4th pin P4.3 of the input/output port P4 mouth of W78E516B links to each other with d type flip flop output, and the 2nd, 3 pins are imported and data input pin as the clock of d type flip flop respectively.
Described 8051 single-chip microcomputers are W78E516B, the the 7th, the 8th pin P2.6 of the input/output port P2 mouth of W78E516B, P2.7 links to each other with d type flip flop output, and the 2nd, 3 pins of the input/output port P4 mouth of W78E516B are imported and data input pin as the clock of d type flip flop respectively.
After having adopted technique scheme, the maintainer need not go to the on-the-spot online upgrading function of just having finished 8051 Single Chip Microcomputer (SCM) system, and is convenient and swift, time saving and energy saving.
Description of drawings
Fig. 1 is ADSL (Asymmetric Digital Subscriber Line) (ADSL) system ATUC unit online upgrading data-interface synoptic diagram.
Fig. 2 is ADSL (Asymmetric Digital Subscriber Line) (ADSL) system ATUC unit online upgrading hardware synoptic diagram.
Fig. 3 is ADSL (Asymmetric Digital Subscriber Line) (ADSL) system ATUC unit online upgrading software program flow chart.
Embodiment
Be described further below in conjunction with drawings and Examples:
A kind of 8051 Single Chip Microcomputer (SCM) system online upgrading methods may further comprise the steps:
1, by DSLAM equipment webmaster and the outside up-to-date ROMPaq of data-interface reception, puts into local cache, and send the online upgrading order;
2, electrifying startup 8051 Single Chip Microcomputer (SCM) system, the guiding trace routine is placed in the memory block of a certain mode of operation correspondence, and the application program that will upgrade is placed on the memory block of another mode of operation correspondence, enters a kind of mode of operation by some signal condition control single chip computer of controlling pin;
3, when being operated in the mode of operation that enters, single-chip microcomputer detects the program of another mode of operation, judges whether testing result is normal; If normal,, carry out corresponding program code by the pattern that control signal and software reset switch to this program of execution; If undesired, wait for the online upgrading order, by erasable instruction refresh routine code.
Fig. 1 has described the structured flowchart that needs data updated to flow to, and promptly at first by DSLAM equipment webmaster and the outside up-to-date ROMPaq of data-interface reception, puts into local cache, and sends the online upgrading order, so that the inquiry of ATUC unit.
Be illustrated in figure 2 as the supervisory circuit of online upgrading method, house dog output reset signal RESET controls peripheral control circuit d type flip flop clear terminal, reset signal be height then d type flip flop be output as low level.8051 single-chip microcomputers are the W78E516B of Hua Bang company, the 4th pin P4.3 of the input/output port P4 mouth of W78E516B links to each other with d type flip flop output, 2nd, 3 pins are imported and data input pin as the clock of d type flip flop respectively, by the output of these two pins is set, obtain the output of d type flip flop with regard to may command.W78E516B can enter any mode of operation for which kind of state decides by detecting this signal, in case the d type flip flop output state is certain, just can make things convenient for switching working mode by the software reset then.For the selection of control signal, also can select the 7th, the 8th pin P2.6 of the P2 mouth of W78E516B, P2.7 is as detected signal, its effect is just the same with P4.3, just P4.3 only need be with a pin, and need detect P2.6 simultaneously with the P2 mouth, the signal of P2.7 two pins.
Fig. 3 describes the FB(flow block) of software executive routine in detail.When cpu reset starts, detect the pin state of P4.3 earlier, judge according to the P4.3 level to enter F04KBOOT bootmode (low level) or NORMAL normal mode (high level).Since during system power-on reset, house dog output reset signal, therefore the d type flip flop of peripheral control circuit output zero clearing is low level, so system enters the F04KBOOT pattern behind the normal electrification reset, and the output feeding-dog signal.Under this pattern, then judge according to the content of FLAG flag byte whether the main storage area program is good for use, and wherein flag byte can be placed among the FLASH of external stability.As good for use, it is high level that d type flip flop input P4.2 then is set, d type flip flop clock P4.1 is set then produces a negative edge, d type flip flop output P4.3 is a high level like this, the software reset then is set, system just can withdraw from the F04KBOOT pattern, enters the NORMAL normal mode, carries out normal running program.After the normal execution of program, check the FLAG flag byte, and it is made as the master routine available flag.Unavailable as master routine, then wait for the online upgrading order within a certain period of time, if the online upgrading order is arranged, just can will download to local recent program and upgrade the main storage area by suitable setting and erasable instruction.If do not have the online upgrading order and overtime after, it is the same then to withdraw from F04KBOOT pattern operation with the front, withdraws from the F04KBOOT bootmode, trial enters the NORMAL pattern again again.

Claims (6)

1, a kind of 8051 Single Chip Microcomputer (SCM) system upgrade methods is characterized in that, may further comprise the steps:
The first step:, put into local cache, and send the online upgrading order by DSLAM equipment webmaster and the outside up-to-date ROMPaq of data-interface reception;
Second step: electrifying startup 8051 Single Chip Microcomputer (SCM) system, utilize the multifunction programable I/O pin of 8051 Single Chip Microcomputer (SCM) system, cooperate peripheral logic control circuit, carry out the suitable switching of mode of operation, different mode of operations cooperatively interacts and realizes system's online upgrading function respectively.
2,8051 Single Chip Microcomputer (SCM) system upgrade methods as claimed in claim 1 is characterized in that, described second step specifically may further comprise the steps:
After A, electrifying startup 8051 Single Chip Microcomputer (SCM) system, the used program of different working modes is placed on respectively in the different memory areas, enters a kind of mode of operation by the signal condition control single chip computer of multifunction programable I/O pin;
B, when being operated in the mode of operation that enters, single-chip microcomputer detects the program of another mode of operation, judges whether testing result normal: if normal, by the pattern that control signal and software reset switch to this program of execution, carry out corresponding program code; If undesired, wait for the online upgrading order, by erasable instruction refresh routine code.
3,8051 Single Chip Microcomputer (SCM) system upgrade methods as claimed in claim 2, it is characterized in that, in the described steps A the used program of different working modes is placed on respectively and is meant in the different memory areas and can the guiding trace routine be placed in the memory block of a certain mode of operation correspondence, and the application program that will upgrade is placed on the memory block of another mode of operation correspondence.
4, a kind of supervisory circuit that realizes claim 1 method, comprise 8051 Single Chip Microcomputer (SCM) system, house dog and CPLD programmable logic device (PLD), it is characterized in that, house dog output reset signal RESET controls peripheral control circuit d type flip flop clear terminal, described 8051 Single Chip Microcomputer (SCM) system have the online upgrading function, two pins in its multifunction programable I/O pin link to each other with d type flip flop output with a pin as the clock input and the data input pin of d type flip flop again.
5, supervisory circuit as claimed in claim 4, it is characterized in that, described 8051 single-chip microcomputers are W78E516B, and the 4th pin P4.3 of the input/output port P4 mouth of W78E516B links to each other with d type flip flop output, and the 2nd, 3 pins are imported and data input pin as the clock of d type flip flop respectively.
6, supervisory circuit as claimed in claim 4, it is characterized in that, described 8051 single-chip microcomputers are W78E516B, the the 7th, the 8th pin P2.6 of the input/output port P2 mouth of W78E516B, P2.7 links to each other with d type flip flop output, and the 2nd, 3 pins of the input/output port P4 mouth of W78E516B are imported and data input pin as the clock of d type flip flop respectively.
CNA021399301A 2002-12-28 2002-12-28 8051 monolithic system upgrading method and monitoring circuit Pending CN1512336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA021399301A CN1512336A (en) 2002-12-28 2002-12-28 8051 monolithic system upgrading method and monitoring circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA021399301A CN1512336A (en) 2002-12-28 2002-12-28 8051 monolithic system upgrading method and monitoring circuit

Publications (1)

Publication Number Publication Date
CN1512336A true CN1512336A (en) 2004-07-14

Family

ID=34231951

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA021399301A Pending CN1512336A (en) 2002-12-28 2002-12-28 8051 monolithic system upgrading method and monitoring circuit

Country Status (1)

Country Link
CN (1) CN1512336A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100351797C (en) * 2003-08-19 2007-11-28 华为技术有限公司 On-line updating method and apparatus of single-chip apparatus
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
CN100383737C (en) * 2005-01-12 2008-04-23 华为技术有限公司 SCM online loading and updating method and system
CN102801405A (en) * 2012-06-26 2012-11-28 深圳市芯海科技有限公司 Method and device for switching chip mode
CN107796409A (en) * 2016-09-05 2018-03-13 高德信息技术有限公司 A kind of navigation control method and device
CN108733396A (en) * 2018-05-25 2018-11-02 西南电子技术研究所(中国电子科技集团公司第十研究所) The on-line loaded method of 8 High Performance SCM program softwares
CN110442365A (en) * 2019-07-26 2019-11-12 锐捷网络股份有限公司 The upgrade method and device of programmable logic device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100351797C (en) * 2003-08-19 2007-11-28 华为技术有限公司 On-line updating method and apparatus of single-chip apparatus
CN100383737C (en) * 2005-01-12 2008-04-23 华为技术有限公司 SCM online loading and updating method and system
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
CN102801405A (en) * 2012-06-26 2012-11-28 深圳市芯海科技有限公司 Method and device for switching chip mode
CN107796409A (en) * 2016-09-05 2018-03-13 高德信息技术有限公司 A kind of navigation control method and device
CN108733396A (en) * 2018-05-25 2018-11-02 西南电子技术研究所(中国电子科技集团公司第十研究所) The on-line loaded method of 8 High Performance SCM program softwares
CN110442365A (en) * 2019-07-26 2019-11-12 锐捷网络股份有限公司 The upgrade method and device of programmable logic device

Similar Documents

Publication Publication Date Title
CN1946032A (en) Method for realizing patch management
CN1503136A (en) Embedded software test method
CN1512336A (en) 8051 monolithic system upgrading method and monitoring circuit
CN106502741A (en) A kind of realization method and system of USB upgradings
CN101655802A (en) System and method for downloading files in batches
CN1696867A (en) System and method of controlling power source in main board through network
CN101751265A (en) Updating system of basic input/output system of server and method thereof
CN110824336A (en) Test system and test method
CN1960276A (en) Remote control system and method
CN113900911B (en) Health management system
CN1412995A (en) Information management method in data communication equipment
CN1163083C (en) Digital signal and instruction treatment device for program controlled switchboard
CN2716911Y (en) Multi communication port multi protocol intelligent traffic collection device
CN2697961Y (en) Signalling data processor
CN1176423C (en) Mainboard test program process system and method thereof
CN112650678A (en) Jenkins-based automatic test system and method for audio and video accelerator card product
CN100437474C (en) System and method for regulating CPU frequency
CN100395729C (en) Method for using exterior program storage unit
CN201110616Y (en) Machinery room air conditioner controller
CN101169637A (en) Programmable controller core unit and its usage method
CN100368979C (en) Device for implementing POS machine parallel interface data receiving and output for printing and method for use thereof
CN110398934B (en) PLC wireless intelligent control system and application thereof
CN1257453C (en) Hardware initial system and method based on plate supporting bag
CN1538644A (en) Dynamic layout method of power environment monitoring system
CN1684036A (en) Device and method for loading cell phone with software

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