CN205210878U - USB interface converting equipment based on STM32 singlechip - Google Patents
USB interface converting equipment based on STM32 singlechip Download PDFInfo
- Publication number
- CN205210878U CN205210878U CN201520966054.3U CN201520966054U CN205210878U CN 205210878 U CN205210878 U CN 205210878U CN 201520966054 U CN201520966054 U CN 201520966054U CN 205210878 U CN205210878 U CN 205210878U
- Authority
- CN
- China
- Prior art keywords
- interface
- chip
- usb
- stm32 single
- chip microcomputer
- 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
Abstract
The utility model provides a USB interface converting equipment based on STM32 singlechip which the structure is: the PC passes through the USB intermediate junction on the USB interface of STM32 singlechip, and the SPI interface of STM32 singlechip, USARTI interface and I2C interface are connected respectively on level conversion module, the CAN interface of STM32 singlechip passes through CAN communication chip to be connected on level conversion module, and the USART2 interface of STM32 singlechip passes through communication chip and connects on level conversion module, level conversion module is including level conversion chip and power conversion module. The utility model discloses can make the different test system voltage demand of USB interface converting hardware compatibility, the suitability can be strong, and the convenient to use cost is little.
Description
Technical field
The utility model relates to the communication technology, particularly a kind of interface conversion equipment based on USB.
Background technology
The conversion between distinct interface signal is usually related to, as USB conversion RS232, USB turn the conversion between the agreements such as SPI in fields such as electronic communications.But existing signal conversion equipment is be all man-to-man mostly, and namely a kind of adapter can only change a kind of signal, then some is needed to use the application terminal of multiple communication format then to need to configure multiple converting interface, use inconvenience.Though there is now USB to transfer the equipment of multiple interfaces, it needs specific upper computer software, cannot the upper computer software of compatible universal as serial ports assistant.And mostly support a kind of situation of certain communication protocol, for SPI communication protocol, SPI communication protocol has 4 kinds of patterns, and general converting interface only supports wherein a kind of pattern.If chip to be tested is voltage chips, the such as chip of 1.5V and 1.2V voltage, traditional 5V or 3.3V translation interface, owing to not having level shifting circuit, then cannot be measured for this kind of voltage devices, therefore proposes a kind of USB interface conversion equipment based on STM32 chip.
Summary of the invention
In order to solve the problems of the technologies described above, the utility model provides a kind of USB interface conversion equipment based on STM32 single-chip microcomputer, by arranging STM32 single-chip microcomputer and level switch module between PC and external interface, and STM32 single-chip microcomputer and level switch module are provided with communication chip, the output terminal of level switch module is provided with power transfer module, solve a kind of adapter existed in prior art and can only change a kind of signal, then some are needed to use the application terminal of multiple communication format then to need to configure multiple converting interface, use inconvenient technical matters.
To achieve these goals, the technical solution adopted in the utility model is: a kind of USB interface conversion equipment based on STM32 single-chip microcomputer, it is characterized in that: PC is by being connected in the USB interface of STM32 single-chip microcomputer in the middle of USB, and the SPI interface of STM32 single-chip microcomputer, USARTI interface and I2C interface are connected on level switch module; The CAN interface of STM32 single-chip microcomputer is connected on level switch module by CAN communication chip, and the USART2 interface of STM32 single-chip microcomputer is connected on level switch module by communication chip; Level switch module includes level transferring chip and power transfer module.
Described CAN communication chip is TAJ1050, and communication chip is MAX485, and level transferring chip is chip YF08E.
The beneficial effects of the utility model are: the utility model provides a kind of USB interface conversion equipment based on STM32 single-chip microcomputer, by arranging STM32 single-chip microcomputer and level switch module between PC and external interface, and STM32 single-chip microcomputer and level switch module are provided with communication chip, the output terminal of level switch module is provided with power transfer module.By said structure, the test macro voltage requirements that the utility model can make USB interface conversion equipment compatible different, applicable performance is strong, and cost easy to use is little.
Accompanying drawing explanation
Fig. 1: be circuit block diagram of the present utility model.
Fig. 2: be circuit theory diagrams of the present utility model.
Embodiment
A kind of USB interface conversion equipment based on STM32 single-chip microcomputer as shown in Figure 1-2, its structure is: PC is by being connected in the USB interface of STM32 single-chip microcomputer 1 in the middle of USB, and the SPI interface 6 of STM32 single-chip microcomputer 1, USARTI interface 4 and I2C interface 5 are connected on level switch module 3; The CAN interface 9 of STM32 single-chip microcomputer 1 is connected on level switch module 3 by CAN communication chip 10, and the USART2 interface 7 of STM32 single-chip microcomputer 1 is connected on level switch module 3 by communication chip 8; Level switch module 3 includes level transferring chip 3-1 and power transfer module 3-2.Described CAN communication chip 10 is TAJ1050, and communication chip 8 is MAX485, level transferring chip 3-1 is chip YF08E.
The input end of level transferring chip 3-1 inputs a kind of equipment interface of level, and through power transfer module 3-2 after level transferring chip, the level signal exporting another kind of interface is connected to peripheral hardware.Now be described for SPI interface: the SPI interface 6 as STM32 single-chip microcomputer 1 is 3.3V level standard, and chip SPI interface 13 level standard carrying out with it communicating is 1.8V, the problem that level is incompatible is there is between them, by conversion, 3.3V level chip and 1.8V level chip can be made to carry out compatible communication.
Level transferring chip 3-1 inside is provided with constrained input two group interface, and input interface is provided with some two-way I/O interface, and I/O interface voltage is identical with output interface voltage, and level switch module can make two different voltage standards carry out two-way communication.
The utility model provide a kind of USB transfer UASRT, I2C, 485, CAN, SPI protocol converting interface, the test job of above-mentioned translation interface all can complete in serial ports assistant.Level switch module 3 is provided simultaneously, enables the level demand that translation interface is compatible different.
The USB interface of STM32 single-chip microcomputer 1 is connected to PC by USB line, and USB line is not only as the communication interface of PC and STM32 single-chip microcomputer 1, and as the power supply interface of this system ,+5V the voltage of USB interface input stabilizes to 3.3V by voltage stabilizing chip.After STM32 single-chip microcomputer 1, output to the input end of level transferring chip 3-1 through each interface, after level transferring chip 3-1 and power transfer module 3-2 conversion, be connected to outside output terminal.USART27 is connected with 485 communication chips 8, and RS232 serial communication protocol is converted to 485 communication protocols, and 485 communication chips 8 are connected with the input end of level transferring chip 3-1.CAN interface 9 is connected with CAN communication chip 10, and CAN interface 9 is connected with CAN communication chip 10 and carries out CAN protocol and communicate, and CAN chip 10 is connected with the input end of level transferring chip 3-1.
The beneficial effects of the utility model are: based on the USB interface conversion equipment of STM32 single-chip microcomputer, the USB port of PC is connected to by USB line, PC is installed the VCP driver of ST company, the USB device of STM32 single-chip microcomputer can be identified as a serial equipment, as operation serial equipment, namely operate the USB interface of STM32 single-chip microcomputer.The utility model adds level switch module simultaneously, can make the test macro voltage requirements that USB interface conversion equipment is compatible different.
Claims (2)
1. the USB interface conversion equipment based on STM32 single-chip microcomputer, it is characterized in that: PC is by being connected in the USB interface of STM32 single-chip microcomputer (1) in the middle of USB, and the SPI interface (6) of STM32 single-chip microcomputer (1), USARTI interface (4) and I2C interface (5) are connected on level switch module (3); The CAN interface (9) of STM32 single-chip microcomputer (1) is connected on level switch module (3) by CAN communication chip (10), and the USART2 interface (7) of STM32 single-chip microcomputer (1) is connected on level switch module (3) by communication chip (8); Level switch module (3) includes level transferring chip (3-1) and power transfer module (3-2).
2. a kind of USB interface conversion equipment based on STM32 single-chip microcomputer according to claim 1, it is characterized in that: described CAN communication chip (10) is TAJ1050, and communication chip (8) is MAX485, level transferring chip (3-1) is chip YF08E.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201520966054.3U CN205210878U (en) | 2015-11-28 | 2015-11-28 | USB interface converting equipment based on STM32 singlechip |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201520966054.3U CN205210878U (en) | 2015-11-28 | 2015-11-28 | USB interface converting equipment based on STM32 singlechip |
Publications (1)
Publication Number | Publication Date |
---|---|
CN205210878U true CN205210878U (en) | 2016-05-04 |
Family
ID=55848584
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201520966054.3U Active CN205210878U (en) | 2015-11-28 | 2015-11-28 | USB interface converting equipment based on STM32 singlechip |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN205210878U (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112256608A (en) * | 2020-12-23 | 2021-01-22 | 智道网联科技(北京)有限公司 | Data conversion method and device and electronic equipment |
CN113056096A (en) * | 2019-12-29 | 2021-06-29 | 苏州匠致电子科技有限公司 | Domestic control mainboard based on godson 2K |
-
2015
- 2015-11-28 CN CN201520966054.3U patent/CN205210878U/en active Active
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113056096A (en) * | 2019-12-29 | 2021-06-29 | 苏州匠致电子科技有限公司 | Domestic control mainboard based on godson 2K |
CN112256608A (en) * | 2020-12-23 | 2021-01-22 | 智道网联科技(北京)有限公司 | Data conversion method and device and electronic equipment |
CN112256608B (en) * | 2020-12-23 | 2022-03-04 | 智道网联科技(北京)有限公司 | Data conversion method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN201765692U (en) | General meter-reading controller for carrier wave electric energy meter | |
CN104142900A (en) | Communication interface converting device | |
CN207867496U (en) | A kind of multi-channel serial port card based on PXIe buses | |
CN205210878U (en) | USB interface converting equipment based on STM32 singlechip | |
CN202748786U (en) | Multifunctional electric level converter | |
CN204229835U (en) | A kind of USB interface modular converter | |
CN102722167A (en) | Integrated controller for floor | |
CN206696843U (en) | A kind of USB turns UART communication modules | |
CN203658990U (en) | Debugging device for central processing unit | |
CN103869883B (en) | One kind extension mainboard and expansion system | |
CN204302969U (en) | The USB/RS232-CAN translation debugging device of various configurations mode | |
CN203552253U (en) | Portable multifunctional universal serial bus (USB) conversion module | |
CN202677389U (en) | Serial port expansion structure | |
CN201892942U (en) | Universal serial port adapter | |
CN105573957A (en) | Measuring instrument programmable interface conversion system and method | |
CN203225567U (en) | Battery management system with single program initiation (SPI) communication driver circuit | |
CN204119319U (en) | A kind of module supporting WIFI wireless image transmission and serial communication | |
CN207649880U (en) | A kind of optical module test system of changeable circuit | |
CN202735799U (en) | Integrated controller for floor | |
CN202693677U (en) | Three-phase electronic electric energy meter | |
CN204362100U (en) | A kind of electric power protocol conversion device based on industrial computer | |
CN204065964U (en) | Based on the single-ended difference board of PXI structure | |
CN103701452A (en) | Multifunctional communication interface signal converter | |
CN203025700U (en) | Intelligent HART (Highway Addressable Remote Transducer) converter | |
CN204013586U (en) | Many communication interfaces of USB adapter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |