Communication interface circuit based on TYPE-C interface and electronic measuring instrument
By introducing a gating circuit into the TYPE-C interface circuit and using the VBUS pin level to control the SBU pin connection, communication between the external device and the two MCUs inside the measuring instrument is realized, which solves the problem of low communication efficiency in the existing technology, improves programming and debugging efficiency, and reduces costs.
Patent Information
- Application Number
- CN202520266965.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-19
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2035-02-19
AI Technical Summary
Existing small handheld measuring instruments cannot achieve communication between two MCUs via the TYPE-C interface, resulting in low efficiency in program upgrades and debugging, and disassembling the instrument housing may damage the instrument.
A communication interface circuit based on the TYPE-C interface is adopted. The level changes of the SBU pin and VBUS pin are controlled by the gating circuit to realize the communication connection between the external device and the first MCU or the second MCU.
It improves the efficiency of program burning and debugging, reduces costs, and avoids the risk of instrument damage caused by disassembling the casing.
Smart Images

Figure CN223582481U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to measuring instrument technical field especially relates to a communication interface circuit and electronic measuring instrument based on TYPE C interface. BACKGROUND
[0002] Electronic measuring instrument is the electronic equipment for measuring work, has high sensitivity, accurate measurement, convenient to use and so on.The development of electronic information technology, electronic measuring instrument also gradually to miniaturization and portable development, and contrary, the function of electronic measuring instrument also gradually to diversification development, and the corresponding, the single MCU of electronic measuring instrument cannot support the diversification demand, need to set up second MCU to realize the function extension of electronic measuring instrument.
[0003] Due to the restriction of volume, appearance design or cost, the existing small handheld measuring instrument only sets up a TYPE-C interface on the machine to realize the charging of the instrument and the data communication between the machine and the host computer.But when the program needs to be upgraded, reprogrammed or serially debugged, the communication of the two MCUs cannot be realized through the TYPE-C interface, and the shell of the instrument needs to be disassembled to realize the programming and debugging through the programming interface on the internal circuit board of the instrument.This affects the programming and debugging efficiency, and the shell structure of some instruments may be damaged when disassembled, making the instrument unable to be used again, resulting in the increase of cost. UTILITY MODEL CONTENT
[0004] (I) Technical problem to be solved
[0005] In view of the above-mentioned shortcomings and deficiencies of the prior art, the utility model provides a communication interface circuit and electronic measuring instrument based on TYPE-C interface, which solves the technical problem that the existing electronic measuring instrument cannot realize the communication of two MCUs through a TYPE-C interface.
[0006] (II) Technical scheme
[0007] In order to achieve the above-mentioned purpose, the utility model adopts the main technical scheme including:
[0008] Firstly, the utility model embodiment provides a communication interface circuit based on TYPE-C interface, which is used for the communication connection between external equipment and the first MCU and the second MCU on the internal circuit board of electronic measuring instrument, and the communication interface circuit includes: TYPE-C interface and gating circuit,
[0009] The first signal transmission end of the gating circuit is connected with the SBU pin of the TYPE-C interface, the second signal transmission end of the gating circuit is connected with the first MCU, the third signal transmission end of the gating circuit is connected with the second MCU, and the gating control end of the gating circuit is connected with the VBUS pin of the TYPE-C interface.
[0010] When the external device is connected with the TYPE-C interface, the SBU pin of the gating circuit is communicated with the second signal transmission end or the third signal transmission end by changing the level of the input VBUS pin, so that the external device communicates with the first MCU or the second MCU.
[0011] Optionally, the gating circuit comprises a first switch chip and a second switch chip.
[0012] The first data transmission pin of the first switch chip is connected with the SBU1 pin of the TYPE-C interface, and the first data transmission pin of the second switch chip is connected with the SBU2 pin of the TYPE-C interface.
[0013] The second data transmission pin of the first switch chip and the second data transmission pin of the second switch chip constitute the second signal transmission end, and the third data transmission pin of the first switch chip and the third data transmission pin of the second switch chip constitute the third signal transmission end.
[0014] The gating control pins of the first switch chip and the second switch chip are both connected with the VBUS pin of the TYPE-C interface.
[0015] When the external device is connected through the TYPE-C interface,
[0016] When the input of the VBUS pin is a first level signal, the first data transmission pin of the first switch chip is internally communicated with the second data transmission pin thereof, and the first data transmission pin of the second switch chip is internally communicated with the second data transmission pin thereof, so that the external device is connected in communication with the first MCU.
[0017] When the input of the VBUS pin is a second level signal, the first data transmission pin of the first switch chip is internally communicated with the third data transmission pin thereof, and the first data transmission pin of the second switch chip is internally communicated with the third data transmission pin thereof, so that the external device is connected in communication with the second MCU.
[0018] Optionally, the models of the first switch chip and the second switch chip are both SN74LVC1G3157.
[0019] Optionally, the A pin of the first switch chip and the second switch chip is a first data transmission pin, the B0 pin of the first switch chip and the second switch chip is a second data transmission pin, the B1 pin of the first switch chip and the second switch chip is a third data transmission pin, and the S pin of the first switch chip and the second switch chip is a gating control pin.
[0020] Optionally, the Vcc pin of the first switch chip and the second switch chip is connected with a 3.3V power supply, and the GND pin of the first switch chip and the second switch chip is grounded.
[0021] In a second aspect, the utility model provides a kind of electronic measuring instrument, including first MCU, second MCU and the communication interface circuit of first aspect, the first MCU is connected with second signal transmission end, and second MCU is connected with third signal transmission end.
[0022] Optionally, the electronic measuring instrument further includes a housing, the housing houses the first MCU, the second MCU and the communication interface circuit therein, and the housing is provided with an opening matching the shape of the TYPE-C interface to allow an external device to connect with the TYPE-C interface through the opening.
[0023] Optionally, the housing includes two half-shell parts that are detachably connected.
[0024] (Three) beneficial effects
[0025] The communication interface circuit provided by the utility model includes a TYPE-C interface and a gating circuit, the first signal transmission end of the gating circuit is connected with the signal input pin of the TYPE-C interface, the second signal transmission end of the gating circuit is connected with the first MCU, the third signal transmission end of the gating circuit is connected with the second MCU, and the gating control end of the gating circuit is connected with the VBUS pin of the TYPE-C interface.
[0026] When an external device is connected with the TYPE-C interface, the first signal transmission end and the second signal transmission end or the third signal transmission end of the gating circuit are internally connected by changing the level of the input VBUS pin, so that the external device communicates with the first MCU or the second MCU, thereby enabling the external device to communicate with two MCUs through one TYPE-C interface, improving the efficiency of burning and debugging, and reducing the cost of burning and debugging. BRIEF DESCRIPTION OF DRAWINGS
[0027] Figure 1 It is a schematic diagram of the architecture of a communication interface circuit based on TYPE-C interface provided in the embodiment;
[0028] Figure 2A circuit schematic of a communication interface circuit based on a TYPE-C interface provided in the embodiment. DETAILED DESCRIPTION
[0029] In order to better explain the utility model, so as to facilitate understanding, the utility model is described in detail below with specific embodiments, combined with the drawings.
[0030] Embodiment one
[0031] As Figure 1 The utility model embodiment provides a communication interface circuit based on TYPE-C interface, the communication interface circuit is used for the first MCU and the second MCU on the internal circuit board of electronic measuring instrument and external equipment communication connection, the communication interface circuit includes: TYPE-C interface and gating circuit.
[0032] The first signal transmission end of the gating circuit is connected with the SBU pin of TYPE-C interface, the second signal transmission end of gating circuit is connected with the first MCU, the third signal transmission end of gating circuit is connected with the second MCU, and the gating control end of gating circuit is connected with the VBUS pin of TYPE-C interface.
[0033] When external equipment is connected with TYPE-C interface, the level of input VBUS pin is changed, the SBU pin of gating circuit and the second signal transmission end or the third signal transmission end are communicated, so that external equipment and the first MCU or the second MCU are communicated.
[0034] Specifically, the external equipment can be equipment for debugging or obtaining the data stored locally by electronic measuring instrument, and can be a computer, a smart screen, a notebook computer and the like with communication capability. The external equipment can be connected with the first MCU and the second MCU on the internal circuit board of the electronic measuring instrument through the TYPE-C interface using a data line. Preferably, the TYPE-C interface included in the communication interface circuit of the embodiment is a female head, and one end of the data line connected with the communication interface circuit is provided as a male head.
[0035] Based on the communication interface circuit provided in the embodiment, when the external equipment is connected with the TYPE-C interface, the level of the input VBUS pin is changed, the first signal transmission end of the gating circuit and the second signal transmission end or the third signal transmission end are connected internally, so that the external equipment and the first MCU or the second MCU are communicated, so that the external equipment can realize the communication of the two MCUs through one TYPE-C interface, improve the burning and debugging efficiency, and reduce the burning and debugging cost.
[0036] In a preferred embodiment of the embodiment, as Figure 2As shown, the gating circuit includes: a first switch chip U2 and a second switch chip U3.
[0037] The first data transmission pin 4 of the first switch chip U2 is connected with the SBU1 pin of the TYPE-C interface, and the first data transmission pin 4 of the second switch chip U2 is connected with the SBU2 pin of the TYPE-C interface.
[0038] Specifically, the second data transmission pin 3 of the first switch chip U2 and the second data transmission pin 3 of the second switch chip U3 constitute a second signal transmission end, that is, the terminal UART-RX and the terminal UART-TX; the third data transmission pin 1 of the first switch chip U2 and the third data transmission pin 1 of the second switch chip U3 constitute a third signal transmission end, that is, the terminal SWDIO and the terminal SWCLK.
[0039] According to the general pin function definition of the TYPE-C interface, the SBU (sideband use) pin of the TYPE-C interface is usually two, named SBU1 and SBU2 respectively, which are two pins for data communication with the first MCU (U4) or the second MCU (U1) in the embodiment. When it is used for debugging or programming, SWDIO signal and SWCLK signal can be sent to the second MCU through the second data transmission pin 3 of the first switch chip U2 and the second switch chip U3 via SBU1 and SBU2; when it is used for serial communication, UART-TX signal and UART-RX signal can be sent to the first MCU through the third data transmission pin 1 of the first switch chip U2 and the second switch chip U3 via SBU1 and SBU2.
[0040] The gating control pin 6 of the first switch chip U2 and the second switch chip U3 is connected with the VBUS pin of the TYPE-C interface.
[0041] When the external device is connected through the TYPE-C interface, when the input of the VBUS pin is the first level signal, the first data transmission pin 4 of the first switch chip U2 is internally connected with the second data transmission pin 3 thereof, and the first data transmission pin 4 of the second switch chip U3 is internally connected with the second data transmission pin 3 thereof, so as to make the external device and the first MCU (U4) in communication connection; when the input of the VBUS pin is the second level signal, the first data transmission pin 4 of the first switch chip U2 is internally connected with the third data transmission pin 1 thereof, and the first data transmission pin 4 of the second switch chip U3 is internally connected with the third data transmission pin 1 thereof, so as to make the external device and the second MCU (U1) in communication connection.
[0042] Specifically, the first and second level signals can be high and low levels, respectively, with the high level having a voltage range of [2.4V, 5V] and the low level having a voltage range of [0V, 0.5V]. The first and second level signals received by the VBUS pin of the TYPE-C interface are generated by an external device and input via the data line.
[0043] Better, such as Figure 2 As shown, both the first switch chip U2 and the second switch chip U3 are model SN74LVC1G3157. The A pin of both the first and second switch chips U2 and U3 is the first data transmission pin 4; the B0 pin is the second data transmission pin 3; the B1 pin is the third data transmission pin 1; and the S pin is the gating control pin 6. The Vcc pin of both the first and second switch chips U2 and U3 is connected to a 3.3V power supply, and the GND pin is grounded.
[0044] Example 2
[0045] This utility model provides an electronic measuring instrument, including a first MCU, a second MCU, and the communication interface circuit described in Embodiment 1. The first MCU is connected to a second signal transmission terminal, and the second MCU is connected to a third signal transmission terminal.
[0046] Specifically, the electronic measuring instrument further includes a housing that encloses the first MCU, the second MCU, and the communication interface circuitry. The housing has an opening that matches the shape of the TYPE-C interface, allowing external devices to connect to the TYPE-C interface through the opening. The housing may include two detachably connected half-shell sections.
[0047] Based on the communication interface circuit provided in Embodiment 1, the electronic measuring instrument provided in this embodiment allows external devices to communicate with the two MCUs inside the electronic measuring instrument through a TYPE-C interface, thereby improving programming and debugging efficiency and reducing programming and debugging costs.
[0048] In this utility model, unless otherwise explicitly specified and limited, the terms "installation," "connection," "joining," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in this utility model can be understood according to the specific circumstances.
[0049] In the present application, unless otherwise explicitly specified and limited, the first feature is "on" or "under" the second feature, which can be direct contact between the first and second features, or indirect contact through an intermediate medium. Moreover, the first feature is "above", "over" and "on" the second feature, which can be directly above or obliquely above the first feature, or only indicates that the horizontal height of the first feature is higher than that of the second feature. The first feature is "below", "under" and "under" the second feature, which can be directly below or obliquely below the first feature, or only indicates that the horizontal height of the first feature is lower than that of the second feature.
[0050] In the description of the present application, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In the present application, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. Furthermore, those skilled in the art can combine and combine different embodiments or features of different embodiments or examples described in the present application without contradiction.
[0051] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. Those skilled in the art can modify, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A communication interface circuit based on a TYPE-C interface, wherein the communication interface circuit is used for communication connection between external devices and a first MCU and a second MCU on the internal circuit board of an electronic measuring instrument, characterized in that, The communication interface circuit includes: a TYPE-C interface and a gating circuit. The first signal transmission terminal of the gating circuit is connected to the SBU pin of the TYPE-C interface, the second signal transmission terminal of the gating circuit is connected to the first MCU, the third signal transmission terminal of the gating circuit is connected to the second MCU, and the gating control terminal of the gating circuit is connected to the VBUS pin of the TYPE-C interface. When an external device is connected to the TYPE-C interface, by changing the level of the input VBUS pin, the SBU pin of the gating circuit is controlled to connect to the second or third signal transmission terminal, enabling the external device to communicate with the first or second MCU.
2. The communication interface circuit according to claim 1, characterized in that, The gating circuit includes: a first switch chip and a second switch chip; The first data transmission pin of the first switch chip is connected to the SBU1 pin of the TYPE-C interface, and the first data transmission pin of the second switch chip is connected to the SBU2 pin of the TYPE-C interface. The second data transmission pin of the first switch chip and the second data transmission pin of the second switch chip together form the second signal transmission terminal; the third data transmission pin of the first switch chip and the third data transmission pin of the second switch chip together form the third signal transmission terminal. The gating control pins of both the first and second switch chips are connected to the VBUS pin of the TYPE-C interface. When an external device is connected via a TYPE-C interface When the input of the VBUS pin is a first level signal, the first data transmission pin of the first switch chip is internally connected to its second data transmission pin, and the first data transmission pin of the second switch chip is internally connected to its second data transmission pin, so that the external device can communicate with the first MCU. When the input of the VBUS pin is the second level signal, the first data transmission pin of the first switch chip is internally connected to its third data transmission pin, and the first data transmission pin of the second switch chip is internally connected to its third data transmission pin, enabling the external device to communicate with the second MCU.
3. The communication interface circuit according to claim 2, characterized in that, The first and second switch chips are both model number SN74LVC1G3157.
4. The communication interface circuit according to claim 3, characterized in that, The A pin of the first switch chip and the second switch chip are the first data transmission pins, the B0 pin of the first switch chip and the second switch chip are the second data transmission pins, the B1 pin of the first switch chip and the second switch chip are the third data transmission pins, and the S pin of the first switch chip and the second switch chip are the gating control pins.
5. The communication interface circuit according to claim 3, characterized in that, The Vcc pins of the first and second switch chips are connected to a 3.3V power supply, and the GND pins of the first and second switch chips are grounded.
6. An electronic measuring instrument, characterized in that, It includes a first MCU, a second MCU, and the communication interface circuit described in claims 1 to 5, wherein the first MCU is connected to a second signal transmission terminal, and the second MCU is connected to a third signal transmission terminal.
7. The electronic measuring instrument according to claim 6, characterized in that, The electronic measuring instrument also includes a housing that encloses the first MCU, the second MCU, and the communication interface circuitry. The housing has an opening that matches the shape of the TYPE-C interface, allowing external devices to pass through the opening and connect to the TYPE-C interface.
8. The electronic measuring instrument according to claim 6, characterized in that, The outer shell comprises two detachably connected half-shell sections.