CN104750502B - A kind of wire jumping method and device - Google Patents

A kind of wire jumping method and device Download PDF

Info

Publication number
CN104750502B
CN104750502B CN201310731241.9A CN201310731241A CN104750502B CN 104750502 B CN104750502 B CN 104750502B CN 201310731241 A CN201310731241 A CN 201310731241A CN 104750502 B CN104750502 B CN 104750502B
Authority
CN
China
Prior art keywords
wire jumper
program
information
jumper information
chip microcontroller
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
CN201310731241.9A
Other languages
Chinese (zh)
Other versions
CN104750502A (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.)
Haier Group Corp
Qingdao Haier Air Conditioning Electric Co Ltd
Original Assignee
Haier Group Corp
Qingdao Haier Air Conditioning Electric 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 Haier Group Corp, Qingdao Haier Air Conditioning Electric Co Ltd filed Critical Haier Group Corp
Priority to CN201310731241.9A priority Critical patent/CN104750502B/en
Publication of CN104750502A publication Critical patent/CN104750502A/en
Application granted granted Critical
Publication of CN104750502B publication Critical patent/CN104750502B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Pharmaceuticals Containing Other Organic And Inorganic Compounds (AREA)

Abstract

The embodiment of the invention discloses a kind of wire jumping method and device, method includes: will be in the fixing address of the program storage of wire jumper information preservation to single-chip microcontroller;If monitoring, program initialization is run, and is controlled described program from the fixing address of described program memory and is read the wire jumper information;Control described program is run according to the wire jumper information.Technical solution described in the embodiment of the present invention can be reduced hardware save the cost, and can reduce probability of malfunction.

Description

A kind of wire jumping method and device
Technical field
The present invention relates to computer application technologies, and in particular to a kind of wire jumping method and device.
Background technique
In the prior art, many function selections of computer board are realized by toggle switch, and program is connected according to toggle switch Or off-state, realize different functions.By taking eight dial-ups as an example, Fig. 1 shows hardware toggle switch circuit in the prior art Figure, as shown in Figure 1, hardware toggle switch circuit, including eight toggle switch (such as eight toggle switch SW1), 16 electricity Resistance, including the resistance R9 to R16 of resistance R1 to R8 and eight connection micro-control units of the eight positive five volts of voltage of connection, four The circuit over-voltage over-current protection element of group model UMZC6.8N.
But hardware toggle switch restricted lifetime, reliability is not high, when especially environment is more severe, such as humidity or dust When bigger, it is easy poor contact, substantially reduces reliability.Once program reads dial-up mistake, program Pao Cuo branch can be made, made It is operating abnormally at system, it is serious to make systemic breakdown, or even generate serious accident.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of wire jumping method and device, to reduce probability of malfunction.
The embodiment of the present invention uses following technical scheme:
In a first aspect, the embodiment of the invention provides a kind of wire jumping methods, comprising:
It will be in the fixing address of the program storage of wire jumper information preservation to single-chip microcontroller;
If monitoring, program initialization is run, and is controlled described program from the fixing address of described program memory and is read institute State wire jumper information;
Control described program is run according to the wire jumper information.
Second aspect, the embodiment of the invention also provides a kind of bridle wire apparatus, comprising:
Wire jumper information memory cell, for will be in the fixing address of the program storage of wire jumper information preservation to single-chip microcontroller;
Wire jumper Information reading unit, if controlling described program from described program for monitoring that program initialization is run The fixing address of memory reads the wire jumper information;
Program running unit is run for controlling described program according to the wire jumper information.
The advantageous effects for the technical solution that the embodiment of the present invention proposes are:
The technical solution that the embodiment of the present invention proposes passes through consolidating the program storage of wire jumper information preservation to single-chip microcontroller Determine in address;If monitoring, program initialization is run, and is controlled described program and is read from the fixing address of described program memory The wire jumper information;Control described program is run according to the wire jumper information, i.e., realizes hardware jumper by software mode Function, to avoid the reduction of reliability caused by hardware toggle switch restricted lifetime and poor contact.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also implement according to the present invention The content of example and these attached drawings obtain other attached drawings.
Fig. 1 is hardware toggle switch circuit diagram in the prior art;
Fig. 2 is wire jumping method flow chart described in the specific embodiment of the invention one;
Fig. 3 is the structural block diagram of bridle wire apparatus described in the specific embodiment of the invention three.
Specific embodiment
To keep the technical problems solved, the adopted technical scheme and the technical effect achieved by the invention clearer, below It will the technical scheme of the embodiment of the invention will be described in further detail in conjunction with attached drawing, it is clear that described embodiment is only It is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art exist Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.
Embodiment one
Fig. 2 is wire jumping method flow chart described in the present embodiment, and the present embodiment is applicable to execute by computer set Program replaces the case where toggle switch, and this method can be executed by computer software, as shown in Fig. 2, described in the present embodiment Wire jumping method includes:
S201, will be in the fixing address of the program storage of wire jumper information preservation to single-chip microcontroller.
Wherein, the program storage of the single-chip microcontroller includes but is not limited to FLASH type memory and EEPROM type memory, The program storage of the single-chip microcontroller has erasable write attribute, and erasable number up to 10,000 times even more, and number is not also lost in power down It is long (generally at 10 years or more) according to, data hold period, the advantages that data of preservation are not affected by environment.More importantly Hardware toggle switch can be changed to be selected with software setting function by program at runtime from erasable, using this characteristic of single-chip microcontroller It selects, can greatly improve reliability, and save single-chip I/O mouth resource.
If S202, monitoring that program initialization is run, fixing address of the described program from described program memory is controlled Read the wire jumper information.
When program initialization is run, according to the byte position for the wire jumper information made an appointment, the program of single-chip microcontroller is directly read The content of memory is as wire jumper information.
S203, control described program are run according to the wire jumper information.
The present embodiment propose technical solution by by the program storage of wire jumper information preservation to single-chip microcontroller fixedly In location;If monitoring, program initialization is run, and controls described program from described in the reading of the fixing address of described program memory Wire jumper information;Control described program is run according to the wire jumper information, i.e., the function of hardware jumper is realized by software mode, To avoid the reduction of reliability caused by hardware toggle switch restricted lifetime and poor contact.
Embodiment two
Compared with embodiment one, on the basis of embodiment 1, technical solution described in the present embodiment is preferred for the present embodiment If are as follows: it monitors that program runs and receives programmable button information, controls described program and the wire jumper information is adjusted. For example, between program operation, if monitoring special key-press input signal, as pressed certain key for a long time, or multikey is pressed simultaneously, Described program is then controlled to be adjusted the wire jumper information.
Such as Windows operating system needs when switching between use state and screen lock state while pinning Ctrl+Alt It needs to pin closing key etc. for a long time when the operation of+Del and forced shutdown.
Wire jumper information can be saved in monolithic according to a bit or greater than the corresponding relationship of the corresponding toggle switch of a bit In the fixing address of the program storage of machine, further, on the basis of embodiment 1, wire jumper information is protected for the present embodiment The step being stored in the fixing address of the program storage of single-chip microcontroller is preferred are as follows: dials wire jumper information according to a bit corresponding one The corresponding relationship of code switch is saved in the fixing address of the program storage of single-chip microcontroller.
The present embodiment on the basis of embodiment 1, if further comprise monitor program run and receive it is default by Key information then controls described program and is adjusted to the wire jumper information, and wire jumper information is dialled according to a bit corresponding one The corresponding relationship of code switch is saved in the fixing address of the program storage of single-chip microcontroller, can be further improved the suitable of wire jumping method Ying Xing.
Embodiment three
Fig. 3 is the structural block diagram of bridle wire apparatus described in the present embodiment, as shown in figure 3, wire jumper described in the present embodiment fills It sets and includes:
Wire jumper information memory cell 301, for by the fixing address of the program storage of wire jumper information preservation to single-chip microcontroller In.
Wire jumper Information reading unit 302, if controlling described program from the journey for monitoring that program initialization is run The fixing address of sequence memory reads the wire jumper information.
Program running unit 303 is run for controlling described program according to the wire jumper information.
Further, the wire jumper information memory cell 301 is specifically used for, and wire jumper information is one corresponding according to a bit The corresponding relationship of toggle switch is saved in the fixing address of the program storage of single-chip microcontroller.
Further, described device further includes wire jumper information adjustment unit 304, if for monitoring that program runs and receives To programmable button information, then controls described program and the wire jumper information is adjusted.
Further, the program storage of the single-chip microcontroller is FLASH type memory or EEPROM type memory.
The technical solution that the embodiment of the present invention proposes passes through consolidating the program storage of wire jumper information preservation to single-chip microcontroller Determine in address;If monitoring, program initialization is run, and is controlled described program and is read from the fixing address of described program memory The wire jumper information;Control described program is run according to the wire jumper information, i.e., realizes hardware jumper by software mode Function, to avoid the reduction of reliability caused by hardware toggle switch restricted lifetime and poor contact.
Above embodiments provide technical solution in all or part of the content can be realized by software programming, software Program store in a readable storage medium, storage medium for example: hard disk, CD or floppy disk in computer.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (2)

1. a kind of wire jumping method characterized by comprising
By in the fixing address of the program storage of wire jumper information preservation to single-chip microcontroller, specifically: by wire jumper information according to a ratio In the fixing address for the program storage that the corresponding relationship of the corresponding toggle switch of spy is saved in single-chip microcontroller;
If monitoring, described program runs and receives programmable button information, controls described program and carries out to the wire jumper information Adjustment;
If monitoring, program initialization is run, and according to the byte position for the wire jumper information made an appointment, controls described program from institute The fixing address for stating program storage reads the wire jumper information;
Control described program is run according to the wire jumper information;
Wherein, the program storage of the single-chip microcontroller is FLASH type memory or EEPROM type memory, the journey of the single-chip microcontroller Sequence memory has erasable write attribute.
2. a kind of bridle wire apparatus characterized by comprising
Wire jumper information memory cell, for will be in the fixing address of the program storage of wire jumper information preservation to single-chip microcontroller;
Wire jumper Information reading unit, if controlling described program for monitoring that program initialization is run and being stored from described program The fixing address of device reads the wire jumper information;
Program running unit is run for controlling described program according to the wire jumper information;
Wire jumper information adjustment unit, if for monitoring that program runs and receives programmable button information, according to making an appointment Wire jumper information byte position, control described program the wire jumper information is adjusted;
The wire jumper information memory cell is specifically used for, by wire jumper information according to corresponding the closing of the corresponding toggle switch of a bit It is in the fixing address for the program storage for being saved in single-chip microcontroller;
Wherein, the program storage of the single-chip microcontroller is FLASH type memory or EEPROM type memory, the journey of the single-chip microcontroller Sequence memory has erasable write attribute.
CN201310731241.9A 2013-12-26 2013-12-26 A kind of wire jumping method and device Expired - Fee Related CN104750502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310731241.9A CN104750502B (en) 2013-12-26 2013-12-26 A kind of wire jumping method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310731241.9A CN104750502B (en) 2013-12-26 2013-12-26 A kind of wire jumping method and device

Publications (2)

Publication Number Publication Date
CN104750502A CN104750502A (en) 2015-07-01
CN104750502B true CN104750502B (en) 2019-05-24

Family

ID=53590255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310731241.9A Expired - Fee Related CN104750502B (en) 2013-12-26 2013-12-26 A kind of wire jumping method and device

Country Status (1)

Country Link
CN (1) CN104750502B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2625954Y (en) * 2003-04-22 2004-07-14 威盛电子股份有限公司 Switch unit for setting and adjusting of inner bridle wire of mainboard of computer system
CN101470615B (en) * 2007-12-28 2012-02-22 技嘉科技股份有限公司 Single-key controlled method for automatically repairing system configuration
CN102388366B (en) * 2011-09-22 2013-03-20 华为技术有限公司 Method and device for realizing compatibility of different processors
CN103166781A (en) * 2011-12-13 2013-06-19 北京陆创科技有限公司 Distributed type intelligent premise distribution system

Also Published As

Publication number Publication date
CN104750502A (en) 2015-07-01

Similar Documents

Publication Publication Date Title
CN201041656Y (en) CMOS cleaning circuit
US6535449B2 (en) Semiconductor memory unit in which power consumption can be restricted
CN1941542A (en) Power-supplying circuit
CN103279203B (en) Key reuse method and multifunctional key
WO2016045303A1 (en) Data saving method and device and terminal
US10921870B2 (en) System and method for hybrid power supply
US10761980B2 (en) Trim setting determination on a memory device
CN101645016A (en) System for switching BIOS set values
CN101202458B (en) Power supply circuit
CN104750502B (en) A kind of wire jumping method and device
US10008288B2 (en) Power loss test device and method for nonvolatile memory device
CN103890713A (en) Apparatus and method for managing register information in a processing system
CN105205015B (en) A kind of date storage method and storage equipment
JP2005100399A (en) Storage device configuration
CN113721508B (en) Power-on and power-off time sequence control device and method
CN106326049B (en) A kind of Fault Locating Method and terminal
CN109558336A (en) Quickly generate the method for flash interface signal sequence automatically for flash memory master control hardware
WO2019062412A1 (en) Method and apparatus for recording application information, storage medium, and electronic device
CN111951866B (en) Nonvolatile flash memory deep sleep low static power consumption circuit
CN205028663U (en) Solid state hard drives with erase safely with wrong protect function
CN100514304C (en) Enabling circuit of watch-dog timer and its method
US9620228B1 (en) Monotonically increasing persistent counters
CN103730145A (en) Flash memory and voltage control method thereof
CN109408151A (en) A kind of field programmable gate array configuration mode automatic switching control equipment and switching method
CN108170382B (en) Solid state disk and data reading 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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190524

Termination date: 20211226

CF01 Termination of patent right due to non-payment of annual fee