Detection circuit and its CC logic control chip
Technical field
The utility model relates to USB-C(USB-TYPE-C) technical field of CC logic control circuit in Application of Interface,
More particularly to a kind of CC terminal signals condition detection method and circuit, for reducing CC logic control circuit stand-by power consumption.
Background technique
With USB-C(USB-TYPE-C) technology is more more and more universal, new interface standard be gradually replacing USB-A with
The status of USB-B type interface.And CC(Configuration Channel, collocation channel) terminal control detection logic be
The basic Handshake Protocol of USB-C agreement is the critical passage increased newly in USB-TYPE-C interface, its effect includes detection USB
Connection status detects positive anti-plug state, the connection foundation with management etc. of data and VBUS between USB device.Therefore USB-C interface
The signal condition of CC terminal changes complexity, is the analog signal of level range more than one.
In the prior art, when USB-C interface is in the state of not connected external equipment, CC logic control chip be in
Machine state, but relevant CC terminal test module monitors at any time there is still a need for working condition is maintained in CC logic control chip
The variation of connection status, therefore even if CC logic control chip still suffers from power consumption generation in standby mode.
In the prior art, the Chinese utility model patent of Patent No. 201610613607.6 is directed to CC logic control chip
The high problem of stand-by power consumption, using it is standby when use the low precision reference of low-power consumption, tentatively judged, meet preliminary Rule of judgment
Afterwards, after confirmation CC terminal has equipment access, it is then turned on normal detection circuit, i.e., is carried out using the detection circuit of high precision reference more
The judgement of kind connection status, makes original stand-by power consumption reduce nearly six times;The China of Patent No. 201610613607.6 is real
There is still a need for base modules to provide the datum mark of low precision when being standby with the shortcomings that technical solution in new patent, and needs
Will use a comparator tentatively be judged, stand-by power consumption including at least comparator, reference voltage, reference current source this three
The power consumption of partial circuit, therefore CC logic control chip still needs a degree of stand-by power consumption.
Utility model content
The technical problem to be solved by the present invention is to avoid the deficiency of above-mentioned technical proposal, and propose it is a kind of to
Machine state can detect the detection method and circuit of CC terminal and external equipment connection status with more low-power consumption, substantially reduce CC logic
The power consumption of control circuit or CC logic control chip in the standby state.
It is a kind of for CC terminal in USB-C interface that the utility model, which solves technical solution used by the technical problem,
The detection circuit of signal condition detection, including level sensitive circuit, normal detection circuit and logic control circuit;The level inspection
The input terminal of slowdown monitoring circuit is used to be used to detect the end CC with CC terminal electrical connection in external USB-C interface, the level sensitive circuit
The state of subsignal;The input terminal of the normal detection circuit be used for and external USB-C interface in CC terminal electrical connection, it is described just
Input signal detection of the normal detection circuit for CC terminal in external USB-C interface, and pass through the input signal of detection CC terminal
Judge accessed external equipment type;The level sensitive circuit and logic control circuit electrical connection, level detection electricity
The state of CC terminal signals is detected on road in advance, and level sensitive circuit output characterizes the first of CC terminal and external equipment connection status
Digital signal;The level sensitive circuit exports the first digital signal to the logic control circuit;The logic control circuit
Output control signals to the normal detection circuit;Logic control circuit controls just according to the level height of the first digital signal
Normal detection circuit opens or closes;Or logic control circuit controls normal detection electricity according to the level change of the first digital signal
Road opens or closes.
The detection circuit further includes pull-up circuit, first switch and the second switch;One end of first switch be used for and
In USB-C interface CC terminal be electrically connected, while the end of first switch and pull-up circuit electrical connection, the other end of first switch and
The input terminal of the level sensitive circuit is electrically connected;The input terminal of one end of second switch and the level sensitive circuit is electrically connected
It connects, another termination low level of second switch;The switch state of the logic control circuit control first switch and the second switch,
To control the signal connection relationship of the level sensitive circuit input terminal.
In original state, i.e., when external equipment is not accessed or do not supported, logic control circuit controls first switch closure
Second switch is opened, and is electrically connected the CC terminal in the input terminal and USB-C interface of the level sensitive circuit, the letter of CC terminal
It number is pulled up circuit and is pulled to height, the input signal of the level sensitive circuit input terminal is height, the level sensitive circuit output
The first digital signal be low level, and level does not change, and logic control circuit is not turned on normal detection circuit;Work as outside
When equipment accesses, the signal of CC terminal is pulled to low by height, and the input signal of the level sensitive circuit input terminal is from Gao Bianwei
Low, the first digital signal for thus triggering the level sensitive circuit output becomes high level from low level, at this time the first number
Signal is input to logic control circuit, and logic control circuit controls first switch and opens second switch closure, examines the level
It is disconnected between CC terminal in the input terminal and USB-C interface of slowdown monitoring circuit, while described in logic control circuit opening
Normal detection circuit, normal detection circuit start work and are set by the outside that the input-signal judging of detection CC terminal is accessed
Standby type.
The detection circuit further includes pull-down circuit, third switch and the 4th switch;Third switch one end be used for and
CC terminal is electrically connected in USB-C interface, while the end of third switch is also electrically connected with pull-down circuit, the other end of third switch
It is electrically connected with the input terminal of the level sensitive circuit;One end of 4th switch and the input terminal of the level sensitive circuit are electrically connected
It connects, another termination high level of the 4th switch;The switch state of the logic control circuit control third switch and the 4th switch,
To control the signal connection relationship of the level sensitive circuit input terminal.
In original state, i.e., when external equipment is not accessed or do not supported, logic control circuit control third is closed the switch
4th switch is opened, and is electrically connected the CC terminal in the input terminal and USB-C interface of the level sensitive circuit, the letter of CC terminal
It number is pulled down circuit and is pulled to low, the input signal of the level sensitive circuit input terminal is low, the level sensitive circuit output
The first digital signal be high level, and level does not change, and logic control circuit is not turned on normal detection circuit;Work as outside
When equipment accesses, the signal of CC terminal is pulled to height by low, and the input signal of the level sensitive circuit input terminal becomes from low
Height, so that triggering the first digital signal of the level sensitive circuit output becomes low level from high level, first is digital at this time
Signal is input to logic control circuit, and logic control circuit control third switch is opened the 4th and closed the switch, and examines the level
It is disconnected between CC terminal in the input terminal and USB-C interface of slowdown monitoring circuit, while described in logic control circuit opening
Normal detection circuit, normal detection circuit start work and are set by the outside that the input-signal judging of detection CC terminal is accessed
Standby type.
The detection circuit further includes pull-up circuit, pull-down circuit, the 5th switch, the 6th switch, the 7th switch and the
Eight switches;The level sensitive circuit includes the first level sensitive circuit and second electrical level detection circuit;One end of 6th switch
For being electrically connected with CC terminal in USB-C interface, at the same also and pull-down circuit, pull-up circuit be electrically connected, the 6th switch it is another
The input terminal of end and the first level sensitive circuit is electrically connected;One end of 5th switch and the input terminal electricity of the first level sensitive circuit
Connection, another termination high level of the 5th switch;One end of 7th switch is used to be electrically connected with CC terminal in USB-C interface, together
When be also electrically connected with pull-down circuit, pull-up circuit, the 7th other end switched and the input terminal of second electrical level detection circuit are electrically connected
It connects;One end of 8th switch and the input terminal electrical connection of second electrical level detection circuit, another termination low level of the 8th switch;Institute
The switch state for stating the 5th switch of logic control circuit control, the 6th switch, the 7th switch and the 8th this four switches of switch, from
And control the signal connection relationship of the level sensitive circuit input terminal;The switch of the logic control circuit control pull-up circuit
State keeps the switch state of pull-up circuit corresponding with the switch state of the 5th switch and the 6th switch;The logic control electricity
Road controls the switch state of pull-down circuit, switchs the switch state of pull-down circuit and pull-up circuit with the 7th switch and the 8th
Switch state is corresponding.
Logic control circuit is used for and external connection obtains USB-C interfaces mode signal, when operating mode signal table
USB-C interfaces are levied in electricity consumption side's mode: logic control circuit controls pull-down circuit and opens, and pull-up circuit is closed;First
When beginning state, i.e. external equipment are not accessed or do not supported, logic control circuit control the 7th closes the switch the 8th switch and opens, and makes
CC terminal electrical connection in the input terminal and USB-C interface of the second electrical level detection circuit, the signal of CC terminal are pulled down electricity
Road be pulled to it is low, the input signal of the second electrical level detection circuit input terminal be it is low, the second electrical level detection circuit output
Digital signal is high level, and level does not change, and logic control circuit is not turned on normal detection circuit;When external equipment connects
Fashionable, the signal of CC terminal is pulled to height by low, the input signal of the second electrical level detection circuit input terminal from low to high,
Become low level from high level to trigger the digital signal of the second electrical level detection circuit output, the digital signal is defeated at this time
Enter to logic control circuit, the 7th switch of logic control circuit control is opened the 8th and closed the switch, and the second electrical level is detected
It is disconnected between CC terminal in the input terminal and USB-C interface of circuit, while logic control circuit opening is described just
Normal detection circuit, the external equipment that normal detection circuit starts work and accessed by the input-signal judging of detection CC terminal
Type.
Logic control circuit is used for and external connection obtains USB-C interfaces mode signal, when operating mode signal table
USB-C interfaces are levied in supplier of electricity mode: logic control circuit controls pull-up circuit and opens, and pull-down circuit is closed;First
Beginning state, i.e., when external equipment is not accessed or do not supported, logic control circuit control the 6th closes the switch the 5th switch and opens,
It is electrically connected the CC terminal in the input terminal and USB-C interface of first level sensitive circuit, the signal of CC terminal is pulled up
Circuit is pulled to height, and the input signal of the first level sensitive circuit input terminal is height, the first level sensitive circuit output
Digital signal be low level, and level does not change, and logic control circuit is not turned on normal detection circuit;Work as external equipment
When access, the signal of CC terminal is pulled to low by height, and the input signal of the first level sensitive circuit input terminal is from Gao Bianwei
Low, the digital signal for thus triggering the first level sensitive circuit output becomes high level from low level, and the number is believed at this time
It number is input to logic control circuit, the 6th switch of logic control circuit control is opened the 5th and closed the switch, and first level is made
It is disconnected between CC terminal in the input terminal and USB-C interface of detection circuit, while the logic control circuit opens institute
State normal detection circuit, the outside that normal detection circuit starts work and accessed by the input-signal judging of detection CC terminal
Device type.
The level sensitive circuit is phase inverter or the functional circuit for being equivalent to phase inverter.
The level sensitive circuit is Schmidt trigger or the functional circuit for being equivalent to Schmidt trigger.
It is a kind of CC for USB-C interface management that the utility model, which solves technical solution used by the technical problem,
Logic control chip includes the above-mentioned detection circuit for CC terminal signals state-detection in USB-C interface;Logic control electricity
Road obtains USB-C interfaces mode signal from CC logic control chip, and operating mode signal includes characterization USB-C interfaces
The first operating mode signal in supplier of electricity mode, operating mode signal further include characterization when USB-C interfaces are in electricity consumption
Second operating mode signal of square mode.
Compared with the existing technology compared with, the beneficial effects of the utility model are: 1, base modules are not needed in stand-by operation
And comparator module participates in, it is only necessary to simple level sensitive circuit work can complete the detection of external equipment access state,
Consumption standby current under standby mode is significantly smaller than the case where comparing using comparator and reference voltage, reduces to greatest extent
Stand-by power consumption;2, circuit structure is simple;3, it is easy to application deployment;4, chip area is saved.
Detailed description of the invention
Fig. 1 and 2 be the utility model relates to detected for CC terminal in USB-C interface and external equipment connection status
The schematic block diagram of detection circuit;What dotted line frame indicated in Fig. 2 is biasing circuit module, contains pull-up in practical applications
Or pull-down circuit;
Fig. 3 is the detection circuit detected in the prior art for CC terminal in USB-C interface and external equipment connection status
The two of schematic block diagram;
Fig. 4 is the circuit theory schematic block diagram of the preferred embodiment in the utility model one;
Fig. 5 is the circuit theory schematic block diagram of the preferred embodiment in the utility model two;
Fig. 6 is the circuit theory schematic block diagram of the preferred embodiment in the utility model three;
Fig. 7 is the circuit theory schematic block diagram of the preferred embodiment in the utility model four;
Fig. 8 is the circuit theory schematic block diagram of the preferred embodiment in the utility model five;
Fig. 9 is the circuit theory schematic block diagram of the preferred embodiment in the utility model six.
Specific embodiment
The embodiments of the present invention is further described below in conjunction with each attached drawing.
As illustrated in fig. 1 and 2, be the utility model relates to connect shape with external equipment for CC terminal in USB-C interface
The schematic block diagram of the detection circuit of state detection.
The detection of the prior art as shown in Figure 3 for CC terminal in USB-C interface and the detection of external equipment connection status
In circuit theory schematic block diagram, in common CC logic control circuit or logic control chip, believed by the CC that CC terminal transmits
Number it is connected solely to normal detection circuit, normal detection circuit is constantly in the state of unlatching, therefore power consumption with higher.
In technical solution as shown in Figure 3, CC signal connects an input terminal of comparator;Reference voltage is selected by voltage
Module is selected, and is connected to another input terminal of comparator, and the output end of comparator is sent into Logic control module and carries out result
Analysis, Logic control module select suitable reference voltage to provide according to the working condition of the comparison result of comparator and system
To comparator.All reference voltages required for reference voltage source is generated and exported, current offset module will provide bias current
It is worked normally for comparator and reference voltage source.Therefore in the prior art, the normal detection circuit of CC signal is in standby mode
Under be also required to certain power consumption.
As shown in Figure 1 the utility model relates to for CC terminal in USB-C interface and the detection of external equipment connection status
Detection circuit schematic block diagram in as it can be seen that in the technical solution of the utility model, CC signal in addition to normal detection
Except circuit connection, it is also connected to level sensitive circuit, is made using CC signal of the level sensitive circuit to input and being sentenced in advance
It is disconnected, then normal detection circuit is turned on or off by logic control circuit, achieve the purpose that reduce power consumption.
Its working principles are as follows: the voltage of CC signal does not change when external equipment is not accessed or do not supported, then it is electric
Flat detection circuit output does not change, and logic control circuit is not turned on normal detection circuit at this time;When external equipment access,
The voltage of CC signal changes, while triggering the level sensitive circuit makes its output change, at this moment logic control electricity
Road will open normal detection circuit according to the output result of level sensitive circuit.Electric current just will increase for normally detecting electricity at this time
The consumption of road function, that is, just start this when to wake up normal detection circuit start-up operation;And it is outer not detected
Before the access of portion's equipment, normal detection circuit is in close state;And the level sensitive circuit in the utility model is logic
Circuit, the level sensitive circuit in the utility model specific embodiment are phase inverter or Schmidt trigger etc. without static function
The circuit of consumption, therefore overall power can be preferably minimized, it is nearly free from quiescent dissipation, therefore the technical side of the utility model
Case greatly reduce CC terminal to machine testing power consumption.
Fig. 4 to 6 is the specific embodiment when level sensitive circuit is phase inverter;Phase inverter in Fig. 4 to 6 is also possible to
The equivalent circuit of phase inverter.Level sensitive circuit is the specific example of Schmidt trigger in Fig. 7 to 9;Applying in Fig. 7 to 9 is close
Special trigger is also possible to the equivalent circuit of Schmidt trigger.The difference of Fig. 7 to 9 and Fig. 4 to 6 is only in that wherein level inspection
Slowdown monitoring circuit is different.
Fig. 4 and 7 is that the power supply unit end (Source, SRC) outwardly to power by USB interface is arranged in USB-C interface
When detection circuit circuit theory schematic block diagram;Fig. 5 and 8 is that the setting of USB-C interface is obtaining confession from the external world by USB interface
The circuit theory schematic diagram of detection circuit when electrical equipment end (Sink, SNK) of electricity.
Fig. 6 and 9 is a kind of compound detection circuit that can support two-way USB-C interface (Daul-Role-Power, DRP),
In this kind application, it is installed with the USB-C interface equipment, either the power supply unit outwardly powered by USB-C interface,
It can be the electrical equipment by USB interface using extraneous power supply.
As illustrated in figures 4 and 7, the CC terminal when USB-C interfaces at supplier of electricity mode (Source, SRC), in interface
For judging that external equipment connects, CC signal is pulled to high level by pull-up circuit at this time, and equipment to be supported is waited to access.Outside
When portion's equipment is not accessed or do not supported, first switch K1 closure, second switch K2 is opened, work of the CC signal due to pull-up circuit
With height is remained, then level sensitive circuit output signal is low level, closes normal slowdown monitoring circuit by logic control circuit at this time,
Normal detection circuit does not generate power consumption under current idle mode.When external equipment access, CC signal is pulled low by height, is touched at this time
Hair level sensitive circuit output signal switchs to high level, and first switch K1 is opened, second switch K2 closure, by logic control circuit
It opens normal detection circuit and exits standby mode, normal detection circuit, which starts further to detect, confirms external connected equipment class
Type.Normal detection circuit is closed when needing to be again introduced into standby mode, then by logic control circuit, second switch K2 is opened,
First switch K1 closure, returns to standby mode.Returning to standby mode can be through normal detection circuit or other external controls
Instruction outputs control signals to logic control circuit, then completes switch control by logic control circuit.
As shown in figs. 5 and 8, when USB-C interfaces in electricity consumption side's mode, (when Sink, SNK, use by the CC terminal in interface
In judging external equipment connection, CC signal is pulled down to low by pull-down circuit at this time, and the equipment for waiting supports accesses.Do not have in external equipment
When having access or not supporting, third switch K3 closure, the 4th switch K4 is opened, and CC signal is remained due to the effect of pull-down circuit
Low, then level sensitive circuit output signal is high level, normal slowdown monitoring circuit is closed by logic control circuit at this time, in current idle
Detection circuit does not have power consumption under mode.When there is load to access, CC signal is raised by low, and triggering level detection circuit is defeated at this time
Signal switchs to low level out, and third switch K3 is disconnected, and the 4th switch K4 closure opens normal detection circuit by logic control circuit
And exiting standby mode simultaneously, normal detection circuit, which starts further to detect, confirms external connected equipment type.When need again into
When entering standby mode, then normal detection circuit being closed by logic control circuit, the 4th switch K4 is disconnected, and third switch K3 is closed,
Return to standby mode.
As shown in Figure 6 and 9, in the detection circuit detected for CC terminal in USB-C interface and external equipment connection status,
It simultaneously include pull-up circuit, pull-down circuit, the 5th switch K5, the 6th switch K6, the 7th switch K7 and the 8th switch K8;The electricity
Flat detection circuit includes the first level sensitive circuit and second electrical level detection circuit.
As shown in Figure 6 and 9, one end of the 6th switch K6 is used to be electrically connected with CC terminal in USB-C interface, while and under and
Puller circuit, pull-up circuit electrical connection, the input terminal electrical connection of the other end and the first level sensitive circuit of the 6th switch K6;5th
The electrical connection of the input terminal of one end of switch K5 and the first level sensitive circuit, another termination high level of the 5th switch K5;7th
One end of switch K7 is used to be electrically connected with CC terminal in USB-C interface, while being also electrically connected with pull-down circuit, pull-up circuit, the
The other end of seven switch K7 and the input terminal electrical connection of second electrical level detection circuit;One end of 8th switch K8 and second electrical level inspection
The input terminal of slowdown monitoring circuit is electrically connected, another termination low level of the 8th switch K8;The 5th switch of logic control circuit control
This four K5, the 6th switch K6, the 7th switch K7 and the 8th switch K8 switch states switched, thus the first and second electricity of control
The signal connection relationship of flat detection circuit input terminal;The switch shape of logic control circuit the control pull-down circuit and pull-up circuit
State makes the switch state and the 5th switch K5, the 6th switch K6, the switch of the 7th switch K7 and the 8th of pull-down circuit or pull-up circuit
K8 respective switch state is corresponding.
When USB-C interfaces are in electricity consumption side (Sink, SNK) mode, the CC terminal in interface is for judging that outside is set
Standby connection, at this point, logic control circuit control pull-down circuit is opened, pull-up circuit is closed;In original state, that is, work as external equipment
When not accessing or not supporting, logic control circuit controls the 7th switch K7 and is closed the 8th switch K8 opening, detects second electrical level
The input terminal of circuit is connected with the CC terminal in USB-C interface, and the signal of CC terminal is pulled down circuit and is pulled to low, second electrical level inspection
The input signal of slowdown monitoring circuit input terminal be it is low, the digital signal of second electrical level detection circuit output is high level, and level is not sent out
Raw to change, logic control circuit is not turned on normal detection circuit;When external equipment access, the signal of CC terminal is pulled to by low
The input signal of height, second electrical level detection circuit input terminal becomes high level from low level, to trigger second electrical level detection electricity
The digital signal of road output becomes low level from high level, and the digital signal is input to logic control circuit, logic control at this time
The 7th switch K7 of circuit control opens the 8th switch K8 closure, makes in the input terminal and USB-C interface of second electrical level detection circuit
CC terminal between disconnect, while the logic control circuit opens the normal detection circuit, and normal detection circuit opens
It starts building to make and further detects accessed external equipment type.
When USB-C interfaces are at electrical equipment mode (Sink, SNK), the CC terminal in interface is for detecting outside
Equipment connection, at this point, logic control circuit control pull-up circuit is opened, pull-down circuit is closed;In original state, i.e., it ought enter outside
When equipment is not accessed or do not supported, logic control circuit controls the 6th switch K6 and is closed the 5th switch K5 opening, makes the first level
The input terminal of detection circuit is connected with the CC terminal in USB-C interface, and the signal of CC terminal is pulled up circuit and is pulled to height, the first electricity
The input signal of flat detection circuit input terminal is height, and the digital signal of the first level sensitive circuit output is low level, and level
It does not change, logic control circuit is not turned on normal detection circuit;When external equipment access, the signal of CC terminal is by high electricity
Flat to be pulled to low level, the input signal of the first level sensitive circuit input terminal becomes low from high level, thus triggers the first electricity
The digital signal of flat detection circuit output becomes high level from low level, and the digital signal is input to logic control circuit at this time,
Logic control circuit controls the 6th switch K6 and opens the 5th switch K5 closure, makes the input terminal and USB- of the first level sensitive circuit
It is disconnected between CC terminal in C interface, while the logic control circuit opens the normal detection circuit, it is normal to detect
Circuit start works and further detects accessed external equipment type.
In some drawings in unshown embodiment, in a kind of CC logic control chip for USB-C interface management
Contain the above-mentioned detection circuit for CC terminal in USB-C interface and the detection of external equipment connection status;Logic control electricity
Road obtains USB-C interfaces mode signal from CC logic control chip, and operating mode signal includes characterization USB-C interfaces
The first operating mode signal in supplier of electricity (Source, SRC) mode, operating mode signal further include characterization when USB-C connects
Second operating mode signal of the mouth work in electricity consumption side (Sink, SNK) mode.
The key point of the utility model is to have used special circuit design, is detected using the logic level of micro- quiescent dissipation
Circuit for passing through logic circuit after detecting CC signal intensity to the pre-detection of CC signal in the standby state again later
The detection mode for opening normal CC signal detection mode and load equipment type carries out further accurate detection, with identification
The load equipment type that interface is accessed, to realize the purpose of extremely low stand-by power consumption.
The above description is only the embodiments of the present invention, and therefore it does not limit the scope of the patent of the utility model, all
Using equivalent structure or equivalent flow shift made by utility model specification and accompanying drawing content, it is applied directly or indirectly in it
His relevant technical field, is also included in the patent protection scope of the utility model.