CN104182315A - Circuit for controlling debugging function, electronic equipment and corresponding debugging equipment thereof - Google Patents

Circuit for controlling debugging function, electronic equipment and corresponding debugging equipment thereof Download PDF

Info

Publication number
CN104182315A
CN104182315A CN201410437652.1A CN201410437652A CN104182315A CN 104182315 A CN104182315 A CN 104182315A CN 201410437652 A CN201410437652 A CN 201410437652A CN 104182315 A CN104182315 A CN 104182315A
Authority
CN
China
Prior art keywords
level signal
debug
unit
detecting unit
signal
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.)
Granted
Application number
CN201410437652.1A
Other languages
Chinese (zh)
Other versions
CN104182315B (en
Inventor
毕春光
刘进
孙学斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Qingdao Hisense Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201410437652.1A priority Critical patent/CN104182315B/en
Publication of CN104182315A publication Critical patent/CN104182315A/en
Application granted granted Critical
Publication of CN104182315B publication Critical patent/CN104182315B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a circuit for controlling a debugging function, electronic equipment and corresponding debugging equipment thereof, and relates to the field of electronic equipment. While a data transmission access and a debugging access share one port, the debugging function of the electronic equipment can be normally ensured when the system of the electronic equipment is down. The circuit comprises a main control chip unit, a multiplex port and a debugging switch, wherein the debugging switch comprises a control end, a first end and a second end; the multiplex port is connected with the first end of the debugging switch, and the main control chip unit is connected with the second end of the debugging switch; the control end of the debugging switch is used for receiving a first level signal or a second level signal; the first level signal is used for controlling the debugging switch to be turned off, and the second level signal is used for controlling the debugging switch to be turned on.

Description

A kind of circuit, electronic equipment and corresponding commissioning device thereof of controlling debug function
Technical field
The present invention relates to electronic device field, relate in particular to a kind of circuit, electronic equipment and corresponding commissioning device thereof of controlling debug function.
Background technology
For realizing the debugging to the software function of electronic equipment, on electronic equipment, need to arrange the port of debugging use, in prior art, in order to save electronic equipment cost and port resource, how multiplexing electronic equipment debug port is in other data communication port, forms multiplexing port.By the control of software, multiplexing port can be realized the function of data communication, also can realize debug function.Such as, the USB of mobile terminal (Universal Serial Bus, USB (universal serial bus)) port can be realized the transmission to the debugging of mobile terminal and usb data; The VGA of televisor (Video Graphics Array, Video Graphics Array) port, can realize transmission and the debugging to TV of vision signal.
But in multiplexing port, when data transmission path and a port of debugging path sharing, as shown in Figure 1, may produce the unsettled phenomenon of system of electronic equipment.This be because the debug function of electronic equipment unanimously in opening, and at multiplexing port, by data transmission path, carry out the process of data transmission, state labile due to the data-signal transmitting, may trigger debugging path, running status to electronic equipment exerts an influence, and causes the system of electronic equipment unstable.
In order to realize data transmission path and port of debugging path sharing, electronic equipment can open or cut out by software set the debug function of electronic equipment.When needs are debugged electronic equipment, by software set, open debug function, open debugging path, now multiplexing port, as debug port, can be debugged electronic equipment by multiplexing port; When not needing electronic equipment to debug, by software set no, now debug path blockade, be multiplexing port and only can carry out data transmission, can not to electronic equipment, debug by this data communication port.
Inventor finds when implementing prior art, when the debug function of electronic equipment is closed, if being in, electronic equipment crashes or other malfunction that cannot control by system, now cannot open debug function by software set, cannot open debugging path, thereby can not to the failure cause of electronic equipment, locate in time by multiplexing port.Although existing technical scheme has realized data transmission path and debugging path sharing port, but cannot guarantee when the system of electronic equipment is delayed machine normally the opening of the debug function of electronic equipment.
Summary of the invention
Embodiments of the invention provide a kind of circuit, electronic equipment and corresponding commissioning device thereof of controlling debug function, when realizing data transmission path and port of debugging path sharing, guaranteed that the debug function of electronic equipment can normally be opened when the system of electronic equipment is delayed machine.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, the embodiment of the present invention provides a kind of circuit of controlling debug function, comprising: main control chip unit, multiplexing port, also comprises: debug switch; Described debug switch comprises: control end, first end and the second end; Wherein, described multiplexing port is connected with the first end of described debug switch, and described main control chip unit is connected with the second end of described debug switch; The control end of described debug switch, for receiving the first level signal or second electrical level signal; Described the first level signal is used for controlling debug switch closure, and described second electrical level signal is used for controlling debug switch and opens; When described debug switch is closed, the debugging path conducting between described multiplexing port and described main control chip unit; When described debug switch is opened, the debugging path between described multiplexing port and described main control chip unit disconnects.
Second aspect, the embodiment of the present invention provides a kind of electronic equipment of controlling debug function, comprises the circuit of the control debug function described in above-described embodiment.
The third aspect, the embodiment of the present invention provides a kind of commissioning device, comprising: signal output unit, debugging unit; Described signal output unit is connected with the control end of the debug switch of the circuit of control debug function, for controlling the closure of described debug switch; Described debugging unit is connected with the multiplexing port of the circuit of described control debug function, for the main control chip unit to the circuit of described control debug function, debugs; Wherein, the circuit of described control debug function is the circuit of the control debug function described in above-described embodiment.
The embodiment of the present invention provides a kind of circuit, electronic equipment and corresponding commissioning device thereof of controlling debug function, comprising: main control chip unit, debug switch, multiplexing port; Multiplexing port is connected with the first end of described debug switch, main control chip unit is connected with the second end of debug switch, the control end of debug switch is used for receiving the first level signal or second electrical level signal, wherein the first level signal is used for controlling debug switch closure, and second electrical level signal is used for controlling debug switch and opens.Like this, the level signal that can receive according to the control end of debug switch is controlled debug switch and is opened with closed, when the control end of debug switch receives the first level signal, control debug switch is closed, and when debug switch is closed, debugging path conducting between multiplexing port and main control chip unit, the debug function that is main control chip unit is opened, thereby can debug main control chip unit.When the control end of debug switch receives second electrical level signal, control debug switch is opened, and when debug switch is closed, debugging path disconnection between multiplexing port and main control chip unit is the debug function of main control chip unit and closes, thereby can not debug main control chip unit.Therefore the present invention can control by foregoing circuit the open and close of the debug function of main control chip unit, and without open the debug function of main control chip unit by the mode of software set, when having realized data transmission path and a port of debugging path sharing, guaranteed that the debug function of electronic equipment can normally be opened when the system of electronic equipment is delayed machine.
Accompanying drawing explanation
Fig. 1 is data transmission path and the structural representation of debugging a port of path sharing in prior art;
A kind of structural representation of controlling the circuit of debug function that Fig. 2 embodiment of the present invention provides;
The another kind that Fig. 3 provides for the embodiment of the present invention is controlled the structural representation of the circuit of debug function;
The another kind that Fig. 4 provides for the embodiment of the present invention is controlled the structural representation of the circuit of debug function;
The another kind that Fig. 5 provides for the embodiment of the present invention is controlled the structural representation of the circuit of debug function;
The structural representation of a kind of commissioning device that Fig. 6 provides for the embodiment of the present invention;
Fig. 7 is the structural representation of the signal output unit of the commissioning device shown in Fig. 6;
A kind of circuit of debug function and topology example figure of commissioning device of controlling that Fig. 8 provides for the embodiment of the present invention.
Reference numeral:
101-main control chip unit, 102-debug switch, 103-multiplexing port, 104-signaling conversion circuit, 1041-earphone jack, 1042-the first filter unit, 1043-the second filter unit, 1044-the first detecting unit, 10411-L channel terminal, 10412-R channel terminal, 1045-the second detecting unit, 10413-inserts and detects pin, 501-signal output unit, 502-debugging unit, 5011-Voltage-output module, 5012-L channel link, 5013-R channel link, 5014-earth terminal.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of circuit of controlling debug function, as shown in Figure 2, comprising: main control chip unit 101, debug switch 102, multiplexing port 103.Described debug switch 102 comprises: control end, first end and the second end.
Wherein, described multiplexing port 103 is connected with the first end of described debug switch 102, and described main control chip unit 101 is connected with the second end of described debug switch 102.
The control end of described debug switch 102, for receiving the first level signal or second electrical level signal.
Wherein, described the first level signal is used for controlling debug switch 102 closures, and described second electrical level signal is used for controlling debug switch and opens.When described debug switch 102 is closed, the debugging path conducting that described multiplexing port 103 and described main control chip unit are 101.When described debug switch 102 is opened, the debugging path that described multiplexing port 103 and described main control chip unit are 101 disconnects.
Concrete, when its debug function need to be opened in main control chip unit 101, now the control end of debug switch 102 receives the first level signal, debug switch 102 closures, by after debug switch 102 closures, main control chip unit 101 is connected with multiplexing port 103, is the debugging path conducting of 103 of main control chip unit 101 and multiplexing ports, and now commissioning device can be debugged main control chip unit 101.That is to say that now the debug function of main control chip unit 101 is opened.
When main control chip unit 101 does not need to open its debug function, now the control end of debug switch 102 receives second electrical level signal, debug switch 102 is opened, after debug switch 102 is opened, debugging path between multiplexing port 103 and main control chip unit 101 disconnects, not conducting, being main control chip unit 101 is not connected with multiplexing port 103, so commissioning device can not be debugged by 103 pairs of main control chip unit 101 of multiplexing port, that is to say that now the debug function of main control chip unit 101 is not opened.
It should be noted that, in embodiments of the present invention, can when second electrical level signal is low level signal, control debug switch and open, when the first level signal is high level signal, control debug switch closure.Certainly, can when the first level signal is low level signal, control debug switch closure, control debug switch and open when second electrical level signal is high level signal, the present invention does not limit this.In embodiments of the present invention, the second electrical level signal of take is controlled debug switch during as low level signal and is opened, and controls that debug switch is closed to be described for example when the first level signal is high level signal.
It should be noted that, when second electrical level signal is low level signal, controlling debug switch opens, while controlling debug switch closure when the first level signal is high level signal, second electrical level signal can be that voltage is zero level signal, certainly can also be the level signal that other voltages are less than the voltage of the first level signal, the present invention limit this.
Like this, by foregoing circuit, realize the opening and closing of debug function of controlling main control chip unit by hardware circuit, owing to not needing to debug in main control chip unit, closed its debug function like this, when multiplexing port condition data signal is unstable, the equipment that also can not affect normally moves.When main control chip unit need to be debugged, can open timely its debug function, avoided can not locating abnormal problem owing to opening in time its debug function.
Further, the circuit of above-mentioned control debug function, as shown in Figure 3, also comprises: signaling conversion circuit 104.
Wherein, described signaling conversion circuit 104 is connected with the control end of described debug switch 103, for reception control signal, and exports the first level signal or second electrical level signal to the control end of described debug switch 103 according to described control signal.
Concrete, signaling conversion circuit 104 is connected with the control end of debug switch 103, can be after receiving control signal, this control signal can be converted to corresponding the first level signal or second electrical level signal, and then can control the control end that debug switch 103 closures or first level signal of opening or second electrical level signal export debug switch 103 to.
Be, when main control chip unit 101 does not need to open its debug function, signaling conversion circuit 104 is level signal according to the level signal of the control signal output of its reception, thereby this second electrical level signal is exported to the control end of debug switch 102, and then controls debug switch 102 and open.
When its debug function need to be opened in main control chip unit 101, signaling conversion circuit 104 is the first level signal according to the level signal of the control signal output receiving, thereby this first level signal is exported to the control end of debug switch 102, and then control debug switch 102 closures.
Optionally, described signaling conversion circuit 104, as shown in Figure 4, comprising: earphone jack 1041, the first filter unit 1042, the second filter unit 1043 and the first detecting unit 1044.Described earphone jack 1041 comprises: L channel terminal 10411 and R channel terminal 10412.
Wherein, the first input end of described the first detecting unit 1044 is connected with described L channel terminal 10411 by described the first filter unit 1042; The second input end of described the first detecting unit 1044 is connected with described R channel terminal 10412 by described the second filter unit 1043; The output terminal of described the first detecting unit 1044 is connected with the control end of described debug switch 102.
Described the first detecting unit 1044, for receiving the control signal by described L channel terminal 10411 and 10412 inputs of described R channel terminal, and changes described control signal into the first level signal or second electrical level signal.
Concrete, signaling conversion circuit 104 can utilize the circuit of existing earphone jack to realize.In existing earphone jack, increase by the first filter unit 1042, the second filter units 1043, and the first detecting unit 1044.The first filter unit 1042, for filtering ac signal, to the first input end transmission DC signal of described the first detecting unit 1044.The second filter unit 1043, for filtering ac signal, to the second input end transmission DC signal of described the first detecting unit 1044.
It should be noted that, in earphone jack 1041, also comprise L channel output unit and R channel output unit (not expressing) in Fig. 4, and L channel output unit is connected with L channel terminal 10411, so that the electric signal of L channel output unit output is by 10411 outputs of L channel terminal.R channel output unit is connected with R channel terminal 10412, so that the electric signal of R channel output unit output is by 10412 outputs of R channel terminal.
Due to L channel output unit and R channel output unit meeting output AC electric signal, now, the first filter unit 1042 can filter out the ac signal of L channel output unit output, the second filter unit 1043 second sound channel output units 10412 can filter out the ac signal of R channel output unit output, have avoided electric signal transmission to the first detecting unit 1043 of L channel output unit and the output of R channel output unit.
It should be noted that, in the time of need to opening its debug function in main control chip unit 101, what the first detecting unit 1044 received is the different two-way level signal of voltage by L channel terminal 10411 with the control signal of R channel terminal 10412 inputs.The first detecting unit 1044 can receive high level signal by L channel terminal 10411, by R channel terminal 10412, receives low level signal.Certainly, also can receive low level signal by L channel terminal 10411, by R channel terminal 10412, receive high level signal, the present invention does not limit the control signal specifically receiving, in the time of only need need to opening its debug function in main control chip unit 101, what the first detecting unit 1044 received is the different level signal of two-way voltage by described L channel terminal 10411 with the control signal of described R channel terminal 10412 inputs.
Exemplary, when its debug function need to be opened in main control chip unit 101, the first detecting unit 1044 can receive by L channel terminal 10411 level signal of 10V (volt), by R channel terminal 10412, receive the level signal lower than 10V, for example receive the level signal of 0V, the different level signal of two-way voltage that now the first detecting unit 1044 receives by L channel terminal 10411 and R channel terminal 10412, can export high level signal and be the first level signal to the control end of debug switch 102, to control debug switch 102 closures.
Or, the first detecting unit 1044 can receive by L channel terminal 10411 level signal of 10V (volt), by R channel terminal 10412, receive the level signal higher than 10V, for example receive the level signal of 20V, the different level signal of two-way voltage that now the first detecting unit 1044 receives by L channel terminal 10411 and R channel terminal 10412, can export high level signal and be the first level signal to the control end of debug switch 102, to control debug switch 102 closures.
That is to say, when needs debug switch 102 is closed, the first detecting unit 1044 can receive the high level signal by 10411 inputs of L channel terminal, reception is by the low level signal of R channel terminal 10412 inputs, the first input end and the second input end that are the first detecting unit 1044 receive the different level signal of voltage, now the first detecting unit 1044 can change the high level signal receiving and low level signal into control debug switch 102 closures the first level signal, and this first level signal is exported to the control end of debug switch 102, to control debug switch 102 closures.
Or, the first detecting unit 1044 can receive the high level signal by 10412 inputs of R channel terminal, reception is by the low level signal of L channel terminal 10411 inputs, the first input end and the second input end that are the first detecting unit 1044 receive the different level signal of voltage, now the first detecting unit 1044 can change the high level signal receiving and low level signal into control debug switch 102 closures the first level signal, and this first level signal is exported to the control end of debug switch 102, to control debug switch 102 closures.
When its debug function need to be closed in main control chip unit 101, what the first detecting unit 1044 received is the two-way level signal that voltage is identical by described L channel terminal 10411 with the control signal of described R channel terminal 10412 inputs.Can receive the identical high level signal by described L channel terminal 10411 and 10412 inputs of described R channel terminal, or low level signal, the present invention does not limit this.
Be, the first detecting unit 1044 can receive high level signal or the low level signal by L channel terminal 10411 and 10412 inputs of R channel terminal, the first input end and the second input end that are the first detecting unit 1044 receive the level signal that voltage is identical, now the first detecting unit 1044 can change the high level signal receiving or low level signal into control debug switch 102 unlatchings second electrical level signal, and this second electrical level signal is exported to the control end of debug switch 102, to control debug switch 102, open.
Exemplary, when its debug function need to be closed in main control chip unit 101, the first detecting unit 1044 can receive by L channel terminal 10411 level signal of 10V (volt), by R channel terminal 10412, receive the level signal that the voltage of the level signal receiving with L channel terminal 10411 equates, be the level signal that R channel terminal 10412 also receives 10V, the equal level signal of two-way voltage that now the first detecting unit 1044 receives by L channel terminal 10411 and R channel terminal 10412, can be second electrical level signal to the control end of debug switch 102 by output low level signal, to control debug switch 102, open.
Optionally, when two input ends of the first detecting unit 1044 all do not have control signal input, being and having inputted voltage to two input ends of the first detecting unit 1044 is zero level signal, now the first detecting unit 1044 is exported second electrical level signals, and the magnitude of voltage of second electrical level signal is zero.
It should be noted that, at needs output sound, while not needing to open the debug function of Unit 101, main control chip unit, the L channel terminal 10411 of earphone jack is the two-way level signal that voltage is identical with the output of R channel terminal, so what the first input end of the first detecting unit 1044 and the second input end received is the level signal that two-way voltage is identical, the first detecting unit 1044 is according to the level signal of its first input end and the reception of the second input end, what export is second electrical level signal, thereby can not trigger the closure of debug switch 102.Also just have a talk about, the first detecting unit 1044 is not easy by false triggering.
Further, as shown in Figure 5, described signaling conversion circuit 104 also comprises: the second detecting unit 1045, described earphone jack 1041 also comprises: insert and detect pin 10413.
The first input end of described the second detecting unit 1045 detects pin 10413 with described insertion and is connected; The second input end of described the second detecting unit 1045 is connected with the output terminal of described the first detecting unit 1044; The output terminal of described the second detecting unit 1045 is connected with described main control chip unit 101.
Described the second detecting unit 1045, for receiving the level signal of the insertion detection signal at described detection pin 10413 places and the output of the output terminal of described the first detecting unit 1044, and export headset detection electric signal to described main control chip unit 101 according to the level signal of the output terminal output of described insertion detection signal and described the first detecting unit 1044.
Wherein, the level signal of the output terminal of described the first detecting unit 1044 output comprises: the first level signal or second electrical level signal.
Now, described main control chip unit 101 can determine whether ear speaker device access according to described headset detection electric signal.
Concrete, in existing earphone jack, added the first filter unit 1042, the second filter units 1043, and first detecting unit 1044, realize after the closure and unlatching of controlling debug switch 102, in order to guarantee the normal work of earphone jack, increased by the second detecting unit 1045.
It should be noted that, the second detecting unit 1045 is when two input end receives the different two-way level signal of voltage, and the electric signal that main control chip unit 101 can be determined to ear speaker device plugged earphone jack institute foundation is defined as headset detection electric signal.In embodiments of the present invention, the electric signal that main control chip unit 101 can determine ear speaker device plugged earphone jack institute foundation of take describes as high level signal as example, now at the second detecting unit 1045 when two input end receives the different two-way level signal of voltage, high level signal is sent to main control chip unit 101 as headset detection electric signal.The second detecting unit 1045, when two input end receives the identical two-way level signal of voltage, can be determined main control chip unit 101 and not have the electric signal of ear speaker device plugged earphone jack institute foundation to be defined as headset detection electric signal.In embodiments of the present invention, take main control chip unit 101 can determine and not have the electric signal of ear speaker device plugged earphone jack institute foundation to describe as low level signal as example.
Owing to inserting detection pin 10413, be connected with the contact of described L channel terminal 10411, so when having ear speaker device plugged earphone jack 1041, ear speaker device can disconnect and insert detect being connected of pin 10413 and described L channel terminal 10411, inserts and detects pin 10413 to the first input end transmission high level signal of the second detecting unit 1045.When ear speaker device plugged earphone jack 1041, ear speaker device is identical to the first input end of the first detecting unit 1044 and the level signal of the second input end transmission by L channel terminal 10411 and R channel terminal 10412.Because the first detecting unit 1044 is only when two input ends receive the different two-way level signal of voltage, the high level signal that just can export control debug switch 102 closures is the first level signal, now the level signal of two of the first detecting unit 1044 input ends is identical, so the low level signal of debug switch 102 unlatchings is controlled in the first detecting unit 1044 outputs, is second electrical level signal.Because the output terminal of the first detecting unit 1044 is connected with the second input end of the second detecting unit 1045, so the first detecting unit 1044 inputs to the second detecting unit 1045 by the low level signal of its output.Now the first input end of the second detecting unit 1045 receives high level signal, and the second input end receives low level signal, the second detecting unit 1045 output high level signals as headset detection electric signal transmission to main control chip unit 101.Main control chip unit 101 receives after headset detection electric signal, and detecting headset detection electric signal is high level signal, thereby has determined ear speaker device plugged earphone jack 1041.
Like this, foregoing circuit utilizing earphone jack realize to control debug switch closed with open, control main control chip unit 101 debug function unlatching and closed time, can guarantee again the normal work of earphone jack.
It should be noted that, headset detection electric signal is other electric signal also, and the present invention does not limit this.
Optionally, described the first filter unit 1042 comprises: the first resistance, and the first electric capacity.
Wherein, one end of described the first resistance is connected with described L channel terminal 10411, and the described first resistance other end is connected with the first input end of described the first detecting unit 1044, and the other end of described the first resistance is by described the first capacity earth.
Described the second filter unit 1043 comprises: the second resistance, and the second electric capacity.
Wherein, one end of described the second resistance is connected with described R channel terminal 10412, and the other end of described the second resistance is connected with the second input end of described the first detecting unit 1044, and the other end of described the second resistance is by described the second capacity earth.
Optionally, debug switch 102 is: MOS (metal-oxide-semiconductor, Metal-oxide-semicondutor) pipe.
It should be noted that, debug switch is that metal-oxide-semiconductor refers to that debug switch can be N-type metal-oxide-semiconductor, can be also P type metal-oxide-semiconductor.Certainly, debug switch can also be with being other devices with switching function, such as relay, and switch chip etc., the present invention does not limit this.
Optionally, the second detecting unit 1045 is: XOR gate.
Optionally, the first detecting unit 1044 is: XOR gate.
Optionally, main control chip unit is: MCU (Micro Control Unit, micro-control unit).
It should be noted that, in embodiments of the present invention, the first resistance, the first electric capacity, the second resistance and the second electric capacity can be realized for the combination of one or more devices, be that above-mentioned the first resistance and the second resistance can comprise at least one resistance, while comprising at least two resistance in above-mentioned the first resistance and the second resistance, what the resistance in described the first resistance and the second resistance can be in parallel, also can connect, and the size of described resistance can be fixed, also can change; Above-mentioned the first electric capacity and the second electric capacity can comprise at least one electric capacity, while comprising at least two electric capacity in above-mentioned the first electric capacity and the second electric capacity, electric capacity in described the first electric capacity and the second electric capacity can be in parallel, also can connect, and the size of described electric capacity can be fixed, also can change.
The embodiment of the present invention provides a kind of circuit of controlling debug function, comprising: main control chip unit, debug switch, multiplexing port; Multiplexing port is connected with the first end of described debug switch, main control chip unit is connected with the second end of debug switch, the control end of debug switch is used for receiving the first level signal or second electrical level signal, wherein the first level signal is used for controlling debug switch closure, and second electrical level signal is used for controlling debug switch and opens.Like this, the level signal that can receive according to the control end of debug switch is controlled debug switch and is opened with closed, when the control end of debug switch receives the first level signal, control debug switch is closed, and when debug switch is closed, debugging path conducting between multiplexing port and main control chip unit, the debug function that is main control chip unit is opened, thereby can debug main control chip unit.When the control end of debug switch receives second electrical level signal, control debug switch is opened, and when debug switch is closed, debugging path disconnection between multiplexing port and main control chip unit is the debug function of main control chip unit and closes, thereby can not debug main control chip unit.Therefore the present invention can control by foregoing circuit the open and close of the debug function of main control chip unit, and without open the debug function of main control chip unit by the mode of software set, when having realized data transmission path and a port of debugging path sharing, guaranteed that the debug function of electronic equipment can normally be opened when the system of electronic equipment is delayed machine.
The embodiment of the present invention provides a kind of electronic equipment of controlling debug function, comprises the circuit of the control debug function described in above-described embodiment.
The embodiment of the present invention provides a kind of commissioning device, as shown in Figure 6, comprising: signal output unit 501, debugging unit 502.
Described signal output unit 501, is connected with the control end of debug switch of controlling the circuit of debug function, for controlling the closure of described debug switch.
Described debugging unit 502 is connected with the multiplexing port of the circuit of described control debug function, for the main control chip unit to the circuit of described control debug function, debugs.
Wherein, the circuit of described control debug function is the circuit of the control debug function described in above-described embodiment.
Optionally, when the circuit of described control debug function does not comprise signaling conversion circuit, described signal output unit 501 output the first level signals are to the control end of described debug switch.
Further, when the circuit of described control debug function comprises signaling conversion circuit, described signal output unit 501 is connected with the control end of described debug switch by described signaling conversion circuit, be used for to the different two-way level signal of described signaling conversion circuit output voltage, so that described signaling conversion circuit is exported the first level signal to the control end of described debug switch.
Further, the circuit of described control debug function, as shown in Figure 7, described signal output unit 501 comprises: Voltage-output module 5011, L channel link 5012, R channel link 5013 and earth terminal 5014.
Wherein, described L channel link 5012 is connected with described Voltage-output module 5011, for exporting high level signal.Described R channel link 5013 is connected 5014 with described earth terminal, for output low level signal.
Now, the control signal that signal output unit 501 sends is level signal.
Like this, the L channel link 5012 of signal output unit 501 can be to L channel terminal input high level signal, the R channel link 5012 of signal output unit 501 can be to R channel terminal input low level signal, guaranteed that signal output unit 501 is to L channel terminal and the different level signal of R channel terminal input voltage, make two input ends of the first detecting unit receive the different level signal of voltage by the first filter unit and the second filter unit, thereby can export the first level signal of controlling debug switch 102 closures.
Optionally, the Voltage-output module 5011 of signal output unit 501 can be arranged in same device with debugging unit 502.
Example, the circuit of control debug function and the topology example figure of commissioning device that Fig. 8 provides for the embodiment of the present invention.Suppose that the first level signal is high level signal, second electrical level signal is low level signal, and main control chip unit 101 is: MCU, debug switch 102 is: N-type metal-oxide-semiconductor, and described the first detecting unit 1044 is XOR gate, described the second detecting unit 1045 is XOR gate, the first resistance in described the first filter unit 1042 comprises a resistance R 4, the first electric capacity comprises a capacitor C 3, and the second resistance in described the second filter unit 10423 comprises resistance R 5, the second electric capacity and comprises a capacitor C 4.Earphone jack 1041 comprises: L channel output unit and a capacitor C 2, R channel output unit and a capacitor C 1.Wherein, capacitor C 2 is for leaching the DC noise signal of L channel output unit output, and capacitor C 1 is for leaching the DC noise signal of R channel output unit output.In described earphone jack 1041, also comprise: resistance R 1, resistance R 2, resistance R 3, and resistance R 1 is much larger than resistance R 3.Wherein, insert detection one end of pin 10413 and an end in contact of L channel terminal 10411 and be connected, the first end of resistance R 1 is connected with the other end that inserts detection pin 10413, and the second end of resistance R 1 connects power supply.Resistance R 1 is for the protection of circuit.The first end of resistance R 2 is connected with R channel terminal 10412, the second end ground connection of resistance R 2, and the first end of resistance R 3 is connected with the other end of L channel terminal 10411, the second end ground connection of resistance R 3.Resistance R 2 and resistance R 3 are for the current value of balance L channel output unit and the output of described R channel output unit, so that L channel output unit is consistent with the voice signal of described R channel output unit output.Described signal output unit 501 also comprises resistance R 6, R7, and wherein, L channel link 5012 is connected with Voltage-output module 5011 by resistance R 6.Described R channel link 5013 is connected with earth terminal 5014 by resistance R 7.
In main control chip unit 101, do not need to debug, its debug function need to be closed, and while there is no ear speaker device plugged earphone jack, the one end of now inserting detection pin 10413 is connected with one end of L channel terminal 10411, owing to inserting the other end of detection pin 10413, by resistance R 1, be connected with power supply, the other end of L channel terminal 10411 is connected with resistance R 3, and the other end ground connection of R3, like this, insert to detect between pin 10413 and L channel terminal 10411 and form loop, because resistance R 1 is much larger than resistance R 3, after dividing potential drop, insert the voltage detecting on pin 10413 less, for low level signal, insert and detect pin 10413 to the first input end transmission low level signal of the second detecting unit 1045.Owing to there is no equipment plugged earphone jack, so L channel terminal 10411 and R channel terminal 10412 do not receive electric signal, now can think that L channel terminal 10411 and R channel terminal 10412 input identical low level signal to first input end and second input end of the first detecting unit 1044, so changing the identical control signal of first input end and the reception of the second input end into second electrical level signal, the first detecting unit 1044 is low level signal, by its output terminal, export the second input end of the second detecting unit 1045 and the control end of debug switch 102 to.The first detecting unit 1044 output second electrical level signals are low level signal to the control end of debug switch 102 and control debug switch 102 unlatchings, and then disconnected multiplexing port 103 and main control chip unit 101 between debugging path, the debug function of main control chip unit 101 is closed, and now debugging unit 502 can not be debugged by 103 pairs of main control chip unit 101 of multiplexing port.And, the first input end of the second detecting unit 1045 and the second input end all receive low level signal, do not receive different level signals, the second detecting unit 1045 passes through its output terminal output low level signal to main control chip unit 101, main control chip unit 101, when receiving low level signal, is determined and be there is no ear speaker device plugged earphone jack.
In main control chip unit 101, do not need to debug, its debug function is closed, and while having ear speaker device plugged earphone jack, insertion due to ear speaker device, insertion detection one end of pin 10413 and one end of L channel terminal 10411 are disconnected, inserting the loop of detecting between pin 10413 and L channel terminal 10411 disconnects, owing to inserting the other end of detection pin 10413, by resistance R 1, be connected with power supply, so, the voltage that inserts detection pin 10413 is larger, for high level signal, insert and detect pin 10413 to the first input end transmission high level signal of the second detecting unit 1045.During ear speaker device plugged earphone jack, to L channel terminal 10411 and the identical level signal of R channel terminal 10412 input voltages, the control signal by L channel terminal 10411 and 10412 inputs of R channel terminal that now the first detecting unit 1044 receives is identical, the first detecting unit 1044 changes the identical control signal of first input end and the reception of the second input end into low level signal and is second electrical level signal, by its output terminal, exports the second input end of the second detecting unit 1045 and the control end of debug switch 102 to.The first detecting unit 1044 output low level signals are second electrical level signal to the control end of debug switch 102 and control debug switch 102 unlatchings, and then disconnected multiplexing port 103 and main control chip unit 101 between debugging path, the debug function of main control chip unit 101 is closed, and now debugging unit 502 can not be debugged by 103 pairs of main control chip unit 101 of multiplexing port.Yet, the first input end of the second detecting unit 1045 receives high level signal, the second input end receives low level signal, receive the different level signal of voltage, so the second detecting unit 1045 is exported high level signal to main control chip unit 101 by its output terminal, main control chip unit 101, when receiving high level signal, defines ear speaker device plugged earphone jack.
When debug function need to be opened in main control chip unit, commissioning device plugged earphone jack now, due to debugging commissioning device plugged earphone jack, the L channel link 5012 of signal output unit 501 is connected with L channel terminal 10411, and R channel link 5013 is connected with R channel terminal 10412.And during commissioning device plugged earphone jack, insertion detection one end of pin 10413 and one end of L channel terminal 10411 are disconnected, inserting the loop of detecting between pin 10413 and L channel terminal 10411 disconnects, owing to inserting the other end of detection pin 10413, by resistance R 1, be connected with power supply, so, the voltage that inserts detection pin 10413 is larger, is high level signal, inserts and detects pin 10413 to the first input end transmission high level signal of the second detecting unit 1045.Because one end of the L channel link 5012 of signal output unit 501 is connected with Voltage-output module 5011 by resistance R 6, so L channel link 5012 provides high level signal to L channel terminal 10411.The R channel link 5013 of signal output unit 501 is connected with earth terminal 5014 by resistance R 7, so R channel link 5013 provides low level signal to R channel terminal 10412.Therefore, L channel terminal 10411 is the first input end input high level signal to the first detecting unit 1044 by the first filter unit 1042, R channel terminal 10412 is the second input end input low level signal to the first detecting unit 1044 by the second filter unit 1043, now the first input end of the first detecting unit 1044 and the second input end receive respectively high level signal and low level signal, the first detecting unit 1044 changes the high level signal of its reception and low level signal into high level signal and is the first level signal, by its output terminal, export the second input end of the second detecting unit 1045 and the control end of debug switch 102 to.The first detecting unit 1044 output high level signals are the first level signal to the control end of debug switch 102, control debug switch 102 closures, and then the debugging path of 101 of conducting multiplexing port 103 and main control chip unit, debugging unit 502 can be debugged 103 pairs of main control chip unit 101 of multiplexing port.And, the output terminal of the first detecting unit 1044 is to the second input end input high level signal of the second detecting unit 1045, so, the first input end of the second detecting unit 1045 receives high level signal, the second input end also receives high level signal, do not receive the different level signal of voltage, the second detecting unit 1045 passes through its output terminal output low level signal to main control chip unit 101, main control chip unit 101, when receiving low level signal, is determined and be there is no ear speaker device plugged earphone jack.
The embodiment of the present invention provides a kind of circuit, electronic equipment and corresponding commissioning device thereof of controlling debug function, comprising: main control chip unit, signaling conversion circuit, debug switch, multiplexing port; Described signaling conversion circuit is connected with the control end of described debug switch, for reception control signal, and exports the first level signal or second electrical level signal to the control end of described debug switch according to described control signal; Wherein, the first level signal is used for controlling debug switch closure, and described second electrical level signal is used for controlling debug switch and opens; Multiplexing port is connected with the first end of described debug switch, and main control chip unit is connected with the second end of debug switch.Like this, signaling conversion circuit can be according to the control signal of its reception, and output is controlled debug switch and opened and the control end that is closed to debug switch.When the control end of debug switch receives the first level signal, control debug switch is closed, and when debug switch is closed, the debugging path conducting between multiplexing port and main control chip unit, the debug function that is main control chip unit is opened, thereby can debug main control chip unit.When the control end of debug switch receives second electrical level signal, control debug switch is opened, and when debug switch is closed, debugging path disconnection between multiplexing port and main control chip unit is the debug function of main control chip unit and closes, thereby can not debug main control chip unit.Therefore the present invention can control by foregoing circuit the open and close of the debug function of main control chip unit, and without open the debug function of main control chip unit by the mode of software set, when having realized data transmission path and a port of debugging path sharing, guaranteed that the debug function of electronic equipment can normally be opened when the system of electronic equipment is delayed machine.By the circuit multiplexer of controlling debug function during to earphone jack, by the first detecting unit and the first filter unit and the second filter unit, can guarantee to control the normal use of debug function, by the second detecting unit, can guarantee the normal use of earphone jack, thereby can save electronic equipment cost and port resource.
Finally it should be noted that: the above; it is only the specific embodiment of the present invention; but protection scope of the present invention is not limited to this; anyly be familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by the described protection domain with claim.

Claims (12)

1. a circuit of controlling debug function, comprising: main control chip unit, and multiplexing port, is characterized in that, also comprises: debug switch; Described debug switch comprises: control end, first end and the second end; Wherein,
Described multiplexing port is connected with the first end of described debug switch, and described main control chip unit is connected with the second end of described debug switch;
The control end of described debug switch, for receiving the first level signal or second electrical level signal; Described the first level signal is used for controlling debug switch closure, and described second electrical level signal is used for controlling debug switch and opens; When described debug switch is closed, the debugging path conducting between described multiplexing port and described main control chip unit; When described debug switch is opened, the debugging path between described multiplexing port and described main control chip unit disconnects.
2. circuit according to claim 1, is characterized in that, also comprises: signaling conversion circuit,
Described signaling conversion circuit is connected with the control end of described debug switch, for reception control signal, and exports the first level signal or second electrical level signal to the control end of described debug switch according to described control signal.
3. circuit according to claim 2, is characterized in that,
Described signaling conversion circuit comprises: earphone jack, the first filter unit, the second filter unit and the first detecting unit; Described earphone jack comprises: L channel terminal and R channel terminal;
The first input end of described the first detecting unit is connected with described L channel terminal by described the first filter unit; The second input end of described the first detecting unit is connected with described R channel terminal by described the second filter unit; The output terminal of described the first detecting unit is connected with the control end of described debug switch;
Described the first detecting unit, for receiving the control signal by described L channel terminal and the input of described R channel terminal, and changes described control signal into the first level signal or second electrical level signal.
4. circuit according to claim 3, is characterized in that,
Described signaling conversion circuit also comprises the second detecting unit, and described earphone jack also comprises: insert and detect pin;
The first input end of described the second detecting unit detects pin with described insertion and is connected; The second input end of described the second detecting unit is connected with the output terminal of described the first detecting unit; The output terminal of described the second detecting unit is connected with described main control chip unit;
Described the second detecting unit, for receiving the level signal of the insertion detection signal at described detection pin place and the output of the output terminal of described the first detecting unit, and export headset detection electric signal to described main control chip unit according to the level signal of the output terminal output of described insertion detection signal and described the first detecting unit; Wherein, the level signal of the output terminal of described the first detecting unit output comprises: the first level signal or second electrical level signal.
5. according to the circuit described in claim 3 or 4, it is characterized in that,
Described the first filter unit comprises: the first resistance, the first electric capacity, wherein, one end of described the first resistance is connected with described L channel terminal, the other end of described the first resistance is connected with the first input end of described the first detecting unit, and the other end of described the first resistance is by described the first capacity earth;
Described the second filter unit comprises: the second resistance, the second electric capacity, wherein, one end of described the second resistance is connected with described R channel terminal, the other end of described the second resistance is connected with the second input end of described the first detecting unit, and the other end of described the second resistance is by described the second capacity earth.
6. circuit according to claim 5, is characterized in that,
Described debug switch is: Metal-oxide-semicondutor metal-oxide-semiconductor.
7. circuit according to claim 6, is characterized in that,
Described the second detecting unit is: XOR gate.
8. circuit according to claim 7, is characterized in that,
Described the first detecting unit is: XOR gate.
9. an electronic equipment of controlling debug function, is characterized in that, comprises the circuit of the control debug function described in claim 1-8 any one.
10. a commissioning device, is characterized in that, comprising: signal output unit, debugging unit;
Described signal output unit is connected with the control end of the debug switch of the circuit of control debug function, for controlling the closure of described debug switch;
Described debugging unit is connected with the multiplexing port of the circuit of described control debug function, for the main control chip unit to the circuit of described control debug function, debugs; Wherein, the circuit of described control debug function is the circuit of the control debug function described in claim 1-8 any one.
11. commissioning devices according to claim 10, is characterized in that,
When the circuit of described control debug function comprises signaling conversion circuit, described signal output unit is connected with the control end of described debug switch by described signaling conversion circuit, be used for to the different two-way level signal of described signaling conversion circuit output voltage, so that described signaling conversion circuit is exported the first level signal to the control end of described debug switch.
12. commissioning devices according to claim 11, is characterized in that,
Described signal output unit comprises: Voltage-output module, L channel link, R channel link and earth terminal; Wherein,
Described L channel link is connected with described Voltage-output module, for exporting high level signal; Described R channel link is connected with described earth terminal, for output low level signal.
CN201410437652.1A 2014-08-29 2014-08-29 A kind of circuit, electronic equipment and its corresponding commissioning device of control debugging function Active CN104182315B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410437652.1A CN104182315B (en) 2014-08-29 2014-08-29 A kind of circuit, electronic equipment and its corresponding commissioning device of control debugging function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410437652.1A CN104182315B (en) 2014-08-29 2014-08-29 A kind of circuit, electronic equipment and its corresponding commissioning device of control debugging function

Publications (2)

Publication Number Publication Date
CN104182315A true CN104182315A (en) 2014-12-03
CN104182315B CN104182315B (en) 2017-11-07

Family

ID=51963382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410437652.1A Active CN104182315B (en) 2014-08-29 2014-08-29 A kind of circuit, electronic equipment and its corresponding commissioning device of control debugging function

Country Status (1)

Country Link
CN (1) CN104182315B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016095245A1 (en) * 2014-12-18 2016-06-23 深圳Tcl数字技术有限公司 Loudspeaker driving signal abnormality detection circuit and loudspeaker protection circuit
CN106407107A (en) * 2016-08-31 2017-02-15 无锡市电子仪表工业有限公司 Auxiliary software debugging method of universal type optical module
CN111289885A (en) * 2020-03-06 2020-06-16 湖南国科微电子股份有限公司 Debugging system and method for power-on and power-off of chip
CN111824045A (en) * 2020-07-14 2020-10-27 上海创功通讯技术有限公司 Vehicle-mounted equipment's interface module and vehicle-mounted equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110087939A1 (en) * 2000-04-28 2011-04-14 Texas Instruments Incorporated Dual mode test access port method and apparatus
CN201805529U (en) * 2010-09-09 2011-04-20 惠州Tcl移动通信有限公司 Earphone interface shared by serial port download line and earphone, and mobile terminal shared thereby
CN102164070A (en) * 2010-10-08 2011-08-24 华为技术有限公司 Switchboard and network port and serial port multiplexing method thereof
CN203444464U (en) * 2013-08-30 2014-02-19 深圳天鹏盛电子有限公司 Intelligent terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110087939A1 (en) * 2000-04-28 2011-04-14 Texas Instruments Incorporated Dual mode test access port method and apparatus
CN201805529U (en) * 2010-09-09 2011-04-20 惠州Tcl移动通信有限公司 Earphone interface shared by serial port download line and earphone, and mobile terminal shared thereby
CN102164070A (en) * 2010-10-08 2011-08-24 华为技术有限公司 Switchboard and network port and serial port multiplexing method thereof
CN203444464U (en) * 2013-08-30 2014-02-19 深圳天鹏盛电子有限公司 Intelligent terminal device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016095245A1 (en) * 2014-12-18 2016-06-23 深圳Tcl数字技术有限公司 Loudspeaker driving signal abnormality detection circuit and loudspeaker protection circuit
CN106407107A (en) * 2016-08-31 2017-02-15 无锡市电子仪表工业有限公司 Auxiliary software debugging method of universal type optical module
CN111289885A (en) * 2020-03-06 2020-06-16 湖南国科微电子股份有限公司 Debugging system and method for power-on and power-off of chip
CN111289885B (en) * 2020-03-06 2022-06-03 湖南国科微电子股份有限公司 Debugging system and method for power-on and power-off of chip
CN111824045A (en) * 2020-07-14 2020-10-27 上海创功通讯技术有限公司 Vehicle-mounted equipment's interface module and vehicle-mounted equipment

Also Published As

Publication number Publication date
CN104182315B (en) 2017-11-07

Similar Documents

Publication Publication Date Title
US10528492B2 (en) Circuit, method and apparatus for USB interface sharing
CN101944074B (en) Method and device for realizing OTG based on USB socket
US11416054B2 (en) USB type-C signal interface circuit
CN104035357A (en) Headset, charging and OTG equipment circuit design based on USB socket
CN104103924A (en) High definition multimedia interface hdmi interface unit and multimedia terminal
CN104182315A (en) Circuit for controlling debugging function, electronic equipment and corresponding debugging equipment thereof
CN103237189A (en) Electronic equipment, MHL (mobile high-definition link) connector, MHL system and connector detection method
CN103779972B (en) A kind of simple and easy reliable POE device
CN206074715U (en) A kind of direct current power-fail detection circuit
CN203933930U (en) Earphone interface circuit and portable electron device
CN103391495A (en) Automatic earphone adaptation circuit and adaptation method thereof
CN104093114A (en) Detection device, system and method for headset buttons
CN103888871B (en) Wire control device used for earphone and earphone
CN102624957B (en) Detection system for earphone drive-by-wire button of mobile phone
CN102236630A (en) Multi-equipment connecting system
CN103491412A (en) MHL device identification circuit with standby charging function
CN204314873U (en) A kind of I2C buffer circuit and I2C bus system
CN103108081A (en) Subscriber identity module (SIM) card detection control device of mobile terminal
CN105429246A (en) Circuit and method for automatically disconnecting terminal after full charge
CN204069293U (en) Bluetooth circuit and comprise the blue-tooth device of this Bluetooth circuit
CN104994320B (en) A kind of HDMI service equipments
CN101557099B (en) Module power supply short-circuit protective circuit
CN211375595U (en) Solid state disk recognition device
CN102788925A (en) Fault detection system of communication circuit
CN206077615U (en) HDMI outut devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Patentee after: Hisense Video Technology Co., Ltd

Address before: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Patentee before: HISENSE ELECTRIC Co.,Ltd.

CP01 Change in the name or title of a patent holder