CN103066986A - Positive-negative logic level conversion switching circuit - Google Patents
Positive-negative logic level conversion switching circuit Download PDFInfo
- Publication number
- CN103066986A CN103066986A CN2012105411858A CN201210541185A CN103066986A CN 103066986 A CN103066986 A CN 103066986A CN 2012105411858 A CN2012105411858 A CN 2012105411858A CN 201210541185 A CN201210541185 A CN 201210541185A CN 103066986 A CN103066986 A CN 103066986A
- Authority
- CN
- China
- Prior art keywords
- resistance
- circuit
- computer
- positive
- capacitor
- 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.)
- Pending
Links
Images
Landscapes
- Logic Circuits (AREA)
Abstract
The invention discloses a positive-negative logic level conversion switching circuit which comprises a circuit 10 with negative voltage converted into positive voltage, a circuit 20 with positive voltage converted into negative voltage, wherein when a computer transmits data to an embedded device, the data needs to be converted through the circuit with negative voltage converted into positive voltage, and the RS232 level sent by the computer is converted into the TTL level and is transmitted to the embedded device. When the embedded device transmits data to the computer, the data needs to be converted by the circuit with positive voltage converted into negative voltage and the TTL level sent by the embedded device is converted into the RS232 level and is transmitted to the computer, and therefore duplex communication of the computer and the embedded device is achieved. Compared with the prior art, the positive-negative logic level conversion switching circuit has the advantages of being low in cost and flexible to apply.
Description
Technical field
The present invention relates to computer and embedded device communication technique field, relate in particular to a kind of mixed logic level shifting circuit.
Background technology
Increasing along with the development of electronic technology and electronic equipment, the information interaction between each equipment is also day by day frequent, and is also more and more higher to the requirement of electronic equipment interfaces technology simultaneously.So occurred various types of interfaces on the market, for example USB interface, serial ports, RS232 interface, RS485 interface and SPI interface etc.Wherein, the RS232 interface is one of personal computer communication interface, and also be reserved with asynchronous serial port in most of electronic equipment, the two is based on the asynchronous serial port agreement and realizes communication, so this interface mode can be used for the mutual communication between personal computer and the electronic equipment, thereby finish the operations such as download, debugging and data upload.The asynchronous serial port of computer comprises Transistor-Transistor Logic level serial ports and RS232 level serial ports, in the duplex signaling of computer and embedded device, the asynchronous serial port of computer is output logic 0 and logical one in RS232 level mode usually, its voltage that reflects when logical zero is 3~15V, the voltage that reflects when logical one is-3~-15V, but the main Transistor-Transistor Logic level mode of using in the serial ports of embedded device, the voltage that reflects when transmission logic 0 and logical one is all more than 0V.Because there is negative voltage in the asynchronous serial port of computer, so that can't Direct Communication between computer and the embedded device.
In existing scheme, mainly be to use RS232 level logic conversion chip, more typical chip is MAX232, this chip can be finished the conversion between RS232 level logic and the Transistor-Transistor Logic level logic.Although this logic level transition chip is comparatively ripe, it still has the defective of high expensive, and simultaneously, this logic level transition chip only can be applied in the RS232 communication modes, and the flexibility of application is relatively poor, is difficult to adapt in the communicating circuit of other types.
Therefore, existing logic level transition mode, it has the defective of the very flexible of cost height, application.
Summary of the invention
The technical problem to be solved in the present invention is, a kind of mixed logic level shifting circuit is provided, and this circuit has the advantage of the low and applying flexible of cost.
For solving the problems of the technologies described above, the present invention adopts following technical scheme.
A kind of mixed logic level shifting circuit, it includes: the negative pressure volt circuit of becoming a full member, the described negative pressure volt circuit of becoming a full member includes NPN pipe Q2, the base stage of described NPN pipe Q2 is by resistance R 7 ground connection, this base stage is contact resistance R6 also, the other end of this resistance R 6 is as the input of negative pressure change-over circuit and be connected to the transmitting terminal PC-TXD of computer, the grounded emitter of described NPN pipe Q2, its collector electrode is connected to the power end VCC33 of embedded device by resistance R 8, this collector electrode is contact resistance R5 also, the other end of this resistance R 5 as negative pressure become a full member volt circuit output and be connected to the receiving terminal UART-RXD of embedded device; One positive-pressure rotary negative pressure circuit, described positive-pressure rotary negative pressure circuit includes PNP pipe Q1, the base stage of described PNP pipe Q1 is connected to capacitor C 1 by resistance R 1, the other end of this capacitor C 1 is as the input of positive-pressure rotary negative pressure circuit and be connected to the transmitting terminal of embedded device, the tie point that described resistance R 1 is connected with capacitor C also connects the anode of diode D1, the negative electrode of described diode D1 is connected to the emitter of PNP pipe Q1, link to each other by resistance R 2 between the base stage of this PNP pipe Q1 and the emitter, this emitter also is connected to the positive power source terminal 232VCC of computer, the collector electrode of described PNP pipe Q1 is connected to the negative power end 232VEE of computer by resistance R 3, this collector electrode is contact resistance R4 also, and the other end of this resistance R 4 is as the output of positive-pressure rotary negative pressure circuit and be connected to the receiving terminal PC-RXD of computer.
Preferably, described negative pressure is become a full member in the volt circuit, and the power end VCC33 of embedded device is also by capacitor C 5 and ground connection, and described resistance R 6 also is parallel with capacitor C 6.
Preferably, in the described positive-pressure rotary negative pressure circuit, the negative power end 232VEE of computer is by capacitor C 3 ground connection, and the positive power source terminal 232VCC of computer is by capacitor C 4 ground connection, and described resistance R 1 is parallel with capacitor C 2.
In a kind of mixed logic level shifting circuit disclosed in this invention, when computer sends data to embedded device, this data need to carry out voltage transitions by the negative pressure volt circuit of becoming a full member, and the RS232 level conversion that computer is sent is Transistor-Transistor Logic level, and transfers to embedded device; When embedded device sent data to computer, these data needed to carry out voltage transitions by positive-pressure rotary negative pressure circuit, and the Transistor-Transistor Logic level that embedded device is sent is converted to the RS232 level, and transfers to computer.Thereby realized the duplex signaling of computer and embedded device, and substituted the existing logic level transition chips such as MAX232.This circuit is made of common component, so its cost is lower, for the mass production of electronic equipment provides cost savings spending, simultaneously, because this mixed logic level shifting circuit can effectively be finished the mutual conversion between RS232 level and the Transistor-Transistor Logic level, therefore, this circuit can also be applied to have preferably flexibility in the communication modes of other types.
Description of drawings
Fig. 1 is the circuit block diagram of the mixed logic level shifting circuit that proposes of the present invention.
Fig. 2 is the become a full member circuit theory diagrams of volt circuit of negative pressure.
Fig. 3 is the circuit theory diagrams of positive-pressure rotary negative pressure circuit.
Embodiment
Below in conjunction with drawings and Examples the present invention is done more detailed description.
The present invention discloses a kind of mixed logic level shifting circuit, and as shown in Figure 1, it includes: a negative pressure become a full member volt circuit 10 and a positive-pressure rotary negative pressure circuit 20, wherein:
In conjunction with Figure 1 and Figure 2, the described negative pressure volt circuit 10 of becoming a full member includes NPN pipe Q2, the base stage of described NPN pipe Q2 is by resistance R 7 ground connection, this base stage is contact resistance R6 also, the other end of this resistance R 6 is as the input of negative pressure change-over circuit 10 and be connected to the transmitting terminal PC-TXD of computer 30, the grounded emitter of described NPN pipe Q2, its collector electrode is connected to the power end VCC33 of embedded device 40 by resistance R 8, this collector electrode is contact resistance R5 also, the other end of this resistance R 5 as negative pressure become a full member volt circuit 10 output and be connected to the receiving terminal UART-RXD of embedded device 40.
Above-mentioned negative pressure is become a full member in the volt circuit 10, when the transmitting terminal PC-TXD of computer 30 output logic 0, its output level is 3V~15V, after this voltage passes through resistance R 6 and resistance R 7 dividing potential drops, make on the resistance R 7 and to produce positive voltage and this voltage-drop loading in the base stage of NPN pipe Q2, when the voltage on the resistance R 7 reaches 0.6V, NPN pipe Q2 conducting, because the receiving terminal UART-RXD of embedded device 40 is by resistance R 5 and NPN pipe Q2 ground connection, so that the voltage of the receiving terminal UART-RXD of embedded device 40 is 0V, thereby make embedded device 40 receive logical zero; When the transmitting terminal PC-TXD of computer 30 output logic 1, its output level is-3V~-15V, after this voltage passes through resistance R 6 and resistance R 7 dividing potential drops, make on the resistance R 7 and to produce negative voltage and this voltage-drop loading in the base stage of NPN pipe Q2, at this moment, NPN pipe Q2 cut-off, because the receiving terminal UART-RXD of embedded device 40 is connected to the power end VCC33 of embedded device 40 by resistance R 5 and resistance R 6, so that the voltage of the receiving terminal UART-RXD of embedded device 40 is high level voltage, thereby make embedded device 40 receive logical one.
In conjunction with Fig. 1 and shown in Figure 3, described positive-pressure rotary negative pressure circuit 20 includes PNP pipe Q1, the base stage of described PNP pipe Q1 is connected to capacitor C 1 by resistance R 1, the other end of this capacitor C 1 is as the input of positive-pressure rotary negative pressure circuit 20 and be connected to the transmitting terminal of embedded device 40, the tie point that described resistance R 1 is connected with capacitor C also connects the anode of diode D1, the negative electrode of described diode D1 is connected to the emitter of PNP pipe Q1, link to each other by resistance R 2 between the base stage of this PNP pipe Q1 and the emitter, this emitter also is connected to the positive power source terminal 232VCC of computer 30, the collector electrode of described PNP pipe Q1 is connected to the negative power end 232VEE of computer 30 by resistance R 3, this collector electrode is contact resistance R4 also, and the other end of this resistance R 4 is as the output of positive-pressure rotary negative pressure circuit 20 and be connected to the receiving terminal PC-RXD of computer 30.
In the above-mentioned positive-pressure rotary negative pressure circuit 20, the output voltage of the positive power source terminal 232VCC of computer 30 is+8.5V that the output voltage of the negative power end 232VEE of computer 30 is-8.5V.Before embedded device 40 and computer 30 are set up communication, transmitting terminal UART-TXD output high level and this transmitting terminal UART-TXD and the capacitor C 1 of Schilling embedded device 40, resistance R 1, the positive power source terminal 232VCC of resistance R 2 and computer 30 consists of the loop, capacitor C 1 begins charging until be full of, when the transmitting terminal UART-TXD of embedded device 40 output logic 0, the voltage that this transmitting terminal UART-TXD reflects is 0V, capacitor C 1 is rapidly discharge by the afterflow effect of diode D1, so that the voltage drop of the tie point of capacitor C 1 and resistance R 1, at this moment, the positive power source terminal 232VCC of computer 30, resistance 2 and resistance R 1 consist of bigoted circuit, when the voltage drop of capacitor C 1 and resistance R 1 tie point during to 0.6V, this voltage transfers to the base stage of PNP pipe Q1 by resistance R 1, PNP pipe Q1 conducting, and by drawing effect on the resistance R 4, the positive voltage of the positive power source terminal 232VCC of computer 30 output is transferred to the receiving terminal PC-RXD of computer 30, so that this receiving terminal PC-RXD receives logical zero; When the transmitting terminal UART-TXD of embedded device 40 output logic 1, the voltage that this transmitting terminal UART-TXD exports is high level voltage, at this moment, because still conducting of PNP pipe Q1, so, the positive power source terminal 232VCC of computer 30 is by PNP pipe Q1 and resistance R 1 and to capacitor C 1 charging, it is equivalent to open circuit for direct current signal when capacitor C 1 is full of, no current flows through on the resistance R 2, PNP pipe Q1 cut-off, the negative voltage of the negative power end 232VEE of computer 30 output transfers to the receiving terminal PC-RXD of computer 30 by resistance R 3 and resistance R 4, so that this receiving terminal PC-RXD receives logical one.
As shown in Figure 2, described negative pressure is become a full member in the volt circuit 10, and the power end VCC33 of embedded device 40 is also by capacitor C 5 and ground connection, and described resistance R 6 also is parallel with capacitor C 6.Wherein, capacitor C 5 is used for filtering clutter to be disturbed, and capacitor C 6 is used for improving the conducting speed of NPN pipe Q2 as speed-up capacitor.
As shown in Figure 3, in the described positive-pressure rotary negative pressure circuit 20, the negative power end 232VEE of computer 30 is also by capacitor C 3 ground connection, and also by capacitor C 4 ground connection, described resistance R 1 also is parallel with capacitor C 2 to the positive power source terminal 232VCC of computer 30.Wherein, capacitor C 3 and capacitor C 4 are all disturbed for filtering clutter, and capacitor C 2 is used for improving the conducting speed of PNP pipe Q1 as speed-up capacitor.
A kind of mixed logic level shifting circuit disclosed in this invention, it can access following data by experiment:
On the basis of foregoing circuit principle, learn in conjunction with these data, when computer 30 sends data to embedded device 40, this data need to carry out voltage transitions by the negative pressure volt circuit 10 of becoming a full member, and the RS232 level conversion that computer 30 is sent is Transistor-Transistor Logic level, and transfers to embedded device 40; When embedded device 40 sent data to computer 30, these data needed to carry out voltage transitions by positive-pressure rotary negative pressure circuit 20, and the Transistor-Transistor Logic level that embedded device 40 is sent is converted to the RS232 level, and transfers to computer 30.Thereby realized the duplex signaling of computer 30 and embedded device 40, and substituted the existing logic level transition chip such as MAX232.This circuit is made of common component, so its cost is lower, for the mass production of electronic equipment provides cost savings spending, simultaneously, because this mixed logic level shifting circuit can effectively be finished the mutual conversion between RS232 level and the Transistor-Transistor Logic level, therefore, can also be applied to have had preferably flexibility in the communication modes of other types.
The above is preferred embodiment of the present invention, is not limited to the present invention, all modifications of making in technical scope of the present invention, is equal to and replaces or improvement etc., all should be included in the scope that the present invention protects.
Claims (3)
1. a mixed logic level shifting circuit is characterized in that, includes:
The one negative pressure volt circuit (10) of becoming a full member, the described negative pressure volt circuit (10) of becoming a full member includes NPN pipe Q2, the base stage of described NPN pipe Q2 is by resistance R 7 ground connection, this base stage is contact resistance R6 also, the other end of this resistance R 6 is as the input of negative pressure change-over circuit (10) and be connected to the transmitting terminal PC-TXD of computer (30), the grounded emitter of described NPN pipe Q2, its collector electrode is connected to the power end VCC33 of embedded device (40) by resistance R 8, this collector electrode is contact resistance R5 also, the other end of this resistance R 5 as negative pressure become a full member volt circuit (10) output and be connected to the receiving terminal UART-RXD of embedded device (40);
One positive-pressure rotary negative pressure circuit (20), described positive-pressure rotary negative pressure circuit (20) includes PNP pipe Q1, the base stage of described PNP pipe Q1 is connected to capacitor C 1 by resistance R 1, the other end of this capacitor C 1 is as the input of positive-pressure rotary negative pressure circuit (20) and be connected to the transmitting terminal of embedded device (40), the tie point that described resistance R 1 is connected with capacitor C also connects the anode of diode D1, the negative electrode of described diode D1 is connected to the emitter of PNP pipe Q1, link to each other by resistance R 2 between the base stage of this PNP pipe Q1 and the emitter, this emitter also is connected to the positive power source terminal 232VCC of computer (30), the collector electrode of described PNP pipe Q1 is connected to the negative power end 232VEE of computer (30) by resistance R 3, this collector electrode is contact resistance R4 also, and the other end of this resistance R 4 is as the output of positive-pressure rotary negative pressure circuit (20) and be connected to the receiving terminal PC-RXD of computer (30).
2. mixed logic level shifting circuit as claimed in claim 1 is characterized in that, described negative pressure is become a full member in the volt circuit (10), and the power end VCC33 of embedded device (40) is also by capacitor C 5 and ground connection, and described resistance R 6 also is parallel with capacitor C 6.
3. mixed logic level shifting circuit as claimed in claim 1, it is characterized in that, in the described positive-pressure rotary negative pressure circuit (20), the negative power end 232VEE of computer (30) is by capacitor C 3 ground connection, the positive power source terminal 232VCC of computer (30) is by capacitor C 4 ground connection, and described resistance R 1 is parallel with capacitor C 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105411858A CN103066986A (en) | 2012-12-14 | 2012-12-14 | Positive-negative logic level conversion switching circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105411858A CN103066986A (en) | 2012-12-14 | 2012-12-14 | Positive-negative logic level conversion switching circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103066986A true CN103066986A (en) | 2013-04-24 |
Family
ID=48109472
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012105411858A Pending CN103066986A (en) | 2012-12-14 | 2012-12-14 | Positive-negative logic level conversion switching circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103066986A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104753522A (en) * | 2015-04-17 | 2015-07-01 | 上海华虹宏力半导体制造有限公司 | Negative pressure conversion circuit and control method thereof |
CN105471421A (en) * | 2014-09-10 | 2016-04-06 | 南车株洲电力机车研究所有限公司 | Level conversion circuit |
CN115878539A (en) * | 2023-01-31 | 2023-03-31 | 北京智芯微电子科技有限公司 | Serial port self-adaptive circuit, electronic equipment and circuit board |
WO2024109210A1 (en) * | 2022-11-21 | 2024-05-30 | 华润微集成电路(无锡)有限公司 | Logic level conversion circuit and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060033548A1 (en) * | 2004-08-13 | 2006-02-16 | Hon Hai Precision Industry Co., Ltd. | Circuit for translating voltage signal levels |
CN1852327A (en) * | 2005-11-30 | 2006-10-25 | 飞博创(成都)科技有限公司 | Communication interface electrical level converting device |
CN200953124Y (en) * | 2006-01-26 | 2007-09-26 | 深圳艾科创新微电子有限公司 | Converter for USB converting to serial interface |
CN200986685Y (en) * | 2006-12-27 | 2007-12-05 | 深圳市同洲电子股份有限公司 | Level switching circuit |
CN201113972Y (en) * | 2007-10-19 | 2008-09-10 | 深圳市同洲电子股份有限公司 | Level switching circuit |
CN101626230B (en) * | 2008-07-08 | 2012-08-08 | 上海海能汽车电子有限公司 | Kline-RS232 circuit with function of preventing reverse connection |
CN203151466U (en) * | 2012-12-14 | 2013-08-21 | 深圳市新国都技术股份有限公司 | Positive-negative logic level conversion switching circuit |
-
2012
- 2012-12-14 CN CN2012105411858A patent/CN103066986A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060033548A1 (en) * | 2004-08-13 | 2006-02-16 | Hon Hai Precision Industry Co., Ltd. | Circuit for translating voltage signal levels |
CN1852327A (en) * | 2005-11-30 | 2006-10-25 | 飞博创(成都)科技有限公司 | Communication interface electrical level converting device |
CN200953124Y (en) * | 2006-01-26 | 2007-09-26 | 深圳艾科创新微电子有限公司 | Converter for USB converting to serial interface |
CN200986685Y (en) * | 2006-12-27 | 2007-12-05 | 深圳市同洲电子股份有限公司 | Level switching circuit |
CN201113972Y (en) * | 2007-10-19 | 2008-09-10 | 深圳市同洲电子股份有限公司 | Level switching circuit |
CN101626230B (en) * | 2008-07-08 | 2012-08-08 | 上海海能汽车电子有限公司 | Kline-RS232 circuit with function of preventing reverse connection |
CN203151466U (en) * | 2012-12-14 | 2013-08-21 | 深圳市新国都技术股份有限公司 | Positive-negative logic level conversion switching circuit |
Non-Patent Citations (3)
Title |
---|
成新明: "电力晶体管GTR驱动电路设计", 《湖南电力》, vol. 20, no. 3, 31 March 2000 (2000-03-31), pages 22 - 25 * |
林立: "晶体管开关电路", 《家庭电子》, 28 February 2002 (2002-02-28), pages 27 - 29 * |
王东宏: "晶体管推挽式逆变器设计及其应用", 《电气自动化》, 31 March 1998 (1998-03-31), pages 26 - 28 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105471421A (en) * | 2014-09-10 | 2016-04-06 | 南车株洲电力机车研究所有限公司 | Level conversion circuit |
CN105471421B (en) * | 2014-09-10 | 2019-11-08 | 南车株洲电力机车研究所有限公司 | A kind of level shifting circuit |
CN104753522A (en) * | 2015-04-17 | 2015-07-01 | 上海华虹宏力半导体制造有限公司 | Negative pressure conversion circuit and control method thereof |
CN104753522B (en) * | 2015-04-17 | 2017-07-11 | 上海华虹宏力半导体制造有限公司 | Negative pressure change-over circuit and its control method |
WO2024109210A1 (en) * | 2022-11-21 | 2024-05-30 | 华润微集成电路(无锡)有限公司 | Logic level conversion circuit and system |
CN115878539A (en) * | 2023-01-31 | 2023-03-31 | 北京智芯微电子科技有限公司 | Serial port self-adaptive circuit, electronic equipment and circuit board |
CN115878539B (en) * | 2023-01-31 | 2023-05-16 | 北京智芯微电子科技有限公司 | Serial port self-adapting circuit, electronic equipment and circuit board |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103066986A (en) | Positive-negative logic level conversion switching circuit | |
CN203151466U (en) | Positive-negative logic level conversion switching circuit | |
CN103199847A (en) | Bi-directional level switching circuit and electronic product | |
CN102307010B (en) | Data transmission voltage conversion circuit | |
CN103701453A (en) | Level switching circuit used for serial communication between single-chip microcomputer and upper computer | |
CN202721661U (en) | UART level switching circuit | |
CN104392693A (en) | Quarter scanning light-emitting diode (LED) display diode blanking circuit | |
CN203661030U (en) | Electrical level switching circuit and circuit board having same | |
CN203366045U (en) | A digital quantity input-output device based on a CAN bus | |
CN206224459U (en) | A kind of SCM Based Serial Communication for Multi-computer System circuit | |
CN204440388U (en) | A kind of easy data transmission circuit | |
CN206224465U (en) | The circuit of the variable bus address of IIC devices | |
CN106126459B (en) | A kind of I/O data capture card and its collecting method based on CPLD | |
CN203911896U (en) | Output level compatible circuit of programmable chip | |
CN203149564U (en) | Serial-port automatic switching device | |
CN207264051U (en) | A kind of LCD screen ageing management system | |
CN207559972U (en) | A kind of level shifting circuit based on metal-oxide-semiconductor | |
CN206759420U (en) | Bidirectional level conversion circuit | |
CN204206154U (en) | The gate circuit conversion equipment of a kind of universal serial port and ISO7816 agreement | |
CN104079309A (en) | Communication device and communication method of K wave band vehicle-mounted receiver | |
CN204613928U (en) | A kind of USB Program download based on CH341T chip | |
CN107196639A (en) | The bidirectional level conversion circuit of multidiameter delay | |
CN204856475U (en) | Signaling conversion circuit | |
CN206741247U (en) | A kind of OBD circuits for vehicle electronics communication | |
CN203166863U (en) | Bidirectional electrical level conversion circuit and electronic product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130424 |