CN102857209A - Microprocessor I/O (input/output) interface conversion circuit with bidirectional transmission function - Google Patents

Microprocessor I/O (input/output) interface conversion circuit with bidirectional transmission function Download PDF

Info

Publication number
CN102857209A
CN102857209A CN2012103749268A CN201210374926A CN102857209A CN 102857209 A CN102857209 A CN 102857209A CN 2012103749268 A CN2012103749268 A CN 2012103749268A CN 201210374926 A CN201210374926 A CN 201210374926A CN 102857209 A CN102857209 A CN 102857209A
Authority
CN
China
Prior art keywords
double
contact
throw switch
splicing ear
links
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.)
Granted
Application number
CN2012103749268A
Other languages
Chinese (zh)
Other versions
CN102857209B (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.)
Heilongjiang University
Original Assignee
Heilongjiang University
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 Heilongjiang University filed Critical Heilongjiang University
Priority to CN201210374926.8A priority Critical patent/CN102857209B/en
Publication of CN102857209A publication Critical patent/CN102857209A/en
Application granted granted Critical
Publication of CN102857209B publication Critical patent/CN102857209B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electronic Switches (AREA)

Abstract

The invention relates to a microprocessor I/O (input/output) interface conversion circuit with a bidirectional transmission function, belonging to the field of electronic lines and aiming at solving the problems that the conversion circuit is needed to be replaced to meet transmission demands when the input and output states of the I/O interface of a microprocessor are changed, and the used device cannot be shared. The first connecting terminal of the conversion circuit is simultaneously connected with one end of a first resistor and the fourth contact of a double-pole double-throw switch. The other end of the first resistor is simultaneously connected with the second contact of the double-pole double-throw switch, the anode of a diode and the input end of a photoelectric coupler. The second connecting terminal of the conversion circuit is connected with the first movable contact of the double-pole double-throw switch. The third connecting terminal of the conversion circuit is simultaneously connected with a ground wire, the anode of the diode, the reference end of the photoelectric coupler and a fourth connecting terminal. One end of a second resistor is connected with the voltage end of the photoelectric coupler. The other end of the second resistor is simultaneously connected with the output end of the photoelectric coupler, the first contact of the double-pole double-throw switch and the second movable contact of the double-pole double-throw switch. The microprocessor I/O interface conversion circuit with the bidirectional transmission function is used for the voltage and current conversion process of the I/O interface of the microprocessor.

Description

Microprocessor I/O interface conversion circuit with transmitted in both directions function
Technical field
The present invention relates to a kind of microprocessor I/O interface conversion circuit, belong to field of electronic circuitry.
Background technology
In modern electronic technology is used, generally all use microprocessor as the center control element.Because microprocessor I/O interface all is low-voltage, little electric current and glitch-free coffret, all need to be connected with sensing element or the execution unit of outside through certain change-over circuit.All be that high voltage, large electric current will be carried out noiseless processing by recycling photoelectrical coupler behind voltage conversion circuit, the current converter circuit respectively now, although can reach the low-voltage of microprocessor I/O interface, little electric current and glitch-free requirement, but these change-over circuits often translation function of input and output separate, when changing, the input and output state need to change change-over circuit to adapt to the transmission demand, have the shortcoming that used element can not share, cause certain wasting of resources.
Summary of the invention
The present invention separates for the external change-over circuit input and output of the I/O interface translation function that solves microprocessor in the prior art, when changing, the state that inputs or outputs to change change-over circuit to adapt to the transmission demand, have the problem that used components and parts can not share, thereby propose a kind of microprocessor I/O interface conversion circuit with transmitted in both directions function.
Have the microprocessor I/O interface conversion circuit of transmitted in both directions function, it comprises the first splicing ear, the second splicing ear, the 3rd splicing ear, the 4th splicing ear, the first resistance, the second resistance, diode, photoelectrical coupler and double-point double-throw switch;
Described double-point double-throw switch comprises the first armature contact, the second armature contact, the first contact, the second contact, the 3rd contact and the 4th contact, described the first armature contact, the first contact and the second contact are same circuit, and the second armature contact, the 3rd contact and the 4th contact are same circuit;
Described the first splicing ear links to each other with an end of the first resistance and the 4th contact of double-point double-throw switch simultaneously, and the other end of the first resistance links to each other with the second contact of double-point double-throw switch, the negative electrode of diode D2 and the input of photoelectrical coupler simultaneously;
Described the second splicing ear links to each other with the first armature contact of double-point double-throw switch;
Described the 3rd splicing ear links to each other with the 4th splicing ear with the anode of ground wire, diode, the input reference edge of photoelectrical coupler, the output reference edge of photoelectrical coupler simultaneously;
One end of described the second resistance links to each other with photoelectrical coupler voltage, and the other end of the second resistance links to each other with the output of photoelectrical coupler, the first contact of double-point double-throw switch and the second armature contact of double-point double-throw switch simultaneously;
Described the first splicing ear links to each other with the external component distinct interface respectively with the 3rd splicing ear;
Described the second splicing ear links to each other with microprocessor I/O distinct interface respectively with the 4th splicing ear.
Present embodiment operation principle: S is double-point double-throw switch, plays the input function of change-over circuit and the work of output function conversion.
When double-point double-throw switch S the first movable end K1 is communicated with the first contact S1 that simultaneously the second movable end K2 of double-point double-throw switch S is communicated with the 3rd contact S3; be input state; the first resistance R 1 and the second resistance R 2 can have the dividing potential drop effect together; diode D2 carries out the inverse overvoltage protection to photoelectrical coupler O, and photoelectrical coupler O plays anti-external disturbance effect.
When double-point double-throw switch S the first movable end K1 is communicated with the second contact S2 that simultaneously the second movable end K2 of double-point double-throw switch S is communicated with the 4th contact S4, be output state, photoelectrical coupler voltage is by the second contact S2 input optocoupler O of double-point double-throw switch S, and the 4th link S4 through double-point double-throw switch S exports external component to again.
Advantage of the present invention comprises: (1) same circuit has two kinds of optional functions: input and output;
(2) photoelectrical coupler can share, and saves device;
(3) because a circuit has two kinds of functions, can with two kinds of function match of microprocessor I/O interface, can avoid when two kinds of functional mappings of microprocessor I/O interface changing the external conversion circuit;
(4) use change over switch to carry out the function conversion, reliable, directly perceived.
Description of drawings
Fig. 1 is the specific embodiment of the invention one described schematic diagram with microprocessor I/O interface conversion circuit of transmitted in both directions function; Fig. 2 is the specific embodiment of the invention two described microprocessor I/O interface conversion circuit schematic diagrams with transmitted in both directions function.
Embodiment
Embodiment one, in conjunction with Fig. 1 this embodiment is described.Microprocessor I/O interface conversion circuit with transmitted in both directions function, it comprises the first splicing ear 1, the second splicing ear 2, the 3rd splicing ear 3, the 4th splicing ear 4, the first resistance R 1, the second resistance R 2, diode D2, photoelectrical coupler O and double-point double-throw switch S;
Described double-point double-throw switch S comprises the first armature contact K1, the second armature contact K2, the first contact S1, the second contact S2, the 3rd contact S3 and the 4th contact S4, described the first armature contact K1, the first contact S1 and the second contact S2 are same circuit, and the second armature contact K2, the 3rd contact S3 and the 4th contact S4 are same circuit;
Described the first splicing ear 1 links to each other with an end of the first resistance R 1 and the 4th contact S4 of double-point double-throw switch S simultaneously, and the other end while of the first resistance R 1 links to each other with the negative electrode of the second contact S2, the diode D2 of double-point double-throw switch S and the input of photoelectrical coupler O;
Described the second splicing ear 2 links to each other with the first armature contact K1 of double-point double-throw switch S;
Described the 3rd splicing ear 3 links to each other with the 4th splicing ear 4 with the anode of ground wire, diode D2, the input reference edge of photoelectrical coupler O, the output reference edge of photoelectrical coupler O simultaneously;
One end of described the second resistance R 2 links to each other with the photoelectrical coupler voltage U, and the other end of the second resistance R 2 links to each other with the output of photoelectrical coupler O, the first contact S1 of double-point double-throw switch S and the second armature contact K2 of double-point double-throw switch S simultaneously;
Described the first splicing ear 1 links to each other with the external component distinct interface respectively with the 3rd splicing ear 3;
Described the second splicing ear 2 links to each other with microprocessor I/O distinct interface respectively with the 4th splicing ear 4.
Present embodiment operation principle: S is double-point double-throw switch, plays the input function of change-over circuit and the work of output function conversion.
When double-point double-throw switch S the first armature contact K1 is communicated with the first contact S1 that simultaneously the second armature contact K2 of double-point double-throw switch S is communicated with the 3rd contact S3; be input state; the first resistance R 1 and the second resistance R 2 can have the dividing potential drop effect together; diode D2 carries out the inverse overvoltage protection to photoelectrical coupler O, and photoelectrical coupler O plays anti-external disturbance effect.
When double-point double-throw switch S the first armature contact K1 is communicated with the second contact S2 that simultaneously the second armature contact K2 of double-point double-throw switch S is communicated with the 4th contact S4, be output state, photoelectrical coupler voltage is by the second contact S2 input optocoupler O of double-point double-throw switch S, and the 4th link S4 through double-point double-throw switch S exports external component to again.
Embodiment two, in conjunction with Fig. 2 this embodiment is described, what this embodiment and embodiment one were different is that it also comprises input light-emitting diode D1 and output light emitting diode D3;
The anode of described input light-emitting diode D1 links to each other with the negative electrode of the first splicing ear 1 and output light emitting diode D3 simultaneously;
The negative electrode of described input light-emitting diode D1 links to each other with an end of the first resistance R 1;
The anode of described output light emitting diode D3 links to each other with the 4th contact S4 of double-point double-throw switch S.
Increase input light-emitting diode D1 and output light emitting diode D3 in this embodiment, it is luminous to input light-emitting diode D1 conducting when input state, the indication input state; Output light emitting diode D3 conducting is luminous when output state, the indication output state.Realized the function indication of input and output functions, the transmission state that the user can very clear change-over circuit.
Microprocessor I/O interface conversion circuit with transmitted in both directions function provided by the present invention is that a digital terminal for microprocessor designs, and can jointly process the situation of multi-microprocessor I/O interface with a plurality of such change-over circuits.

Claims (2)

1. the microprocessor I/O interface conversion circuit that has the transmitted in both directions function is characterized in that it comprises the first splicing ear (1), the second splicing ear (2), the 3rd splicing ear (3), the 4th splicing ear (4), the first resistance (R1), the second resistance (R2), diode (D2), photoelectrical coupler (O) and double-point double-throw switch (S);
Described double-point double-throw switch (S) comprises the first armature contact (K1), the second armature contact (K2), the first contact (S1), the second contact (S2), the 3rd contact (S3) and the 4th contact (S4), described the first armature contact (K1), the first contact (S1) and the second contact (S2) are same circuit, and the second armature contact (K2), the 3rd contact (S3) and the 4th contact (S4) are same circuit;
Described the first splicing ear (1) links to each other with an end of the first resistance (R1) and the 4th contact (S4) of double-point double-throw switch (S) simultaneously, and the other end of the first resistance (R1) links to each other with second contact (S2) of double-point double-throw switch (S), the negative electrode of diode (D2) and the input of photoelectrical coupler (O) simultaneously;
Described the second splicing ear (2) links to each other with first armature contact (K1) of double-point double-throw switch (S);
Described the 3rd splicing ear (3) links to each other with the 4th splicing ear (4) with the anode of ground wire, diode (D2), the input reference edge of photoelectrical coupler (O), the output reference edge of photoelectrical coupler (O) simultaneously;
One end of described the second resistance (R2) links to each other with photoelectrical coupler voltage (U), and the other end of the second resistance (R2) links to each other with the output of photoelectrical coupler (O), first contact (S1) of double-point double-throw switch (S) and second armature contact (K2) of double-point double-throw switch (S) simultaneously;
Described the first splicing ear (1) links to each other with the external component distinct interface respectively with the 3rd splicing ear (3);
Described the second splicing ear (2) links to each other with microprocessor I/O distinct interface respectively with the 4th splicing ear (4).
2. the microprocessor I/O interface conversion circuit with transmitted in both directions function according to claim 1 is characterized in that it also comprises input light-emitting diode (D1) and output light emitting diode (D3);
The anode of described input light-emitting diode (D1) links to each other with the negative electrode of the first splicing ear (1) with output light emitting diode (D3) simultaneously;
The negative electrode of described input light-emitting diode (D1) links to each other with an end of the first resistance (R1);
The anode of described output light emitting diode (D3) links to each other with the 4th contact (S4) of double-point double-throw switch (S).
CN201210374926.8A 2012-09-29 2012-09-29 Microprocessor I/O (input/output) interface conversion circuit with bidirectional transmission function Expired - Fee Related CN102857209B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210374926.8A CN102857209B (en) 2012-09-29 2012-09-29 Microprocessor I/O (input/output) interface conversion circuit with bidirectional transmission function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210374926.8A CN102857209B (en) 2012-09-29 2012-09-29 Microprocessor I/O (input/output) interface conversion circuit with bidirectional transmission function

Publications (2)

Publication Number Publication Date
CN102857209A true CN102857209A (en) 2013-01-02
CN102857209B CN102857209B (en) 2015-03-04

Family

ID=47403459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210374926.8A Expired - Fee Related CN102857209B (en) 2012-09-29 2012-09-29 Microprocessor I/O (input/output) interface conversion circuit with bidirectional transmission function

Country Status (1)

Country Link
CN (1) CN102857209B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201107613Y (en) * 2007-10-12 2008-08-27 安徽蓝德集团股份有限公司 LD intelligent electric operator based on Modbus on site bus
US20090121825A1 (en) * 2004-11-10 2009-05-14 Koninklijke Philips Electronics N.V. Method Of An Device For Performing Bi-Directional Transmission Using A Single-Wire
CN202178745U (en) * 2011-08-02 2012-03-28 赵恩海 Isolated driving bidirectional analog switch circuit
CN102497197A (en) * 2011-12-28 2012-06-13 中冶南方(武汉)自动化有限公司 Isolated bidirectional digital input output circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090121825A1 (en) * 2004-11-10 2009-05-14 Koninklijke Philips Electronics N.V. Method Of An Device For Performing Bi-Directional Transmission Using A Single-Wire
CN201107613Y (en) * 2007-10-12 2008-08-27 安徽蓝德集团股份有限公司 LD intelligent electric operator based on Modbus on site bus
CN202178745U (en) * 2011-08-02 2012-03-28 赵恩海 Isolated driving bidirectional analog switch circuit
CN102497197A (en) * 2011-12-28 2012-06-13 中冶南方(武汉)自动化有限公司 Isolated bidirectional digital input output circuit

Also Published As

Publication number Publication date
CN102857209B (en) 2015-03-04

Similar Documents

Publication Publication Date Title
CN103646628B (en) A kind of blanking circuit
CN102855211B (en) Universal serial bus-balanced voltage digital interface converter
CA3097889C (en) Device and circuit for protecting controlled loads, and apparatus for switching between loads
CN104882926B (en) A kind of charging indication and mobile terminal
CN104914933A (en) Control circuit and driving method of touch all-in-one machine external equipment
CN102570193A (en) Connecting wire
CN102857209B (en) Microprocessor I/O (input/output) interface conversion circuit with bidirectional transmission function
CN102063082B (en) Digital input circuit
CN103647544A (en) Two-way transmission interface conversion circuit
CN206506512U (en) Touch key-press plate
CN205610225U (en) Transformer excess load automatic switching control equipment
CN105223492A (en) A kind of chip pin configuration-system and method thereof
CN205120913U (en) Chip pin configuration system
CN203588647U (en) Blanking circuit
CN202798970U (en) HDMI (high-definition multimedia interface) device
CN203574624U (en) Switch control circuit
CN204790706U (en) Touch all -in -one external device's control circuit
CN201897812U (en) Automatic counting device
CN202795355U (en) Universal serial bus (USB)-balanced voltage digital interface converter
CN204179392U (en) A kind of wiring construction based on multiple terminal and relay terminal platform
CN205028057U (en) Two switch devices of high -power no arc
CN204271612U (en) The quick breaking circuit of a kind of power supply
CN202614916U (en) Electronic load machine
CN107947783A (en) Signal circuit and the isolation transmission device applied
CN203761362U (en) Bidirectional interface circuit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150304

Termination date: 20180929

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