Summary of the invention
The object of the invention is the defect in order to overcome above-mentioned background technology, a kind of transmitter is provided.
A kind of transmitter, comprise: connected sensor, signal acquisition circuit, microcontroller circuit, filtering circuit and baric flow change-over circuit in turn, the output terminal of described baric flow change-over circuit connects an inner or outside display gauge head, and described transmitter also comprises can realize the signaling conversion circuit that HART protocol signal and digital signal are changed mutually; Described signaling conversion circuit comprises;
Amplifying circuit, it is for amplifying the HART protocol signal receiving from external control system;
Comparator circuit, it is for the HART protocol signal of described amplification is converted to the discernible digital signal of microcontroller circuit, and described microcontroller circuit is produced corresponding control signal according to the digital signal of described comparator circuit output; And
Signal generating circuit, it outputs to described baric flow change-over circuit after described control signal being converted to simulating signal.
Further, described amplifying circuit is differential discharge circuit.
Further, described comparator circuit is hysteresis loop comparator circuit.
Further, described signal generating circuit comprises dead resistance and commutation capacitor, and described commutation capacitor one end connects described microcontroller circuit, and the other end is connected with the input end of described baric flow change-over circuit by dead resistance.
Further, described signal generating circuit output terminal also connects by a resistance and connects negative voltage signal output terminal.
Further, the filtering circuit of described modulation circuit comprises three filter resistances and three filter capacitors; Described three filter resistances series connection two ends are connected with signal acquisition circuit, baric flow change-over circuit respectively; The lower potential end of each filter resistance is all connected with a ground connection filter capacitor.
Further, described baric flow change-over circuit comprises modulated amplifier, triode and resistance, described the first amplifier positive input termination signal generating circuit output terminal, ground connection after negative input termination the firstth transfer resistance, output terminal is connected with transistor base by the second transfer resistance; Described transistor emitter is by the 3rd transfer resistance ground connection, and collector connects external control system; Between the negative input end of described the first operational amplifier and output terminal, connect a feedback capacity.
Transmitter of the present invention, utilize one to comprise that the HART telecommunication circuit of modulation circuit and demodulator circuit replaces expensive HART chip originally, in the basic function that realizes HART chip, greatly reduce production cost, improved the competitive power of transmitter of the present invention.
Embodiment
In order to allow those skilled in the art more understand technical scheme of the present invention, below in conjunction with the drawings and specific embodiments, the transmitter based on HART agreement of the present invention is further described.
A kind of transmitter, as shown in Figure 1, comprising:
Sensor 1, converts electric signal to environmental variance.
Signal acquisition circuit 2, it gathers the voltage signal of changing after physical signalling for read sensor, and converts the analog voltage signal of collection to digital signal.
Microcontroller circuit 3, it is processed for the digital signal to signal acquisition circuit generation and the control signal of external control system.
Filtering circuit 4, it,, for the signal of fluctuation is filtered, makes it to become steady.
Baric flow change-over circuit 5, it is for converting voltage signal to current signal.
Above-mentioned parts connect in turn.
Wherein, the output terminal of baric flow change-over circuit connects inner or outside display gauge head and an external control system.In addition, transmitter of the present invention also comprises can realize the signaling conversion circuit 6 that HART protocol signal and digital signal are changed mutually, and this signaling conversion circuit comprises; Amplifying circuit 61, it is for amplifying the HART protocol signal receiving from external control system.Comparator circuit 62, it is for the HART protocol signal of described amplification is converted to the discernible digital signal of microcontroller circuit, and described microcontroller circuit is produced corresponding control signal according to the digital signal of described comparator circuit output.And signal generating circuit 63, it outputs to described baric flow change-over circuit after described control signal being converted to simulating signal.
Concrete, when the HART of external control system protocol signal is amplified and converted to the discernible digital signal of microcontroller circuit by amplifying circuit and comparator circuit, microcontroller circuit is resolved signal, and send corresponding control signal to signal generating circuit, converted to simulating signal by signal generating circuit.After the information that signal acquisition circuit receiving sensor transmits, and convert the analog voltage signal of collection to digital signal, transmit signals to microcontroller circuit, after microcontroller circuit is processed, transfer to filtering circuit to carry out filtering.Simulating signal last and that signal generating circuit sends all enters baric flow change-over circuit, completes the conversion from voltage signal to current signal, and is output to external control system and display gauge head.
Concrete, amplification circuit output end connects after comparator circuit input end, and comparator circuit output terminal connects described microcontroller circuit, as shown in Figure 3.
Wherein, in the present embodiment, amplifying circuit is differential discharge circuit, specifically comprises the second operational amplifier A 2, two resistance R 9, R10 and two capacitor C 6, C7.The negative input end of the second operational amplifier A 2 connects amplification capacitor C 6, the first amplification electric capacity R9 and external control system in turn.The second operational amplifier A 2 output terminals are connected to its negative input end by the second amplification electric capacity R10, are connected to the first amplification electric capacity R9 and are amplified the node between capacitor C 6 by the second demodulation capacitor C 7, and its positive input terminal meets power supply VCC.After entering this circuit, the sine wave signal of following HART agreement will will be exaggerated by amplitude.
In addition, comparator circuit is hysteresis loop comparator circuit, its role is to adjust voltage ratio, is made up of the 3rd operational amplifier A 3, three resistance R 11, R12, R13 and capacitor C 8.The 3rd operational amplifier A 3 negative input ends connect the second operational amplifier A 2 output terminals, and output terminal is connected to microcontroller circuit by the first comparison resistance R11, and its positive input terminal meets power supply VCC by the second comparison resistance R12.In addition, the two ends of the 3rd comparison resistance R13 are connected with output terminal, the positive input terminal of the 3rd operational amplifier A 3 output terminals respectively, and relatively capacitor C 8 is in parallel with the 3rd comparison resistance R13.Signal after demodulation amplifying circuit amplifies enters after this comparator circuit, enters shaping, filtering, finally obtains having with input signal the square-wave signal of same frequency, then sends microcontroller circuit to and process.
In a preferred embodiment, described signal generating circuit comprises resistance R 1 and capacitor C 1, as shown in Figure 2.Capacitor C 1 one end connects described microcontroller circuit, after other end contact resistance R1, is connected with baric flow change-over circuit input end.Low and high level signal is sent to signal generating circuit by Micro-processor MCV, after resistance R 1 and capacitor C 1, forms simulating signal.
Preferably, in order to meet the transmission of three-wire system HART signal, signal generating circuit output terminal also connects by resistance R 2 and connects negative voltage output terminal.
Because the signal of sensor is comparatively unstable in actual environment, even if it is also relatively irregular therefore entering the digital signal that microcontroller circuit exports after processing, in order to make stable output signal accurate, after microprocessor output sensor signal, also need a filtering circuit to carry out further filtering, it comprises three filter resistance R6, R7, R8 and three filter capacitor C3, C4, C5; Three filter resistance series connection two ends are connected with signal acquisition circuit, baric flow change-over circuit respectively; The lower potential end of each filter resistance is all connected with a ground connection filter capacitor, forms a RC filtering circuit.
In addition, baric flow change-over circuit comprises the first operational amplifier A 1, triode Q1 and resistance.The first operational amplifier A 1 positive input termination signal generating circuit output terminal, ground connection after negative input termination the first transfer resistance R3, meets a feedback capacity C2 between the negative input end of described the first operational amplifier A 1 and output terminal.In addition, the first operational amplifier output terminal is connected with triode Q1 base stage by the second transfer resistance R4; Triode Q1 emitter is by the 3rd transfer resistance R5 ground connection, and collector connects external control system and positive voltage output end, realizes voltage signal switching current signal, completes the modulation of HART protocol signal.
By reference to the accompanying drawings embodiments of the present invention are explained in detail above, but the present invention is not limited to above-mentioned embodiment, in the ken possessing those of ordinary skill in the art, can also under the prerequisite that does not depart from aim of the present invention, makes various variations.