CN218630778U - USB burning circuit - Google Patents

USB burning circuit Download PDF

Info

Publication number
CN218630778U
CN218630778U CN202223191700.2U CN202223191700U CN218630778U CN 218630778 U CN218630778 U CN 218630778U CN 202223191700 U CN202223191700 U CN 202223191700U CN 218630778 U CN218630778 U CN 218630778U
Authority
CN
China
Prior art keywords
usb
usb interface
mpu chip
data
mpu
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
Application number
CN202223191700.2U
Other languages
Chinese (zh)
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.)
Jiangsu Ourui Smart Grid Technology Co ltd
Original Assignee
Jiangsu Ourui Smart Grid Technology Co ltd
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 Jiangsu Ourui Smart Grid Technology Co ltd filed Critical Jiangsu Ourui Smart Grid Technology Co ltd
Priority to CN202223191700.2U priority Critical patent/CN218630778U/en
Application granted granted Critical
Publication of CN218630778U publication Critical patent/CN218630778U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)

Abstract

The utility model belongs to the technical field of instrument and equipment, concretely relates to USB burns record circuit, this USB burns record circuit includes: the device comprises a processing unit, a differential data unit, a data mode control unit, a first USB interface and a second USB interface; when the instrument equipment is powered on, the processing unit enters a USB host mode through the data mode control unit so as to enable the differential data unit to be communicated with the first USB interface, and the first USB interface is connected to external USB equipment so as to transmit data to the instrument equipment; when the instrument equipment is powered off, the second USB interface is connected to the mobile terminal, the processing unit enters the slave mode through the data mode control unit, the differential data unit is communicated with the second USB interface, and the mobile terminal burns data on the instrument equipment through the second USB interface and the differential data unit; the utility model discloses only need reserve a USB interface, need not change over switch, connect the USB data line during upgrading the procedure, make it be connected with mobile terminal, pull out after the procedure upgrading is accomplished the USB data line can.

Description

USB burning circuit
Technical Field
The utility model belongs to the technical field of instrument and equipment, concretely relates to USB burns record circuit.
Background
Currently, most instruments and meters in the market use MPU processors of ARM architecture, and a common processor of this type has a set of Universal Serial Bus (USB), which is an external bus standard for standardizing the connection and communication between a computer and external devices. When the instrument and meter is normally used, namely when the program is not required to be upgraded, the USB interface of the MPU is used as a USB HOST (HOST mode), and can be externally connected with a USB peripheral, such as a USB flash disk or a USB camera. When the program is needed to be downloaded, the boot pin of the MCU needs to be pulled down, so that the USB interface of the MPU is switched to the USB slave device, at this time, firmware upgrading can be carried out, and the boot pin of the MPU is restored to the default state after the program upgrading is finished, namely, the boot pin of the MPU is cancelled to be always in the low level state.
The common method is to use a short-circuit cap as a jumper wire or a single-pole double-throw toggle switch to control the high-low level of the boot of the MPU pin, and then use a double-pole double-throw toggle switch to transfer the USB interface of the MPU to the outside so that the USB interface is connected with a PC computer, and then switch back the USB interface after upgrading. However, this method is inconvenient for the whole machine, has more peripheral interfaces, occupies larger size, and is also inconvenient for the whole machine. If the switch is not placed on the panel of the equipment and is exposed, the shell of the equipment needs to be disassembled to upgrade the firmware, which is inconvenient.
Therefore, it is desirable to develop a new USB burning circuit to solve the above problems.
SUMMERY OF THE UTILITY MODEL
The utility model aims at providing a USB burns record circuit.
In order to solve the technical problem, the utility model provides a USB burns record circuit, it includes: the device comprises a processing unit, a differential data unit electrically connected with the processing unit, a data mode control unit, a first USB interface and a second USB interface; wherein the processing unit is adapted to connect to an instrument device via a differential data unit; when the instrument equipment is powered on, the processing unit is suitable for entering a USB host mode through the data mode control unit so as to enable the differential data unit to be communicated with the first USB interface, and the first USB interface is suitable for being connected with external USB equipment so as to transmit data to the instrument equipment; and when the instrument is powered off, the second USB interface is suitable for being connected into the mobile terminal, the processing unit is suitable for entering the slave mode through the data mode control unit, the differential data unit is communicated with the second USB interface, and the mobile terminal is suitable for burning data of the instrument through the second USB interface and the differential data unit.
Further, the processing unit includes: an MPU chip; the MPU chip is adapted to enter a USB host mode or a slave mode.
Further, the differential data unit includes: a differential data line; the MPU chip is adapted to connect to instrumentation via differential data lines.
Further, the data pattern control unit includes: a first triode and a data mode control line; the collector of the first triode is suitable for being connected with the MPU chip through a data mode control line, the emitter of the first triode is grounded, the base of the first triode is grounded through a second capacitor, and the base of the first triode is connected with the power supply end of the second USB interface through a third resistor; the pin 10 of the MPU chip is grounded through a second resistor, and the pin 10 of the MPU chip is connected with the power supply end of the second USB interface through a first resistor.
Furthermore, the D + end of the first USB interface is connected with the pin 1 of the MPU chip, and the D-end of the first USB interface is connected with the pin 7 of the MPU chip.
Furthermore, the D + end of the second USB interface is connected with the 2 pins of the MPU chip, and the D-end of the second USB interface is connected with the 6 pins of the MPU chip.
Further, when the collector of the first triode outputs a high level to the MPU chip through the data mode control line, the MPU chip enters the USB host mode, or when the collector of the first triode outputs a low level to the MPU chip through the data mode control line, the MPU chip enters the slave mode.
Further, when the instrument device is powered off and the second USB interface is connected to the mobile terminal, the instrument device supplies power to the second USB interface, the pin 10 of the MPU chip, and the base of the first triode through the power supply end of the second USB interface to turn on the first triode, and the collector of the first triode outputs a low level to the MPU chip through the data mode control line to enable the MPU chip to enter a slave mode; the first resistor provides a high level for 10 pins of the MPU chip, so that the differential data line is connected with 2 pins and 6 pins of the MPU chip, namely the differential data line is communicated with the second USB interface.
Further, when the instrument equipment is powered on, the collector of the first triode outputs high level to the MPU chip through the data mode control line, so that the MPU chip enters a USB host mode; the second resistor provides a low level for 10 pins of the MPU chip, so that the differential data line is connected with 3 pins and 7 pins of the MPU chip, namely the differential data line is communicated with the first USB interface.
Furthermore, a VCC pin of the MPU chip is grounded through a first capacitor.
The beneficial effects of the utility model are that, the utility model discloses only need reserve a USB interface, do not need change over switch, connect the USB data line during upgrading the procedure, make it be connected with mobile terminal, pull out after the procedure upgrading is accomplished the USB data line can.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the technical solutions in the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a circuit diagram of the USB recording circuit of the present invention;
fig. 2 is a circuit diagram of the data pattern control unit of the present invention.
In the figure:
u1, MPU chip; q1, a first triode; c1, a first capacitor; c2, a second capacitor; r1 and a first resistor; r2 and a second resistor; r3, a third resistor; j1, a first USB interface; j2, and a second USB interface.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and obviously, the described embodiments are some embodiments of the present invention, not all embodiments. Based on the embodiments in the present invention, all other embodiments obtained by a person skilled in the art without creative work belong to the protection scope of the present invention.
Example 1
In this embodiment, as shown in fig. 1 to 2, the present embodiment provides a USB recording circuit, which includes: the device comprises a processing unit, a differential data unit electrically connected with the processing unit, a data mode control unit, a first USB interface J1 and a second USB interface J2; wherein the processing unit is adapted to connect to an instrument device via a differential data unit; when the instrument equipment is powered on, the processing unit is suitable for entering a USB host mode through the data mode control unit so as to enable the differential data unit to be communicated with the first USB interface J1, and the first USB interface J1 is suitable for being connected with external USB equipment so as to transmit data to the instrument equipment; and when the instrument is powered off, the second USB interface J2 is suitable for being connected to the mobile terminal, the processing unit is suitable for entering the slave mode through the data mode control unit, the differential data unit is communicated with the second USB interface J2, and the mobile terminal is suitable for burning data of the instrument through the second USB interface J2 and the differential data unit.
In this embodiment, the mobile terminal may be a PC computer.
In this embodiment, only one USB interface needs to be reserved in this embodiment, a switch is not needed, a USB data line is connected to the mobile terminal when the program is upgraded, and the USB data line is unplugged after the program is upgraded.
In this embodiment, the processing unit includes: an MPU chip U1; the MPU chip U1 is adapted to enter a USB host mode or a slave mode.
In this embodiment, the MPU chip U1 is a USB differential data line switching chip.
In this embodiment, the differential data unit includes: a differential data line; the MPU chip U1 is suitable for being connected with instrument equipment through a differential data line.
In this embodiment, the differential data lines are MPU _ USB _ D _ N and MPU _ USB _ D _ P networks.
In this embodiment, the data pattern control unit includes: a first transistor Q1 and a data mode control line; the collector of the first triode Q1 is suitable for being connected with an MPU chip U1 through a data mode control line, the emitter of the first triode Q1 is grounded, the base of the first triode Q1 is grounded through a second capacitor C2, and the base of the first triode Q1 is connected with the power supply end of a second USB interface J2 through a third resistor R3; the pin 10 of the MPU chip U1 is grounded through a second resistor R2, and the pin 10 of the MPU chip U1 is connected with the power supply end of the second USB interface J2 through a first resistor R1.
In this embodiment, the data mode control line is an MCU _ BOOT network, and when the MCU _ BOOT is low, the MPU chip U1 is in slave mode (DEVICE); when the MCU _ BOOT is high, the MPU chip U1 enters the USB HOST mode (HOST).
In this embodiment, the D + terminal of the first USB interface J1 is connected to pin 1 of the MPU chip U1, and the D-terminal of the first USB interface J1 is connected to pin 7 of the MPU chip U1.
In this embodiment, the D + terminal of the second USB interface J2 is connected to pin 2 of the MPU chip U1, and the D-terminal of the second USB interface J2 is connected to pin 6 of the MPU chip U1.
In this embodiment, when the collector of the first triode Q1 outputs a high level to the MPU chip U1 through the data mode control line, the MPU chip U1 enters the USB host mode, or when the collector of the first triode Q1 outputs a low level to the MPU chip U1 through the data mode control line, the MPU chip U1 enters the slave mode.
In this embodiment, when the instrument device is powered off and the second USB interface J2 is connected to the mobile terminal, the instrument device supplies power to the second USB interface J2, the pin 10 of the MPU chip U1, and the base of the first triode Q1 through the power supply terminal of the second USB interface J2 to turn on the first triode Q1, and the collector of the first triode Q1 outputs a low level to the MPU chip U1 through the data mode control line to enable the MPU chip U1 to enter the slave mode; the first resistor R1 provides a high level for the pin 10 of the MPU chip U1, so that the differential data line is connected with the pins 2 and 6 of the MPU chip U1, namely the differential data line is communicated with the second USB interface J2.
In this embodiment, when program upgrade is required, the second USB interface J2 is connected to the mobile terminal without powering on the apparatus, at this time, since + 5V/U otg is a power supply provided by the mobile terminal, the third resistor R3 provides a base current for the first triode Q1, the second capacitor C2 provides a delay function, the second capacitor C2 is in a charging stage at the moment of powering on, the pin B of the first triode Q1 is at a low level, and after the second capacitor C2 is charged, the pin B of the first triode Q1 is at a high level of 5V, at this time, the BE voltage of the first triode Q1 is greater than 0.7V, the first triode Q1 is turned on, the C electrode of the first triode Q1 is at low level, i.e. the MPU _ BOOT network is at low level, the MPU chip U1 enters slave mode, the pin 10 of the MPU chip U1 is at high level provided by the first resistor R1, and the MPU _ USB _ D _ N and MPU _ USB _ D _ P networks are connected to the pins 2 and 6 of the MPU chip U1, i.e. the D + end and D-end of the second USB interface J2 are connected to the MPU _ USB _ D _ N and MPU _ USB _ D _ P networks, at this time, the program upgrading mode can BE performed.
In this embodiment, when the instrument is powered on, the collector of the first triode Q1 outputs a high level to the MPU chip U1 through a data mode control line, so that the MPU chip U1 enters a USB host mode; the second resistor R2 provides a low level to pin 10 of the MPU chip U1, so that the differential data line connects pins 3 and 7 of the MPU chip U1, that is, the differential data line is communicated with the first USB interface J1.
In this embodiment, after the program upgrade is completed, the data line at the second USB interface J2 is unplugged,
+5v _otghas no power supply, so the first triode Q1 is not turned on, the C-electrode (MPU _ BOOT) of the first triode Q1 is not at a low level, when the device is in normal use, after the device is turned on, the inside of the MPU _ BOOT is pulled up to a high level, the MPU chip U1 enters a USB host mode, the pin 10 of the MPU chip U1 is pulled down to the ground through the second resistor R2 to a low level, and the MPU _ USB _ D _ N and MPU _ USB _ D _ P networks are connected to the pins 3 and 7 of the MUP chip, i.e., the D + terminal and D-terminal of the first USB interface J1 are connected to the MPU _ USB _ D _ N and MPU _ USB _ D _ P networks, and at this time, the first USB interface J1 serves as a USB peripheral interface of the device and can be externally connected to USB devices such as a USB disk, a USB camera, a USB mouse, and the like.
In this embodiment, the VCC pin of the MPU chip U1 is grounded via the first capacitor C1.
In this embodiment, the first capacitor C1 is a power filter capacitor, which plays a role of filtering, and pin 8 of the MPU chip U1 pulls down the chip enable by default to start operating.
To sum up, the utility model discloses only need reserve a USB interface, do not need change over switch, connect the USB data line during upgrading the procedure, make it be connected with mobile terminal, pull out after the procedure upgrading is accomplished the USB data line can.
The components selected for use in the present application (components not illustrated for specific structures) are all common standard components or components known to those skilled in the art, and the structure and principle thereof can be known to those skilled in the art through technical manuals or through routine experimentation. Moreover, the software programs referred to in the present application are all prior art, and the present application does not relate to any improvement of the software programs.
In the description of the embodiments of the present invention, unless explicitly stated or limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood as a specific case by those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplification of description, but do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the units into only one type of logical function may be implemented in other ways, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some communication interfaces, indirect coupling or communication connection between devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
In light of the foregoing, it will be apparent to those skilled in the art from this disclosure that various changes and modifications can be made without departing from the spirit and scope of the invention. The technical scope of the present invention is not limited to the content of the specification, and must be determined according to the scope of the claims.

Claims (10)

1. A USB burning circuit is characterized by comprising:
the device comprises a processing unit, a differential data unit electrically connected with the processing unit, a data mode control unit, a first USB interface and a second USB interface; wherein
The processing unit is adapted to connect to an instrument device via a differential data unit;
when the instrument equipment is powered on, the processing unit is suitable for entering a USB host mode through the data mode control unit so as to enable the differential data unit to be communicated with the first USB interface, and the first USB interface is suitable for being connected with external USB equipment so as to transmit data to the instrument equipment; and
when the instrument equipment is powered off, the second USB interface is suitable for being connected to the mobile terminal, the processing unit is suitable for entering the slave mode through the data mode control unit, the differential data unit is communicated with the second USB interface, and the mobile terminal is suitable for burning data of the instrument equipment through the second USB interface and the differential data unit.
2. The USB flash circuit of claim 1,
the processing unit includes: an MPU chip;
the MPU chip is adapted to enter a USB host mode or a slave mode.
3. The USB flash drive circuit of claim 2,
the differential data unit includes: a differential data line;
the MPU chip is adapted to connect to instrumentation via differential data lines.
4. The USB flash drive circuit of claim 3,
the data mode control unit includes: a first transistor and a data mode control line;
the collector of the first triode is suitable for being connected with the MPU chip through a data mode control line, the emitter of the first triode is grounded, the base of the first triode is grounded through a second capacitor, and the base of the first triode is connected with the power supply end of the second USB interface through a third resistor;
the pin 10 of the MPU chip is grounded through a second resistor, and the pin 10 of the MPU chip is connected with the power supply end of the second USB interface through a first resistor.
5. The USB flash circuit of claim 4,
the D + end of the first USB interface is connected with a pin 1 of the MPU chip, and the D-end of the first USB interface is connected with a pin 7 of the MPU chip.
6. The USB flash drive circuit of claim 5,
and the D + end of the second USB interface is connected with the 2 pins of the MPU chip, and the D-end of the second USB interface is connected with the 6 pins of the MPU chip.
7. The USB flash drive circuit of claim 6,
when the collector of the first triode outputs high level to the MPU chip through the data mode control line, the MPU chip enters a USB host mode, or
And when the collector of the first triode outputs low level to the MPU chip through the data mode control line, the MPU chip enters a slave mode.
8. The USB flash circuit of claim 7,
when the instrument equipment is powered off and the second USB interface is connected to the mobile terminal, the instrument equipment supplies power to the second USB interface, a pin 10 of the MPU chip and a base electrode of a first triode through a power supply end of the second USB interface so as to enable the first triode to be conducted, and a collector electrode of the first triode outputs low level to the MPU chip through a data mode control line so as to enable the MPU chip to enter a slave mode;
the first resistor provides high level to 10 pins of the MPU chip to make the differential data line connected with 2 pins and 6 pins of the MPU chip, that is
The differential data line is communicated with the second USB interface.
9. The USB flash drive circuit of claim 7,
when the instrument equipment is powered on, the collector electrode of the first triode outputs high level to the MPU chip through a data mode control line so that the MPU chip enters a USB host mode;
the second resistor provides low level to pin 10 of the MPU chip to make the differential data line connect pin 3 and pin 7 of the MPU chip, that is
The differential data line is communicated with the first USB interface.
10. The USB flash circuit of claim 2,
and the VCC pin of the MPU chip is grounded through a first capacitor.
CN202223191700.2U 2022-11-30 2022-11-30 USB burning circuit Active CN218630778U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202223191700.2U CN218630778U (en) 2022-11-30 2022-11-30 USB burning circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202223191700.2U CN218630778U (en) 2022-11-30 2022-11-30 USB burning circuit

Publications (1)

Publication Number Publication Date
CN218630778U true CN218630778U (en) 2023-03-14

Family

ID=85452648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202223191700.2U Active CN218630778U (en) 2022-11-30 2022-11-30 USB burning circuit

Country Status (1)

Country Link
CN (1) CN218630778U (en)

Similar Documents

Publication Publication Date Title
US6016518A (en) Automatic master/slave designation for computer peripherals
WO2009091193A2 (en) Mobile terminal for supporting uart communication and usb communication using single connector and operating method for same
TW201035727A (en) Port power controller for USB hubs with legacy battery charge support
TW201014052A (en) Detachable host accessory and portable system
CN109992085A (en) A kind of computer electric power management system, method and terminating machine
US20210157763A1 (en) Compactflash express (cfx) adapters
CN112799985A (en) USB interface control method, USB control circuit and intelligent networking equipment mainboard
CN218630778U (en) USB burning circuit
CN213151196U (en) Signal adapter
CN211787061U (en) USB interface function detection equipment
CN108808788B (en) Miniaturized B-ultrasonic single-chip microcomputer control device and system thereof
TWI338840B (en) Expandable express card and its method for isolating noise and method for combining functionalities of the express card with a non-host device
CN210006035U (en) USB and OTG function switching control circuit, device and mobile terminal
CN111459876A (en) FPGA system with EC function
CN101126781B (en) USB apparatus power consumption test device
CN115145524A (en) Double-blind-insertion display control circuit, device and method based on single group of CCs
CN205983458U (en) Debugging download equipment and debugging download apparatus
CN213365381U (en) Main board
CN211180806U (en) Debugging serial port circuit based on HDMI interface, HDMI interface module and HDMI equipment
CN209168090U (en) Burning adapter
CN112545557A (en) Ultrasonic probe expansion circuit system
CN112086830A (en) Data line circuit communicating with Apple equipment
CN109388601B (en) Control method of OTG power supply and charging automatic switching module
CN112467863A (en) Dual-power switching communication device and method for glucometer
CN216144907U (en) Fault diagnosis equipment

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant