CN204557471U - A kind of novel USB turns UART serial communication circuit - Google Patents
A kind of novel USB turns UART serial communication circuit Download PDFInfo
- Publication number
- CN204557471U CN204557471U CN201520121833.3U CN201520121833U CN204557471U CN 204557471 U CN204557471 U CN 204557471U CN 201520121833 U CN201520121833 U CN 201520121833U CN 204557471 U CN204557471 U CN 204557471U
- Authority
- CN
- China
- Prior art keywords
- pin
- row
- chip
- usb
- connector
- 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.)
- Active
Links
Landscapes
- Information Transfer Systems (AREA)
Abstract
The novel USB of the one that the utility model proposes turns UART serial communication circuit, comprising: USB interface, modular converter, double throw switch, the first connector, multi-protocols transceiver module and the second connector; USB interface connects modular converter, and modular converter connects the first connector or multi-protocols transceiver module alternatively by double throw switch, and multi-protocols transceiver module connects the second connector.USB interface is USB2.0 interface, and modular converter adopts CP2102 chip, and the first connector adopts first row pin, and first row pin is 5 pin row pins, and double throw switch adopts double-point double-throw switch, and multi-protocols transceiver module adopts SP339EER chip.The utility model to be coordinated with multi-protocols transceiver module by modular converter and can realize USB and turn TTL, USB and turn RS-232, USB and turn RS-422, USB and turn RS-485 tetra-kinds of serial ports translation functions.
Description
Technical field
The utility model relates to communication technical field, particularly relates to a kind of novel USB and turns UART serial communication circuit.
Background technology
Occur that USB turns serial communication scheme product in the market, the function that USB turns serial communication can be realized, but the project plan comparison adopted is outmoded, mainly IC is various numerous and jumbled for required electronic devices and components, such as MAX232, PL2303, CH430, MAX485,74HC14 etc., generally on one piece of identical or similar functions product need 4 to 5 IC.Electronic devices and components IC is various numerous and jumbledly must bring the problems such as PCB area is large, compatible poor anti-interference, and present electronic product is towards microminiaturized, highly integrated future development, on market, existing USB turns the requirement that serial communication product cannot reach microminiaturized, highly integrated.
Utility model content
Based on the technical matters that background technology exists, the utility model proposes a kind of novel USB and turn UART serial communication circuit.
The novel USB of the one that the utility model proposes turns UART serial communication circuit, comprising: USB interface, modular converter, double throw switch, the first connector, multi-protocols transceiver module and the second connector; USB interface connects modular converter, and modular converter connects the first connector or multi-protocols transceiver module alternatively by double throw switch, and multi-protocols transceiver module connects the second connector.
Preferably, USB interface is USB2.0 interface, and modular converter adopts CP2102 chip, and USB2.0 interface is connected to pin D-, D+ of CP2102 chip.
Preferably, the first connector adopts first row pin, and first row pin is 5 pin row pins, and double throw switch adopts double-point double-throw switch, and multi-protocols transceiver module adopts SP339EER chip; Pin RXD, TXD of CP2102 chip connect the pin of first row pin or pin L2, L3 of SP339EER chip by double-point double-throw switch, and pin DCD, DTR, DSR, RTS, CTS, RI of CP2102 chip receive on pin L1, L4, L6, L7, L8, L9 of SP339EER chip respectively.
Preferably, the second connector adopts DB9 RS-232 serial port connector, and pin R1, R2, R3, R4, R6, R7, R8, R9 of SP339EER chip are connected on the pin of DB9 RS-232 serial port connector respectively.
Preferably, comprise one and manually automatically select module, manually automatically select module to comprise NMOS tube, second row pin, the 3rd row's pin and short circuit cap, second row pin and the 3rd row's pin are 2 pin row pins; 1st pin of NMOS tube is connected to the pin L3 of SP339EER chip, the 2nd pin ground connection of NMOS tube, and the 3rd pin of NMOS tube is connected to VBUS high level; 1st pin of the 3rd row's pin is connected to the 3rd pin of NMOS tube, and the 3rd row's the 2nd pin of pin and the 2nd pin of second row pin are all connected the pin DIR1 of SP339EER chip, and the 1st pin of second row pin is connected to VBUS high level.
The utility model to be coordinated with multi-protocols transceiver module by modular converter and can realize USB and turn TTL, USB and turn RS-232, USB and turn RS-422, USB and turn RS-485 tetra-kinds of serial ports translation functions.
In the utility model, modular converter adopts CP2102 chip, and except the filter capacitor of power supply, outside just can work independently without the need to any related device, and integrated level is high, takes up room little.
In the utility model, adopt two IC and CP2102 chips and SP339EER chip to realize USB and turn UART, and can with multiple serial communication, other technologies scheme relatively and on market, board area is little, integrated level is high, stability is high.
Accompanying drawing explanation
Fig. 1 is that the novel USB of one that the utility model proposes turns UART serial communication circuit block diagram;
Fig. 2 is the external and signal switching circuit figure of CP2102;
Fig. 3 is SP339EER external circuits figure;
Fig. 4 is DB9 RS-232 serial port connector circuit diagram;
Fig. 5 is for manually automatically to select module circuit diagram.
Embodiment
The novel USB of the one that the utility model proposes turns UART serial communication circuit, to be coordinated can realize USB and turn TTL, USB and turn RS-232, USB and turn RS-422, USB and turn RS-485 tetra-kinds of serial ports translation functions by modular converter 2 with multi-protocols transceiver module 5.
Turn UART serial communication circuit with reference to Fig. 1, the novel USB of the one that the utility model proposes to comprise: usb 1, modular converter 2, double throw switch 3, first connector 4, multi-protocols transceiver module 5 and the second connector 6.Wherein, usb 1 connects modular converter 2, and modular converter 2 connects the first connector 4 or multi-protocols transceiver module 5 alternatively by double throw switch 3, and multi-protocols transceiver module 5 connects the second connector 6.
With reference to Fig. 2, the modular converter 2 that present embodiment provides adopts CP2102 chip U1, and its internal USB 2.0 is function control device, USB transceiver and asynchronous serial data bus (UART) at full speed, supports modulator-demodular unit global function signal.The principle of work of CP2102 chip U1 is: by driver, the USB port of PC is invented com port to reach the object of expansion, namely USB turns serial ports, and the signal exported after changing is Transistor-Transistor Logic level.
With reference to Fig. 2, in present embodiment, for coordinating CP2102 chip U1, usb 1 adopts USB2.0 interface.Two signals USB2.0_HN, USB2.0_HP of USB2.0 interface receive CP2102 chip U1 corresponding pin D-, D+, simulate 8 UART TTL signals through CP2102 chip U1 and be respectively DCD, RXD, TXD, DTR, DSR, RTS, CTS, RI, wherein RXD, TXD are reception, the transmission signal of UART TTL.
With reference to Fig. 2, in present embodiment, the first connector 4 adopts first row pin J1 as UART TTL signaling interface, and first row pin J1 is 5 pin row pins.When needs communicate with single-chip microcomputer, arm processor etc., during as downloaded, by double throw switch 3, RXD, TXD directly being received on first row pin J1 and communicating with single-chip microcomputer, arm processor etc. as RXD_TTL, TXD_TTL signal.In present embodiment, double throw switch 3 adopts double-point double-throw switch SW1.
With reference to Fig. 3, in present embodiment, multi-protocols transceiver module 5 adopts SP339EER chip U2, and it supports RS-32, RS-485, RS-422 sata standard, three kinds of agreements can be made to exchange use when not having extra transition components by a cable or connector and be achieved.Second connector 6 adopts DB9 RS-232 serial port connector.
When needs UART TTL signal is converted to RS-232, RS-485, RS-422 signal carry out communicating with other RS-232, RS-485, RS-422 equipment time, by stirring double-point double-throw switch SW1, pin L2, L3 and SP339EER chip U2 that RXD, TXD signal directly receives SP339EER chip U2 as RXD_DB9, TXD_DB9 signal communicate.6 signals DCD, DTR, DSR, RTS, CTS, RI of UART TTL receive on pin L1, L4, L6, L7, L8, L9 of SP339EER chip U2 respectively.
With reference to Fig. 3, UART TTL is converted to RS-232, RS-485, RS-422 Three models when communicating with outside RS-232, RS-485, RS-422 equipment by SP339EER chip U2, need be configured by two pins MODE0, MODE1, concrete as table one: to work as MODE0=1, during MODE1=0, be configured to RS-232 pattern; Work as MODE0=0, during MODE1=1, be configured to RS-485 pattern; Work as MODE0=1, during MODE1=1, be configured to RS-422 pattern; Wherein 1,0 represents low and high level respectively.
Table one, SP339EER chip Transfer Mode configuration parameter
RS232 | RS485 | RS422 | |
MODE0 | 1 | 0 | 1 |
MODE1 | 0 | 1 | 1 |
In present embodiment, configured the low and high level state of MODE0, MODE1 by one two toggle switchs (SW2).
In present embodiment, pin L1, L2, L3, L4, L6, L7, L8, L9 of SP339EER chip U2 input 8 signals DCD, RXD_DB9, TXD_DB9, DTR, DSR, RTS, CTS, RI of UART TTL by the RS-232 definition of standard; The output RS-232 level signal that pin R1, R2, R3, R4, R6, R7, R8, R9 of SP339EER chip U2 are corresponding, is respectively MDCD1, MSIN1, MSOUT1, MDTR1, MDSR1, MRTS1, MCTS1, MRI1.
Pin R1, R2, R3, R4, R6, R7, R8, R9 with reference to Fig. 4, SP339EER chip U2 are connected on the pin of DB9 RS-232 serial port connector respectively.The interface signal that DB9 RS-232 serial port connector is corresponding different respectively under three kinds of different patterns, specifically as shown in Table 2.
The interface signal that table two, DB9 RS-232 serial port connector are corresponding in different modes
Known with reference to table two, what adopt when SP339EER chip U2 is configured to RS-485 pattern communication is semiduplex mode, namely can not carry out receiving and sending signal simultaneously.Now, receive and send and controlled by the DIR1 pin of SP339EER chip U2, being transmission state when DIR1 is high level, is accepting state when DIR1 is low level, and DIR1 internal default for being low level with pulling down to.
With reference to Fig. 5, present embodiment provide novel USB turn UART serial communication circuit and also comprise one and manually automatically select module, realize automatically controlling transmitting-receiving and Non-follow control transmitting-receiving by a NMOS tube (N pole field effect transistor) Q1, second row pin J2, the 3rd row pin J3 and short circuit cap JP1, second row pin J2 and the 3rd row pin J3 is 2 pin row pins.1st pin of NMOS tube Q1 is connected to the pin L3 of SP339EER chip U2, the 2nd pin ground connection of NMOS tube Q1, and the 3rd pin of NMOS tube Q1 is connected to VBUS high level; 1st pin of the 3rd row's pin J3 is connected to the 3rd pin of NMOS tube Q1, and the pin DIR1 of SP339EER chip U2 connects the 2nd pin of the 3rd row's pin J3 and the 2nd pin of second row pin J2 respectively, and the 1st pin of second row pin J2 is connected to VBUS high level.
Automatic control transmitting-receiving and Non-follow control transmitting-receiving specific implementation as follows:
Under automatic control mode, short circuit cap JP1 is inserted on the 3rd row's pin J3, DIR1 is connected to the 3rd pin of NMOS tube Q1, thus can realize automatically controlling transmitting-receiving according to TXD_DB9 signal switching NMOS tube Q1 conducting state, be transmission state when the machine external device sends data time, when external unit sends data to the machine time, the machine becomes accepting state automatically, but the machine can not receive simultaneously and send data.
Under MANUAL CONTROL mode, when short circuit cap JP1 be not inserted in J2, J3 upper time, SP339EER chip U2 internal default DIR1 is low level accepting state with pulling down to; When short circuit cap JP1 is for being inserted on second row pin J2, DIR1 is connected to VBUS high level by short circuit cap JP1, and SP339EER chip U2 becomes transmission state.
In present embodiment, modular converter 2 adopts CP2102 chip U1, and except the filter capacitor of power supply, outside just can work independently without the need to any related device, and integrated level is high, takes up room little.
In present embodiment, adopt two IC and CP2102 chip U1 and SP339EER chip U2 to realize USB and turn UART, and can with multiple serial communication, other technologies scheme relatively and on market, board area is little, integrated level is high, stability is high.
The above; be only the utility model preferably embodiment; but protection domain of the present utility model is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the utility model discloses; be equal to according to the technical solution of the utility model and utility model design thereof and replace or change, all should be encompassed within protection domain of the present utility model.
Claims (5)
1. a novel USB turns UART serial communication circuit, it is characterized in that, comprising: USB interface (1), modular converter (2), double throw switch (3), the first connector (4), multi-protocols transceiver module (5) and the second connector (6); USB interface (1) connects modular converter (2), modular converter (2) connects the first connector (4) or multi-protocols transceiver module (5) alternatively by double throw switch (3), and multi-protocols transceiver module (5) connects the second connector (6).
2. novel USB as claimed in claim 1 turns UART serial communication circuit, it is characterized in that, USB interface (1) is USB2.0 interface, modular converter (2) adopts CP2102 chip (U1), and USB2.0 interface is connected to pin D-, D+ of CP2102 chip (U1).
3. novel USB as claimed in claim 2 turns UART serial communication circuit, it is characterized in that, first connector (4) adopts first row pin (J1), first row pin (J1) is 5 pin row pins, double throw switch (3) adopts double-point double-throw switch (SW1), and multi-protocols transceiver module (5) adopts SP339EER chip (U2); Pin RXD, TXD of CP2102 chip (U1) connect the pin of first row pin (J1) or pin L2, L3 of SP339EER chip (U2) by double-point double-throw switch (SW1), and pin DCD, DTR, DSR, RTS, CTS, RI of CP2102 chip (U1) receive on pin L1, L4, L6, L7, L8, L9 of SP339EER chip (U2) respectively.
4. novel USB as claimed in claim 3 turns UART serial communication circuit, it is characterized in that, second connector (6) adopts DB9RS-232 serial port connector, and pin R1, R2, R3, R4, R6, R7, R8, R9 of SP339EER chip (U2) are connected on the pin of DB9 RS-232 serial port connector respectively.
5. the novel USB as described in claim 3 or 4 turns UART serial communication circuit, it is characterized in that, comprise one and manually automatically select module, manually automatically select module to comprise NMOS tube (Q1), second row pin (J2), the 3rd row's pin (J3) and short circuit cap (JP1), second row pin (J2) and the 3rd row's pin (J3) are 2 pin row pins; 1st pin of NMOS tube (Q1) is connected to the pin L3 of SP339EER chip (U2), the 2nd pin ground connection of NMOS tube (Q1), and the 3rd pin of NMOS tube (Q1) is connected to VBUS high level; 1st pin of the 3rd row's pin (J3) is connected to the 3rd pin of NMOS tube (Q1), 2nd pin and the 2nd pin of second row pin (J2) of the 3rd row's pin (J3) are all connected the pin DIR1 of SP339EER chip (U2), and the 1st pin of second row pin (J2) is connected to VBUS high level.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201520121833.3U CN204557471U (en) | 2015-03-02 | 2015-03-02 | A kind of novel USB turns UART serial communication circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201520121833.3U CN204557471U (en) | 2015-03-02 | 2015-03-02 | A kind of novel USB turns UART serial communication circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN204557471U true CN204557471U (en) | 2015-08-12 |
Family
ID=53832556
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201520121833.3U Active CN204557471U (en) | 2015-03-02 | 2015-03-02 | A kind of novel USB turns UART serial communication circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN204557471U (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105302761A (en) * | 2015-11-30 | 2016-02-03 | 浪潮(北京)电子信息产业有限公司 | Serial port debugging system based on USB connector and cable thereof |
CN106371454A (en) * | 2016-08-26 | 2017-02-01 | 杨百川 | Reconnaissance/attack integrated unmanned aerial vehicle flight control system multi-serial-port router |
TWI601016B (en) * | 2015-09-24 | 2017-10-01 | 廣東歐珀移動通信有限公司 | Method of updating adapting device, adapting device, converter and system updating adapting device |
CN109195318A (en) * | 2018-10-26 | 2019-01-11 | 科大智能电气技术有限公司 | The method and PCB pad of one kind of multiple network switchings encapsulate |
CN110320844A (en) * | 2019-07-22 | 2019-10-11 | 武汉洲际电讯科技股份有限公司 | A kind of single-chip microcontroller universal serial bus multi-channel control circuit |
CN111274076A (en) * | 2020-02-10 | 2020-06-12 | 深圳宝龙达信创科技股份有限公司 | Debugging system |
CN112363966A (en) * | 2020-10-29 | 2021-02-12 | 努比亚技术有限公司 | Serial port conversion circuit, base station, circuit conversion method and computer storage medium |
-
2015
- 2015-03-02 CN CN201520121833.3U patent/CN204557471U/en active Active
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI601016B (en) * | 2015-09-24 | 2017-10-01 | 廣東歐珀移動通信有限公司 | Method of updating adapting device, adapting device, converter and system updating adapting device |
US10318270B2 (en) | 2015-09-24 | 2019-06-11 | Guangdong Oppo Mobile Telecommunications Corp, Ltd. | Method for upgrading firmware of adapter, apparatus, and system thereof |
CN105302761A (en) * | 2015-11-30 | 2016-02-03 | 浪潮(北京)电子信息产业有限公司 | Serial port debugging system based on USB connector and cable thereof |
CN106371454A (en) * | 2016-08-26 | 2017-02-01 | 杨百川 | Reconnaissance/attack integrated unmanned aerial vehicle flight control system multi-serial-port router |
CN106371454B (en) * | 2016-08-26 | 2018-06-15 | 杨百川 | One kind, which is examined, beats integrated UAV Flight Control System Multi-serial port router |
CN109195318A (en) * | 2018-10-26 | 2019-01-11 | 科大智能电气技术有限公司 | The method and PCB pad of one kind of multiple network switchings encapsulate |
CN109195318B (en) * | 2018-10-26 | 2021-03-02 | 科大智能电气技术有限公司 | Method for switching multiple networks and PCB pad package |
CN110320844A (en) * | 2019-07-22 | 2019-10-11 | 武汉洲际电讯科技股份有限公司 | A kind of single-chip microcontroller universal serial bus multi-channel control circuit |
CN110320844B (en) * | 2019-07-22 | 2024-05-10 | 武汉洲际电讯科技股份有限公司 | Multi-channel control circuit for serial bus of single chip microcomputer |
CN111274076A (en) * | 2020-02-10 | 2020-06-12 | 深圳宝龙达信创科技股份有限公司 | Debugging system |
CN112363966A (en) * | 2020-10-29 | 2021-02-12 | 努比亚技术有限公司 | Serial port conversion circuit, base station, circuit conversion method and computer storage medium |
CN112363966B (en) * | 2020-10-29 | 2024-06-04 | 努比亚技术有限公司 | Serial port conversion circuit, base station, circuit conversion method, and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN204557471U (en) | A kind of novel USB turns UART serial communication circuit | |
CN201583944U (en) | PCI bus based real-time acquisition card realized by adopting FPGA | |
CN204633058U (en) | USB Type-C connector modules | |
CN204044811U (en) | The switching device shifter of the direct-connected line of a kind of serial ports and cross spider | |
CN104583791A (en) | Interface circuitry for a test apparatus | |
CN105681145A (en) | FPGA-based FlexRay communication module | |
CN104391814A (en) | Parameter-regulable universal RS232-CAN (Controller Area Network) bus adapter | |
CN104484301A (en) | FPGA-based (Field Programmable Gate Array-based) IO (Input/Output) bus device with automatic recognition function | |
CN108600017A (en) | Multi-protocols serial ports expansion method | |
CN105892359A (en) | Multi-DSP parallel processing system and method | |
CN208689572U (en) | A kind of multifunctional comprehensive debug circuit board | |
CN203984449U (en) | A kind of portable gateway module | |
CN204480237U (en) | A kind of connector, universal serial bus device and intelligent terminal | |
CN103607192A (en) | Airborne serial interface conversion device and application | |
CN104409090A (en) | Usb interface conversion module | |
CN103869883B (en) | One kind extension mainboard and expansion system | |
CN203606725U (en) | Control board card with RS232 communication interface and RS485 communication interface | |
CN204633059U (en) | USB Type-C connector modules | |
CN207676338U (en) | A kind of single USB turns RS485, the circuit of RS422, RS232 and Transistor-Transistor Logic level | |
CN203630782U (en) | Universal serial bus (USB) interface chip for embedded applications | |
CN209311880U (en) | A kind of switch acquisition control device | |
CN206805410U (en) | A kind of PCIE expansion board clampings applied on the server | |
CN208094574U (en) | A kind of interface convertor of usb bus and high-speed CAN bus | |
CN202736041U (en) | General core plate of front-end computer and front-end computer | |
CN207601787U (en) | Serial expanded circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220107 Address after: 518000 5c104, floor 5, plant 4, Bangkai science and Technology Industrial Park, south of sightseeing road and west of Bangkai Road, Tangjia community, Fenghuang street, Guangming District, Shenzhen, Guangdong Patentee after: SHENZHEN BITLAND INFORMATION TECHNOLOGY Co.,Ltd. Address before: No.4088 Jinxiu Avenue, Hefei Economic and Technological Development Zone, Anhui Province Patentee before: HEFEI BITLAND INFORMATION TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |