CN104182315B - A kind of circuit, electronic equipment and its corresponding commissioning device of control debugging function - Google Patents
A kind of circuit, electronic equipment and its corresponding commissioning device of control debugging function Download PDFInfo
- Publication number
- CN104182315B CN104182315B CN201410437652.1A CN201410437652A CN104182315B CN 104182315 B CN104182315 B CN 104182315B CN 201410437652 A CN201410437652 A CN 201410437652A CN 104182315 B CN104182315 B CN 104182315B
- Authority
- CN
- China
- Prior art keywords
- debugging
- level signal
- unit
- control
- 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.)
- Active
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The present invention provides a kind of circuit, electronic equipment and its corresponding commissioning device of control debugging function, it is related to electronic device field, for while data transmission path and debugging path sharing a port is realized, the system that ensure that in electronic equipment delay machine when, the debugging function of electronic equipment can be opened normally.The circuit includes:Main control chip unit, multiplexing port, in addition to:Debugging switch;Debugging switch includes:Control end, first end and the second end;Wherein, multiplexing port is connected with the first end of debugging switch, and main control chip unit is connected with the second end of debugging switch;The control end of switch is debugged, for receiving the first level signal or second electrical level signal;First level signal is used to control debugging switch closure, and the second electrical level signal is used to control debugging switch to open.
Description
Technical field
The present invention relates to electronic device field, more particularly to a kind of circuit for controlling debugging function, electronic equipment and its right
The commissioning device answered.
Background technology
To realize the port for needing to set debugging on the debugging to the software function of electronic equipment, electronic equipment, existing skill
In order to save electronic equipment cost and port resource in art, electronic equipment debugging is multiplexed in other data communication ports more the port
On, form multiplexing port.By the control of software, multiplexing port can realize the function of data communication, can also realize debugging
Function.Such as, USB (Universal Serial Bus, USB) port of mobile terminal can be realized to movement
The debugging of terminal and the transmission of usb data;VGA (Video Graphics Array, Video Graphics Array) port of television set,
The transmission and the debugging to TV of vision signal can be realized.
But in multiplexing port, in data transmission path and debugging path sharing a port, as shown in figure 1, can
It can produce the unstable phenomenon of the system of electronic equipment.Because the debugging function of electronic equipment is unanimously in unlatching shape
State, and the process carried out data transmission in multiplexing port by data transmission path, due to transmission data-signal state not
It is stable, debugging path may be triggered, the running status on electronic equipment produces influence, cause the system of electronic equipment unstable
It is fixed.
In order to realize data transmission path and debugging path sharing a port, electronic equipment can be opened by software set
Or close the debugging function of electronic equipment.When needing to debug electronic equipment, debugging function is opened by software set,
Debugging path is opened, now multiplexing port is used as debugging port, electronic equipment can be debugged by multiplexing port;
When need not be debugged to electronic equipment, by software set no, path blockade is now debugged, is as multiplexed
Port is only capable of carrying out data transmission, and electronic equipment can not be debugged by this data communication port.
Inventor has found when implementing prior art, when the debugging function of electronic equipment is closed, if electronic equipment is just located
In deadlock or other malfunctions that can not be controlled by system, now debugging function can not be opened by software set, i.e.,
Debugging path can not be opened, thus the failure cause of electronic equipment can not in time be positioned by multiplexing port.It is existing
Although technical scheme realizes data transmission path and debugging path sharing a port, but can not ensure in electronic equipment
System delay machine when, the normal opening of the debugging function of electronic equipment.
The content of the invention
Embodiments of the invention provide a kind of circuit, electronic equipment and its corresponding commissioning device of control debugging function,
While data transmission path and debugging path sharing a port is realized, it is ensured that when the system of electronic equipment delays machine,
The debugging function of electronic equipment can be opened normally.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
In a first aspect, the embodiments of the invention provide a kind of circuit of control debugging function, including:Main control chip unit,
Multiplexing port, in addition to:Debugging switch;The debugging switch includes:Control end, first end and the second end;Wherein, the multiplexing
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
Connect;The control end of the debugging switch, for receiving the first level signal or second electrical level signal;First level signal is used
In control debugging switch closure, the second electrical level signal is used to control debugging switch to open;When the debugging switch closure,
Debugging path conducting between the multiplexing port and the main control chip unit;When the debugging switch is opened, the multiplexing
Debugging path between port and the main control chip unit disconnects.
Second aspect, the embodiments of the invention provide a kind of electronic equipment of control debugging function, including above-described embodiment
The circuit of described control debugging function.
The third aspect, the embodiments of the invention provide a kind of commissioning device, including:Signal output unit, debugging unit;Institute
The control end for stating the debugging switch of circuit of the signal output unit with controlling debugging function is connected, for controlling the debugging switch
Closure;The debugging unit is connected with the multiplexing port of the circuit of the control debugging function, for being debugged to the control
The main control chip unit of the circuit of function is debugged;Wherein, the circuit for controlling debugging function is described in above-described embodiment
Control debugging function circuit.
The embodiment of the present invention provides a kind of circuit, electronic equipment and its corresponding commissioning device of control debugging function, bag
Include:Main control chip unit, debugging switch, multiplexing port;Multiplexing port is connected with the first end of the debugging switch, master control core
Blade unit is connected with the second end of debugging switch, and the control end of debugging switch is used to receive the first level signal or second electrical level
Signal, wherein the first level signal is used to control debugging switch closure, second electrical level signal is used to control debugging switch to open.This
Sample, the level signal that can be received according to the control end of debugging switch controls debugging switch to open with closing, in debugging switch
When control end receives the first level signal, control debugging switch closure, and when debugging switch closure, multiplexing port and master
The debugging path conducting between chip unit is controlled, the as debugging function of main control chip unit is opened, so as to main control chip
Unit is debugged.When the control end of debugging switch receives second electrical level signal, debugging switch is controlled to open, and when tune
When conjunction is closed in runin, the debugging path between multiplexing port and main control chip unit disconnects the debugging function of as main control chip unit
Close, so as to be debugged to main control chip unit.Therefore the present invention can control master control core by foregoing circuit
The open and close of the debugging function of blade unit, the debugging work(without opening main control chip unit by way of software set
Can, while realizing data transmission path and debugging path sharing a port, it is ensured that delayed machine in the system of electronic equipment
When, the debugging function of electronic equipment can be opened normally.
Brief description of the drawings
Fig. 1 is data transmission path in the prior art and the structural representation of debugging path sharing a port;
A kind of Fig. 2 structural representations of the circuit of control debugging function provided in an embodiment of the present invention;
Fig. 3 is the structural representation of the circuit of another control debugging function provided in an embodiment of the present invention;
Fig. 4 is the structural representation of the circuit of another control debugging function provided in an embodiment of the present invention;
Fig. 5 is the structural representation of the circuit of another control debugging function provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of commissioning device provided in an embodiment of the present invention;
Fig. 7 is the structural representation of the signal output unit of the commissioning device shown in Fig. 6;
Fig. 8 is a kind of circuit of control debugging function provided in an embodiment of the present invention and the topology example figure of commissioning device.
Reference:
101- main control chip units, 102- debugging switches, 103- multiplexing ports, 104- signaling conversion circuits, 1041- earphones
Jack, the filter units of 1042- first, the filter units of 1043- second, the detection units of 1044- first, 10411- L channel terminals,
10412- R channel terminals, the detection units of 1045- second, 10413- insertion detection pin, 501- signal output units, 502- debugging
Unit, 5011- voltage output modules, 5012- L channels connection end, 5013- R channels connection end, 5014- earth terminals.
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 carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
The embodiments of the invention provide a kind of circuit of control debugging function, as shown in Fig. 2 including:Main control chip unit
101, debugging switch 102, multiplexing port 103.The debugging switch 102 includes:Control end, first end and the second end.
Wherein, the multiplexing port 103 is connected with the first end of the debugging switch 102, the main control chip unit
101 are connected with the second end of the debugging switch 102.
The control end of the debugging switch 102, for receiving the first level signal or second electrical level signal.
Wherein, first level signal is used to control debugging switch 102 to close, and the second electrical level signal is used to control
Debugging switch is opened.When the debugging switch 102 is closed, between the multiplexing port 103 and the main control chip unit 101
Debug path conducting.When the debugging switch 102 is opened, between the multiplexing port 103 and the main control chip unit 101
Path is debugged to disconnect.
Specifically, when main control chip unit 101 needs to open its debugging function, now debugging switchs 102 control end
Receive the first level signal, debugging switch 102 is closed, will after the closure of debugging switch 102, main control chip unit 101 with it is multiple
Connected with port 103, be to turn on the debugging path between main control chip unit 101 and multiplexing port 103, now commissioning device
Main control chip unit 101 can be debugged.That is now the debugging function of main control chip unit 101 is opened.
When main control chip unit 101 need not open its debugging function, now the control end of debugging switch 102 is received
Second electrical level signal, debugging switch 102 is opened, after debugging switch 102 is opened, multiplexing port 103 and main control chip unit
Debugging path between 101 disconnects, and does not turn on, as main control chip unit 101 is not connected with multiplexing port 103, institute
Main control chip unit 101 can not be debugged by multiplexing port 103 with commissioning device, that is to say, that now main control chip list
The debugging function of member 101 is not turned on.
It should be noted that in embodiments of the present invention, control can be adjusted when second electrical level signal is low level signal
Runin, which is closed, opens, the control debugging switch closure when the first level signal is high level signal.Of course, it is possible in the first level letter
Number be low level signal when control debugging switch closure, second electrical level signal be high level signal when control debugging switch open
Open, the present invention is without limitation.Debugging is controlled to open when in embodiments of the present invention, using second electrical level signal as low level signal
Close and open, illustrated when the first level signal is high level signal exemplified by control debugging switch closure.
It should be noted that control debugging switch is opened when second electrical level signal is low level signal, the first level letter
Number be high level signal when control debugging switch closure when, second electrical level signal can be the level signal that voltage is zero, certainly
It can also be that other voltages are less than the level signal of the voltage of the first level signal, the present invention is without limitation.
So, by foregoing circuit realize by hardware circuit control main control chip unit debugging function opening with
Close, so due to when main control chip unit need not be debugged, its debugging function being closed, in multiplexing port condition data signal
When unstable, do not interfere with equipment yet and normally run.When main control chip unit needs debugging, its debugging can be timely opened
Function, it is to avoid the problem of due to its debugging function can not be opened in time can not positioning abnormal.
Further, the circuit of above-mentioned control debugging function, as shown in figure 3, also including:Signaling conversion circuit 104.
Wherein, the signaling conversion circuit 104 is connected with the control end of the debugging switch 103, for receiving control letter
Number, and the first level signal or second electrical level signal are exported to the control end of the debugging switch 103 according to the control signal.
Specifically, signaling conversion circuit 104 is connected with the control end of debugging switch 103, control signal can received
Afterwards, this control signal can be converted to corresponding first level signal or second electrical level signal, and then debugging can be controlled
The closure of switch 103 or the first level signal or second electrical level signal output opened extremely debug the control end of switch 103.
As, when main control chip unit 101 need not open its debugging function, signaling conversion circuit 104 connects according to it
The level signal of the control signal output of receipts is level signal, so that this second electrical level signal output to debugging is switched into 102
Control end, and then control debugging switch 102 open.
When main control chip unit 101 needs to open its debugging function, signaling conversion circuit 104 is believed according to the control of reception
Number output level signal be the first level signal so that by this first level signal export to debugging switch 102 control end,
And then control debugging switch 102 to close.
Optionally, the signaling conversion circuit 104, as shown in figure 4, including:Earphone jack 1041, the first filter unit
1042nd, the second filter unit 1043 and the first detection unit 1044.The earphone jack 1041 includes:L channel terminal 10411
And R channel terminal 10412.
Wherein, the first input end of first detection unit 1044 passes through first filter unit 1042 and the left side
Sound channel terminal 10411 is connected;Second input of first detection unit 1044 by second filter unit 1043 with
The R channel terminal 10412 is connected;The output end of first detection unit 1044 and the control end of the debugging switch 102
Connection.
First detection unit 1044, for receiving by the L channel terminal 10411 and the R channel terminal
The control signal of 10412 inputs, and the control signal is changed into the first level signal or second electrical level signal.
Specifically, signaling conversion circuit 104 can utilize the circuit realiration of existing earphone jack.Inserted in existing earphone
Kong Shang, increases the first filter unit 1042, the second filter unit 1043, and the first detection unit 1044.First filter unit
1042, for filtering out ac signal, DC signal is transmitted to the first input end of first detection unit 1044.Second
Filter unit 1043, for filtering out ac signal, direct current is transmitted to the second input of first detection unit 1044
Signal.
It should be noted that also include in earphone jack 1041 L channel output unit and R channel output unit (
Do not represented in Fig. 4), and L channel output unit is connected with L channel terminal 10411, in order to which L channel output unit is exported
Electric signal exported by L channel terminal 10411.R channel output unit is connected with R channel terminal 10412, in order to the right side
The electric signal of sound channel output unit output is exported by R channel terminal 10412.
Because L channel output unit and R channel output unit can export ac signal, now, the first filter unit
1042 can filter out the ac signal that L channel output unit is exported, and the output of the second sound channel of the second filter unit 1043 is single
Member 10412 can filter out the ac signal that R channel output unit is exported, it is to avoid L channel output unit and right sound
The electric signal transmission of road output unit output is to the first detection unit 1043.
It should be noted that when main control chip unit 101 needs to open its debugging function, the first detection unit 1044 connects
Receive by L channel terminal 10411 and the control signal that R channel terminal 10412 is inputted be the different two-way level signal of voltage.
First detection unit 1044 can receive high level signal by L channel terminal 10411, be connect by R channel terminal 10412
Receive low level signal.It is of course also possible to receive low level signal by L channel terminal 10411, pass through R channel terminal
10412 receive high level signal, and the present invention is not limited to the control signal specifically received, only need to be in main control chip unit
101 need open its debugging function when, the first detection unit 1044 receive by the L channel terminal 10411 and the right sound
The control signal that road terminal 10412 is inputted is the different level signal of two-way voltage.
Exemplary, when main control chip unit 101 needs to open its debugging function, the first detection unit 1044 can lead to
The level signal that L channel terminal 10411 receives 10V (volt) is crossed, the electricity less than 10V is received by R channel terminal 10412
Ordinary mail number, for example, receive 0V level signal, and now the first detection unit 1044 passes through L channel terminal 10411 and R channel
The different level signal of two-way voltage that terminal 10412 is received, it is the first level signal to tune that can export high level signal
102 control end is closed in runin, to control debugging switch 102 to close.
Or, the first detection unit 1044 can receive the level signal of 10V (volt) by L channel terminal 10411,
Level signal higher than 10V is received by R channel terminal 10412, for example, receives 20V level signal, now the first inspection
Unit 1044 is surveyed by the different level signal of the two-way voltage of L channel terminal 10411 and the reception of R channel terminal 10412, can
It is control end of first level signal to debugging switch 102 to export high level signal, to control debugging switch 102 to close.
That is, when needing to debug the closure of switch 102, the first detection unit 1044 can be received by L channel terminal
The high level signal of 10411 inputs, receives the low level signal inputted by R channel terminal 10412, as the first detection unit
1044 first input end and the second input receive the different level signal of voltage, and now the first detection unit 1044 can be with
The high level signal received and low level signal are changed into the first level signal of the closure of control debugging switch 102, and will
This first level signal is exported to the control end of debugging switch 102, to control debugging switch 102 to close.
Or, the first detection unit 1044 can receive the high level signal inputted by R channel terminal 10412, receive by
The low level signal that L channel terminal 10411 is inputted, the first input end and the second input of as the first detection unit 1044
The different level signal of voltage is received, now the first detection unit 1044 can be by the high level signal received and low level
Signal is changed into the first level signals for controlling the closure of debugging switch 102, and this first level signal is exported to debugging switch
102 control end, to control debugging switch 102 to close.
Main control chip unit 101 need close its debugging function when, the first detection unit 1044 receive by the left side
The control signal that sound channel terminal 10411 and the R channel terminal 10412 are inputted is voltage identical two-way level signal.Can be with
Receive the identical high level signal inputted by the L channel terminal 10411 and the R channel terminal 10412, or low level
Signal, the present invention is without limitation.
As, the first detection unit 1044 can receive what is inputted by L channel terminal 10411 and R channel terminal 10412
The first input end and the second input of high level signal or low level signal, as the first detection unit 1044 receive voltage
Identical level signal, now the first detection unit 1044 high level signal received or low level signal can be changed into
Control debugging switch 102 open second electrical level signals, and by this second electrical level signal output to debug switch 102 control
End, to control debugging switch 102 to open.
Exemplary, when main control chip unit 101 needs to close its debugging function, the first detection unit 1044 can lead to
The level signal that L channel terminal 10411 receives 10V (volt) is crossed, is received and L channel end by R channel terminal 10412
The equal level signal of voltage for the level signals that son 10411 is received, as R channel terminal 10412 also receives 10V electricity
Ordinary mail number, the two-way voltage that now the first detection unit 1044 is received by L channel terminal 10411 and R channel terminal 10412
Equal level signal, it is control end of the second electrical level signal to debugging switch 102 that can export low level signal, to control
Debugging switch 102 is opened.
Optionally, it is to the first inspection when two inputs of the first detection unit 1044 are inputted without control signal
Two inputs for surveying unit 1044 have input the level signal that voltage is zero, the electricity of now the first detection unit 1044 output second
Ordinary mail number, and the magnitude of voltage of second electrical level signal is zero.
It should be noted that needing to export sound, it is not necessary to open the debugging function of the unit of main control chip unit 101
When, L channel terminal 10411 and R channel the terminal output of earphone jack are voltage identical two-way level signals, so the
What the first input end of one detection unit 1044 and the second input were received detects for two-way voltage identical level signal, first
The level signal that unit 1044 is received according to its first input end and the second input, output for second electrical level signal so that
The closure of debugging switch 102 will not be triggered.Also just have a talk about, the first detection unit 1044 is not easy by false triggering.
Further, as shown in figure 5, the signaling conversion circuit 104 also includes:Second detection unit 1045, the ear
Machine transplanting of rice hole 1041 also includes:Insertion detection pin 10413.
The first input end of second detection unit 1045 is connected with the insertion detection pin 10413;Second inspection
The second input for surveying unit 1045 is connected with the output end of first detection unit 1044;Second detection unit 1045
Output end be connected with the main control chip unit 101.
Second detection unit 1045, for receiving the insertion detection signal and described the at the detection pin 10413
The level signal of the output end output of one detection unit 1044, and signal and first detection unit are detected according to the insertion
The level signal of 1044 output end output exports headset detection electric signal to the main control chip unit 101.
Wherein, the level signal of the output end output of first detection unit 1044 includes:First level signal or
Two level signals.
Now, the main control chip unit 101 can determine whether ear speaker device according to the headset detection electric signal
Access.
Specifically, the first filter unit 1042 is with the addition of in existing earphone jack, the second filter unit 1043, and the
One detection unit 1044, after closure and the unlatching of realizing control debugging switch 102, in order to ensure the normal work of earphone jack
Make, add the second detection unit 1045.
It should be noted that the second detection unit 1045 receives the different two-way level letter of voltage in two input
Number when, the electric signal that main control chip unit 101 is capable of determining that ear speaker device insertion earphone jack institute foundation is defined as ear
Machine testing electric signal.In embodiments of the present invention, it has been capable of determining that ear speaker device insertion earphone is inserted with main control chip unit 101
The electric signal of hole institute foundation is illustrates exemplified by high level signal, now in the second detection unit 1045 in two input
When receiving the different two-way level signal of voltage, sent high level signal as headset detection electric signal to main control chip list
Member 101.Second detection unit 1045 is when two input receives voltage identical two-way level signal, then by master control core
Blade unit 101 is capable of determining that the electric signal for inserting earphone jack institute foundation without ear speaker device is defined as headset detection telecommunications
Number.In embodiments of the present invention, no ear speaker device insertion earphone jack institute foundation is capable of determining that with main control chip unit 101
Electric signal be low level signal exemplified by illustrate.
Due to the connection of the contact with the L channel terminal 10411 of insertion detection pin 10413, so there is ear speaker device to insert
When entering earphone jack 1041, ear speaker device can disconnect the connection of insertion detection pin 10413 and the L channel terminal 10411, insert
Enter to detect that pin 10413 sends high level signal to the first input end of the second detection unit 1045.Earphone is inserted in ear speaker device
During jack 1041, ear speaker device is by L channel terminal 10411 and R channel terminal 10412 to the of the first detection unit 1044
The level signal that one input and the second input are sent is identical.Because the first detection unit 1044 is only in two input terminations
When receiving the different two-way level signal of voltage, just can the high level signals of the closure of output control debugging switch 102 be first
Level signal, now the level signal of two inputs of the first detection unit 1044 is identical, so the first detection unit 1044
The low level signal that output control debugging switch 102 is opened is second electrical level signal.It is defeated due to the first detection unit 1044
Go out end to be connected with the second input of the second detection unit 1045, so, the low level that the first detection unit 1044 is output it
Signal is inputted to the second detection unit 1045.Now the first input end of the second detection unit 1045 receives high level signal,
Second input receives low level signal, and the second detection unit 1045 exports high level signal and passed as headset detection electric signal
Transport to main control chip unit 101.Main control chip unit 101 is received after headset detection electric signal, detects headset detection telecommunications
Number be high level signal, so that it is determined that go out to have ear speaker device insert earphone jack 1041.
So, foregoing circuit is realizing that control debugging switch closure, with opening, controls main control chip list using earphone jack
While the unlatching of the debugging function of member 101 and closure, the normal work of earphone jack is can guarantee that again.
It should be noted that headset detection electric signal can also be other electric signals, the present invention is without limitation.
Optionally, first filter unit 1042 includes:First resistor, and the first electric capacity.
Wherein, one end of the first resistor is connected with the L channel terminal 10411, the first resistor other end with
The first input end connection of first detection unit 1044, and the other end of the first resistor passes through first electric capacity
Ground connection.
Second filter unit 1043 includes:Second resistance, and the second electric capacity.
Wherein, the connection of one end of the second resistance and the R channel terminal 10412, the second resistance it is another
End is connected with the second input of first detection unit 1044, and the other end of the second resistance passes through described second
Capacity earth.
Optionally, debugging switch 102 is:MOS (metal-oxide-semiconductor, metal-oxide-partly lead
Body) pipe.
It should be noted that debugging switch refers to that debugging switch can be N-type metal-oxide-semiconductor or p-type MOS for metal-oxide-semiconductor
Pipe.Certainly, debugging switch can also be with being that other have the device of switching function, such as relay, switch chip etc., the present invention
It is without limitation.
Optionally, the second detection unit 1045 is:XOR gate.
Optionally, the first detection 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, first resistor, the first electric capacity, second resistance and the second electric capacity can
Think that the combination of one or more devices is realized, i.e., above-mentioned first resistor and second resistance can include at least one resistance, when
When including at least two resistance in above-mentioned first resistor and second resistance, resistance in the first resistor and second resistance can be with
It is in parallel or series connection, and the size of the resistance can be fixed or change;Above-mentioned first electricity
Hold and the second electric capacity can include at least one electric capacity, when in above-mentioned first electric capacity and the second electric capacity include at least two electric capacity
When, the electric capacity in first electric capacity and the second electric capacity can be in parallel or series connection, and the size of the electric capacity
It can be fixed or change.
The embodiment of the present invention provides a kind of circuit of control debugging function, including:Main control chip unit, debugging switch is multiple
Use port;Multiplexing port is connected with the first end of the debugging switch, the second end phase of main control chip unit and debugging switch
Connection, the control end of debugging switch is used to receive the first level signal or second electrical level signal, wherein the first level signal is used for
Control debugging switch closure, second electrical level signal is used to control debugging switch to open.So, the control that can be switched according to debugging
The level signal control debugging that end is received switchs to open receives the first level signal with closure, the control end switched in debugging
When, control debugging switch closure, and when debugging switch closure, the debugging path between multiplexing port and main control chip unit is led
Logical, as the debugging function of main control chip unit is opened, so as to be debugged to main control chip unit.In debugging switch
When control end receives second electrical level signal, control debugging switch is opened, and when debugging switch closure, multiplexing port and master
It is that the debugging function of main control chip unit is closed to control the debugging path between chip unit and disconnect, so as to can not be to master control core
Blade unit is debugged.Therefore the present invention can control unlatching and the pass of the debugging function of main control chip unit by foregoing circuit
Close, the debugging function without opening main control chip unit by way of software set realizes data transmission path and tune
While trying path sharing a port, it is ensured that when the system of electronic equipment delays machine, the debugging function of electronic equipment can be just
Often open.
The embodiments of the invention provide a kind of electronic equipment of control debugging function, including the control described in above-described embodiment
The circuit of debugging function.
The embodiments of the invention provide a kind of commissioning device, as shown in fig. 6, including:Signal output unit 501, debugging is single
Member 502.
The signal output unit 501, the control end of the debugging switch of the circuit with controlling debugging function is connected, for controlling
The closure of the system debugging switch.
The debugging unit 502 is connected with the multiplexing port of the circuit of the control debugging function, for the control
The main control chip unit of the circuit of debugging function is debugged.
Wherein, the circuit for controlling debugging function is the circuit of the control debugging function described in above-described embodiment.
Optionally, when the circuit of the control debugging function does not include signaling conversion circuit, the signal output unit
The control end that 501 the first level signals of output are switched to the debugging.
Further, when the circuit of the control debugging function includes signaling conversion circuit, the signal output unit
501 are connected by the signaling conversion circuit with the control end of the debugging switch, for being exported to the signaling conversion circuit
The different two-way level signal of voltage, to cause the signaling conversion circuit to export the first level signal to the debugging switch
Control end.
Further, the circuit of the control debugging function, as shown in fig. 7, the signal output unit 501 includes:Electricity
Press output module 5011, L channel connection end 5012, R channel connection end 5013 and earth terminal 5014.
Wherein, the L channel connection end 5012 is connected with the voltage output module 5011, for exporting high level letter
Number.The R channel connection end 5013 is connected 5014 with the earth terminal, for exporting low level signal.
Now, the control signal that signal output unit 501 is sent is level signal.
So, the L channel connection end 5012 of signal output unit 501 can to L channel terminal input high level signal,
The R channel connection end 5012 of signal output unit 501 can be to R channel terminal input low level signal, it is ensured that signal is defeated
Go out unit 501 to L channel terminal and the different level signal of R channel terminal input voltage so that the two of the first detection unit
Individual input receives the different level signal of voltage by the first filter unit and the second filter unit, so as to export control
First level signal of the closure of system debugging switch 102.
Optionally, the voltage output module 5011 of signal output unit 501 can be arranged on same with debugging unit 502
In device.
Example, Fig. 8 is the circuit of control debugging function provided in an embodiment of the present invention and the topology example of commissioning device
Figure.Assuming 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, debugging switchs 102 and is:N-type metal-oxide-semiconductor, first detection unit 1044 is XOR gate, second detection unit 1045
For XOR gate, the first resistor in first filter unit 1042 includes a resistance R4, and the first electric capacity includes an electric capacity C3, institute
State the second resistance in the second filter unit 10423 and include a resistance R5, the second electric capacity includes an electric capacity C4.Earphone jack 1041
Including:L channel output unit and an electric capacity C2, R channel output unit and an electric capacity C1.Wherein, electric capacity C2 is used to filter out a left side
The dc noise signal of sound channel output unit output, electric capacity C1 is used for the dc noise letter for filtering out the output of R channel output unit
Number.Also include in the earphone jack 1041:Resistance R1, resistance R2, resistance R3, and resistance R1 are much larger than resistance R3.Wherein, insert
Enter to detect that one end of pin 10413 is connected with the end thereof contacts of L channel terminal 10411, resistance R1 first end and insertion detection pin
10413 other end connection, resistance R1 the second end connection power supply.Resistance R1 is used for protection circuit.Resistance R2 first end with
R channel terminal 10412 is connected, resistance R2 the second end ground connection, and resistance R3 first end is another with L channel terminal 10411
End connection, resistance R3 the second end ground connection.Resistance R2 and resistance R3 is used to balance L channel output unit and the R channel is defeated
Go out the current value of unit output, so that L channel output unit is consistent with the voice signal that the R channel output unit is exported.
The signal output unit 501 also includes resistance R6, R7, wherein, L channel connection end 5012 passes through resistance R6 and voltage output
Module 5011 is connected.The R channel connection end 5013 is connected by resistance R7 with earth terminal 5014.
It need not be debugged in main control chip unit 101, its debugging function needs to close, and without ear speaker device insertion
During earphone jack, one end of now insertion detection pin 10413 is connected with one end of L channel terminal 10411, due to insertion detection
The other end of pin 10413 is connected by resistance R1 with power supply, and the other end of L channel terminal 10411 is connected with resistance R3, and R3
The other end ground connection, so, insertion detection pin 10413 and L channel terminal 10411 between forms loop, because resistance R1 is long-range
In resistance R3, after partial pressure, the voltage on insertion detection pin 10413 is smaller, is low level signal, then insertion detection pin
10413 transmit low level signal to the first input end of the second detection unit 1045.Because no equipment inserts earphone jack, institute
Electric signal is not received by with L channel terminal 10411 and R channel terminal 10412, now it is considered that L channel terminal
10411 and R channel terminal 10412 to the first input end of the first detection unit 1044 and the second input to input identical low
Level signal, so the first detection unit 1044 changes the identical control signal that first input end and the second input are received
It is low level signal for second electrical level signal, is exported by its output end to the second input of the second detection unit 1045 and tune
102 control end is closed in runin.First detection unit 1044 output second electrical level signal is that low level signal to debugging switchs 102
Control end control debugging switch 102 open, and then the debugging being disconnected between multiplexing port 103 and main control chip unit 101
Path so that the debugging function of main control chip unit 101 is closed, and now debugging unit 502 can not pass through 103 couples of masters of multiplexing port
Control chip unit 101 is debugged.Also, the first input end and the second input of the second detection unit 1045 receive low
Level signal, is not received by different level signals, then the second detection unit 1045 exports low level by its output end and believed
Number to main control chip unit 101, main control chip unit 101 determines no ear speaker device insertion when receiving low level signal
Earphone jack.
It need not be debugged in main control chip unit 101, its debugging function is closed, and there is ear speaker device to insert earphone and be inserted
Kong Shi, due to the insertion of ear speaker device so that one end and one end of L channel terminal 10411 of insertion detection pin 10413 disconnect
Connection, then the loop disconnection between insertion detection pin 10413 and L channel terminal 10411, due to inserting the another of detection pin 10413
One end is connected by resistance R1 with power supply, so, the voltage of insertion detection pin 10413 is larger, is high level signal, then insertion inspection
Survey pin 10413 and transmit high level signal to the first input end of the second detection unit 1045.When ear speaker device inserts earphone jack,
To L channel terminal 10411 and the input voltage identical level signal of R channel terminal 10412, now the first detection unit 1044
The control signal inputted by L channel terminal 10411 and R channel terminal 10412 received is identical, and the first detection unit 1044 will
It is second electrical level signal that the identical control signal that first input end and the second input are received, which is changed into low level signal, by
Its output end exports the control end to the second input of the second detection unit 1045 and debugging switch 102.First detection unit
1044 output low level signals are that second electrical level signal to the control end control debugging switch 102 for debugging switch 102 is opened, and are entered
And it is disconnected the debugging path between multiplexing port 103 and main control chip unit 101 so that the debugging of main control chip unit 101
Function is closed, and now debugging unit 502 can not be debugged by multiplexing port 103 to main control chip unit 101.However, the
The first input end of two detection units 1045 receives high level signal, and the second input receives low level signal, received
The different level signal of voltage, so the second detection unit 1045 exports high level signal to main control chip list by its output end
Member 101, main control chip unit 101 is when receiving high level signal, it is determined that there is ear speaker device to insert earphone jack.
When main control chip unit needs to open debugging function, now commissioning device insertion earphone jack, because debugging is adjusted
Try equipment insertion earphone jack so that the L channel connection end 5012 of signal output unit 501 connects with L channel terminal 10411
Connect, R channel connection end 5013 is connected with R channel terminal 10412.And when commissioning device inserts earphone jack so that insertion
Detect that one end and one end of L channel terminal 10411 of pin 10413 are disconnected, then insertion detection pin 10413 and L channel end
Loop between son 10411 disconnects, because the other end of insertion detection pin 10413 is connected by resistance R1 with power supply, so, insert
Enter to detect that the voltage of pin 10413 is larger, be high level signal, then insertion detection pin 10413 is to the of the second detection unit 1045
One input transmits high level signal.Because one end of the L channel connection end 5012 of signal output unit 501 passes through resistance R6
It is connected with voltage output module 5011, so L channel connection end 5012 provides high level signal to L channel terminal 10411.Letter
The R channel connection end 5013 of number output unit 501 is connected by resistance R7 with earth terminal 5014, so R channel connection end
5013 provide low level signal to R channel terminal 10412.Therefore, L channel terminal 10411 passes through the first filter unit 1042
To the first input end input high level signal of the first detection unit 1044, R channel terminal 10412 passes through the second filter unit
1043 to the first detection unit 1044 the second input input low level signal, now the first of the first detection unit 1044 is defeated
Enter end and the second input is respectively received high level signal and low level signal, the height that the first detection unit 1044 is received
It is the first level signal that level signal and low level signal, which are changed into high level signal, is exported by its output end to the second detection
Second input of unit 1045 and the control end of debugging switch 102.First detection unit 1044 exports high level signal
First level signal to the control end for debugging switch 102, control is debugged switch 102 and closed, and then turns on multiplexing port 103 and master
Control the debugging path between chip unit 101 so that debugging unit 502 can be carried out with multiplexing port 103 to main control chip unit 101
Debugging.Also, the output end of the first detection unit 1044 is believed to the second input input high level of the second detection unit 1045
Number, so, the first input end of the second detection unit 1045 receives high level signal, and the second input also receives high level
Signal, is not received by the different level signal of voltage, then the second detection unit 1045 exports low level by its output end and believed
Number to main control chip unit 101, main control chip unit 101 determines no ear speaker device insertion when receiving low level signal
Earphone jack.
The embodiment of the present invention provides a kind of circuit, electronic equipment and its corresponding commissioning device of control debugging function, bag
Include:Main control chip unit, signaling conversion circuit, debugging switch, multiplexing port;The signaling conversion circuit is switched with the debugging
Control end connection, for receiving control signal, and the first level signal is exported according to the control signal or second electrical level is believed
Number to it is described debugging switch control end;Wherein, the first level signal is used to control debugging switch closure, the second electrical level letter
Number be used for control debugging switch open;Multiplexing port is connected with the first end of the debugging switch, and main control chip unit is with adjusting
The second end that runin is closed is connected.So, the control signal that signaling conversion circuit can be received according to it, output control debugging is opened
Close the control end opened with being closed to debugging switch.When the control end of debugging switch receives the first level signal, control is adjusted
Runin close close, and when debugging switch closure when, between multiplexing port and main control chip unit debugging path conducting, i.e., based on
The debugging function for controlling chip unit is opened, so as to be debugged to main control chip unit.In the control termination of debugging switch
When receiving second electrical level signal, control debugging switch is opened, and when debugging switch closure, multiplexing port and main control chip list
The debugging function that debugging path between member disconnects as main control chip unit is closed, so as to enter to main control chip unit
Row debugging.Therefore the present invention can control the open and close of the debugging function of main control chip unit, and nothing by foregoing circuit
The debugging function of main control chip unit need to be opened by way of software set, data transmission path is realized and debugging path is total to
While using a port, it is ensured that when the system of electronic equipment delays machine, the debugging function of electronic equipment can be opened normally.
During by circuit multiplexer to the earphone jack for controlling debugging function, filtered by the first detection unit and the first filter unit and second
Unit can ensure that the normal of control debugging function is used, and can ensure that the normal of earphone jack makes by the second detection unit
With so as to save electronic equipment cost and port resource.
Finally it should be noted that:The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is simultaneously
Be not limited to this, any one skilled in the art the invention discloses technical scope in, change can be readily occurred in
Change or replace, should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be described with claim
Protection domain be defined.
Claims (11)
1. a kind of circuit of control debugging function, including:Main control chip unit, multiplexing port, it is characterised in that also include:Adjust
Runin is closed;The debugging switch includes:Control end, first end and the second end;Wherein,
The multiplexing port is connected with the first end of the debugging switch, the main control chip unit and the debugging switch
Second end is connected;
The control end of the debugging switch, for receiving the first level signal or second electrical level signal;First level signal
For controlling debugging switch closure, the second electrical level signal is used to control debugging switch to open;When the debugging switch closure
When, the debugging path conducting between the multiplexing port and the main control chip unit;It is described multiple when the debugging switch is opened
Disconnected with the debugging path between port and the main control chip unit;
The circuit of the control debugging function, in addition to:Signaling conversion circuit, the signaling conversion circuit is switched with the debugging
Control end connection, for receiving control signal, and the first level signal is exported according to the control signal or second electrical level is believed
Number to it is described debugging switch control end;
The signaling conversion circuit includes:Earphone jack and the first detection unit;
First detection unit, turns for receiving the control signal inputted by the earphone jack, and by the control signal
It is changed into the first level signal or second electrical level signal.
2. circuit according to claim 1, it is characterised in that
The signaling conversion circuit also includes:First filter unit, the second filter unit;The earphone jack includes:L channel
Terminal and R channel terminal;
The first input end of first detection unit is connected by first filter unit with the L channel terminal;It is described
Second input of the first detection unit is connected by second filter unit with the R channel terminal;First detection
The output end of unit is connected with the control end of the debugging switch;
It is described to receive the control signal inputted by the earphone jack, including receive by the L channel terminal and the R channel
The control signal of terminal input.
3. circuit according to claim 2, it is characterised in that
The signaling conversion circuit also includes the second detection unit, and the earphone jack also includes:Insertion detection pin;
The first input end of second detection unit is connected with the insertion detection pin;The second of second detection unit is defeated
Enter end to be connected with the output end of first detection unit;The output end of second detection unit and the main control chip unit
Connection;
Second detection unit, for receive it is described detection pin at insertion detection signal and first detection unit it is defeated
Go out the level signal of end output, and the level that the output end of signal and first detection unit is exported is detected according to the insertion
Signal output headset detection electric signal is to the main control chip unit;Wherein, the output end of first detection unit is exported
Level signal includes:First level signal or second electrical level signal.
4. the circuit according to Claims 2 or 3, it is characterised in that
First filter unit includes:First resistor, the first electric capacity, wherein, one end of the first resistor and the left sound
Road terminal connection, the other end of the first resistor is connected with the first input end of first detection unit, and described the
The other end of one resistance passes through first capacity earth;
Second filter unit includes:Second resistance, the second electric capacity, wherein, one end of the second resistance and the right sound
Road terminal connection, the other end of the second resistance is connected with the second input of first detection unit, and described the
The other end of two resistance passes through second capacity earth.
5. circuit according to claim 4, it is characterised in that
It is described debugging switch be:Metal-oxide-semicondutor metal-oxide-semiconductor.
6. circuit according to claim 3, it is characterised in that
Second detection unit is:XOR gate.
7. circuit according to claim 6, it is characterised in that
First detection unit is:XOR gate.
8. a kind of electronic equipment of control debugging function, it is characterised in that adjusted including the control described in claim any one of 1-7
Try the circuit of function.
9. a kind of commissioning device, it is characterised in that including:Signal output unit, debugging unit;
The control end of the debugging switch of circuit of the signal output unit with controlling debugging function is connected, for controlling the tune
The closure that runin is closed;
The debugging unit is connected with the multiplexing port of the circuit of the control debugging function, for the control debugging function
The main control chip unit of circuit debugged;Wherein, the circuit for controlling debugging function is any one of claim 1-7 institutes
The circuit for the control debugging function stated.
10. commissioning device according to claim 9, it is characterised in that
When the circuit of the control debugging function includes signaling conversion circuit, the signal output unit is turned by the signal
The control end that circuit is changed with the debugging switch is connected, for the different two-way level of the signaling conversion circuit output voltage
Signal, to cause the signaling conversion circuit to export the first level signal to the control end of the debugging switch.
11. commissioning device according to claim 10, it is characterised in that
The signal output unit includes:Voltage output module, L channel connection end, R channel connection end and earth terminal;Wherein,
The L channel connection end is connected with the voltage output module, for exporting high level signal;The R channel connection
End is connected with the earth terminal, for exporting low level signal.
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 CN104182315A (en) | 2014-12-03 |
CN104182315B true 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) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204291350U (en) * | 2014-12-18 | 2015-04-22 | 深圳Tcl数字技术有限公司 | Loudspeaker drive signal abnormal detection circuit and speaker protection circuit |
CN106407107B (en) * | 2016-08-31 | 2020-12-15 | 无锡市电子仪表工业有限公司 | Software debugging auxiliary method of general optical module |
CN111289885B (en) * | 2020-03-06 | 2022-06-03 | 湖南国科微电子股份有限公司 | Debugging system and method for power-on and power-off of chip |
CN111824045B (en) * | 2020-07-14 | 2023-05-12 | 上海创功通讯技术有限公司 | Interface component of vehicle-mounted equipment and vehicle-mounted equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7003707B2 (en) * | 2000-04-28 | 2006-02-21 | Texas Instruments Incorporated | IC tap/scan test port access with tap lock circuitry |
-
2014
- 2014-08-29 CN CN201410437652.1A patent/CN104182315B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104182315A (en) | 2014-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104182315B (en) | A kind of circuit, electronic equipment and its corresponding commissioning device of control debugging function | |
CN101232384B (en) | Method and device for testing switch with Ethernet power supply function | |
CN102326407A (en) | Interconnection wiring guidance system | |
CN104035357A (en) | Headset, charging and OTG equipment circuit design based on USB socket | |
CN107580701A (en) | Apparatus and method for providing reconfigurable two-way front end interface | |
CN102075331B (en) | Ethernet power supply end equipment as well as system and method thereof for realizing power supply | |
CN106057111B (en) | Test circuit and liquid crystal display panel | |
CN104090511B (en) | Circuit and method for achieving non-polar 485 communication | |
CN103779972A (en) | Simple and reliable Ethernet power supply device | |
CN106375010A (en) | Apparatus for controlling CAN bus of optical fiber local area network and application thereof | |
CN100490450C (en) | Implementation system for Ethernet photoelectric interface duplex | |
CN104917246B (en) | A kind of apple equipment charge detects and control device | |
CN205644528U (en) | Connect interface converting circuit and be connected interface connector | |
CN104125173B (en) | data communication path switching circuit, vehicle-mounted router and automobile | |
CN103403563A (en) | Reverse power supply circuit test system and device | |
CN102788925A (en) | Fault detection system of communication circuit | |
CN102236630A (en) | Multi-equipment connecting system | |
CN106340923A (en) | Battery equalization circuit, control method and battery system | |
CN203119929U (en) | A network connecting device capable of switching paths | |
CN206023172U (en) | It is suitable for the protection circuit and the system that powers using concatenation power supply of concatenation power-supply system | |
CN104994320B (en) | A kind of HDMI service equipments | |
CN206619128U (en) | Voltage interface circuit | |
CN206946349U (en) | A kind of connection circuit and separate type call bracelet for separate type call bracelet | |
CN102098186A (en) | QSFP (Quad Small Form-factor Pluggable) module detecting system and detecting method | |
CN102742109B (en) | Remote supply system and remote power supply |
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 |