CN1164997C - Microcomputer system using repeated resets to set up different working modes and its method - Google Patents

Microcomputer system using repeated resets to set up different working modes and its method Download PDF

Info

Publication number
CN1164997C
CN1164997C CNB011103809A CN01110380A CN1164997C CN 1164997 C CN1164997 C CN 1164997C CN B011103809 A CNB011103809 A CN B011103809A CN 01110380 A CN01110380 A CN 01110380A CN 1164997 C CN1164997 C CN 1164997C
Authority
CN
China
Prior art keywords
microcomputer system
storer
address place
content
particular value
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
CNB011103809A
Other languages
Chinese (zh)
Other versions
CN1379328A (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.)
Winbond Electronics Corp
Original Assignee
Winbond Electronics 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 Winbond Electronics Corp filed Critical Winbond Electronics Corp
Priority to CNB011103809A priority Critical patent/CN1164997C/en
Publication of CN1379328A publication Critical patent/CN1379328A/en
Application granted granted Critical
Publication of CN1164997C publication Critical patent/CN1164997C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present invention relates to a method for setting different operating modes of a microcomputer system by utilizing repeated reset. The operating modes of the microcomputer system are set by utilizing a reset key. The microcomputer system comprises a microcomputer, a storage, a reset press key, a reset microcomputer system and a reset circuit, wherein the storage is connected to the microcomputer; the reset circuit provides a reset pulse for the microcomputer system or receives a reset pulse generated by the reset press key; the microcomputer system checks whether the contents in an address position are specified values after the microcomputer system is activated and reset or reactivated by the reset press key, if true, then an abnormal operating mode of the microcomputer system is set, else the specified values are written into the address position. If the microcomputer system is not reset in a certain time, a normal operating mode of the microcomputer system is set.

Description

Utilize the microcomputer system and the method thereof of repeated resets to set up different working modes
Technical field
The invention relates to a kind of microcomputer system and method thereof of utilizing repeated resets to set up different working modes.
Background technology
Along with development of science and technology, little of household appliances in our daily life, big various instruments to factory, the equipment of visible various robotizations everywhere, and the equipment of these robotizations all is to have adopted microcomputer system or microcomputer control system.Generally speaking, microcomputer system or microcomputer control system are to include display and keyboard, monitor and the operation microcomputer system for the user, and as for the program of micro computer, then be that the person's of being used demand is designed.In addition, in the program of micro computer, may add the program of some self-sensings or diagnosis, so as to occurring in system when unusual, the technician can allow micro computer carry out the autodiagnosis program only via pressing special function keys, just can understand the problem place, and and then get rid of it.
But,,, just can dispense the design of special function keys usually in order to simplify framework and to reduce cost for general microcomputer system.Therefore occur when unusual in system, the technician must be replaced with original micro computer IC a special micro computer IC who carries out self-diagnosing function, so as to understanding problem place and get rid of it.After problem is got rid of, more original micro computer IC is gained to system.Though this kind mode comparatively bothers, also can also deal with problems really.But, for the system of mechanism's complexity, often suitable waste of manpower of dismounting micro computer IC and time, also cause mechanism's breakage easily.
Summary of the invention
In view of this, in order to improve the shortcoming in the existing skill, the object of the present invention is to provide a kind of repeated reset (reset) that utilizes to reach microcomputer system and the method thereof of setting different working modes, for the microcomputer system that does not have keyboard, only utilize it to put key again, just can set different mode of operations, for example enter autodiagnosis pattern etc., so can avoid microcomputer system when fault, must change the problem of micro computer IC.
Use microcomputer system of the present invention,, can make system select to enter different mode of operations equally even omit the setting of special function keys.Therefore,, utilize mode of the present invention, can omit the setting of special function keys for the microcomputer system that is provided with keyboard, thus can simplify its framework and and then reduce cost.
Purpose of the present invention can reach by following measure:
A kind of method of utilizing the microcomputer system of repeated resets to set up different working modes comprises the following steps:
(i) when micro computer start or hand reser, check the content at particular address place in the storer, if particular value is arranged, the expression repeated reset, then setting microcomputer system is first mode of operation, carries out next step again, if the particular address place does not have particular value in the storer, then directly carry out next step;
(ii) particular value is write this particular address place, and show response message;
(iii) wait for a period of time, if having and put action again in this a period of time, execution in step (i) once more then, a period of time if do not put action again, is then removed the content at this particular address place later, and removes response message;
(iv) check the setting whether first mode of operation is arranged, then enter first mode of operation, just directly do not enter second mode of operation if having if have.
A kind of method of utilizing the microcomputer system of repeated resets to set up different working modes comprises the following steps:
(i) at first the time with micro computer start or hand reser, check the content at particular address place in the storer, if one of predefined a plurality of particular values, the expression repeated reset, then according to the corresponding relation of particular value and non-normal working pattern, the setting microcomputer system is the non-normal working pattern corresponding to this particular value, carries out next step again, if the particular address place does not have particular value in the storer, then directly carry out next step;
(ii) a plurality of particular values are write in regular turn particular address place in this storer, and the demonstration response message, and after each particular value is written in the storer at this particular address place, all wait for a period of time, if have in the period at this section and to put action again, then execution in step (i) once more;
(iii) write particular address place in this storer in regular turn, and after showing response message and wait,, then remove the content of this particular address, and remove response message if do not put action again at a plurality of particular values;
Check (iv) whether micro computer has the non-normal working pattern that is set to corresponding to a certain particular value, then enter this non-normal working pattern, just directly do not enter normal mode of operation if having if have.
A kind of microcomputer system that utilizes repeated resets to set up different working modes comprises: micro computer; Storer is connected on this micro computer; Put button again, in order to put microcomputer system again; And multiple circuits, produce reset pulse in order to provide the required power supply of microcomputer system to activate reset pulse or to accept the aforementioned button of putting again; Wherein, above-mentioned microcomputer system activate through above-mentioned power supply put again or put again button put again activate again after, can check whether the content at particular address place in the storer is particular value, if then set microcomputer system is first kind of mode of operation, otherwise particular value is write to the particular address place of above-mentioned storer, wait for a period of time then,, then be set at second kind of mode of operation if microcomputer system is not put again.
The present invention has following advantage compared to existing technology:
To achieve the above object, utilization of the present invention is when putting again, the characteristic that general caching device or storer can not be eliminated, in a period of time of the multiple postpone of micro computer, insert buffer or the storer of specific differentiation sign indicating number in appointment, if put again in this period and taken place, micro computer can one be differentiated sign indicating number and go to carry out specific mode of operation according to this.Micro computer inside promptly comprises the program of these specific operation mode, puts again after the key as long as the technician presses, in one section preset time, again by once putting key again, this moment, micro computer was carried out the debug function, was easy to learn on display that some assemblies go wrong, and then repaired or change.
The method of utilizing repeated reset to set the different working modes of microcomputer system of the present invention is to comprise the following steps:
At first, when micro computer start or hand reser, check the content at particular address place in the storer, if particular value is arranged, the expression repeated reset, then setting microcomputer system is the non-normal working pattern, again particular value is write this particular address place, and show response message.If the particular address place in the storer does not have particular value, then directly particular value is write this particular address, and show response message.
Wait for a period of time, put action again if having in this a period of time, just then program is carried out a step once more, a period of time if do not put action again, is then removed the content at this particular address place later, and removes response message.
Then, check the setting whether the non-normal working pattern is arranged, then enter the non-normal working pattern, just directly do not enter normal mode of operation if having if have.
By above-mentioned step,, utilize repeated reset just can reach the purpose of setting the microcomputer system different working modes as can be known because before entering normal mode of operation, whether check earlier has repeated reset, and whether decision enters the non-normal working pattern according to this.
The present invention also can be applied in the different behaviour in service of microcomputer system, such as the micro computer on the module testing plate, and the test operator is as long as opening power activates special test signal source again, and micro computer can show that IC to be measured is non-defective unit or defective products.But IC specificity analysis slip-stick artist will know is that the characteristic of IC is a preference or partially bad, or that part is bad, as long as pressing, the slip-stick artist puts again in a period of time afterwards again by once putting key again, activate the test signal again, micro computer can demonstrate various test results, is easy to learn under equivalent environment the characteristic of this IC.
Description of drawings
Following conjunction with figs. explanation preferred embodiment is further to illustrate method of the present invention, characteristics and advantage.
The 1st figure is the circuit block diagram that illustrates according to microcomputer system of the present invention.
The 2nd figure illustrates according to the answering of microcomputer system of one embodiment of the invention to put operational flowchart.
The 3rd figure is that the microcomputer system that illustrates is according to another embodiment of the present invention put operational flowchart answering of the situation with plural non-normal working pattern.
The 4th figure illustrates according to the microcomputer system of an embodiment more of the present invention to put operational flowchart answering of the situation with plural non-normal working pattern.
Label declaration
5 micro computers; 10 put button again; 12 multiple circuits; 14 sensing apparatus; 16 drive units; 18 storeies; 20 displays.
Embodiment
For general micro computer, after start, the buffer of inner specific use is for program can be carried out smoothly, usually when putting again, together it is preset as particular value, the content of general caching device and general memory is not then set, and may comprise some fixing value, for example 00 or FF, or rambling content.
See also the 1st figure, microcomputer system of the present invention includes micro computer 5, puts button 10 and multiple circuits 12 again, also has the sensing apparatus 14 of prerequisite detection element signal input and drive unit 16, storer 18 and the display 20 of controlling signal output.Wherein, sensing apparatus 14, drive unit 16, storer 18 and display 20 are connected with micro computer 5 respectively.Above-mentioned sensing apparatus 14 is in order to detecting, and detection signal is inputed to device in the micro computer 5, for example strainometer, flowmeter, magnetic reed switch, temperature detecting device, pressure gauge etc.Above-mentioned drive unit 16 then is to control in order to the controlling signal that is subjected to micro computer 5, and carries out the device of specific action, for example relay, step motor, digital/analog converter, pulse width modulation (PWM) motor etc.
In the framework of the 1st figure, put button 10 again and all be connected to answering of micro computer 5 with multiple circuits 12 and put the pin position, therefore can utilize power supply to activate to put again or button is put again and reached the purpose of putting micro computer 5 again.
See also the 2nd figure, the method of utilizing repeated reset to set the different working modes of microcomputer system of the present invention is to comprise the following steps: that (i) is when micro computer start or hand reser, execution in step 102, check the storer in a certain zone or the content in the buffer, if this uncomplete content is the data of particular value A, the expression system is not a repeated reset; (ii) execution in step 104, and particular value A is write this zone, skip to step 110 again, if the content in should the zone is particular value A entirely, the expression system might be a repeated reset, execution in step 106; (iii) check the content at particular address place in the step 106, if particular value B is arranged, the expression repeated reset, execution in step 108 is set at improper mode of operation, and execution in step 110 again, if the content at particular address place does not have particular value B, then direct execution in step 110; (iv) step 110 writes the particular address place with particular value B, and shows response message (echo message); (v) execution in step 112, wait for a period of time, and put action again if having in this a period of time, just execution in step 102,106 once more of program then, a period of time, if do not put action again, then execution in step 114 later, removed the content at particular address place, and removing response message: (vi) execution in step 116, check the setting whether the non-normal working pattern is arranged,, enter improper mode of operation if then execution in step 120 is arranged, if do not have just direct execution in step 118, enter normal mode of operation.
Above-mentioned non-normal working pattern can be designed according to the demand of system, except can being set at the self-sensing pattern, also can be set at from different patterns such as normal moveout correction or defaults.
But utilize above-mentioned method can only set a kind of non-normal working pattern,, utilize repeated reset among the present invention, the improper mode of operation of many groups can be arranged to carry out different mode of operations in order to set multiple mode of operation.See also the 3rd figure, it is to illustrate answering under the situation with plural non-normal working pattern to put process flow diagram, comprise the following steps: (i) step 200, when micro computer start or hand reser, elder generation's execution in step 202, a certain zone of checking or the content in the buffer, if this uncomplete content is the data of particular value A, the expression system is not a repeated reset, execution in step 204 writes this location with particular value A, skips to step 218 then, if the content in should the zone is particular value A entirely, the expression system might be a repeated reset; (ii) step 206 is checked the content at particular address place in the storer, if predefined particular value B1, B2 ..., Bn, the expression repeated reset; (iii) step 212,214,216, according to particular value B1, B2 ..., the corresponding relation of Bn and non-normal working pattern, the setting microcomputer system is the non-normal working pattern corresponding to this particular value, carry out next step again, if the particular address place in the storer does not have particular value, then directly carry out next step; (iv) step 218 ~ 223, with a plurality of particular value B1, B2 ..., Bn writes the particular address place in this storer in regular turn, and demonstration response message, and after each particular value is written into particular address place in the storer, all wait for a period of time, if have in the period at this section and to put action again, just program execution in step 202,206,212,214,216 once more then; (v) step 224 at the particular address place that a plurality of particular values is write in regular turn in this storer, and after showing response message and wait, if do not put action again, is then removed the content at this particular address place, and is removed response message; (vi) step 226 checks whether micro computer has the non-normal working pattern that is set to corresponding to a certain particular value, if there is not just direct execution in step 228, enters normal mode of operation, then carries out step 230,232,234 if having, and enters this non-normal working pattern.
With the 2nd figure different persons be that the flow process of the 3rd figure is that value in particular address allows multiple value, each value is represented a non-normal working pattern.Put again when activating, be divided into the different periods, put again in a certain period again, then this mode of operation is carried out in the postpone meeting again, and the switching of each period all must show response message, selects to enter a certain non-normal working pattern to make things convenient for the technician.But, the start process of this kind method is too tediously long, and some incoherent information can occur to the user, causes the curious and misunderstanding of user easily, even input occurs putting again improperly.
Desire to solve the above problems, can adopt in conjunction with answering of the 2nd figure and the 3rd figure and put flow process, shown in the 4th figure, utilize step 300, judge whether to put again first, if after putting again first or passing through any mode of operation, then when putting again, carry out answering of the 2nd figure and put flow process, in the step 310 of present embodiment (promptly corresponding to the 2nd figure step 50), need not show response message, but with the complete bright of display apparatus test or complete dark, or the special pattern appearance of Gong distinguishing, again put input as if having this moment, and then its non-normal working pattern is the flow process of carrying out the 3rd figure, the information guide that occurs according to display is easy to enter the non-normal working pattern that will carry out then.The 2nd figure or the 3rd figure have whether the content of checking in a certain memory area is particular value A, purpose is when avoiding starting shooting, contents value in storer or the buffer uncertain and the erroneous judgement be set the action of being done for the non-normal working pattern, if the content in storer or the buffer is a fixed value when start, as long as the value when then writing the particular value at particular address place and be not start, and do not spend arrangement and the content of judging a certain regional memory, just the step 102 of the 2nd figure, 104 and the step 202,204 of the 3rd figure can omit.

Claims (9)

1. method of utilizing the microcomputer system of repeated resets to set up different working modes, it is characterized in that: this method comprises the following steps:
I) when micro computer start or hand reser, check the content at particular address place in the storer, if particular value is arranged, the expression repeated reset, then setting microcomputer system is first mode of operation, carries out next step again, if the particular address place does not have particular value in the storer, then directly carry out next step;
Ii) particular value is write this particular address place, and show response message;
Iii) wait for a period of time, if having and put action again in this a period of time, execution in step i once more then), a period of time if do not put action again, is then removed the content of this particular address later, and removes response message;
Iv) check the setting whether first mode of operation is arranged, then enter first mode of operation, just directly do not enter second mode of operation if having if have.
2. the method for utilizing the microcomputer system of repeated resets to set up different working modes as claimed in claim 1, it is characterized in that: this method also comprises the following steps: when microcomputer system start or hand reser, check earlier in a certain zone of storer or the content in the buffer, if this content is a default value, reexamine the content at particular address place in the storer, if particular value is arranged, the expression repeated reset, then setting microcomputer system is first mode of operation, skip to above-mentioned steps more ii), if the particular address place does not have particular value in the storer, then directly carry out above-mentioned steps ii), if in a certain zone or the uncomplete content in the buffer be default value, then default value is write in this zone or in the buffer, carry out above-mentioned steps more ii).
3. the method for utilizing the microcomputer system of repeated resets to set up different working modes as claimed in claim 1 is characterized in that: above-mentioned first mode of operation is the non-normal working pattern, and above-mentioned second mode of operation is a normal mode of operation.
4. the method for utilizing the microcomputer system of repeated resets to set up different working modes as claimed in claim 3 is characterized in that: above-mentioned non-normal working pattern is the self-sensing pattern.
5. method of utilizing the microcomputer system of repeated resets to set up different working modes, it is characterized in that: this method comprises the following steps:
I) at first the time with micro computer start or hand reser, check the content at particular address place in the storer, if one of predefined a plurality of particular values, the expression repeated reset, then according to the corresponding relation of particular value and non-normal working pattern, the setting microcomputer system is the non-normal working pattern corresponding to this particular value, carries out next step again, if the particular address place does not have particular value in the storer, then directly carry out next step;
Ii) a plurality of particular values are write in regular turn particular address place in this storer, and the demonstration response message, and after each particular value is written in the storer at this particular address place, all wait for a period of time, if have in the period at this section and to put action again, then execution in step i once more);
Iii) write particular address place in this storer in regular turn, and after showing response message and wait,, then remove the content at this particular address place, and remove response message if do not put action again at a plurality of particular values;
Check iv) whether micro computer has the non-normal working pattern that is set to corresponding to a certain particular value, then enter this non-normal working pattern, just directly do not enter normal mode of operation if having if have.
6. the method for utilizing the microcomputer system of repeated resets to set up different working modes as claimed in claim 5, it is characterized in that: this method also comprises the following steps: when microcomputer system start or hand reser, check earlier in a certain zone of storer or the content in the buffer, if this content is a default value, reexamine the content at particular address place in the storer, if predefined particular value is arranged, the expression repeated reset, then according to the corresponding relation of particular value and non-normal working pattern, the setting microcomputer system is the non-normal working pattern corresponding to this particular value, skip to above-mentioned steps more ii), if the particular address place does not have particular value in the storer, then directly carry out above-mentioned steps ii), if in a certain zone or the uncomplete content in the buffer be default value, then default value is write in this zone or in the buffer, carry out above-mentioned steps more ii).
7. microcomputer system that utilizes repeated resets to set up different working modes, it is characterized in that: this microcomputer system comprises: micro computer; Storer is connected on this micro computer; Put button again, in order to put microcomputer system again; And multiple circuits, produce reset pulse in order to provide the required power supply of microcomputer system to activate reset pulse or to accept the aforementioned button of putting again; Wherein, above-mentioned microcomputer system activate through above-mentioned power supply put again or put again button put again activate again after, can check whether the content at particular address place in the storer is particular value, if then set microcomputer system is first kind of mode of operation, otherwise particular value is write to the particular address place of above-mentioned storer, wait for a period of time then,, then be set at second kind of mode of operation if microcomputer system is not put again.
8. the microcomputer system that utilizes repeated resets to set up different working modes as claimed in claim 7, it is characterized in that: this microcomputer system also comprises display device, be connected on this micro computer, in order to when particular value being write to the particular address place of above-mentioned storer, display message.
9. the microcomputer system that utilizes repeated resets to set up different working modes as claimed in claim 7 is characterized in that: above-mentioned first kind of mode of operation is the non-normal working pattern.
CNB011103809A 2001-04-09 2001-04-09 Microcomputer system using repeated resets to set up different working modes and its method Expired - Fee Related CN1164997C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB011103809A CN1164997C (en) 2001-04-09 2001-04-09 Microcomputer system using repeated resets to set up different working modes and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB011103809A CN1164997C (en) 2001-04-09 2001-04-09 Microcomputer system using repeated resets to set up different working modes and its method

Publications (2)

Publication Number Publication Date
CN1379328A CN1379328A (en) 2002-11-13
CN1164997C true CN1164997C (en) 2004-09-01

Family

ID=4658555

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB011103809A Expired - Fee Related CN1164997C (en) 2001-04-09 2001-04-09 Microcomputer system using repeated resets to set up different working modes and its method

Country Status (1)

Country Link
CN (1) CN1164997C (en)

Also Published As

Publication number Publication date
CN1379328A (en) 2002-11-13

Similar Documents

Publication Publication Date Title
US5315502A (en) Plant operation support apparatus and method using expert systems
CN100383540C (en) Key detector and method
CN107832190A (en) A kind of power consumption abnormal diagnostic method, mobile terminal and storage medium
WO1997024670A1 (en) Monitoring control device
JPH1137903A (en) Diagnostic device of electronic controller
CN111722969B (en) LEU complete machine automatic test system
CN1164997C (en) Microcomputer system using repeated resets to set up different working modes and its method
CN202117824U (en) Fault diagnosis instrument for handheld type electric-control VE (Volterra Engine) pump controller
CN101666836A (en) System and method for testing power module
CN1257241A (en) Keyboard test system
KR20220133579A (en) Apparatus and method for predicting remaining useful life of train
CN201266220Y (en) Power module test device
CN1841038B (en) Apparatus and method for autotest of key
CN1204056A (en) Method for detecting operational errors of tester for semiconductor devices
CN1565905A (en) Open type vehicle diagnosis platform
KR100212194B1 (en) Self-diagnosis method of mobile phone
CN2706771Y (en) Automatic tester for circuitboard
TW452727B (en) Micro-computer system and method for using reset to set different working modes
TW446786B (en) Apparatus and method for displaying breakdown state of parking system
CN1199106C (en) Test system and method for working platform of computer
CN102063080B (en) Programmable power supply with output signal displaying function and display control method thereof
CN1191478C (en) Battery powering detection method and system
KR100293559B1 (en) Method for automatically searching error of component in automatic test apparatus
KR100391898B1 (en) Analysis system for analyzing signal of universal encoder
CN207263887U (en) A kind of PCBA module testings gauge

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20040901