Digital multimeter software control method and control system thereof
Technical field
The invention belongs to multimeter field, relate in particular to a kind of by adopting digital technology to multimeter automatic shutdown, maintenance, buzzing, software control method backlight and control system thereof, this control method has point-device control time, makes the multimeter of producing according to having good control performance unified time.
Background technology
Multimeter is again multimeter, avometer, multi-meter, and multimeter is divided into pointer multimeter and digital multimeter is drawn.It is a kind of multi-functional, multiple range measurement instrument, general multimeter can be measured DC current, DC voltage, alternating current, alternating voltage, resistance and audio-frequency electric equality, and what have can also survey alternating current, electric capacity, inductance value and more semi-conductive parameters (as β).Multimeter is the most basic instrument in Electronic Testing field, is also a kind of use testing tool widely.Now a kind of oscillography multimeter with oscillograph function.Be a kind of multi-functional, multiple range measurement instrument, general multimeter can be measured DC current, DC voltage, alternating voltage, resistance and audio-frequency electric equality, and what have can also survey alternating current, electric capacity, inductance value, temperature and more semi-conductive parameters.Multimeter is comprised of three major parts such as gauge outfit, metering circuit and switches.Digimer has become main flow, has replaced analogue instrument.Compare with analogue instrument, digital instrument is highly sensitive, and degree of accuracy is high, clear display, and overload capacity is strong, is easy to carry, and uses simpler.Conventional multimeter automatic shutdown, maintenance, backlight control circuit is generally the type of drive that discrete component adds self-lock switch at present, but this mode all exists some shortcomings.Self-lock switch, because switch carries mechanical caging function, presses down, and after loosing one's grip, button can not jump up completely, be in the lock state, need to be again by once, just jump up completely life-span of self-lock switch of release limited, often the damage due to self-lock switch causes multimeter to be scrapped.That discrete component volume also consumes energy greatly, is relatively high, failure rate is high, and can not control automatic switching opening and closing.Generally be about 15 minutes automatically cutting off power source after electric power starting, as being used, needs need to press self-lock switch once inferior, the time length of automatic shutdown is mainly determined by the time that discharges and recharges of the capacity of electrochemical capacitor, if the leakage current of same capacitance is different, the length of automatic shutdown is sample not also, and shutdown error large 5-20-minute is not etc., in process of production, each electric capacity needs, through strict screening, to waste so a large amount of manpowers, and production cost strengthens.In industry, still still there is not so far a very effective solution in the problems referred to above long-term existence.
Summary of the invention
The object of this invention is to provide a kind of to multimeter automatic shutdown, maintenance, buzzing, method and control system thereof of carrying out precise time control backlight.With MCU technology, overcome the problem that traditional single type of drive is brought, make multimeter there is higher durability and reliability, cancel corresponding discrete component circuit and self-lock switch, by MCU program, control flexibly the power remove time and whether need automatic shutdown, time backlight.
Technical scheme of the present invention is achieved in that digital multimeter software control method, it is characterized in that: by being connected to the control button on the different pins of MCU, in conjunction with the identification that each is controlled to button compressing time, make multimeter is made to automatic shutdown, maintenance, buzzing, action backlight.
Described control method comprises the following steps,
Steps A, MCU detect time > 2S, MCU that button (1) presses think long by, open or close power supply;
Step B, MCU detect time < 2S, MCU that button (1) presses think short by, open or close backlight;
Step C, MCU detect time > 2S, MCU that button (2) presses think long by, open or automatic shutdown;
Step D, MCU check out time < 1S, MCU that button (2) is pressed think short by, open or close data and keep.
Described control method further comprises following steps,
Steps A, MCU detects after the time > 2S that button (1) presses, MCU be identified as long by, open or close the power supply of digital multimeter;
[step B, MCU detects after the time < 2S that button (1) presses, MCU be identified as short by, open or close the backlight of digital multimeter;
Step C, MCU detects after the time > 2S that button (2) presses, MCU be identified as long by, open or close the automatic shut-off function of digital multimeter, and LCD can show or blanking (APO) symbol accordingly;
Step D, MCU detects after the time < 2S that button (2) presses, MCU be identified as short by, open or close the maintenance function of digital multimeter, and LCD can show or blanking (HOLD) symbol accordingly;
Step e, when MCU detects 5 pin and is low level, MCU is about the square-wave signal of 2.5kHz from 2 pin and the output of 9 pin, drive outside hummer or buzzing sheet.
Without lock-switch length, by opening or closing automatic shut-off function (be defaulted as automatic unlatching duration be about 15 minutes) LCD, can show accordingly or blanking APO symbol.
Without lock-switch 2 is short, press, open and keep, LCD shows hold mark HOLD.
When universal meter function is chosen in buzzing gear, short circuit input end (COM---V/ Ω), MCU can export the square-wave signal driving hummer that is about 2.5kHz.
MCU chip is ZW0014 model.
By adopting above-mentioned technical solution, the present invention has obtained positive technique effect and a little:
The present invention is by adopting MCU single-chip microcomputer to substitute the mode that original use electrochemical capacitor is controlled the stand-by time of multimeter, thoroughly avoided multimeter stand-by time in conventional art to control inaccurate problem, by adopting MCU single-chip microcomputer to make above-mentioned multimeter obtain clock control very accurately, thoroughly changed the inaccurate adverse effect causing of multimeter stand-by time, the present invention is by adopting the employing of MCU single-chip microcomputer in addition, the production cost of multimeter is declined to a great extent, thoroughly solved and need to carry out the process of electric capacity screening in the past, also avoided the problem of the inconsistent inaccurate clock causing of electrochemical capacitor leakage current simultaneously, traditional type of drive is because discrete component is many, mechanical caging, can not cancel automatic shutdown, the life-span that needs the switch of consideration in design, the quality of element, fixing automatic shut-off function processing mode, the present invention by making special processing mode on software, reduced the requirement to switch, reduced the use of discrete component, automatic shut-off function is controlled flexibly, even if the dirigibility of operation improves, provide cost savings again, durability and the reliability of the product that raising productivity effect improves again simultaneously.The MCU that the present invention adopts, except realizing independent control of each function, can also export the square-wave signal of 2.5kHZ, drives hummer or buzzing sheet.
And by MCU type of drive because come control system to realize corresponding function with internal processes, usable floor area, the power consumption of pcb board have significantly been reduced, production cost, and it is bad can not to produce the mechanical contact of self-lock switch, thus extended the serviceable life of multimeter.
Accompanying drawing explanation
Fig. 1 is the block scheme of control method of the present invention;
Fig. 2 is the schematic diagram of control method of the present invention;
Fig. 3 is the circuit diagram of control method of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the invention will be further described.
As Figure 1-3, the present invention be directed to that in existing multimeter, to use electrochemical capacitor to carry out the automatic stand-by control time inaccurate, and the technological improvement that the problems such as serviceable life is short are made, it is digital multimeter software control method, mainly by being connected to the control button on the different pins of MCU, in conjunction with the identification that each is controlled to button compressing time, make multimeter is made to automatic shutdown, maintenance, buzzing, action backlight.
Use above-mentioned control method specifically to comprise the following steps,
Steps A, MCU detect time > 2S, MCU that button (1) presses think long by, open or close power supply;
Step B, MCU detect time < 2S, MCU that button (1) presses think short by, open or close backlight;
Step C, MCU detect time > 2S, MCU that button (2) presses think long by, open or automatic shutdown;
Step D, MCU check out time < 1S, MCU that button (2) is pressed think short by, open or close data and keep.The mentioned time in each above-mentioned step, for the time adopting in conventionally designing, in concrete use, can, according to concrete service condition, above-mentioned time length set flexibly.
As depicted in figs. 1 and 2, described control method, in concrete use, adopts following steps,
Steps A, MCU detects after the time > 2S that button (1) presses, MCU be identified as long by, open or close the power supply of digital multimeter;
[step B, MCU detects after the time < 2S that button (1) presses, MCU be identified as short by, open or close the backlight of digital multimeter;
Step C, MCU detects after the time > 2S that button (2) presses, MCU be identified as long by, open or close the automatic shut-off function of digital multimeter, and LCD can show or blanking (APO) symbol accordingly;
Step D, MCU detects after the time < 2S that button (2) presses, MCU be identified as short by, open or close the maintenance function of digital multimeter, and LCD can show or blanking (HOLD) symbol accordingly;
Step e, when MCU detects 5 pin and is low level, MCU is about the square-wave signal of 2.5kHz from 2 pin and the output of 9 pin, drive outside hummer or buzzing sheet.
As shown in Figure 1 and Figure 2, digital versatile apparent source of the present invention, automatic shutdown, maintenance, backlight, buzzing control system.1, comprise MCU, without lock-switch, backlight, hummer, LCD, long by power-on without lock-switch 1, short backlight by opening without lock-switch 1, without lock-switch 2 is long, by opening or closing automatic shut-off function (be defaulted as automatic unlatching duration be about 15 minutes) LCD, can show accordingly or blanking APO symbol, without lock-switch 2 is short, press, open and keep, LCD shows hold mark HOLD, when multimeter function is chosen in buzzing gear, short circuit input end (COM---V/ Ω), MCU can export the square-wave signal driving hummer that is about 2.5kHz.
In this example, MCU selects (ZW0014), switch to select common nothing lock 7*7 backlight to select 3V superelevation amount lamp, and hummer is selected Ф 27 2.7KHz oscillation frequency.
Described above is only preferred embodiment of the present invention, and above-mentioned specific embodiment is not limitation of the present invention.In technological thought category of the present invention, can there is various distortion and modification, the retouching that all those of ordinary skill in the art make according to above description, revise or be equal to replacement, all belong to the scope that the present invention protects.