A kind of self-service rice mill MDB telecommunication circuit
Technical field
The utility model relates to self-service rice mill field, especially a kind of self-service rice mill MDB telecommunication circuit.
Background technique
Self-service rice mill is more more and more universal in people's daily life, and most of current self-service rice mill uses
MDB agreement works, and is controlled using MCU peripheral MDB equipment.Most of between existing MDB equipment and MCU is straight
Letter is connected, anti-interference and element protection is not carried out, due to needing frequent progress to communicate between MCU and MDB equipment, is easy to appear
Surge phenomenon influences the stability and accuracy of data transmission, may be damaged the element in circuit when serious.
Utility model content
It, can be with to solve the above problems, the purpose of this utility model is to provide a kind of self-service rice mill MDB telecommunication circuit
It is effectively prevent surge phenomenon, improves system run all right.
The technical solution adopted by the utility model to solve the problem is as follows:
A kind of self-service rice mill MDB telecommunication circuit, including MCU, data read module, Data write. module and for connecting
The contact pin connector of external MDB equipment;The data read module, which is provided with, to be read input terminal, voltage matches unit and reads defeated
Outlet, the reading input terminal, voltage matches unit and reading output end are sequentially connected, and the voltage matches unit and power supply are just
Pole connection;The Data write. module is provided with write-in input terminal, level negates unit and write-in output end, said write input
End, level negate unit and write-in output end is sequentially connected, and the level negates unit and connect with positive pole;The contact pin connects
Device is connect to be provided with write-in end and read end, the reading end connect with the reading input terminal, the reading output end with it is described
MCU connection, said write end are connect with said write output end, and said write input terminal is connect with the MCU;It further include first
Transient Suppression Diode and the second Transient Suppression Diode, the reading input terminal are connect by first Transient Suppression Diode
Ground, said write output end are grounded by second Transient Suppression Diode.
Further, it includes first resistor, second resistance, 3rd resistor, the 4th resistance, the one or three that the level, which negates unit,
Pole pipe and the second triode, first triode and the second triode are PNP type triode;The collection of first triode
Electrode by the first resistor connect write-in input terminal, the collector of first triode also with second triode
Base stage connection;The emitter of first triode connects write-in input terminal, first triode by the second resistance
Emitter also connect with positive pole;The base stage of first triode is connect by the 3rd resistor with positive pole,
The base stage of first triode is also connect with the emitter of second triode;The collector of second triode passes through
4th resistance eutral grounding.
Further, the voltage matches unit includes the 5th resistance, the 6th resistance and the 7th resistance, the 5th resistance point
It is not connect with the reading input terminal and reading output end, the reading input terminal, the 7th resistance, the 6th resistance and positive pole
It is sequentially connected in series.
Further, the resistance value of the 5th resistance, the 6th resistance and the 7th resistance is equal.
It further, further include the first light emitting diode, first light emitting diode is parallel on the 7th resistance, institute
The cathode for stating the first light emitting diode is connect with the reading input terminal.
Further, the Data write. module further includes the second light emitting diode and the 8th resistance, and described second shines two
The anode of pole pipe is connect with said write output end, and the cathode of second light emitting diode passes through the 8th resistance eutral grounding.
Further, the contact pin connector is additionally provided with the first ground terminal, the second ground terminal and power connector end, and described
One ground terminal and the second ground terminal ground connection, the power connector end are connect with positive pole.
The beneficial effects of the utility model are: the self-service rice mill MDB telecommunication circuit that the utility model uses, by reading
It takes input terminal that the first Transient Suppression Diode is set, while the second Transient Suppression Diode, Ke Yiyou is set in write-in output end
The surge phenomenon that effect inhibits MCU and MDB equipment to generate when being in communication with each other, improves the stability of system operation, and effectively prevent
Therefore element in circuit damages;In addition, can effectively limit the voltage of the IO foot of MCU by setting voltage matches unit, prevent
Only because voltage is excessive so that permanent damage occurs in MCU.
Detailed description of the invention
The utility model is described in further detail with example with reference to the accompanying drawing.
Fig. 1 is the circuit diagram of the utility model data read module and Data write. module;
Fig. 2 is the circuit diagram of the utility model pin connector;
Fig. 3 is the circuit diagram of the utility model MCU.
Specific embodiment
Referring to Fig.1 shown in-Fig. 3, a kind of self-service rice mill MDB telecommunication circuit of the utility model, including MCU, data are read
Modulus block 1, Data write. module 2 and the contact pin connector P23 for connecting external MDB equipment, MCU type described in the present embodiment
Number be STM32F103VET6;The data read module 1, which is provided with, to be read input terminal 11, voltage matches unit 13 and reads defeated
Outlet 12, the reading input terminal 11, voltage matches unit 13 and reading output end 12 are sequentially connected, the voltage matches unit
13 connect with positive pole;The Data write. module 2 is provided with write-in input terminal 21, level negates unit 23 and write-in output
End 22, said write input terminal 21, level negate unit 23 and write-in output end 22 is sequentially connected, and the level negates unit 23
It is connect with positive pole;The contact pin connector P23 is provided with write-in end 32, reads end 31, the first ground terminal, the second ground terminal
And power connector end, first ground terminal and the second ground terminal ground connection, the power connector end is connect with positive pole, described
It reads end 31 to connect with the reading input terminal 11, the reading output end 12 is connect with the 79th pin of the MCU, institute
It states write-in end 32 to connect with said write output end 22, said write input terminal 21 is connect with the 78th pin of the MCU;
It further include the first Transient Suppression Diode D33 and the second Transient Suppression Diode D34, the reading input terminal 11 passes through described the
One Transient Suppression Diode D33 ground connection, said write output end 22 are grounded by the second Transient Suppression Diode D34.
It includes first resistor R69, second resistance R70,3rd resistor R71, the 4th resistance that the level, which negates unit 23,
R68, the first triode Q13 and the second triode Q12, the first triode Q13 and the second triode Q12 are positive-negative-positive three
Pole pipe;The collector of the first triode Q13 by the first resistor R69 connection be written input terminal 21, the described 1st
The collector of pole pipe Q13 is also connect with the base stage of the second triode Q12;The emitter of the first triode Q13 passes through
Input terminal 21 is written in the second resistance R70 connection, and the emitter of the first triode Q13 is also connect with positive pole;Institute
The base stage for stating the first triode Q13 is connect by the 3rd resistor R71 with positive pole, the base of the first triode Q13
Pole is also connect with the emitter of the second triode Q12;The collector of the second triode Q12 passes through the 4th resistance
R68 ground connection.Unit 23 is negated by the way that level is arranged, changes the level of the write-in signal from MCU, to meet and MDB equipment
Communicating requirement.
The voltage matches unit 13 includes the 5th resistance R72, the 6th resistance R73 and the 7th resistance R74, the 5th electricity
Resistance R72 is connect with the readings input terminal 11 and reading output end 12 respectively, the reading input terminal 11, the 7th resistance R74, the
Six resistance R73 and positive pole are sequentially connected in series, the resistance value phase of the 5th resistance R72, the 6th resistance R73 and the 7th resistance R74
Deng the resistance value of the 5th resistance R72, the 6th resistance R73 and the 7th resistance R74 described in the present embodiment are 1k Ω.Due to MCU's
IO foot is at most solely subjected to the voltage of 5.5V, is more than this value, permanent damage, therefore voltage in this way will be caused to MCU
Matching unit 13 can effectively limit the voltage swing of the IO foot of MCU, can also be by adjusting while playing a protective role
The resistance value of the 5th resistance R72, the 6th resistance R73 and the 7th resistance R74, the operating voltage of compatible MDB equipment.
For the working condition for grasping circuit convenient for user, the present embodiment is also provided with the first light emitting diode D36 and the
Two light emitting diode D35, the first light emitting diode D36 are parallel on the 7th resistance R74, first light-emitting diodes
The cathode of pipe D36 is connect with the reading input terminal 11.The Data write. module 2 further includes being provided with the 8th resistance, described
The anode of second light emitting diode D35 is connect with said write output end 22, and the cathode of the second light emitting diode D35 passes through
8th resistance eutral grounding.When MCU reads the data of periphery MDB equipment, the first light emitting diode D36 is lighted;When MCU is outside
When enclosing MDB equipment write-in data, the second light emitting diode D35 is lighted, to play indicative function.
When needing to read the data of periphery MDB equipment, the signal of peripheral MDB equipment is transmitted by data read module 1
It is handled to MCU, due to reading input terminal 11 provided with the first Transient Suppression Diode D33, can effectively be inhibited in number
According to the surge phenomenon generated in reading process;When needing MDB equipment write-in data to the periphery, MCU passes through Data write. module 2
Write-in signal is sent to peripheral MDB equipment, it, can due to being provided with the first Transient Suppression Diode D33 in write-in output end 22
Effectively to inhibit the surge phenomenon generated in data writing process, to improve the stability of system operation, and effectively anti-
Only therefore the element in circuit damages.The connection of each pin function of MCU and periphery MDB equipment and pin connector in the present embodiment
Mode is the prior art, and details are not described herein.
The above, the only preferred embodiment of the utility model, the utility model are not limited to above-mentioned implementation
Mode, as long as its technical effect for reaching the utility model with identical means, all should belong to the protection scope of the utility model.