A control circuit, a control method and an electronic device

By integrating level conversion and switch switching control circuits, electronic equipment can be upgraded and debugged without disassembly, which solves the problem of time-consuming, laborious and high-cost update iteration in the existing technology, protects the integrity of the equipment, and improves update efficiency.

CN115237015BActive Publication Date: 2024-10-25SHENZHEN GREEN CONNECTION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210842283.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-18
Publication Date
2024-10-25
Estimated Expiration
2042-07-18

AI Technical Summary

Technical Problem

When updating and upgrading existing electronic devices with HDMI interfaces and optimizing and upgrading software, it is usually necessary to disassemble the device or add a shell interface, which is time-consuming, labor-intensive, prone to damage, or increases costs.

Method used

Design a control circuit that integrates a level conversion control circuit and a switch switching control circuit to realize two-way communication between the controller and the data interface circuit. It supports line simulation debugging, burning and LOG capture, avoids disassembly operations, and protects equipment. Shell and internal components reduce space occupation and cost.

Benefits of technology

Upgrade and debug electronic equipment without dismantling it, protecting equipment integrity, reducing cost and space occupation, and improving update efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115237015B_ABST
    Figure CN115237015B_ABST
Patent Text Reader

Abstract

The present invention discloses a control circuit, a control method and an electronic device. By integrating a level conversion control circuit and a switch switching control circuit inside the electronic device, two-way communication of different voltages between a controller and a data interface circuit can be realized without disassembling the device, so that line simulation debugging, burning and LOG capture of the electronic device can be performed to upgrade the electronic device, and the housing of the electronic device and components of the internal circuit can be protected. There is no need to add connectors, thereby reducing space occupancy and saving costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic technology, and in particular to a control circuit, a control method and an electronic device. Background Art

[0002] Currently, most of the electronic devices with HDMI interfaces on the market have reserved interfaces or sockets on the internal circuit boards of the electronic devices. When the electronic devices need to be updated and the software needs to be optimized and upgraded, the update and upgrade can be achieved either by disassembling the electronic devices and capturing the LOG through the reserved interfaces, or by adding additional interfaces on the outer shell of the electronic devices to capture the LOG.

[0003] However, practice has found that the disassembly and assembly method is time-consuming and laborious, and it is easy to damage the casing and may even damage the components in the circuit board, causing the electronic device to be directly scrapped; and adding interfaces to the product casing will cause the electronic device to increase in size or cost. Summary of the invention

[0004] The present invention provides a control circuit, a control method and an electronic device, which can perform line simulation debugging, burning and LOG capture on the electronic device to upgrade the electronic device without disassembling the device.

[0005] In order to solve the above technical problems, the first aspect of the present invention discloses a control circuit, which is applied to an electronic device provided with at least one controller, wherein the control circuit comprises a level conversion control circuit, a switch switching control circuit and a data interface circuit, wherein:

[0006] The first data terminal of the level conversion control circuit is electrically connected to the first data transmission terminal of the switch switching control circuit, the enable terminal of the switch switching control circuit is used to be electrically connected to the controller, the signal control terminal of the switch switching control circuit is used to be electrically connected or wirelessly connected to a signal touch control module, and the second data transmission terminal of the switch switching control circuit is used to be electrically connected to the data transmission terminal of the controller; the second data terminal of the level conversion control circuit is electrically connected to the data transmission terminal of the data interface circuit;

[0007] The level conversion control circuit is used to receive the first electronic signal sent by the data interface circuit, convert the electronic signal to obtain a second electronic signal, and send the second electronic signal to the switch control circuit;

[0008] The switch switching control circuit is used to receive the second electronic signal and the mode signal sent by the signal touch module, and under the control of the controller, selects a target port matching the mode signal from all ports in the second data transmission end according to the mode signal, and sends the second electronic signal to the controller through the target port, so that the controller performs a matching operation according to the received second electronic signal.

[0009] As an optional implementation, in the first aspect of the present invention, the level conversion control circuit includes a first conversion module, a second conversion module, a first pull-up resistor, and a second pull-up resistor;

[0010] Wherein, the first pole of the first conversion module and one end of the first pull-up resistor are both electrically connected to the data transmission positive end of the switch switching control circuit, the second pole of the first conversion module and the other end of the first pull-up resistor are both used to be electrically connected to a first voltage source, and the third pole of the first conversion module is electrically connected to the data control end of the data interface circuit;

[0011] The first pole of the second conversion module and one end of the second pull-up resistor are both electrically connected to the data transmission negative end of the switch switching control circuit, the second pole of the second conversion module and the other end of the second pull-up resistor are both used to be electrically connected to the first voltage source, and the third pole of the second conversion module is electrically connected to the data transmission end of the data interface circuit;

[0012] Among them, the data transmission end of the data interface circuit includes the data control end of the data interface circuit and the data transmission end of the data interface circuit; the first data transmission end of the switch switching control circuit includes the data transmission positive end of the switch switching control circuit and the data transmission negative end of the switch switching control circuit, the first data end of the level conversion control circuit includes the first pole of the first conversion module and the first pole of the second conversion module, and the second data end of the level conversion control circuit includes the third pole of the first conversion module and the third pole of the second conversion module.

[0013] As an optional implementation, in the first aspect of the present invention, the type of the target module includes a MOS tube type, and the target module includes the first conversion module and the second conversion module, wherein:

[0014] When the type of the target module is the MOS tube type, the first electrode, the second electrode, and the third electrode of the target module are a source electrode, a gate electrode, and a drain electrode, respectively.

[0015] As an optional implementation, in the first aspect of the present invention, the level conversion control circuit further includes a pull-up module and a voltage isolation module, and the pull-up module includes a third pull-up resistor and a fourth pull-up resistor;

[0016] Wherein, one end of the third pull-up resistor and one end of the fourth pull-up resistor are both electrically connected to the negative electrode of the voltage isolation module, the other end of the third pull-up resistor is electrically connected to the data control end of the data interface circuit; the other end of the fourth pull-up resistor is electrically connected to the data transmission end of the data interface circuit, and the positive electrode of the voltage isolation module is used to be electrically connected to the second voltage source;

[0017] Wherein, the pull-up module is used to enhance the working voltage of the electronic device corresponding to the data interface circuit when it is working;

[0018] The voltage isolation module is used to isolate the external current from flowing into the electronic device corresponding to the data interface circuit during the operation of the electronic device corresponding to the data interface circuit.

[0019] As an optional implementation, the voltage isolation module includes a diode, wherein:

[0020] The cathode of the diode is electrically connected to one end of the third pull-up resistor and one end of the fourth pull-up resistor respectively, and the anode of the diode is used to be electrically connected to the second voltage source.

[0021] As an optional implementation, the voltage isolation module further includes a current limiting unit, and the current limiting unit is arranged between the diode and the second voltage source or between the pull-up module and the diode;

[0022] Wherein, the current limiting unit is used to limit the current of the branch where the diode is located.

[0023] As an optional implementation, in the first aspect of the present invention, types of all the ports corresponding to the second data transmission end of the switch switching control circuit include one or more of a clock type, a data transmission type and a general serial type.

[0024] As an optional implementation manner, in the first aspect of the present invention, the switch switching control circuit is used to select a target port matching the mode signal from all ports in the second data transmission end of the switch switching control circuit according to the mode signal, specifically comprising:

[0025] When the mode signal is a first mode signal, the universal serial type port is selected from all ports in the second data transmission end of the switch switching control circuit according to the first mode signal as a target port matching the first mode signal; when the mode signal is a second mode signal, the data transmission type port is selected from all ports in the second data transmission end of the switch switching control circuit according to the second mode signal as a target port matching the second mode signal; when the mode signal is a third mode signal, the clock type port is selected from all ports in the second data transmission end of the switch switching control circuit according to the third mode signal as a target port matching the third mode signal;

[0026] The first mode signal, the second mode signal and the third mode signal are different from each other.

[0027] A second aspect of the present invention discloses a control method, which is applied to a control circuit, wherein the control circuit includes a level conversion control circuit and a switch switching control circuit, wherein a first data terminal of the level conversion control circuit is electrically connected to a first data transmission terminal of the switch switching control circuit, an enable terminal of the switch switching control circuit is used to be electrically connected to the controller, a signal control terminal of the switch switching control circuit is used to be electrically connected or wirelessly connected to a signal touch control module, a second data transmission terminal of the switch switching control circuit is used to be electrically connected to a data transmission terminal of the controller; the second data terminal of the level conversion control circuit is electrically connected to a data transmission terminal of a data interface circuit, and the method includes:

[0028] The level conversion control circuit receives the first electronic signal sent by the data interface circuit, converts the electronic signal to obtain a second electronic signal, and sends the second electronic signal to the switch switching control circuit;

[0029] The switch switching control circuit receives the second electronic signal and the mode signal sent by the signal touch module, and under the control of the controller, selects a target port matching the mode signal from all ports in the second data transmission end of the switch switching control circuit according to the mode signal, and sends the second electronic signal to the controller through the selected target port, so that the controller performs a matching operation according to the received second electronic signal.

[0030] The third aspect of the present invention discloses a computer storage medium, wherein the computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute part or all of the steps in the control method disclosed in the second aspect of the present invention.

[0031] A fourth aspect of the present invention discloses an electronic device, the electronic device comprising a controller, and the electronic device further comprising any one of the control circuits described in the first aspect of the present invention.

[0032] The implementation of the present invention has the following beneficial effects:

[0033] The present invention integrates the level conversion control circuit and the switch switching control circuit inside the electronic device, so as to realize two-way communication of different voltages between the controller and the data interface circuit without disassembling the device, perform line simulation debugging, burning, and capture LOGs for upgrading the electronic device, protect the housing of the electronic device and the components of the internal circuit, and do not need to add connectors, thereby reducing space occupancy and saving costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 is a structural schematic diagram of a control circuit disclosed in an embodiment of the present invention;

[0036] Figure 2 It is a structural schematic diagram of a switch switching control circuit disclosed in an embodiment of the present invention;

[0037] Figure 3 It is a structural schematic diagram of a level conversion control circuit disclosed in an embodiment of the present invention;

[0038] Figure 4 It is a structural schematic diagram of a data interface circuit disclosed in an embodiment of the present invention;

[0039] Figure 5 It is a flow chart of a control method disclosed in an embodiment of the present invention;

[0040] Figure 6 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0041] For better understanding and implementation, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] It should be noted that, unless otherwise clearly specified and limited, the term "electrical connection" in the specification and claims of the present invention and the above-mentioned drawings should be understood in a broad sense. For example, it can be a fixed electrical connection, a detachable electrical connection, or an integral electrical connection; it can be a mechanical electrical connection, an electrical electrical connection, or can communicate with each other; it can be directly connected, or indirectly connected through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. In addition, the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. The terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0043] Embodiment 1

[0044] See also Figure 1 , Figure 1 This is a schematic diagram of a control circuit disclosed in an embodiment of the present invention. The control circuit can be applied to any electronic device (such as audio and video electronic device) that needs to perform one or more functions of online simulation debugging, program burning, and LOG capture and is equipped with at least one controller. Figure 1 As shown, the control circuit includes a level conversion control circuit, a switch switching control circuit and a data interface circuit, wherein:

[0045] The first data end of the level conversion control circuit is electrically connected to the first data transmission end of the switch switching control circuit, the enable end of the switch switching control circuit is used to be electrically connected to the controller, the signal control end of the switch switching control circuit is used to be electrically or wirelessly connected to the signal touch module, and the second data transmission end of the switch switching control circuit is used to be electrically connected to the data transmission end of the controller; the second data end of the level conversion control circuit is electrically connected to the data transmission end of the data interface circuit.

[0046] In an embodiment of the present invention, the level conversion control circuit is used to receive the first electronic signal sent by the data interface circuit, convert the electronic signal to obtain the second electronic signal, and send the second electronic signal to the switch switching control circuit; the switch switching control circuit is used to receive the second electronic signal and the mode signal sent by the signal touch module, and under the control of the controller, select the target port matching the mode signal from all ports in the second data transmission end of the switch switching control circuit according to the mode signal, and send the second electronic signal to the controller through the selected target port, so that the controller performs a matching operation according to the received second electronic signal. Wherein, the first electronic signal and the second electronic signal both include analog signals or digital signals.

[0047] In the embodiment of the present invention, optionally, the level conversion control circuit, the switch switching control circuit and the data interface circuit are all integrated in the electronic device. The controller includes but is not limited to a single-chip microcomputer MCU or a combination of a single-chip microcomputer MCU and other devices that can perform a two-way communication control function through the switch switching control circuit and the level conversion control circuit and the data interface circuit; the switch switching control circuit includes but is not limited to any one of a CH444G chip that can perform an equivalent switch switching control function, a combination of a CH444G chip and other electronic components, a 74HC4052 chip and a combination of a 74HC4052 chip and other electronic components. Figure 2 As shown, Figure 2 The schematic diagram of the structure of a switch switching control circuit disclosed in an embodiment of the present invention is shown in FIG. By providing a variety of switch switching control circuits, the applicability of the circuit can be improved.

[0048] In an embodiment of the present invention, optionally, performing a matching operation includes sending data to the electronic device through a switch switching control circuit, a level conversion control circuit, and a data interface circuit after receiving a second electronic signal to perform one or more of program burning, online simulation debugging, and LOG capture. The types of all ports corresponding to the second data transmission end of the switch switching control circuit include one or more of a clock type, a data transmission type, and a universal serial type. Among them, ports of the data transmission type, ports of the universal serial type, and ports of the clock type can all be used to burn programs in electronic devices to achieve electronic device upgrades; ports of the data transmission type and ports of the universal serial type are also used for functions such as online simulation debugging of electronic devices and LOG capture.

[0049] In the embodiment of the present invention, the signal touch control module includes a wireless touch control module (such as a Bluetooth module, a WiFi module, etc.) and a wired touch control module (such as a key module). Further, the signal touch control module can be integrated on the controller or can be independent of the controller.

[0050] In the embodiment of the present invention, the switch switching control circuit is used to select a target port matching the mode signal from all ports in the second data transmission end of the switch switching control circuit according to the mode signal, specifically including:

[0051] When the mode signal is a first mode signal, a port of a general serial type is selected from all ports in the second data transmission end of the switch switching control circuit according to the first mode signal as a target port matching the first mode signal; when the mode signal is a second mode signal, a port of a data transmission type is selected from all ports in the second data transmission end of the switch switching control circuit according to the second mode signal as a target port matching the second mode signal; when the mode signal is a third mode signal, a port of a clock type is selected from all ports in the second data transmission end of the switch switching control circuit according to the third mode signal as a target port matching the third mode signal; wherein the first mode signal, the second mode signal, and the third mode signal are different from each other.

[0052] In the embodiment of the present invention, different mode signals correspond to different interfaces. Take the switch switching control circuit as an example of CH444G chip U1, where CH444G is a low-resistance broadband bidirectional analog switch chip, including 2-channel SPQT single-pole four-throw analog switches, high bandwidth, low on-resistance, and can be used for four-to-one switching of electronic signals. When the enable pin EN is at a low level, the CH444G chip starts to work. At this time, when the mode signals IN1 and IN0 are at 0 and 0 levels respectively, S1A and S1B are turned on, that is, the electronic device is in its own working state; when the mode signals IN1 and IN0 are at 0 and 1 levels respectively, S2A and S2B are turned on. That is, the universal serial type ports USB- and USB+ are connected to the controller to perform program burning, online simulation debugging, or log capture on the electronic device; when the mode signals IN1 and IN0 are 1 and 0 levels respectively, S3A and S3B turn on TXD and RXD, that is, the data transmission type port is connected to the controller to perform program burning, online simulation debugging, or log capture on the electronic device; when the mode signals IN1 and IN0 are 1 and 1 levels respectively, S4A and S4B turn on SWDIO and SWCLK, that is, the clock type port is connected to the controller to perform program burning on the electronic device.

[0053] It can be seen that implementation Figure 1 The control circuit described integrates the level conversion control circuit and the switch switching control circuit inside the electronic device, so as to realize two-way communication of different voltages between the controller and the data interface circuit without disassembling the device, perform line simulation debugging, burning, and capture LOG of the electronic device to realize the upgrade of the electronic device, protect the housing of the electronic device and the components of the internal circuit, and do not need to add connectors, thereby reducing space occupancy and saving costs.

[0054] In an optional embodiment, if Figure 3 As shown, Figure 3 FIG. 1 is a schematic diagram of a level conversion control circuit disclosed in an embodiment of the present invention. Figure 3As shown, the level conversion control circuit includes a first conversion module, a second conversion module, a first pull-up resistor R1 and a second pull-up resistor R2;

[0055] Wherein, the first pole of the first conversion module and one end of the first pull-up resistor R1 are both electrically connected to the data transmission positive end of the switch switching control circuit, the second pole of the first conversion module and the other end of the first pull-up resistor R1 are both used to be electrically connected to the first voltage source (such as 3V, 3.3V), and the third pole of the first conversion module is electrically connected to the data control end of the data interface circuit; the first pole of the second conversion module and one end of the second pull-up resistor R2 are both electrically connected to the data transmission negative end of the switch switching control circuit, the second pole of the second conversion module and the other end of the second pull-up resistor R2 are both used to be electrically connected to the first voltage source, and the third pole of the second conversion module is electrically connected to the data transmission end of the data interface circuit. Wherein, the second data end of the level conversion control circuit includes the third pole of the first conversion module and the third pole of the second conversion module.

[0056] In this optional embodiment, the data transmission end of the data interface circuit includes a data control end of the data interface circuit and a data transmission end of the data interface circuit; wherein, Figure 4 FIG. 1 is a schematic diagram of a data interface circuit disclosed in an embodiment of the present invention. Figure 4 As shown, the data interface circuit includes a data interface chip HDMI_A_SMD, a data control terminal CEC of the data interface circuit and a data transmission terminal RESERVED of the data interface circuit. Figure 3 , 4 As shown, the data interface circuit also includes a fifth resistor R5 and a sixth resistor R6, which are respectively arranged between the data transmission terminal RESERVED of the data interface chip HDMI_A_SMD and the drain of the N-MOS tube Q1, and between the data control terminal CEC of the data interface chip HDMI_A_SMD and the drain of the N-MOS tube Q2. In this way, the fifth resistor R5 and the sixth resistor R6 limit the current between the data interface circuit and the level conversion control circuit to reduce the electronic components in the circuit from being burned out due to excessive current during the operation of the electronic device or during program burning, online simulation or LOG capture, thereby damaging the electronic device and further improving the service life of the electronic device.

[0057] In this optional embodiment, if Figure 2 As shown, the first data transmission end of the switch switching control circuit includes a data transmission positive end YB of the switch switching control circuit and a data transmission negative end YA of the switch switching control circuit.

[0058] In this optional embodiment, the type of the target module includes a MOS tube type, wherein the target module includes a first conversion module and a second conversion module, wherein the first data terminal of the level conversion control circuit includes a first electrode of the first conversion module and a first electrode of the second conversion module. Wherein, when the type of the target module is a MOS tube type, the first electrode, the second electrode, and the third electrode of the target module are a source electrode S, a gate electrode G, and a drain electrode D, respectively. Figure 3 As shown, the first conversion module includes an N-MOS tube Q1, and the second conversion module includes an N-MOS tube Q2. Among them, Q1 (2N7002) and Q2 (2N7002) can be replaced by N-channel MOS tubes such as SI2310B or AO3400 or FS2302A. In this way, by using N-MOS tubes to form a level conversion control circuit, bidirectional communication can be performed at low cost and high driving capability, thereby improving communication efficiency and reliability. Alternatively, the level conversion control circuit directly uses a level conversion chip (such as PCA9306DCUR, NC7WZ07P6X) to perform level conversion between the data interface circuit and the switch switching control circuit, which can perform communication with strong driving capability, improve the data transmission rate, and has a small size, which is convenient for circuit routing, and can provide more circuit lines, and can be connected to multiple electronic devices or multiple ports of an electronic device to realize communication of multiple electronic devices or control of multiple functions of an electronic device at the same time.

[0059] In another optional embodiment, Figure 3 As shown, the level conversion control circuit also includes a pull-up module and a voltage isolation module, and the pull-up module includes a third pull-up resistor R3 and a fourth pull-up resistor R4; wherein one end of the third pull-up resistor R3 and one end of the fourth pull-up resistor R4 are both electrically connected to the negative electrode of the voltage isolation module, and the other end of the third pull-up resistor R3 is electrically connected to the data control end of the data interface circuit; the other end of the fourth pull-up resistor R4 is electrically connected to the data transmission end of the data interface circuit, and the positive electrode of the voltage isolation module is used to be electrically connected to the second voltage source (such as 5.0V, 5.5V); wherein the pull-up module is used to enhance the working voltage of the electronic device corresponding to the data interface circuit when it is working; and the voltage isolation module is used to isolate the external current from flowing into the electronic device corresponding to the data interface circuit during the working process of the electronic device corresponding to the data interface circuit. wherein the second voltage source can be a power source integrated in the electronic device, or a power source independent of the electronic device.

[0060] In this optional embodiment, optionally, as Figure 3 As shown, the voltage isolation module includes a diode D, wherein the cathode of the diode D is electrically connected to one end of the third pull-up resistor R3 and one end of the fourth pull-up resistor R4, respectively, and the anode of the diode D is used to be electrically connected to the second voltage source.

[0061] In this optional embodiment, further optionally, the voltage isolation module further includes a current limiting unit, which is arranged between the diode D and the second voltage source or between the pull-up module and the diode D; wherein the current limiting unit is used to limit the current of the branch where the diode D is located. The current limiting unit may be a current limiting resistor or other electronic components that can play a current limiting role.

[0062] The controller is MCU and combined Figure 2-Figure 4 The working principle of the control circuit in the embodiment of the present invention is described as follows:

[0063] In the embodiment of the present invention, when the voltage source is powered on and online simulation debugging or program burning or LOG capture is required, the enable terminal EN of the controller enables the switch switching control circuit to be low level, the switch switching control circuit starts to work, and the switch switching control circuit selects the corresponding port (USB-, USB+, or TXD, RXD, or SWDIO, SWCLK) to connect to the controller according to the mode signal received from the signal touch module by the signal input terminals IN0 and IN1. At this time, the data interface chip HDMI_A_SMD transmits the first electronic signal to the N-MOS tube Q1 and the N_MOS tube Q2 through its data control terminal CEC and the data transmission terminal RESERVED. The N-MOS tube Q1 and the N_MOS tube Q2 convert the received first electronic signal to obtain a second electronic signal, and transmit the second electronic signal to the switch switching control circuit through the data transmission positive terminal DIO_RX_D+ of the level conversion control circuit, that is, the source electrode S of the N-MOS tube Q1, and the data transmission negative terminal CLK_TX_D-, that is, the source electrode S of the N_MOS tube Q2. The switch switching control circuit transmits the second electronic signal through the corresponding ports (USB-, USB +, or TXD, RXD, or SWDIO, SWCLK) is transmitted to the controller, the controller selects data according to the received second electronic signal, and sends a third electronic signal to the level conversion control circuit through the switch switching control circuit, the level conversion control circuit converts the received third electronic signal through the N-MOS tube Q1 and the N_MOS tube Q2 to obtain a fourth electronic signal, and transmits the fourth electronic signal to the data interface chip HDMI_A_SMD, and so on, to achieve two-way communication between the data interface chip HDMI_A_SMD (that is, the electronic device) and the controller, thereby realizing data reception and transmission, and then realizing online simulation debugging, program burning, LOG capture and other functions.When the signal flows from the data interface circuit to the controller and when the data control terminal CEC and the data transmission terminal RESERVED of the data interface chip HDMI_A_SMD output a low level (such as 0V), the diodes in the N_MOS tubes Q1 and Q2 are turned on, thereby turning on the N_MOS tubes Q1 and Q2, and the source S of the N_MOS tube Q1 and the source S of the N_MOS tube Q2 of the level conversion control circuit also output a low level; when the data of the data interface chip HDMI_A_SMD When the control terminal CEC and the data transmission terminal RESERVED output high level (such as 5V), the N_MOS tube Q1 and the N_MOS tube Q2 are in the cut-off state, and the source S of the N_MOS tube Q1 and the source S of the N_MOS tube Q2 of the level conversion control circuit also output high level (such as 1.8V / 3.3V); when the signal flow flows from the controller to the data interface circuit, if the level given by the controller is low, that is, through the switch switching control circuit through the data transmission positive terminal DIO_RX_D+ and the data transmission negative terminal CLK_T When the level given to the level conversion control circuit by X_D- is low (0V), the N-MOS tube Q1 and the N_MOS tube Q2 are turned on, and the drain D of the N-MOS tube Q1 and the drain D of the N_MOS tube Q2 of the level conversion control circuit output low level (0V); when the controller switches the control circuit through the data transmission positive terminal DIO_RX_D+ and the data transmission negative terminal CLK_TX_D- to give the level conversion control circuit a high level (0V), the N-MOS tube Q1 and the N_MOS tube Q2 are turned off, and the drain D of the N-MOS tube Q1 and the drain D of the N_MOS tube Q2 of the level conversion control circuit output high level (0V), thereby realizing that by integrating the level conversion control circuit and the switch switching control circuit inside the electronic device, bidirectional communication of different voltages between the controller and the data interface circuit can be realized without disassembling the electronic device, line simulation debugging, burning, and LOG capture can be performed on the electronic device, and the electronic device can be upgraded, and the housing of the electronic device and the components of the internal circuit can be protected, and there is no need to increase connectors, reduce space occupation, and save costs.

[0064] Embodiment 2

[0065] See also Figure 5 , Figure 51 is a flow chart of a control method disclosed in an embodiment of the present invention, wherein the method is applied in a control circuit, and the control circuit is applied in an electronic device provided with at least one controller, wherein the control circuit includes a level conversion control circuit and a switch switching control circuit, wherein a first data terminal of the level conversion control circuit is electrically connected to a first data transmission terminal of the switch switching control circuit, an enable terminal of the switch switching control circuit is used to be electrically connected to the controller, a signal control terminal of the switch switching control circuit is used to be electrically connected or wirelessly connected to a signal touch module, a second data transmission terminal of the switch switching control circuit is used to be electrically connected to a data transmission terminal of the controller; a second data terminal of the level conversion control circuit is used to be electrically connected to a data transmission terminal of a data interface circuit, such as Figure 5 As shown, the method includes:

[0066] 101. A level conversion control circuit receives a first electronic signal sent by a data interface circuit, converts the first electronic signal to obtain a second electronic signal, and sends the second electronic signal to a switch switching control circuit.

[0067] 102. The switch switching control circuit receives the second electronic signal and the mode signal sent by the signal touch module, and under the control of the controller, selects a target port matching the mode signal from all ports in the second data transmission end of the switch switching control circuit according to the mode signal, and sends the second electronic signal to the controller through the selected target port, so that the controller performs a matching operation according to the received second electronic signal.

[0068] It should be noted that for the description of the switch switching control circuit, the level conversion control circuit and the data interface circuit involved in the method, please refer to the detailed description of the relevant contents of the above-mentioned embodiment 1, which will not be repeated here.

[0069] It can be seen that implementation Figure 5 The described method can integrate the level conversion control circuit and the switch switching control circuit inside the electronic device, so as to realize two-way communication of different voltages between the controller and the data interface circuit without disassembling the device, perform line simulation debugging, burning, and capture LOGs for the electronic device, upgrade the electronic device, protect the housing of the electronic device and the components of the internal circuit, and do not need to add connectors, thereby reducing space occupancy and saving costs.

[0070] In an optional embodiment, the method further comprises the following steps:

[0071] In the process of performing the matching operation, the controller collects the data transmission rate of sending data to the data interface circuit side, receives the data loading rate fed back by the data interface circuit side, and determines whether the data transmission rate is less than the data loading rate. When the judgment result is yes, it determines whether the rate difference of the data loading rate minus the data transmission rate is greater than or equal to a preset rate difference threshold;

[0072] When it is determined that the rate difference is greater than or equal to the preset rate difference threshold, the data transmission rate of the controller is corrected according to the rate difference and the data type, and data is sent to the data interface circuit side according to the corrected data transmission rate. The data type includes one of a burning program type, a simulation debugging type, and a capture LOG type. The corrected data transmission rate is greater than the data transmission rate before correction.

[0073] It can be seen that in the two-way communication process, when this optional embodiment determines that the data sending rate of the controller to the electronic device is much lower than the data loading rate of the electronic device, the data sending rate of the controller is automatically corrected according to the data type and the rate difference, thereby improving the accuracy of determining the data sending rate and performing data sending. It can improve the data sending rate while ensuring accurate and reliable data transmission, thereby helping to save data processing time and further facilitating the electronic device to be put into use quickly.

[0074] In another optional embodiment, the method further comprises the following steps:

[0075] When it is determined that the rate difference is less than a preset rate difference threshold, the controller receives the circuit heating rate and the current temperature of the circuit fed back from the data interface circuit side;

[0076] The controller estimates the temperature change of the electronic device according to the circuit heating rate and the current temperature of the circuit, and analyzes the influence of temperature on data processing according to the data type; when the influence is less than or equal to the preset influence threshold and the temperature change is used to indicate that the temperature rise rate is less than or equal to the preset temperature rise rate threshold, the actual presentation result of the data after the data is loaded on the data interface circuit side and the preset presentation result of the data are obtained, and the data transmission rate is corrected according to the temperature rise rate, the influence, the rate difference, the actual presentation result, the preset presentation result and the data type, and the data is sent to the data interface circuit side according to the corrected data transmission rate. Among them, the corrected data transmission rate is greater than the data transmission rate before correction.

[0077] It can be seen that this optional embodiment can adjust the data sending rate according to actual conditions by combining the temperature rise rate of the circuit, the influence of temperature on data processing, the difference between the data sending rate and the data loading rate, the actual data presentation result and the corresponding preset presentation result, and the data type to correct the data sending rate when it is determined that the data sending rate of the controller to the electronic device is almost the same as the data loading rate of the electronic device, thereby further improving the accuracy and reliability of determining the data sending rate, thereby further ensuring the accurate and reliable transmission of data while improving the data sending rate.

[0078] Embodiment 3

[0079] See also Figure 6 , Figure 6 It is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention, and the electronic device is any electronic device (for example: audio and video electronic device) that needs to perform one or more functions such as online simulation debugging, burning programs, and capturing LOGs to achieve upgrading and includes at least one controller, and the electronic device also includes a control circuit as in Embodiment 1 and is used to implement the control method in Embodiment 2. It should be noted that for a detailed description of the control circuit, please refer to the specific description of the relevant content in Embodiment 1, and for a detailed description of the control method, please refer to the specific description of the relevant content in Embodiment 2, and this embodiment will not be repeated.

[0080] It can be seen that implementation Figure 6 The electronic device described can integrate a level conversion control circuit and a switch switching control circuit inside the electronic device, so as to realize two-way communication of different voltages between a controller and a data interface circuit without disassembling the device, perform line simulation debugging, burning, and capture LOGs for the electronic device, and upgrade the electronic device, thereby protecting the housing of the electronic device and components of the internal circuit, and there is no need to add connectors, thereby reducing space occupancy and saving costs.

[0081] Embodiment 4

[0082] An embodiment of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute some or all of the steps in the control method disclosed in the second embodiment of the present invention.

[0083] A control circuit, a control method and an electronic device disclosed in an embodiment of the present invention are introduced in detail above. Specific embodiments are used in this article to illustrate the principles and implementation methods of the present invention. However, the above preferred embodiments are not used to limit the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for a person skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scopes without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be based on the scope defined in the claims.

Claims

1. A control circuit, applied to an electronic device provided with at least one controller, It is characterized in that The control circuit includes a level conversion control circuit, a switch switching control circuit and a data interface circuit, wherein: The first data terminal of the level conversion control circuit is electrically connected to the first data transmission terminal of the switch switching control circuit, the enable terminal of the switch switching control circuit is used to be electrically connected to the controller, the signal control terminal of the switch switching control circuit is used to be electrically connected or wirelessly connected to a signal touch control module, and the second data transmission terminal of the switch switching control circuit is used to be electrically connected to the data transmission terminal of the controller; the second data terminal of the level conversion control circuit is electrically connected to the data transmission terminal of the data interface circuit; The level conversion control circuit is used to receive the first electronic signal sent by the data interface circuit, convert the electronic signal to obtain a second electronic signal, and send the second electronic signal to the switch control circuit; The switch control circuit is used to receive the second electronic signal and the mode signal sent by the signal touch module, and under the control of the controller, select a target port matching the mode signal from all ports in the second data transmission end according to the mode signal, and send the second electronic signal to the controller through the target port, so that the controller performs a matching operation according to the received second electronic signal; Wherein, the level conversion control circuit includes a first conversion module, a second conversion module, a first pull-up resistor and a second pull-up resistor; Wherein, the first pole of the first conversion module and one end of the first pull-up resistor are both electrically connected to the data transmission positive end of the switch switching control circuit, the second pole of the first conversion module and the other end of the first pull-up resistor are both used to be electrically connected to a first voltage source, and the third pole of the first conversion module is electrically connected to the data control end of the data interface circuit; The first pole of the second conversion module and one end of the second pull-up resistor are both electrically connected to the data transmission negative end of the switch switching control circuit, the second pole of the second conversion module and the other end of the second pull-up resistor are both used to be electrically connected to the first voltage source, and the third pole of the second conversion module is electrically connected to the data transmission end of the data interface circuit; Among them, the data transmission end of the data interface circuit includes a data control end and a data transmission end; the first data transmission end of the switch switching control circuit includes the data transmission positive end of the switch switching control circuit and the data transmission negative end of the switch switching control circuit, the first data end of the level conversion control circuit includes the first pole of the first conversion module and the first pole of the second conversion module, and the second data end of the level conversion control circuit includes the third pole of the first conversion module and the third pole of the second conversion module.

2. The control circuit according to claim 1, It is characterized in that The type of the target module includes a MOS tube type, and the target module includes the first conversion module and the second conversion module, wherein: When the type of the target module is the MOS tube type, the first electrode, the second electrode, and the third electrode of the target module are a source electrode, a gate electrode, and a drain electrode, respectively.

3. The control circuit according to claim 1 or 2, It is characterized in that The level conversion control circuit further includes a pull-up module and a voltage isolation module, wherein the pull-up module includes a third pull-up resistor and a fourth pull-up resistor; Wherein, one end of the third pull-up resistor and one end of the fourth pull-up resistor are both electrically connected to the negative electrode of the voltage isolation module, the other end of the third pull-up resistor is electrically connected to the data control end of the data interface circuit; the other end of the fourth pull-up resistor is electrically connected to the data transmission end of the data interface circuit, and the positive electrode of the voltage isolation module is used to be electrically connected to the second voltage source; Wherein, the pull-up module is used to enhance the working voltage of the electronic device corresponding to the data interface circuit when it is working; The voltage isolation module is used to isolate the external current from flowing into the electronic device corresponding to the data interface circuit during the operation of the electronic device corresponding to the data interface circuit.

4. The control circuit according to claim 3, It is characterized in that The voltage isolation module includes a diode, wherein: The cathode of the diode is electrically connected to one end of the third pull-up resistor and one end of the fourth pull-up resistor respectively, and the anode of the diode is used to be electrically connected to the second voltage source.

5. The control circuit according to claim 4, It is characterized in that The voltage isolation module further includes a current limiting unit, and the current limiting unit is arranged between the diode and the second voltage source or between the pull-up module and the diode; Wherein, the current limiting unit is used to limit the current of the branch where the diode is located.

6. The control circuit according to any one of claims 1, 2, 4 and 5, It is characterized in that The types of all the ports corresponding to the second data transmission end of the switch switching control circuit include one or more of a clock type, a data transmission type and a general serial type.

7. The control circuit according to claim 6, It is characterized in that The switch switching control circuit is used to select a target port matching the mode signal from all ports in the second data transmission end of the switch switching control circuit according to the mode signal, specifically comprising: When the mode signal is a first mode signal, selecting the universal serial type port from all ports of the second data transmission end of the switch switching control circuit as a target port matching the first mode signal according to the first mode signal; When the mode signal is a second mode signal, selecting a port of the data transmission type from all ports of the second data transmission end of the switch switching control circuit according to the second mode signal as a target port matching the second mode signal; When the mode signal is a third mode signal, selecting a port of the clock type from all ports in the second data transmission end of the switch switching control circuit according to the third mode signal as a target port matching the third mode signal; The first mode signal, the second mode signal and the third mode signal are different from each other.

8. A control method, It is characterized in that The control method is applied to a control circuit, wherein the control circuit is applied to an electronic device provided with at least one controller, and the control circuit comprises a level conversion control circuit and a switch switching control circuit, wherein a first data terminal of the level conversion control circuit is electrically connected to a first data transmission terminal of the switch switching control circuit, an enable terminal of the switch switching control circuit is used to be electrically connected to the controller, a signal control terminal of the switch switching control circuit is used to be electrically connected or wirelessly connected to a signal touch control module, a second data transmission terminal of the switch switching control circuit is used to be electrically connected to a data transmission terminal of the controller; the second data terminal of the level conversion control circuit is electrically connected to a data transmission terminal of a data interface circuit, and the method comprises; The level conversion control circuit receives the first electronic signal sent by the data interface circuit, converts the electronic signal to obtain a second electronic signal, and sends the second electronic signal to the switch switching control circuit; The switch switching control circuit receives the second electronic signal and the mode signal sent by the signal touch module, and under the control of the controller, selects a target port matching the mode signal from all ports in the second data transmission end of the switch switching control circuit according to the mode signal, and sends the second electronic signal to the controller through the selected target port, so that the controller performs a matching operation according to the received second electronic signal; Wherein, the level conversion control circuit includes a first conversion module, a second conversion module, a first pull-up resistor and a second pull-up resistor; Wherein, the first pole of the first conversion module and one end of the first pull-up resistor are both electrically connected to the data transmission positive end of the switch switching control circuit, the second pole of the first conversion module and the other end of the first pull-up resistor are both used to be electrically connected to a first voltage source, and the third pole of the first conversion module is electrically connected to the data control end of the data interface circuit; The first pole of the second conversion module and one end of the second pull-up resistor are both electrically connected to the data transmission negative end of the switch switching control circuit, the second pole of the second conversion module and the other end of the second pull-up resistor are both used to be electrically connected to the first voltage source, and the third pole of the second conversion module is electrically connected to the data transmission end of the data interface circuit; Among them, the data transmission end of the data interface circuit includes a data control end and a data transmission end; the first data transmission end of the switch switching control circuit includes the data transmission positive end of the switch switching control circuit and the data transmission negative end of the switch switching control circuit, the first data end of the level conversion control circuit includes the first pole of the first conversion module and the first pole of the second conversion module, and the second data end of the level conversion control circuit includes the third pole of the first conversion module and the third pole of the second conversion module.

9. A computer storage medium, It is characterized in that The computer storage medium stores computer instructions, and when the computer instructions are called, the control method according to claim 8 is executed.

10. An electronic device, comprising at least one controller, It is characterized in that The electronic device further comprises a control circuit as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Intelligent interface circuit and electronic equipment

    CN107743211A

  • Switch switching circuit and method of semiconductor test system

    CN113252950A

  • Multifunctional matrix switcher based on USB TYPE-C interface

    CN210781063U

  • Control circuit, cigarette case, cigarette rod, electronic cigarette, and control method for electronic cigarette

    WO2022002031A1