CN115237015B - Control circuit, control method and electronic equipment - Google Patents
Control circuit, control method and electronic equipment Download PDFInfo
- Publication number
- CN115237015B CN115237015B CN202210842283.9A CN202210842283A CN115237015B CN 115237015 B CN115237015 B CN 115237015B CN 202210842283 A CN202210842283 A CN 202210842283A CN 115237015 B CN115237015 B CN 115237015B
- Authority
- CN
- China
- Prior art keywords
- control circuit
- data transmission
- module
- data
- electrically connected
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25257—Microcontroller
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Electronic Switches (AREA)
Abstract
The invention discloses a control circuit, a control method and electronic equipment, wherein a level conversion control circuit and a switch switching control circuit are integrated in the electronic equipment, so that the two-way communication of different voltages between a controller and a data interface circuit can be realized under the condition that the electronic equipment is not required to be disassembled, the electronic equipment is subjected to line simulation debugging, burning and LOG grabbing to upgrade the electronic equipment, the shell of the electronic equipment and parts of an internal circuit are protected, a connector is not required to be added, the space occupation is reduced, and the cost is saved.
Description
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a control circuit, a control method, and an electronic device.
Background
At present, most of electronic devices with HDMI interfaces in the market are reserved with interfaces or seats on an internal circuit board of the electronic device, and when the electronic device is required to be updated and iterated and software is optimally upgraded, the electronic device is disassembled and LOG is grabbed through the reserved interfaces to realize the updated and iterated and the software is optimally upgraded, or the LOG is grabbed through the additionally increased interfaces on the shell of the electronic device to realize the updated and iterated and the software is optimally upgraded.
However, it has been found in practice that the manner of mounting and dismounting is time-consuming and laborious and that it is easy to damage the housing and possibly even the components in the circuit board so that the electronic equipment is directly scrapped; adding interfaces to the product housing can result in increased volume or increased cost of the electronic device.
Disclosure of Invention
The invention provides a control circuit, a control method and electronic equipment, which can carry out line simulation debugging, burning and LOG grabbing on the electronic equipment to upgrade the electronic equipment under the condition of no need of disassembling the electronic equipment.
In order to solve the above technical problems, a first aspect of the present invention discloses a control circuit applied to an electronic device having at least one controller, the control circuit including a level shift control circuit, a switch switching control circuit, and a data interface circuit, wherein:
The first data end of the level conversion control circuit is electrically connected with the first data transmission end of the switch switching control circuit, the enabling end of the switch switching control circuit is electrically connected with the controller, the signal control end of the switch switching control circuit is electrically connected with a signal touch module or wirelessly connected with the signal touch module, and the second data transmission end of the switch switching control circuit is electrically connected with the data transmission end of the controller; the second data end of the level conversion control circuit is electrically connected with the data transmission end of the data interface circuit;
the level conversion control circuit is used for receiving the first electronic signal sent by the data interface circuit, converting the electronic signal to obtain a second electronic signal, and sending the second electronic signal to the switch switching control circuit;
The switch switching control circuit is used for receiving the second electronic signal and the mode signal sent by the signal touch control module, selecting a target port matched with the mode signal from all ports in the second data transmission end according to the mode signal under the control of the controller, and sending the second electronic signal to the controller through the target port so that the controller can execute matched operation according to the received second electronic signal.
As an optional implementation manner, in the first aspect of the present invention, the level shift control circuit includes a first shift module, a second shift module, a first pull-up resistor, and a second pull-up resistor;
One end of the first pole of the first conversion module and one end of the first pull-up resistor are electrically connected with a 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 electrically connected with a first voltage source, and a third pole of the first conversion module is electrically connected with a data control end of the data interface circuit;
One end of the first pole of the second conversion module and one end of the second pull-up resistor are electrically connected with a 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 electrically connected with the first voltage source, and a third pole of the second conversion module is electrically connected with a data transmission end of the data interface circuit;
The data transmission end of the data interface circuit comprises a data control end of the data interface circuit and a data transmission end of the data interface circuit; the first data transmission end of the switch switching control circuit comprises a data transmission positive end of the switch switching control circuit and a data transmission negative end of the switch switching control circuit, the first data end of the level switching control circuit comprises a first pole of the first switching module and a first pole of the second switching module, and the second data end of the level switching control circuit comprises a third pole of the first switching module and a third pole of the second switching module.
In a first aspect of the present invention, the type of the target module includes a MOS transistor type, and the target module includes the first conversion module and the second conversion module, where:
when the type of the target module is the MOS transistor type, the first pole, the second pole and the third pole of the target module are respectively a source electrode, a grid electrode and a drain electrode.
As an optional implementation manner, in the first aspect of the present invention, the level conversion control circuit further includes a pull-up module and a voltage isolation module, where the pull-up module includes a third pull-up resistor and a fourth pull-up resistor;
One end of the third pull-up resistor and one end of the fourth pull-up resistor are electrically connected with the negative electrode of the voltage isolation module, and the other end of the third pull-up resistor is electrically connected with the data control end of the data interface circuit; the other end of the fourth pull-up resistor is electrically connected with a data transmission end of the data interface circuit, and the positive electrode of the voltage isolation module is electrically connected with a second voltage source;
the pull-up module is used for enhancing the working voltage of the electronic equipment corresponding to the data interface circuit when working;
the voltage isolation module is used for isolating external current from flowing into the electronic equipment corresponding to the data interface circuit in the working process of the electronic equipment corresponding to the data interface circuit.
As an alternative embodiment, the voltage isolation module comprises a diode, wherein:
The negative electrode of the diode is electrically connected with one end of the third pull-up resistor and one end of the fourth pull-up resistor respectively, and the positive electrode of the diode is electrically connected with the second voltage source.
As an optional implementation manner, the voltage isolation module further comprises a current limiting unit, wherein the current limiting unit is arranged between the diode and the second voltage source or between the pull-up module and the diode;
the current limiting unit is used for limiting the current of the branch where the diode is located.
As an optional implementation manner, in the first aspect of the present invention, 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 universal serial type.
As an optional implementation manner, in the first aspect of the present invention, the manner for selecting, according to the mode signal, the target port matched with the mode signal from all ports in the second data transmission end of the switch switching control circuit specifically includes:
When the mode signal is a first mode signal, selecting the port of the universal serial type as a target port matched with the first mode signal from all ports in the second data transmission end of the switch switching control circuit according to the first mode signal; when the mode signal is a second mode signal, selecting the port of the data transmission type as a target port matched with the second mode signal from all ports in the second data transmission end of the switch switching control circuit according to the second mode signal; when the mode signal is a third mode signal, selecting the port of the clock type as a target port matched with the third mode signal from all ports in the second data transmission end of the switch switching control circuit according to the third mode signal;
Wherein the first mode signal, the second mode signal, and the third mode signal are different from each other.
The second aspect of the invention discloses a control method, which is applied to a control circuit, wherein the control circuit comprises a level conversion control circuit and a switch switching control circuit, a first data end of the level conversion control circuit is electrically connected with a first data transmission end of the switch switching control circuit, an enabling end of the switch switching control circuit is electrically connected with a controller, a signal control end of the switch switching control circuit is electrically connected with a signal touch control module or wirelessly connected with the controller, and a second data transmission end of the switch switching control circuit is electrically connected with a data transmission end of the controller; the second data end of the level conversion control circuit is electrically connected with the data transmission end of the data interface circuit, and the method comprises the steps of;
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 control module, selects a target port matched with the mode signal from all ports in the second data transmission end of the switch switching control circuit according to the mode signal under the control of the controller, and sends the second electronic signal to the controller through the selected target port so that the controller can execute matched operation according to the received second electronic signal.
The third aspect of the present invention discloses a computer storage medium storing computer instructions for executing some or all of the steps of the control method of the second aspect of the present invention when the computer instructions are called.
The fourth aspect of the invention discloses an electronic device comprising a controller and further comprising a control circuit according to any of the first aspects of the invention.
The implementation of the invention has the following beneficial effects:
According to the invention, the level conversion control circuit and the switch switching control circuit are integrated in the electronic equipment, so that the two-way communication of different voltages between the controller and the data interface circuit can be realized under the condition that the machine is not required to be disassembled, the line simulation debugging, the burning and the LOG grabbing are carried out on the electronic equipment, the electronic equipment is upgraded, the shell of the electronic equipment and the parts of the internal circuit are protected, the connector is not required to be added, the space occupation is reduced, and the cost is saved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a control circuit according to an embodiment of the present invention;
Fig. 2 is a schematic structural diagram of a switch switching control circuit according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a level shift control circuit according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a data interface circuit according to an embodiment of the present invention;
FIG. 5 is a flow chart of a control method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For a better understanding and implementation, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, unless explicitly specified and limited otherwise, the term "electrically connected" in the description of the invention and in the claims and in the above-mentioned figures should be understood in a broad sense, for example, as a fixed electrical connection, as a removable electrical connection, or as an integral electrical connection; can be mechanically and electrically connected or can be mutually communicated; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. Furthermore, the terms first, second and the like in the description and in the claims of the invention and in the foregoing figures, are used for distinguishing between different objects and not for describing a particular sequential order, and are not intended to cover any exclusive inclusion. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
Example 1
Referring to fig. 1, fig. 1 is a schematic structural diagram of a control circuit according to an embodiment of the present invention, where the control circuit may be applied to any electronic device (such as an audio/video electronic device) that needs to perform one or more functions of online simulation debugging, burning procedure, and LOG capturing, and is provided with at least one controller. As shown in fig. 1, the control circuit includes a level shift control circuit, a switch switching control circuit, and a data interface circuit, wherein:
The first data end of the level conversion control circuit is electrically connected with the first data transmission end of the switch switching control circuit, the enabling end of the switch switching control circuit is electrically connected with the controller, the signal control end of the switch switching control circuit is electrically connected or wirelessly connected with the signal touch control module, and the second data transmission end of the switch switching control circuit is electrically connected with the data transmission end of the controller; the second data end of the level conversion control circuit is electrically connected with the data transmission end of the data interface circuit.
In the embodiment of the invention, the level conversion control circuit is used for receiving the first electronic signal sent by the data interface circuit, converting the electronic signal to obtain a second electronic signal and sending the second electronic signal to the switch switching control circuit; the switch switching control circuit is used for receiving the second electronic signal and the mode signal sent by the signal touch control module, selecting a target port matched with the mode signal from all ports in a second data transmission end of the switch switching control circuit according to the mode signal under the control of the controller, and sending the second electronic signal to the controller through the selected target port so that the controller can execute matched operation according to the received second electronic signal. The first electronic signal and the second electronic signal comprise analog signals or digital signals.
In the embodiment of the invention, the level conversion control circuit, the switch switching control circuit and the data interface circuit are integrated in the electronic equipment. The controller comprises, but is not limited to, a single chip microcomputer MCU or a combination of the single chip microcomputer MCU and other devices, wherein the single chip microcomputer MCU can perform a bidirectional communication control function with the data interface circuit through the switch switching control circuit and the level conversion control circuit; the switch switching control circuit includes, but is not limited to, any one of a CH444G chip, a combination of a CH444G chip and other electronic components, a 74HC4052 chip, and a combination of a 74HC4052 chip and other electronic components, which can perform the same switch switching control function. Fig. 2 is a schematic diagram of a switch switching control circuit according to an embodiment of the present invention. Thus, by providing a plurality of kinds of switch switching control circuits, the applicability of the circuit can be improved.
In the embodiment of the present invention, optionally, performing the matching operation includes sending data to the electronic device through the switch switching control circuit, the level conversion control circuit and the data interface circuit after receiving the second electronic signal, to perform one or more of program burning, online simulation debugging and LOG grabbing. The types of all ports corresponding to the second data transmission end of the switch switching control circuit comprise one or more of clock type, data transmission type and universal serial type. The data transmission type port, the universal serial type port and the clock type port can be used for programming the electronic equipment program to realize the upgrade of the electronic equipment; the data transmission type port and the universal serial type port are also used for the functions of on-line simulation debugging, LOG grabbing and the like of the electronic equipment.
In the embodiment of the invention, the signal touch module comprises a wireless touch module (such as a Bluetooth module, a WiFi module and the like) and a wired touch module (such as a key module). Further, the signal touch module may be integrated on the controller, or may be independent of the controller.
In the embodiment of the present invention, the switch switching control circuit is configured to select, from all ports in the second data transmission end of the switch switching control circuit according to the mode signal, a target port matched with the mode signal in a manner that specifically includes:
When the mode signal is a first mode signal, all ports in a second data transmission end of the control circuit are switched from the switch according to the first mode signal, and a universal serial type port is selected as a target port matched with the first mode signal; when the mode signal is a second mode signal, all ports in a second data transmission end of the control circuit are switched from the switch according to the second mode signal, and the ports of the data transmission type are selected as target ports matched with the second mode signal; when the mode signal is a third mode signal, all ports in a second data transmission end of the control circuit are switched from the switch according to the third mode signal, and a clock type port is selected as a target port matched with the third mode signal; wherein the first mode signal, the second mode signal and the third mode signal are different from each other.
In the embodiment of the invention, different mode signals correspond to different interfaces. The switch switching control circuit is exemplified by a CH444G chip U1, wherein the CH444G is a low-resistance broadband bidirectional analog switch chip, and comprises a 2-channel SPQT single-pole four-throw analog switch, a high bandwidth and a low on resistance, and can be used for four-selection switching of electronic signals, when an enable pin EN is at a low level, the CH444G chip starts to work, and when mode signals IN1 and IN0 are respectively at 0 and 0 levels, the S1A, S B is conducted, namely the electronic equipment is IN a self working state; when the mode signals IN1 and IN0 are respectively 0 and 1 level, the S2A, S B path is conducted, namely a universal serial type port USB-, USB+ is connected with a controller, and program burning or online simulation debugging or LOG grabbing is carried out on the electronic equipment; when the mode signals IN1 and IN0 are respectively 1 and 0 level, the S3A, S B way is conducted with TXD and RXD, namely the port of the data transmission type is communicated with the controller, program burning or online simulation debugging or LOG grabbing is carried out on the electronic equipment, when the mode signals IN1 and IN0 are respectively 1 and 1 level, the S4A, S B way is conducted with SWDIO and SWCLK, namely the port of the clock type is communicated with the controller, and program burning is carried out on the electronic equipment.
Therefore, the control circuit described in fig. 1 is implemented by integrating the level conversion control circuit and the switch switching control circuit inside the electronic device, so that the two-way communication of different voltages between the controller and the data interface circuit can be realized without disassembling the electronic device, the line simulation debugging, the burning and the LOG grabbing can be performed on the electronic device, the upgrading of the electronic device can be realized, the shell of the electronic device and the parts of the internal circuit can be protected, the connector is not required to be added, the space occupation is reduced, and the cost is saved.
In an alternative embodiment, as shown in fig. 3, fig. 3 is a schematic structural diagram of a level shift control circuit according to an embodiment of the present invention, where, as shown in fig. 3, the level shift control circuit includes a first shift module, a second shift module, a first pull-up resistor R1 and a second pull-up resistor R2;
One end of the first pole of the first conversion module and one end of the first pull-up resistor R1 are electrically connected with a 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 electrically connected with a first voltage source (such as 3V and 3.3V), and a third pole of the first conversion module is electrically connected with a data control end of the data interface circuit; one end of the first pole and one end of the second pull-up resistor R2 of the second conversion module are electrically connected with a data transmission negative end of the switch switching control circuit, and the other end of the second pole and the other end of the second pull-up resistor R2 of the second conversion module are electrically connected with a first voltage source, and a third pole of the second conversion module is electrically connected with a data transmission end of the data interface circuit. The second data end of the level conversion control circuit comprises a third pole of the first conversion module and a third pole of the second conversion module.
In this alternative embodiment, the data transmission end of the data interface circuit includes a data control end of the data interface circuit and a data transfer end of the data interface circuit; fig. 4 is a schematic structural diagram of a data interface circuit according to an embodiment of the present invention, where, as shown in fig. 4, 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. Further, as shown in fig. 3 and 4, the data interface circuit further includes a fifth resistor R5 and a sixth resistor R6, and are respectively disposed between the data transmitting end RESERVED of the data interface chip hdmi_a_smd and the drain of the N-MOS Q1, and between the data control end CEC of the data interface chip hdmi_a_smd and the drain of the N-MOS Q2. Therefore, the current between the data interface circuit and the level conversion control circuit is limited through the fifth resistor R5 and the sixth resistor R6, so that the electronic components in the circuit are burnt out due to overlarge current in the working process of the electronic equipment or in the process of program burning, online simulation or LOG grabbing, the electronic equipment is damaged, and the service life of the electronic equipment is further prolonged.
In this alternative embodiment, as shown in fig. 2, the first data transmission terminal of the switch switching control circuit includes a data transmission positive terminal YB of the switch switching control circuit and a data transmission negative terminal YA of the switch switching control circuit.
In this alternative embodiment, the type of the target module includes a MOS transistor type, where the target module includes a first conversion module and a second conversion module, and the first data end of the level conversion control circuit includes a first pole of the first conversion module and a first pole of the second conversion module. When the type of the target module is a MOS transistor type, the first pole, the second pole and the third pole of the target module are respectively a source electrode S, a grid electrode G and a drain electrode D. As shown in fig. 3, the first conversion module includes an N-MOS transistor Q1, and the second conversion module includes an N-MOS transistor Q2. Wherein, Q1 (2N 7002) and Q2 (2N 7002) can be replaced by N channel MOS tubes such as SI2310B, AO3400 or FS 2302A. Thus, by using the N-MOS tube to form the level conversion control circuit, the bidirectional communication can be performed with low cost and high driving capability, and the communication efficiency and reliability are improved. Or the level conversion control circuit directly uses a level conversion chip (such as PCA9306DCUR and NC7WZ07P 6X) to perform level conversion between the data interface circuit and the switch switching control circuit, so that the communication with strong driving capability can be performed, the data transmission rate is improved, the size is small, the circuit wiring is convenient, the circuit lines can be provided, and the level conversion control circuit can be connected with a plurality of electronic devices or a plurality of ports of the electronic devices, so that the communication of the plurality of electronic devices or the control of a plurality of functions of the electronic device can be realized at the same time.
In another alternative embodiment, as shown in fig. 3, the level conversion control circuit further includes a pull-up module and a voltage isolation module, where the pull-up module includes a third pull-up resistor R3 and a fourth pull-up resistor R4; one end of the third pull-up resistor R3 and one end of the fourth pull-up resistor R4 are electrically connected with the negative electrode of the voltage isolation module, and the other end of the third pull-up resistor R3 is electrically connected with the data control end of the data interface circuit; the other end of the fourth pull-up resistor R4 is electrically connected with a data transmission end of the data interface circuit, and the anode of the voltage isolation module is electrically connected with a second voltage source (such as 5.0V and 5.5V); the pull-up module is used for enhancing the working voltage of the electronic equipment corresponding to the data interface circuit when working; the voltage isolation module is used for isolating external current from flowing into the electronic equipment corresponding to the data interface circuit in the working process of the electronic equipment corresponding to the data interface circuit. The second voltage source may be a power source integrated inside the electronic device or may be a power source independent of the electronic device.
In this alternative embodiment, optionally, as shown in fig. 3, the voltage isolation module includes a diode D, where a 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 an anode of the diode D is electrically connected to the second voltage source.
In this optional embodiment, further optionally, the voltage isolation module further includes a current limiting unit, where the current limiting unit is disposed between the diode D and the second voltage source or between the pull-up module and the diode D; the current limiting unit is used for limiting the current of the branch where the diode D is located. The current limiting unit can be a current limiting resistor or other electronic components capable of playing a role in current limiting.
The working principle of the control circuit in the embodiment of the invention is described by taking the controller as the MCU and combining with fig. 2 to 4:
IN the embodiment of the invention, when the voltage source is electrified and online simulation debugging or programming program or LOG grabbing is needed, the controller enables the enable end EN of the switch switching control circuit to be IN a low level, the switch switching control circuit starts to work, and the switch switching control circuit selects corresponding ports (USB-, USB+, or TXD, RXD, or SWDIO and SWCLK) to be connected with the controller according to mode signals received by the signal input ends IN0 and IN1 from the signal touch control module. At this time, the data interface chip HDMI_A_SMD transmits the first electronic signal to the N-MOS transistor Q1 and the N-MOS transistor Q2 through the data control terminal CEC and the data transmission terminal RESERVED, the N-MOS transistors Q1 and Q2 convert the received first electronic signal to obtain a second electronic signal, the second electronic signal is transmitted to the switch switching control circuit through the data transmission positive terminal DIO_RX_D+ of the level conversion control circuit, namely the source electrode S of the N-MOS transistor Q1, and the data transmission negative terminal CLK_TX_D-, namely the source electrode S of the N-MOS transistor Q2, The switch switching control circuit transmits the second electronic signal to the controller through the corresponding port (USB-, USB+, or TXD, RXD, or SWDIO, SWCLK), the controller selects data according to the received second electronic signal, and transmits a third electronic signal to the level switching control circuit through the switch switching control circuit, the level switching 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, so that the two-way communication between the data interface chip HDMI_A_SMD (i.e. the electronic equipment) and the controller is realized, Thereby realizing the receiving and transmitting of data, and further realizing the functions of on-line simulation debugging, program burning, LOG grabbing and the like. When the signal flow flows from the data interface circuit to the controller and the data control end CEC and the data transmission end RESERVED of the data interface chip hdmi_a_smd output low level (e.g., 0V), the diodes in the n_mos transistor Q1 and the n_mos transistor Q2 are turned on, so that the n_mos transistor Q1 and the n_mos transistor Q2 are turned on, and the source S of the n_mos transistor Q1 and the source S of the n_mos transistor Q2 of the level conversion control circuit output low level as well; when the data control end CEC and the data transmission end RESERVED of the data interface chip hdmi_a_smd output a high level (e.g., 5V), the n_mos transistor Q1 and the n_mos transistor Q2 are in an cut-off state, and the source S of the n_mos transistor Q1 and the source S of the n_mos transistor Q2 of the level conversion control circuit also output a high level (e.g., 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 level, namely, the level given to the level conversion control circuit by the data transmission positive end DIO_RX_D+ and the data transmission negative end CLK_TX_D-through the switch switching control circuit is low level (0V), the N-MOS tube Q1 and the N-MOS tube Q2 are conducted, 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 level of the level conversion control circuit is high (0V) through the data transmission positive end DIO_RX_D+ and the data transmission negative end CLK_TX_D-by the controller through the switch switching control circuit, the N-MOS tube Q1 and the N-MOS tube Q2 are cut off, the drain electrode D of the N-MOS tube Q1 and the drain electrode D of the N-MOS tube Q2 of the level conversion control circuit output high level (0V), so that the line simulation debugging of the electronic equipment can be realized through the two-way communication of different voltages between the controller and the data interface circuit without disassembling the machine by integrating the level conversion control circuit and the switch switching control circuit inside the electronic equipment, The LOG is burned and grabbed to upgrade the electronic equipment, so that the shell of the electronic equipment and parts of an internal circuit are protected, a connector is not required to be added, the occupied space is reduced, and the cost is saved.
Example two
Referring to fig. 5, fig. 5 is a schematic flow chart of a control method disclosed in an embodiment of the present invention, wherein the method is applied to a control circuit, and the control circuit is applied to 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, a first data end of the level conversion control circuit is electrically connected with a first data transmission end of the switch switching control circuit, an enable end of the switch switching control circuit is electrically connected with the controller, a signal control end of the switch switching control circuit is electrically connected with a signal touch module or wirelessly connected with the signal touch module, and a second data transmission end of the switch switching control circuit is electrically connected with a data transmission end of the controller; the second data terminal of the level shift control circuit is used for being electrically connected with the data transmission terminal of the data interface circuit, as shown in fig. 5, and the method comprises the steps of;
101. the level conversion control circuit receives the first electronic signal sent by the data interface circuit, converts the first electronic signal to obtain a second electronic signal, and sends the second electronic signal to the switch switching control circuit.
102. The switch switching control circuit receives the second electronic signal and the mode signal sent by the signal touch control module, selects a target port matched with the mode signal from all ports in a second data transmission end of the switch switching control circuit according to the mode signal under the control of the controller, and sends the second electronic signal to the controller through the selected target port so that the controller can execute matched operation according to the received second electronic signal.
It should be noted that, for the description of the switch switching control circuit, the level shift control circuit and the data interface circuit related to the method, please refer to the detailed description of the related content of the above embodiment, and the description is omitted herein.
Therefore, the implementation of the method described in fig. 5 can integrate the level conversion control circuit and the switch switching control circuit inside the electronic device, and can realize the two-way communication of different voltages between the controller and the data interface circuit to perform line simulation debugging, burning and LOG grabbing for upgrading the electronic device without disassembling the electronic device, thereby protecting the shell of the electronic device and the parts of the internal circuit, without adding connectors, reducing space occupation and saving cost.
In an alternative embodiment, the method further comprises the steps of:
in the matched operation, the controller collects the data sending rate of sending data to the data interface circuit side, receives the data loading rate fed back by the data interface circuit side, judges whether the data sending rate is smaller than the data loading rate, and judges whether the rate difference value of the data loading rate minus the data sending rate is larger than or equal to a preset rate difference value threshold value when the judgment result is yes;
when the rate difference value is larger than or equal to the preset rate difference value threshold value, correcting the data transmission rate of the controller according to the rate difference value and the data type, and transmitting data to the data interface circuit side according to the corrected data transmission rate. The data type comprises one of a burning program type, a simulation debugging type and a grabbing LOG type. Wherein the corrected data transmission rate is greater than the data transmission rate before correction.
Therefore, in the bidirectional communication process, when the data transmission rate of the controller to the electronic equipment is judged to be much smaller than the data loading rate of the electronic equipment, the data transmission rate of the controller is automatically corrected according to the data type and the rate difference value, the determination accuracy of the data transmission rate can be improved, the data transmission can be carried out, the data transmission rate can be improved while the accurate and reliable data transmission is ensured, and therefore the data processing time is saved, and the electronic equipment is enabled to be used rapidly.
In another alternative embodiment, the method further comprises the steps of:
When the rate difference value is judged to be smaller than the preset rate difference value threshold value, the controller receives the circuit heating rate fed back by the data interface circuit side and the current temperature of the circuit;
The controller predicts the temperature change condition of the electronic equipment according to the circuit heating rate and the current temperature of the circuit, and analyzes the influence degree of the temperature on data processing according to the data type; when the influence degree is smaller than or equal to a preset influence degree threshold and the temperature change condition is used for indicating that the temperature rising rate is smaller than or equal to a preset temperature rising rate threshold, acquiring an actual presentation result of data after the data of the data interface circuit side are loaded and a preset presentation result of the data, correcting the data sending rate according to the temperature rising rate, the influence degree, the rate difference, the actual presentation result, the preset presentation result and the data type, and sending the data to the data interface circuit side according to the corrected data sending rate. Wherein the corrected data transmission rate is greater than the data transmission rate before correction.
Therefore, in the optional embodiment, when the difference between the data sending rate of the controller to the electronic device and the data loading rate of the electronic device is not different, the data sending rate of the data can be adjusted according to the actual situation by combining the temperature rising rate of the circuit, the influence degree of the temperature on the data processing, the difference value between the data sending rate and the data loading rate, the actual data presentation result, the corresponding preset presentation result and the data type correction data sending rate, so that the determination accuracy and reliability of the data sending rate are further improved, and the data sending rate is further improved while the accurate and reliable data sending is further ensured.
Example III
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device is any electronic device (for example, an audio/video electronic device) that needs to perform one or more functions of online simulation debugging, burning procedure, LOG capturing, etc. to achieve upgrading and includes at least one controller, and the electronic device further includes a control circuit as in the first embodiment and is used for implementing the control method in the second embodiment. It should be noted that, for the detailed description of the control circuit, please refer to the detailed description of the related content in the first embodiment, and for the detailed description of the control method, please refer to the detailed description of the related content in the second embodiment, which will not be repeated.
Therefore, the electronic device described in fig. 6 can be implemented by integrating the level conversion control circuit and the switch switching control circuit inside the electronic device, and can realize the two-way communication of different voltages between the controller and the data interface circuit to upgrade the electronic device by line simulation debugging, burning and LOG grabbing without disassembling the electronic device, thereby protecting the shell of the electronic device and the parts of the internal circuit, and reducing the space occupation and the cost without adding connectors.
Example IV
The embodiment of the invention discloses a computer storage medium which stores computer instructions for executing part or all of the steps in the control method disclosed in the second embodiment of the invention when the computer instructions are called.
The control circuit, the control method and the electronic device disclosed in the embodiments of the present invention are described in detail, and specific embodiments are applied to illustrate the principles and implementation of the present invention, but the preferred embodiments are not intended to limit the present invention, and the description of the embodiments is only used to help understand the method and the core idea of the present invention; also, it is apparent to those skilled in the art from this disclosure that many changes can be made in this embodiment and this application without departing from the spirit and scope of the invention, which is set forth in the following claims.
Claims (10)
1. A control circuit for an electronic device having at least one controller, the control circuit comprising a level shift control circuit, a switch switching control circuit and a data interface circuit, wherein:
The first data end of the level conversion control circuit is electrically connected with the first data transmission end of the switch switching control circuit, the enabling end of the switch switching control circuit is electrically connected with the controller, the signal control end of the switch switching control circuit is electrically connected with a signal touch module or wirelessly connected with the signal touch module, and the second data transmission end of the switch switching control circuit is electrically connected with the data transmission end of the controller; the second data end of the level conversion control circuit is electrically connected with the data transmission end of the data interface circuit;
the level conversion control circuit is used for receiving the first electronic signal sent by the data interface circuit, converting the electronic signal to obtain a second electronic signal, and sending the second electronic signal to the switch switching control circuit;
The switch switching control circuit is used for receiving the second electronic signal and the mode signal sent by the signal touch control module, selecting a target port matched with the mode signal from all ports in the second data transmission end according to the mode signal under the control of the controller, and sending the second electronic signal to the controller through the target port so that the controller can execute matched operation according to the received second electronic signal;
the level conversion control circuit comprises a first conversion module, a second conversion module, a first pull-up resistor and a second pull-up resistor;
One end of the first pole of the first conversion module and one end of the first pull-up resistor are electrically connected with a 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 electrically connected with a first voltage source, and a third pole of the first conversion module is electrically connected with a data control end of the data interface circuit;
One end of the first pole of the second conversion module and one end of the second pull-up resistor are electrically connected with a 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 electrically connected with the first voltage source, and a third pole of the second conversion module is electrically connected with a data transmission end of the data interface circuit;
The data transmission end of the data interface circuit comprises a data control end and a data transmission end; the first data transmission end of the switch switching control circuit comprises a data transmission positive end of the switch switching control circuit and a data transmission negative end of the switch switching control circuit, the first data end of the level switching control circuit comprises a first pole of the first switching module and a first pole of the second switching module, and the second data end of the level switching control circuit comprises a third pole of the first switching module and a third pole of the second switching module.
2. The control circuit of claim 1, wherein the type of target module comprises a MOS transistor type, the target module comprising the first conversion module and the second conversion module, wherein:
when the type of the target module is the MOS transistor type, the first pole, the second pole and the third pole of the target module are respectively a source electrode, a grid electrode and a drain electrode.
3. The control circuit according to claim 1 or 2, wherein the level shift control circuit further comprises a pull-up module and a voltage isolation module, the pull-up module comprising a third pull-up resistor and a fourth pull-up resistor;
One end of the third pull-up resistor and one end of the fourth pull-up resistor are electrically connected with the negative electrode of the voltage isolation module, and the other end of the third pull-up resistor is electrically connected with the data control end of the data interface circuit; the other end of the fourth pull-up resistor is electrically connected with a data transmission end of the data interface circuit, and the positive electrode of the voltage isolation module is electrically connected with a second voltage source;
the pull-up module is used for enhancing the working voltage of the electronic equipment corresponding to the data interface circuit when working;
the voltage isolation module is used for isolating external current from flowing into the electronic equipment corresponding to the data interface circuit in the working process of the electronic equipment corresponding to the data interface circuit.
4. A control circuit according to claim 3, wherein the voltage isolation module comprises a diode, wherein:
The negative electrode of the diode is electrically connected with one end of the third pull-up resistor and one end of the fourth pull-up resistor respectively, and the positive electrode of the diode is electrically connected with the second voltage source.
5. The control circuit of claim 4, wherein the voltage isolation module further comprises a current limiting unit disposed between the diode and the second voltage source or between the pull-up module and the diode;
the current limiting unit is used for limiting the current of the branch where the diode is located.
6. The control circuit of any one of claims 1, 2, 4 and 5, wherein 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 universal serial type.
7. The control circuit of claim 6, wherein the means for selecting the target port that matches the mode signal from all ports in the second data transmission side of the switching control circuit based on the mode signal comprises:
when the mode signal is a first mode signal, selecting the port of the universal serial type as a target port matched with the first mode signal from all ports in the second data transmission end of the switch switching control circuit according to the first mode signal;
When the mode signal is a second mode signal, selecting the port of the data transmission type as a target port matched with the second mode signal from all ports in the second data transmission end of the switch switching control circuit according to the second mode signal;
when the mode signal is a third mode signal, selecting the port of the clock type as a target port matched with the third mode signal from all ports in the second data transmission end of the switch switching control circuit according to the third mode signal;
Wherein the first mode signal, the second mode signal, and the third mode signal are different from each other.
8. The control method is characterized in that the control method is applied to a control circuit, wherein the control circuit is applied to an electronic device at least provided with a controller, the control circuit comprises a level conversion control circuit and a switch switching control circuit, a first data end of the level conversion control circuit is electrically connected with a first data transmission end of the switch switching control circuit, an enabling end of the switch switching control circuit is electrically connected with the controller, a signal control end of the switch switching control circuit is electrically connected with a signal touch control module or wirelessly connected with the controller, and a second data transmission end of the switch switching control circuit is electrically connected with a data transmission end of the controller; the second data end of the level conversion control circuit is electrically connected with the data transmission end of the data interface circuit, and the method comprises the steps of;
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 control module, selects a target port matched with the mode signal from all ports in the second data transmission end of the switch switching control circuit according to the mode signal under the control of the controller, and sends the second electronic signal to the controller through the selected target port so that the controller executes matched operation according to the received second electronic signal;
the level conversion control circuit comprises a first conversion module, a second conversion module, a first pull-up resistor and a second pull-up resistor;
One end of the first pole of the first conversion module and one end of the first pull-up resistor are electrically connected with a 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 electrically connected with a first voltage source, and a third pole of the first conversion module is electrically connected with a data control end of the data interface circuit;
One end of the first pole of the second conversion module and one end of the second pull-up resistor are electrically connected with a 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 electrically connected with the first voltage source, and a third pole of the second conversion module is electrically connected with a data transmission end of the data interface circuit;
The data transmission end of the data interface circuit comprises a data control end and a data transmission end; the first data transmission end of the switch switching control circuit comprises a data transmission positive end of the switch switching control circuit and a data transmission negative end of the switch switching control circuit, the first data end of the level switching control circuit comprises a first pole of the first switching module and a first pole of the second switching module, and the second data end of the level switching control circuit comprises a third pole of the first switching module and a third pole of the second switching module.
9. A computer storage medium, wherein the computer storage medium stores computer instructions, when called, performs the control method of claim 8.
10. An electronic device comprising at least a controller, characterized in that the electronic device further comprises a control circuit according to any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210842283.9A CN115237015B (en) | 2022-07-18 | 2022-07-18 | Control circuit, control method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210842283.9A CN115237015B (en) | 2022-07-18 | 2022-07-18 | Control circuit, control method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115237015A CN115237015A (en) | 2022-10-25 |
CN115237015B true CN115237015B (en) | 2024-10-25 |
Family
ID=83673069
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210842283.9A Active CN115237015B (en) | 2022-07-18 | 2022-07-18 | Control circuit, control method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115237015B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107743211A (en) * | 2017-10-27 | 2018-02-27 | Tcl通力电子(惠州)有限公司 | Intelligence interface circuit and electronic equipment |
CN113252950A (en) * | 2021-06-22 | 2021-08-13 | 南京宏泰半导体科技有限公司 | Switch switching circuit and method of semiconductor test system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN210781063U (en) * | 2019-12-12 | 2020-06-16 | 深圳市绿联科技有限公司 | Multifunctional matrix switcher based on USB TYPE-C interface |
WO2022002031A1 (en) * | 2020-06-29 | 2022-01-06 | 绿烟实业(深圳)有限公司 | Control circuit, cigarette case, cigarette rod, electronic cigarette, and control method for electronic cigarette |
-
2022
- 2022-07-18 CN CN202210842283.9A patent/CN115237015B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107743211A (en) * | 2017-10-27 | 2018-02-27 | Tcl通力电子(惠州)有限公司 | Intelligence interface circuit and electronic equipment |
CN113252950A (en) * | 2021-06-22 | 2021-08-13 | 南京宏泰半导体科技有限公司 | Switch switching circuit and method of semiconductor test system |
Also Published As
Publication number | Publication date |
---|---|
CN115237015A (en) | 2022-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2584471A1 (en) | Method and terminal for selecting internal circuit according to USB interface status | |
US10333261B2 (en) | USB signal switching circuit, USB data line, USB signal switching method and storage medium | |
RU2684577C1 (en) | Scheme, method and device for sharing usb interface | |
US11119550B2 (en) | USB device and operation method thereof | |
US7761756B2 (en) | Circuit configuration with serial test interface or serial test operating-mode procedure | |
CN101102119A (en) | A charging detection circuit of appliance device and charging detection method | |
CN101566870A (en) | Computer system and control method thereof | |
CN106445858B (en) | Information processing method, information processing module and electronic equipment | |
EP2796960A1 (en) | Power supply circuit in electronic device and control method thereof | |
US11256225B2 (en) | Data transmission apparatus of circuit breaker controller | |
CN104038207A (en) | Switchover circuit and electronic device | |
US6931141B2 (en) | Hearing aid and a method for operating a hearing aid | |
CN115237015B (en) | Control circuit, control method and electronic equipment | |
US10333585B1 (en) | Repeater device with a plurality of parameter configuration modes and parameter configuration method thereof | |
CN110380719A (en) | Data transmission circuit, control system and the control device of chip | |
JP2002116853A (en) | Usb mounted electronic equipment and use cable to be used therefor | |
CN112948186A (en) | Detection device and detection method of interface signal | |
CN107577574B (en) | Debugging switching circuit and debugging circuit board | |
CN106776101B (en) | Watchdog circuit and signal processing circuit | |
CN112100104B (en) | Universal serial bus device, system and communication equipment | |
CN104679123A (en) | Mainboard and data burning method thereof | |
CN112363966A (en) | Serial port conversion circuit, base station, circuit conversion method and computer storage medium | |
KR20110015742A (en) | Power supply method using UBS interface and portable terminal using same | |
US20250077458A1 (en) | Imaging device | |
CN218603468U (en) | Burning isolation circuit and debugging system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |