Summary of the invention
The embodiment of the present invention provides the control method of a kind of water quality analyzer and water quality analyzer, to ensure the integrality of test data, and reduces costs.
The embodiment of the present invention adopts following technical scheme:
A kind of water quality analyzer, comprising: feed circuit part, one end of described feed circuit part is connected to system power supply part, and the other end is connected to one end of water-quality determination circuit, and the other end of described water-quality determination circuit is connected to described system power supply part; Wherein:
Described feed circuit part comprises keyswitch, single chip circuit part, control circuit part and reset circuit part, described keyswitch one end is connected to ground, on the external interrupt pin that the other end is connected to described single chip circuit part and the first and second input ends of described control circuit part, an I/O pin of described single chip circuit part is connected to the 3rd input end of described system power supply part and described control circuit part, and the output terminal of described control circuit part is connected to the reset pin of described single chip circuit part; The four-input terminal of described control circuit part is connected to the output terminal of described reset circuit part;
When a system is powered up, described keyswitch is disconnected, control described single chip circuit partial reset by described reset circuit part and described control circuit part, and to connect system power supply part be described single chip circuit energize portions;
When described keyswitch closes, activate the external interrupt of described single chip circuit part, by described reset circuit part and described control circuit part, described single chip circuit part and system power supply part are disconnected, control described single chip circuit some work in dormant state.
A control method for water quality analyzer, comprising:
When a system is powered up, keyswitch disconnects, and resetted by reset circuit part and control circuit part control single chip computer circuit part, connecting system power supply part is described single chip circuit energize portions;
When described keyswitch closes, activate the external interrupt of described single chip circuit part, by described reset circuit part and described control circuit part, described single chip circuit part and system power supply part are disconnected, control described single chip circuit some work in dormant state.
The control method of the water quality analyzer that the embodiment of the present invention provides and water quality analyzer, when a system is powered up, connecting system power supply part is single chip circuit energize portions; When keyswitch closes, control single chip computer circuit part is operated in dormant state.Therefore, can find out that single chip circuit part has electricity all the time, thus ensure that the integrality of test data; And without the need to special on-off circuit in the embodiment of the present invention, only need keyswitch, reset circuit part and control circuit part with regard to the work of energy control system power supply, thus saved cost.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, be the schematic diagram of the water quality analyzer of the invention process one.Wherein, the water quality analyzer of the invention process one comprises: feed circuit part 11, one end of described feed circuit part 11 is connected to system power supply part 12, the other end is connected to one end of water-quality determination circuit 13, and the other end of described water-quality determination circuit 13 is connected to described system power supply part 12.
Wherein, as shown in Figure 2, be the concrete schematic diagram of described feed circuit part.Wherein, described feed circuit part 11 comprises keyswitch SW1, single chip circuit part 112, control circuit part 113 and reset circuit part 114.
Shown in composition graphs 2, described keyswitch SW1 one end is connected to ground, the other end is connected to the first and second input ends 8 and 9 of (being INT1 in figure) and described control circuit part 113 on an external interrupt pin of described single chip circuit part 112, an I/O pin (being P24 in figure) of described single chip circuit part receives the 3rd input end 6 of described system power supply part 12 and described control circuit part 113, and the output terminal 3 of described control circuit part 113 is connected to the reset pin RESET of described single chip circuit part 112; The four-input terminal 1 of described control circuit part 113 is connected on the output terminal 100 of described reset circuit part.
Can find out in fig. 2, described control circuit part 113 comprises the first Sheffer stroke gate U7C, the second Sheffer stroke gate U7B and the 3rd Sheffer stroke gate U7A.Two input ends of wherein said first Sheffer stroke gate U7C are respectively first input end 8 and second input end 9 of described control circuit part 113, the output terminal 10 of described first Sheffer stroke gate U7C is connected to an input end 5 of described second Sheffer stroke gate U7B, and another input end of described second Sheffer stroke gate U7B is described 3rd input end 6 of described control circuit part 113; The output terminal of described second Sheffer stroke gate U7B is connected to an input end 2 of described 3rd Sheffer stroke gate U7A, and another input end of described 3rd Sheffer stroke gate U7A is described four-input terminal 1; The output terminal 3 of described 3rd Sheffer stroke gate U7A is connected to the reset pin RESET of described single chip circuit part.
In foregoing circuit, when a system is powered up, described keyswitch is disconnected, control described single chip circuit partial reset by described reset circuit part and described control circuit part, and to connect system power supply part be described single chip circuit energize portions.
Concrete, during system electrification, the output 100 of reset circuit part is low level, and make the input end 1 of U7A for low level, the output 3 of U7A is high level, thus makes the reset pin RESET of single chip circuit part be high level, single chip circuit partial reset.Thus the internal processes control P24 pin triggering startup control single chip computer circuit part is low level, the VT1 conducting of feed circuit part is described single chip circuit energize portions, and now, the input end 6 of U7B is low level.Now, the input end 8,9 of U7C is high level, and the output terminal 10 of U7C is low level, and therefore, the output terminal 4 of U7B is low level, and the output terminal 3 of U7A is low level, and RESET is low level, thus single chip circuit part normally works.
When described keyswitch closes, activate the external interrupt of described single chip circuit part, by described reset circuit part and described control circuit part, described single chip circuit part and system power supply part are disconnected, control described single chip circuit some work in dormant state.
Concrete, when described keyswitch closes, triggering the internal processes control P24 pin starting control single chip computer circuit part is high level, VT1 ends, stop as described single chip circuit energize portions, therefore the input end 6 of U7B is high level, and the input end 5 of U7B is in low level, therefore, 4 of U7B is high level.Now, the input end 1 of U7A is high level, and input end 2 is high level, and output terminal 3 is low level, and RESET is low level, makes described single chip circuit part be in dormant state, and system power dissipation reduces level, and now the power consumption of system is in milliampere rank.And keyswitch closes, the input end 8,9 of U7C is low level, and the output terminal 10 of U7C is high level, and the input end 5 of U7B is high level, and the output terminal 4 of U7B is low level.Now, the input end 2 of U7A is low level, and output terminal 3 is high level, thus RESET is high level, single chip circuit partial reset, and connecting system power supply part is described single chip circuit energize portions, starts again normal work.
As seen from the above, the water quality analyzer of the embodiment of the present invention one, when a system is powered up, connecting system power supply part is single chip circuit energize portions; When keyswitch closes, control single chip computer circuit part is operated in dormant state.Therefore, can find out that single chip circuit part has electricity all the time, thus ensure that the integrality of test data; And without the need to special on-off circuit in the embodiment of the present invention, only need keyswitch, reset circuit part and control circuit part with regard to the work of energy control system power supply, thus saved cost.
Water-quality determination part described in water-quality determination circuit 13 in Fig. 1 comprises tintmeter circuit part 131 and Ph value metering circuit part 132.
As shown in Figure 3, be the concrete schematic diagram of tintmeter circuit part in the embodiment of the present invention.Wherein, described tintmeter circuit part comprises: the first amplifier U1B, the second amplifier U1A, temperature-compensation circuit 1311, semiconductor light-emitting source 1312 and additional control circuit 1313.
Wherein, first and second input ends 5 and 6 of described first amplifier U1B are connected respectively to the first and second output terminals 101 and 102 of described semiconductor light-emitting source 1312, and the output terminal 7 of described first amplifier is connected to the first input end 3 of described second amplifier U1A; Second input end 2 of described second amplifier is connected to the output terminal 2 of temperature-compensation circuit 1311; Third and fourth output terminal 103 and 104 of described semiconductor light-emitting source is connected respectively to the first and second input ends 81 and 91 of described additional control circuit.
In this example, for simplifying structure, described semiconductor light-emitting source adopts Single wavelength semiconductor light sources.But the luminous intensity of semiconductor light sources is relevant with temperature, with the rising of temperature, the luminescence efficiency of semiconductor light sources reduces, and luminous intensity reduces, thus causes water quality analyzer to drift about, therefore be head it off, described temperature-compensation circuit comprises negative tempperature coefficient thermistor 13.
In figure 3, the enlargement factor of U1A is A=1+R4/ (R5+R13).Because described semiconductor light-emitting source is along with the increase of temperature, its output current reduces, and R13 also reduces along with its resistance of increase of temperature, the drift that the tintmeter circuit part therefore suitably selecting the resistance of R4, R5, R6, R10, R13 to offset to cause due to temperature variation exports.
As shown in Figure 4, be the concrete schematic diagram of Ph value metering circuit part in the embodiment of the present invention.Ph value metering circuit part 132 comprises: Ph electrode 200, unipolarity amplifier circuit 201 and mu balanced circuit 202.
Wherein, the negative pole of described Ph electrode 200 is connected to described mu balanced circuit, the positive pole of described Ph electrode 200 is connected to the first input end 5 of described unipolarity amplifier circuit 201, and the second input end 6 of described unipolarity amplifier circuit 201 is connected to described system power supply part.By mu balanced circuit, make the negative pole of Ph electrode 200 be the positive voltage of about 1V, therefore, in measuring process, the output of described Ph electrode can be made to remain on positive voltage.
Again as shown in Figure 4, described unipolarity amplifier circuit comprises the 3rd amplifier U8B and the 4th amplifier U8A.Wherein, an input end of described 3rd amplifier U8B is the first input end 5 of described unipolarity amplifier circuit, the output terminal 7 of described 3rd amplifier is connected to the first input end 3 of described 4th amplifier U8A, second input end 8 of described 4th amplifier U8A is the second input end of described unipolarity amplifier circuit, is connected to described system power supply part.
Because the output of the Ph probe of the glass electrode that adopts in Ph value metering circuit part is that hydrogen ion activity changes 10 times, the exporting change of electrode about ± 59mV, so the amplifying circuit of Ph value electrode will adopt bipolarity to power, to adapt to the change in polarity of current potential.For this reason, the present embodiment have employed the method improving Ph Electrode Negative current potential, make the output of electrode within the scope of its gamut, all remain on positive voltage to export, thus the amplifying circuit adopting unipolarity to power can complete amplification and the adjustment work of the output voltage of Ph value probe.This can simplify power circuit greatly, reduces the quantity of the battery needed, and simplifies apparatus structure.
In addition, the embodiment of the present invention two additionally provides a kind of control method of above-mentioned water quality analyzer, comprising:
When a system is powered up, keyswitch disconnects, and resetted by reset circuit part and control circuit part control single chip computer circuit part, connecting system power supply part is described single chip circuit energize portions;
When described keyswitch closes, activate the external interrupt of described single chip circuit part, by described reset circuit part and described control circuit part, described single chip circuit part and system power supply part are disconnected, control described single chip circuit some work in dormant state.
In addition, in the process, described temperature-compensation circuit also can be utilized to eliminate the output shift of described tintmeter circuit part, and remain on positive voltage by the output that described unipolarity amplifier circuit and described mu balanced circuit control described Ph electrode.
Therefore, can find out because single chip circuit part has electricity all the time, thus ensure that the integrality of test data; And without the need to special on-off circuit in the embodiment of the present invention, only need keyswitch, reset circuit part and control circuit part with regard to the work of energy control system power supply, thus saved cost.Meanwhile, greatly can simplify power circuit again, reduce the quantity of the battery needed, simplify apparatus structure.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.