CN116204389A - Connection state detection circuit of Type-C equipment and control method thereof - Google Patents
Connection state detection circuit of Type-C equipment and control method thereof Download PDFInfo
- Publication number
- CN116204389A CN116204389A CN202310481294.3A CN202310481294A CN116204389A CN 116204389 A CN116204389 A CN 116204389A CN 202310481294 A CN202310481294 A CN 202310481294A CN 116204389 A CN116204389 A CN 116204389A
- Authority
- CN
- China
- Prior art keywords
- state
- connection channel
- connection
- detection circuit
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 312
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000004590 computer program Methods 0.000 claims description 13
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 108700025151 PD protocol Proteins 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3027—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
- G06F11/3062—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Mathematical Physics (AREA)
- Computer Hardware Design (AREA)
- Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)
Abstract
The application discloses a connection state detection circuit of Type-C equipment and a control method thereof, and belongs to the technical field of USB interfaces. The connection state detection circuit includes: a detection control module; the state detection circuit is connected with the detection control module and comprises a reference bias module, a current source and a comparator, wherein a first pin of the comparator is connected with the reference bias module, and a second pin of the comparator is connected with the current source; the Type-C interface is provided with a first connecting channel and a second connecting channel; the detection control module is used for controlling the state detection circuit to work in a first rough detection state when one of the first connection channel and the second connection channel is in an Ra state and the other one of the first connection channel and the second connection channel is in an Open state. The connection state detection circuit can reduce detection power consumption.
Description
Technical Field
The application belongs to the technical field of USB interfaces, and particularly relates to a connection state detection circuit of Type-C equipment and a control method thereof.
Background
The Type-C interface is a new USB interface proposed by the USB-IF association in 2013, month 12, and has a thinner design, a faster speed and a higher power transmission capability than the conventional Type-a or Type-B interface, and currently, the Type-C interface is widely used in the field of portable devices (such as mobile phones, digital cameras, tablet computers, etc.). The Type-C device connection detection technology is used for judging whether two USB devices are connected or not, and functions such as VBUS mode configuration, PD protocol communication, USB data transmission and the like can be realized after the two USB devices establish a stable connection relationship.
The connection detection of the Type-C device depends on the CC1 and CC2 channels on the Type-C interface, and the principle is to detect whether the voltages of the CC1 and CC2 channels on the Type-C interface of the current Type-C device are within a certain range, so as to judge whether the device is connected and whether the device is connected.
At present, the connection detection of the Type-C device generally uses a high-precision ADC to directly measure the voltages of the CC1 and CC2 channels, or uses a high-precision reference voltage source to provide reference voltage, and then uses a comparator to compare the relation between the voltages of the CC1 or CC2 channels and the reference voltage, so as to obtain the range of the voltages of the CC1 or CC2 channels, judge whether the device is connected and the Type of the connected device, but the mode needs to keep the operation of the high-precision ADC or the high-precision reference voltage source at all times, so that the standby power consumption of the Type-C device is higher, and the duration of the Type-C device is shortened.
Disclosure of Invention
The present application aims to solve at least one of the technical problems existing in the prior art. Therefore, the connection state detection circuit of the Type-C device and the control method thereof can reduce power consumption of the Type-C device when only cables are connected.
In a first aspect, the present application provides a connection state detection circuit of a Type-C device, including:
a detection control module;
the state detection circuit is connected with the detection control module and comprises a reference bias module, a current source and a comparator, wherein the reference bias module comprises a first reference bias module and a second reference bias module, the current source comprises a first current source and a second current source, a first pin of the comparator is connected with the reference bias module, a second pin of the comparator is connected with the current source, an output end of the comparator is connected with the detection control module, the power consumption of the first reference bias module is lower than that of the second reference bias module, and the power consumption of the first current source is lower than that of the second current source;
the Type-C interface is provided with a first connecting channel and a second connecting channel, and the state detection circuit is selectively connected with the first connecting channel or the second connecting channel;
The detection control module is used for controlling the state detection circuit to work in a first rough detection state when one of the first connection channel and the second connection channel is in an Ra state and the other one of the first connection channel and the second connection channel is in an Open state, and in the first rough detection state, the first pin is connected with the first reference bias module, and the second pin is connected with the first current source.
According to the connection state detection circuit of the Type-C device, the first reference bias module and the first current source with the low power consumption characteristic are arranged, and the state detection circuit of the second reference bias module and the second current source with the high-precision detection characteristic is used for judging that the Type-C device is only connected with a cable according to the connection state of the first connection channel and the second connection channel, and the detection control module controls the low power consumption part to work, so that the power consumption of the Type-C device only connected with the cable can be reduced.
According to one embodiment of the present application, further comprising: the first switch is connected between the Type-C interface and the second pin, and is used for switching connection between the first connection channel and the second connection channel according to a target time interval, so that the state detection circuit can be selectively connected with the first connection channel or the second connection channel.
According to an embodiment of the present application, the detection control module is configured to control the first switch to switch between the first connection channel and the second connection channel, and control the state detection circuit to operate in a third rough detection state when it is determined that the first connection channel is in an Ra state and the second connection channel is in an Open state.
According to an embodiment of the present application, the detection control module is configured to control the first switch to switch between the second connection channel and the second connection channel, and control the state detection circuit to operate in a fourth coarse detection state when it is determined that the first connection channel is in an Open state and the second connection channel is in an Ra state.
According to an embodiment of the present application, the detection control module is configured to control the state detection circuit to operate in a second coarse detection state when the first connection channel and the second connection channel are both in an Open state, where in the second coarse detection state, the first pin is connected to the first reference bias module, and the second pin is connected to the first current source.
According to an embodiment of the present application, the detection control module is configured to control the state detection circuit to operate in a first accurate detection state when the first connection channel or the second connection channel is not in an Open state and an Ra state, where the first pin is connected to the second reference bias module and the second pin is connected to the second current source.
In a second aspect, the present application provides a control method of a connection state detection circuit based on the Type-C device, where the method includes:
acquiring states corresponding to the first connecting channel and the second connecting channel;
and under the condition that one of the states of the first connecting channel and the second connecting channel is determined to be Ra state and the other is Openstate, controlling the state detection circuit to work in a first rough detection state, wherein in the first rough detection state, a first pin of a comparator of the state detection circuit is connected with a first reference bias module of the state detection circuit, and a second pin of the state detection circuit is connected with a first current source.
According to the control method of the connection state detection circuit of the Type-C device, the first reference bias module and the first current source with the low power consumption characteristic and the state detection circuit of the second reference bias module and the second current source with the high-precision detection characteristic are arranged, and when judging that the Type-C device is only connected with a cable according to the connection state of the first connection channel and the second connection channel, the detection control module controls the low power consumption part to work, so that the power consumption of the Type-C device only connected with the cable can be reduced.
In a third aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements a control method of the connection state detection circuit of the Type-C device according to the second aspect when the processor executes the computer program.
In a fourth aspect, the present application provides an ASIC integrated circuit, where the ASIC integrated circuit is configured to execute the control method of the connection state detection circuit of the Type-C device in the second aspect.
In a fifth aspect, the present application provides an FPGA integrated circuit, where the FPGA integrated circuit is configured to execute the control method of the connection state detection circuit of the Type-C device in the second aspect.
In a sixth aspect, the present application provides a non-transitory computer readable storage medium, on which a computer program is stored, the computer program implementing a control method of a connection state detection circuit of a Type-C device according to the second aspect described above when executed by a processor.
In a seventh aspect, the present application provides a computer program product, including a computer program, which when executed by a processor implements a control method of a connection state detection circuit of a Type-C device as described in the second aspect.
Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, wherein:
fig. 1 is one of schematic structural diagrams of a connection state detection circuit of a Type-C device provided in an embodiment of the present application;
fig. 2 is a second schematic structural diagram of a connection state detection circuit of a Type-C device according to an embodiment of the present disclosure;
fig. 3 is a state jump schematic diagram of a detection control module provided in an embodiment of the present application;
fig. 4 is a flowchart of a control method of a connection state detection circuit of a Type-C device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Reference numerals: the device comprises a detection control module 110, a state detection circuit 120, a first reference bias module 121, a second reference bias module 122, a comparator 123, a first current source 124, a second current source 125, a first resistor 126, a first connection channel 127, a second connection channel 128, a first switch 131, a second switch 132, a third switch 133, a fourth switch 134, a fifth switch 135, a sixth switch 136, a seventh switch 137 and a type-C interface 140;
An electronic device 500, a processor 501, a memory 502.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The connection state detection circuit of the Type-C device provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
As shown in fig. 1, the connection state detection circuit of the Type-C device includes: a detection control module 110, a status detection circuit 120, and a Type-C interface 140.
The detection control module 110 may be configured to operate based on a state machine, and in actual implementation, the operation state of the state detection circuit 120 may be controlled by the detection control module 110.
The state detection circuit 120 is connected with the detection control module 110, the state detection circuit 120 comprises a reference bias module, a current source and a comparator 123, a first pin of the comparator 123 is connected with the reference bias module, a second pin of the comparator 123 is connected with the current source, and an output end of the comparator 123 is connected with the detection control module 110.
The reference bias module is configured to provide a reference voltage to the comparator 123, the current source is configured to provide a power supply terminal voltage to the comparator 123, the comparator 123 is configured to determine a magnitude relation between the power supply terminal voltage and the reference voltage provided by the reference bias module, and transmit the magnitude relation to the detection control module 110, and the detection control module 110 controls the working state of the state detection circuit 120 according to the magnitude relation.
The reference bias module may include a voltage source for providing a reference voltage to the comparator 123.
In this embodiment, the reference bias modules include a first reference bias module 121 and a second reference bias module 122, and the current sources include a first current source 124 and a second current source 125.
The first reference bias module 121 and the first current source 124 cooperate to perform a detection operation, and the second reference bias module 122 and the second current source 125 cooperate to perform a detection operation.
The power consumption of the first reference bias module 121 is lower than that of the second reference bias module 122.
In actual implementation, the first reference bias module 121 switches between two reference voltages vth_dfp and vth_ufp, and the second reference bias module 122 switches between five reference voltages vrdmin_dfp, vrdmax_dfp, vramax_ufp, vRd-usbmax_ufp, and vRd-1.5max_ufp, and the power consumption of the first reference bias module 121 is lower than the power consumption of the second reference bias module 122.
In actual implementation, the connection state detection performed by the first reference bias module 121 and the first current source 124 in cooperation is a low-precision and low-power detection, and the connection state detection performed by the second reference bias module 122 and the second current source 125 in cooperation is a high-power and high-precision detection.
The reference bias module includes a first reference bias module 121 and a second reference bias module 122, and output ends of the first reference bias module 121 and the second reference bias module 122 are selectively connected to a first pin of the comparator 123, and accuracy of a voltage provided by the first reference bias module 121 is smaller than that provided by the second reference bias module 122, and power consumption of the first reference bias module 121 is lower than that of the second reference bias module 122.
The current source includes a first current source 124 and a second current source 125, where the first current source 124 and the second current source 125 are selectively connected to a second pin of the comparator 123, and the first current source 124 or the second current source 125 is connected to the first connection channel 127 or the second connection channel 128, so as to pull up the voltage of the first connection channel 127 or the second connection channel 128, and by matching the current sources with the reference bias module, the voltage range of the Type-C interface 140 connected to the device can be obtained, so that the connection state of the first connection channel 127 or the second connection channel 128 is obtained.
For example, the current provided by the first current source 124 is 1mA, the reference voltage is vth_dfp=5v, and when the output result of the comparator 123 is that the voltage of the first connection channel 127 is greater than the corresponding reference voltage of 5V, it is known that the resistance of the first connection channel 127 is greater than 5 kiloohms.
In this embodiment, the Type-C interface 140 is provided with a first connection channel 127 and a second connection channel 128, and the status detection circuit 120 selectively connects the first connection channel 127 or the second connection channel 128.
It should be noted that, the first connection channel 127 and the second connection channel 128 belong to a CC channel, and states of the CC channel point include five states, namely, src.open, src.rd, src.ra, snk.rd, and snk.rp.
The first connection channel 127 and the second connection channel 128 are two of a plurality of channels on a Type-C cable, wherein one channel is a wire which is directly communicated, and two ends of the other channel are grounded through a resistor Ra.
When no device is connected, the first connection channel 127 and the second connection channel 128 of the connection state detection circuit of the Type-C device are both in an Open state; when only the Type-C cable is connected, one of the first connection channel 127 and the second connection channel 128 is in an Ra state, and the other is in an Open state.
It should be noted that, when only the Type-C cable is connected, the first connection channel 127 and the second connection channel 128 cannot be in Ra state at the same time, and cannot be in Open state at the same time, and Ra/Open state of the first connection channel 127 and the second connection channel 128 is related to the access direction of the Type-C cable. For example, when only Type-C cables are connected, the first connection channel 127 may be in Ra state or in Open state. Similarly, when only Type-C cables are connected, the second connection channel 128 may be in Ra state or in Open state.
In actual implementation, the detection control module 110 is configured to control the state detection circuit 120 to operate in a first coarse detection state in which the first pin is connected to the first reference bias module 121 and the second pin is connected to the first current source 124 when one of the first connection channel 127 and the second connection channel 128 is in an Ra state and the other is in an Open state.
For example, after being connected to the Type-C cable, the first connection channel 127 is in an Open state, and when the second connection channel 128 is in an Ra state with the Type-C cable, the detection control module 110 controls the state detection circuit 120 to operate in a first coarse detection state, in which the first pin is connected to the first reference bias module 121 and the second pin is connected to the first current source 124.
It will be appreciated that when the first reference bias module 121 and the first current source 124 cooperate, the first reference bias module 121 switches between two reference voltages vth_dfp and vth_ufp, and when the second reference bias module 122 and the second current source 125 cooperate, the second reference bias module 122 switches between five reference voltages vrdmin_dfp, vrdmax_dfp, vramax_ufp, vRd-usbmax_ufp, and vRd-1.5max_ufp, and that the power consumption of the cooperation of the first reference bias module 121 and the first current source 124 is lower than the power consumption of the configuration operation of the second reference bias module 122 and the second current source 125.
In this embodiment, when the first connection channel 127 or the second connection channel 128 is in the Ra state and the other channel is in the Open state, it indicates that the Type-C device is only connected by a cable, and at this time, the first reference bias module 121 and the first current source 124 cooperate to complete the detection operation of the state detection circuit 120, that is, the state detection circuit 120 works in the first coarse detection state, so that the power consumption of the Type-C device can be reduced.
In the related art, the connection state of the Type-C device is generally roughly determined by the low precision reference bias module and the connection detection circuit, when it is determined that one CC port is not in the Open state, the connection state of the Type-C device is accurately determined by the high precision reference bias module and the connection detection circuit, but when it is determined by the low precision reference bias module that one CC port is in the Ra state, the connection state of the Type-C device is accurately determined by the high precision reference bias module and the connection detection circuit because the Ra state is not the Open state, and the high precision reference bias module is in the Ra state because one CC port is in the Open state and the other CC port is in the low precision detection state, so that the Type-C device is continuously switched between the low precision detection state and the high precision detection state, and standby power consumption is higher when the Type-C device is only connected with the Type-C cable.
In this embodiment, by setting the first reference bias module 121 and the first current source 124 with low power consumption characteristics, and the state detection circuit 120 with the second reference bias module 122 and the second current source 125 with high precision detection characteristics, according to the connection states of the first connection channel 127 and the second connection channel 128, it is determined whether the Type-C interface 140 is connected with a device or only connected with a cable, when the Type-C device is connected with only a Type-C cable, the detection control module 110 controls the first reference bias module 121 and the first current source 124 with low power consumption to perform detection operation, so that the connection state detection power consumption of the Type-C device when only connected with a cable can be reduced.
According to the connection state detection circuit of the Type-C device, which is provided by the embodiment of the application, by setting the first reference bias module 121 and the first current source 124 with the low power consumption characteristic and setting the second reference bias module 122 and the state detection circuit 120 of the second current source 125 with the high-precision detection characteristic, when judging that the Type-C device is only connected by the cable according to the connection state of the first connection channel 127 and the second connection channel 128, the detection control module 110 controls the low power consumption part to work, so that the power consumption of the Type-C device is reduced when the Type-C device is only connected by the cable.
In some embodiments, the connection state detection circuit of the Type-C device further comprises: a first switch 131.
The first switch 131 is connected between the Type-C interface 140 and the second pin, and the first switch 131 is configured to switch connection between the first connection channel 127 and the second connection channel 128 according to a target time interval, so that the state detection circuit 120 can selectively connect the first connection channel 127 or the second connection channel 128.
The first switch 131 switches connection between the first connection channel 127 and the second connection channel 128 according to a target time interval, so that the state detection circuit 120 can be selectively connected with the first connection channel 127 or the second connection channel 128, and further, the state of the first connection channel 127 or the second connection channel 128 can be obtained, and the detection control module 110 controls the working state of the state detection circuit 120 according to the states of the first connection channel 127 and the second connection channel 128.
In this embodiment, the target time interval may be a preset period of time for switching, for example, the target time interval may be 1 ms, and the target time interval may be adjusted according to the actual detection requirement.
In actual execution, when the first switch 131 is connected to the first connection passage 127, the state of the first connection passage 127 is acquired; when the first switch 131 is switched to connect the second connection passage 128, the state of the second connection passage 128 is acquired.
The first switch 131 is periodically switched according to the target time interval to connect the first connection channel 127 and the second connection channel 128, and the states of the first connection channel 127 and the second connection channel 128 are obtained, so as to judge that no equipment is connected or only a Type-C cable is connected currently.
A specific embodiment is described below.
In step 1, the first switch 131 is connected to the first connection channel 127, the reference bias module switches the reference voltage, and obtains the current voltage range of the first connection channel 127, and according to the voltage range and the current value of the current source, the state of the first connection channel 127 is obtained.
In this step, the first connection passage 127 may be in an Open state, an Ra state, or a state in which neither is the case.
Step 2, the first switch 131 is switched to connect the second connection channel 128, the reference bias module switches the reference voltage to obtain the current voltage range of the second connection channel 128, and the state of the second connection channel 128 is obtained according to the voltage range and the current value of the current source.
In this step, the second connection channel 128 may be in an Open state, an Ra state, or a state in which neither is the case.
And 3, judging the current equipment connection state according to the states of the first connection channel 127 and the second connection channel 128 obtained in the step 1 and the step 2, wherein the current equipment connection state comprises three conditions of no equipment connection, equipment connection or only Type-C cable connection.
In actual execution, steps 1 to 3 are repeated continuously, and the states of the two CC channels of the first connection channel 127 and the second connection channel 128 are updated in time.
In an embodiment of the present application, the first coarse detection state may further include a third coarse detection state and a fourth coarse detection state.
First, the first coarse detection state is a third coarse detection state.
In this embodiment, the detection control module 110 is configured to control the first switch 131 to switch between the first connection channel 127 and the second connection channel 128, and in the case where it is determined that the first connection channel 127 is in the Ra state and the second connection channel 128 is in the Open state, the detection control module 110 controls the state detection circuit 120 to operate in the third coarse detection state.
In the third coarse detection state, the first pin is connected to the first reference bias module 121 and the second pin is connected to the first current source 124.
In this embodiment, a first pin of the comparator 123 in the state detection circuit 120 is connected to the first reference bias module 121, a second pin of the comparator 123 is connected to the first current source 124, and the power consumed by the state detection circuit 120 is low.
Second, the first coarse detection state includes a fourth coarse detection state.
In this embodiment, the detection control module 110 is configured to control the first switch 131 to switch between the first connection channel 127 and the second connection channel 128, and in the case where it is determined that the first connection channel 127 is in the Open state and the second connection channel 128 is in the Ra state, the detection control module 110 controls the state detection circuit 120 to operate in the fourth coarse detection state.
In the fourth coarse detection state, the first pin is connected to the first reference bias block 121 and the second pin is connected to the first current source 124.
In this embodiment, the first pin of the comparator 123 in the state detection circuit 120 is also connected to the first reference bias module 121, the second pin of the comparator 123 is connected to the first current source 124, and the power consumed by the state detection circuit 120 is low.
It is understood that the first coarse detection state may include a third coarse detection state and a fourth coarse detection state, both of which are low power consumption by the first reference bias module 121 and the first current source 124 working together.
It should be noted that, the first switch 131 is periodically switched between the first connection channel 127 and the second connection channel 128 all the time, and enters the third coarse detection state when the first connection channel 127 is in the Ra state and the second connection channel 128 is in the Open state; when the first connection channel 127 is in the Open state and the second connection channel 128 is in the Ra state, the fourth coarse detection state is entered.
In some embodiments, the detection control module 110 is configured to control the state detection circuit 120 to operate in a second coarse detection state in which the first pin is connected to the first reference bias module 121 and the second pin is connected to the first current source 124, where the first connection channel 127 and the second connection channel 128 are both in an Open state.
In this embodiment, when the first connection channel 127 and the second connection channel 128 in the state detection circuit 120 are in the Open state, which indicates that there is no device and Type-C cable connection, the detection control module 110 controls the state detection circuit 120 to operate in the second coarse detection state, in which the first pin is connected to the first reference bias module 121 and the second pin is connected to the first current source 124.
In this embodiment, a first pin of the comparator 123 in the state detection circuit 120 is connected to the first reference bias module 121, a second pin of the comparator 123 is connected to the first current source 124, and the power consumed by the state detection circuit 120 is low.
It can be appreciated that when the Type-C device is not connected to the Type-C cable and the Type-C device is only connected to the Type-C cable, the Type-C device is connected to the first reference bias module 121 and the second reference bias module 124 through the first pin, and the detection work is completed by matching the first reference bias module 121 and the first current source 124, which are both low-power state detection circuits 120, and when the Type-C device is only connected to the Type-C cable, the power consumption of the Type-C device can be reduced.
In some embodiments, the detection control module 110 is configured to control the state detection circuit 120 to operate in a first accurate detection state in which the first pin is connected to the second reference bias module 122 and the second pin is connected to the second current source 125, when the first connection channel 127 or the second connection channel 128 is not in the Open state and the Ra state.
When the first switch 131 is connected to the first connection channel 127 or the second connection channel 128, and the first connection channel 127 or the second connection channel 128 is neither in the Open state nor in the Ra state, it indicates that there is a device access, and at this time, the detection control module 110 controls the state detection circuit 120 to operate in the first accurate detection state, the first pin is connected to the second reference bias module 122, and the second pin is connected to the second current source 125.
The second reference bias module 122 and the second current source 125 cooperate to perform detection work, so that the voltage range of the device connected with the connection channel of the Type-C device can be accurately judged, the Type of the connected device can be accurately obtained, and operations such as VBUS mode configuration, PD protocol communication, USB data transmission and the like are completed between the connected device and the Type-C device.
As shown in fig. 2, in other embodiments, the state detection circuit 120 further includes a first resistor 126, a second switch 132, a third switch 133, a fourth switch 134, a fifth switch 135, a sixth switch 136, and a seventh switch 137, where the second switch 132 is disposed between the second pin and the connection lines of the first connection channel 127 and the second connection channel 128 and the current source, and the second switch 132 is used to close and open at a target time interval, and control the current source and the second pin to connect and open at the target time interval;
the first resistor 126 has one end connected to Vss and the other end connected to the third switch 133, the third switch 133 is disposed between the second pin and the connection line of the first connection channel 127 and the second connection channel 128 and the first resistor 126, the second switch 132 is used for opening and closing according to a target time interval, and the first resistor 126 and the second pin are controlled to be opened and connected according to the target time interval;
the fourth switch 134 is connected between the second switch 132 and the current source, and the fourth switch 134 may be connected to one of the first current source 124 and the second current source 125, so that the second pin may be selectively connected to the first current source 124 or the second current source 125;
the fifth switch 135 is connected between the first pin and the reference bias module, and the fifth switch 135 may be connected with one of the first reference bias module 121 and the second reference bias module 122 so that the first pin is selectively connected with the first reference bias module 121 or the second reference bias module 122;
The sixth switch 136 is connected between the fifth switch 135 and the second reference bias module 122 such that the comparator 123, when connected to the second reference bias module 122, selectively connects a different second reference voltage provided by the second reference bias module 122.
The seventh switch 137 is connected between the fifth switch 135 and the first reference bias module 121, so that the comparator 123 selectively connects different first reference voltages provided by the first reference bias module 121 when connecting the first reference bias module 121.
In this embodiment, as shown in fig. 3, the detection control module 110 is configured to control the state detection circuit 120 to jump between the second coarse detection state (t_cc1cc2), the third coarse detection state (t_cc2), the fourth coarse detection state (t_cc1), and the first fine detection state (CC 1CC 2).
In fig. 3, CC1 indicates a first connection channel 127, CC2 indicates a second connection channel 128, the coarse detection connection success is a second coarse detection success, CC1 coarse detection success is a fourth coarse detection success, and CC2 coarse detection success is a third coarse detection success.
Wherein a successful coarse detection indicates that the Type-C interface 140 has device access, the detection control module 110 controls the state detection circuit 120 to operate in the first precise detection state.
The following describes in detail the jump between the different operating states of the state detection circuit 120 with reference to fig. 2 and 3.
In this embodiment, the Type-C device may include two working states:
the Type-C device may be at least one implementation form as follows:
first, the Type-C device is a Source device (a device that provides power).
In this case, the second switch 132 is closed, the third switch 133 is opened, the second pin is connected to the current Source, the Type-C device is a Source device, in the first or second coarse detection state, when no device is connected to the Type-C cable, the voltage of the first or second connection channel 127 or 128 is raised to Vdd (> vth_dfp) by the current Source, and at this time, the state detection circuit 120 is in the second coarse detection state, the fifth switch 135 is connected to the first reference bias module 121, the seventh switch 137 is pointed to vth_dfp, and vth_dfp is the first reference voltage of the Source device in the Type-C device.
When the seventh switch 137 points to vth_dfp, the first switch 131 is connected to the first connection channel 127, the voltage of the first connection channel 127 is greater than the first reference voltage, the first connection channel 127 is in an Open state, the second connection channel 128 is disconnected, and the second connection channel 128 is also in an Open state, which indicates that the Type-C interface 140 has no device connection and no Type-C cable connection.
When the first switch 131 is connected to the second connection channel 128, the voltage of the second connection channel 128 is greater than the first reference voltage, the second connection channel 128 is in an Open state, the first connection channel 127 is disconnected, and the first connection channel 127 is also in the Open state, which also indicates that the Type-C interface 140 has no device connection and no Type-C cable connection.
With the seventh switch 137 directed to vth_dfp, the first switch 131 is connected to the first connection channel 127, the voltage of the first connection channel 127 is pulled down to lsrc Ra (< vth_dfp) by the pull-down resistance of the Type-C cable, i.e., the channel is in Ra state, while the second connection channel 128 is disconnected, and the second connection channel 128 is in Open state, indicating that the Type-C interface 140 is connected only to the Type-C cable, and the final state detection circuit 120 is in the third coarse detection state.
When the first switch 131 is connected to the second connection channel 128, the voltage of the second connection channel 128 is pulled down to lsrc Ra (< vth_dfp) by the pull-down resistor of the Type-C cable, that is, the channel is in Ra state, and the first connection channel 127 is turned off, in the case that the first connection channel 127 is in Open state, it also indicates that the Type-C interface 140 is connected to only the Type-C cable, and the final state detection circuit 120 is in the fourth coarse detection state.
When the first switch 131 is connected to the first connection channel 127, the voltage of the first connection channel 127 is pulled down to lsrc Rd (< vth_dfp), the voltage of the first connection channel 127 is smaller than the first reference voltage, if the voltage of the second connection channel 128 is also smaller than the first reference voltage at this time, which indicates that the Type-C interface 140 is connected with a device, the detection control module 110 controls the state detection circuit 120 to operate in the first accurate detection state, the first pin is connected to the second reference bias module 122, and the second pin is connected to the second current source 125.
At this time, the fifth switch 135 is connected to the second reference bias module 122, and the sixth switch 136 is periodically switched in the directions of vrdmin_dfp and vrdmax_dfp, where vrdmin_dfp and vrdmax_dfp are used to accurately determine the voltage values of the two CC channels of the first connection channel 127 and the second connection channel 128.
In actual implementation, when the voltage value of the first connection channel 127 or the second connection channel 128 is greater than vrdmax_dfp, the first connection channel 127 or the second connection channel 128 is in the Open state in Source mode.
When the voltage value of the first connection channel 127 or the second connection channel 128 is greater than or less than vrdmin_dfp, the first connection channel 127 or the second connection channel 128 is in Ra state in Source mode.
When the first switch 131 is connected to the second connection channel 128, the voltage of the second connection channel 128 is pulled down to lsrc×rd (< vth_dfp) by the device connected to the Type-C interface 140, and if the voltage of the second connection channel 128 is smaller than the first reference voltage, the voltage of the first connection channel 127 is also smaller than the first reference voltage at this time, which indicates that the Type-C interface 140 is connected to the device, and the detection control module 110 controls the state detection circuit 120 to operate in the first accurate detection state.
In the case where both the first connection channel 127 and the second connection channel 128 are pulled up to Vdd (> vrdmax_dfp) by the second current source 125, both the first connection channel 127 and the second connection channel 128 are in the Open state, which indicates that the Type-C cable and the device connected by the Type-C interface 140 are pulled out, the detection control module 110 controls the state detection circuit 120 to operate in the second coarse detection state.
In the case where the first switch 131 is connected to the first connection channel 127, the voltage of the first connection channel 127 is pulled down to lsrc1 Ra (< vrdmin_dfp) by the resistance of the Type-C cable, i.e., the channel is in Ra state, and the second connection channel 128 is disconnected, in the Open state, indicating that the device connected to the Type-C interface 140 is unplugged but the Type-C cable is connected, the detection control module 110 controls the state detection circuit 120 to operate in the third coarse detection state.
In the case where the first switch 131 is connected to the second connection channel 128, the voltage of the second connection channel 128 is pulled down to lsrc1 Ra (< vrdmin_dfp) by the Type-C cable, that is, the channel is in Ra state, and the first connection channel 127 is disconnected, in the Open state, indicating that the device connected to the Type-C interface 140 is pulled out but the Type-C cable is connected, the detection control module 110 controls the state detection circuit 120 to operate in the fourth coarse detection state.
Second, the Type-C device is a Sink device (a device that consumes electrical energy).
In this case, the second switch 132 is opened, the third switch 133 is closed, the second pin is connected to the first resistor 126, the Type-C device is a Sink device, and in the first or second coarse detection state, when no device is connected or only the Type-C cable is connected, the voltage of the first or second connection channel 127 or 128 is pulled down to Vss (< vth_ufp) by the first resistor 126.
At this time, the state detection circuit 120 is in the first coarse detection state or the second coarse detection state, the fifth switch 135 is connected to the first reference bias module 121, and the seventh switch 137 is pointed to vth_ufp, which is the first reference voltage of the Sink device in the Type-C device.
In the case that the seventh switch 137 points to vth_ufp, the first switch 131 is connected to the first connection channel 127, the voltage of the first connection channel 127 is smaller than the first reference voltage, the first connection channel 127 is in the Open state, the second connection channel 128 is disconnected, and the second connection channel 128 is also in the Open state, which indicates that the Type-C interface 140 is not connected by a device or is connected by a Type-C cable only, and the detection control module 110 controls the state detection circuit 120 to maintain in the first coarse detection state or the second coarse detection state.
When the first switch 131 is connected to the second connection channel 128, the voltage of the second connection channel 128 is smaller than the first reference voltage, the second connection channel 128 is in an Open state, the first connection channel 127 is disconnected, and the first connection channel 127 is also in the Open state, which indicates that the Type-C interface 140 has no device connection or only a Type-C cable connection.
When the first switch 131 is connected to the first connection channel 127, the voltage of the first connection channel 127 is pulled up to lsrc2×rd (> vth_ufp) by the current source lsrc2 of the device connected to the Type-C interface 140, and the voltage of the first connection channel 127 is greater than the first reference voltage, which indicates that the Type-C interface 140 is connected to the device, the detection control module 110 controls the state detection circuit 120 to operate in the first accurate detection state, the first pin is connected to the second reference bias module 122, and the second pin is connected to the second current source 125.
At this time, the fifth switch 135 is connected to the second reference bias module 122, the sixth switch 136 periodically switches between the voltages of vramax_ufp, vRd-usbmax_ufp and vRd-1.5max_ufp, vramax_ufp, vRd-usbmax_ufp and vRd-1.5max_ufp, and the voltage corresponding to vRd-usbmax_ufp is greater than the voltage corresponding to vramax_ufp, and the voltage corresponding to vRd-1.5max_ufp is greater than the voltage corresponding to vRd-usbmax_ufp, for identifying the Type of the access device at the Type-C interface 140.
When the first switch 131 is connected to the second connection channel 128, and the voltage of the second connection channel 128 is pulled up to lsrc2×rd (> vth_ufp) by the current source of the device connected to the Type-C interface 140, and the voltage of the second connection channel 128 is greater than the first reference voltage, it indicates that the Type-C interface 140 is connected to the device, and the detection control module 110 controls the state detection circuit 120 to operate in the first accurate detection state.
In the case where both the first connection channel 127 and the second connection channel 128 are pulled down to Vss (< vrdmax_ufp) by the first resistor 126, and both the first connection channel 127 and the second connection channel 128 are in the Open state, the detection control module 110 controls the state detection circuit 120 to operate in the second coarse detection state.
It should be noted that, the detection control module 110 is a control center of a connection state detection circuit of the Type-C device, and in actual implementation, the detection control module 110 may be designed as an application specific integrated circuit (ASCI) or may be designed as an integrated circuit based on a field programmable gate array (Field Programmable Gate Array, FPGA). The detection control module 110 may control the connection state detection circuit of the Type-C device, and execute the control method of the connection state detection circuit of the Type-C device.
The control method of the connection state detection circuit of the Type-C device provided in the embodiment of the present application is described in detail below through a specific embodiment and an application scenario thereof.
The control method of the connection state detection circuit of the Type-C device can be applied to a terminal, and can be specifically executed by hardware or software in the terminal.
The terminal includes, but is not limited to, a portable communication device such as a mobile phone or tablet having a touch sensitive surface (e.g., a touch screen display and/or a touch pad). It should also be appreciated that in some embodiments, the terminal may not be a portable communication device, but rather a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or a touch pad).
In the following various embodiments, a terminal including a display and a touch sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and joystick.
The execution main body of the control method of the connection state detection circuit of the Type-C device provided by the embodiment of the application may be an electronic device or a functional module or a functional entity in the electronic device, which can implement the control method of the connection state detection circuit of the Type-C device.
As shown in fig. 4, the control method of the connection state detection circuit of the Type-C device includes:
In this step, the states corresponding to the connection channel may be an Open state, an Ra state, and other states.
Wherein the other state is a state when the connection channel is connected with the device.
In this embodiment, the detection control module 110 is connected to a state detection circuit 120, the state detection circuit 120 including a reference bias module, a current source, and a comparator 123, the state detection circuit 120 being selectively connected to a first connection channel 127 and a second connection channel 128.
The reference bias module is configured to provide a reference voltage to the comparator 123, the current source is connected to the first connection channel 127 or the second connection channel 128 to provide a connection channel terminal voltage to the comparator 123, and according to a comparison result of the comparator 123, the detection control module 110 may obtain states of the first connection channel 127 and the second connection channel 128.
In actual implementation, the detection control module 110 may obtain the states of the first connection channel 127 and the second connection channel 128, and control the state detection circuit 120 to operate in different states according to the states of the first connection channel 127 and the second connection channel 128.
In step 420, when it is determined that one of the states of the first connection channel 127 and the second connection channel 128 is Ra and the other is Open, the control state detection circuit 120 operates in the first coarse detection state.
In the first coarse detection state, a first pin of the comparator 123 of the state detection circuit 120 is connected to the first reference bias module 121 of the state detection circuit, and a second pin of the comparator 123 of the state detection circuit 120 is connected to the first current source 124.
In this step, when the first connection channel 127 or the first connection channel 127 is in the Ra state and the other channel is in the Open state, it indicates that the Type-C device is only connected by the Type-C cable, and the detection control module 110 controls the state detection circuit 120 to operate in the first coarse detection state.
In the first coarse detection state, state detection circuit 120 operates in conjunction with first current source 124 via first reference bias block 121.
In some embodiments, the first coarse detection state may further include a third coarse detection state and a fourth coarse detection state.
When the first connection channel 127 is in the Ra state and the second connection channel 128 is in the Open state, the detection control module 110 controls the state detection circuit 120 to operate in the third coarse detection state.
When the second connection channel 128 is in the Ra state and the first connection channel 127 is in the Open state, the detection control module 110 controls the state detection circuit 120 to operate in the fourth coarse detection state.
In some embodiments, when the first connection channel 127 and the second connection channel 128 are both in the Open state, indicating that the Type-C device has no device connection and no Type-C cable connection, the detection control module 110 controls the state detection circuit 120 to operate in the second coarse detection state.
In some embodiments, when the first connection channel 127 or the second connection channel 128 is neither in the Open state nor in the Ra state, indicating that the Type-C device has a device connection, the detection control module 110 controls the state detection circuit 120 to operate in the first accurate detection state.
According to the control method of the connection state detection circuit of the Type-C device, which is provided by the embodiment of the application, by setting the first reference bias module 121 and the first current source 124 with the low power consumption characteristic and the state detection circuit 120 of the second reference bias module 122 and the second current source 125 with the high-precision detection characteristic, when judging that the Type-C device is only connected by the cable according to the connection state of the first connection channel 127 and the second connection channel 128, the detection control module 110 controls the low power consumption part to work, so that the power consumption of the Type-C device can be reduced when the Type-C device is only connected by the cable.
In some embodiments, as shown in fig. 5, the embodiment of the present application further provides an electronic device 500, including a processor 501, a memory 502, and a computer program stored in the memory 502 and capable of running on the processor 501, where the program, when executed by the processor 501, implements the respective processes of the control method embodiment of the connection state detection circuit of the Type-C device, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
The embodiment of the application also provides an ASCI integrated circuit, which can execute the control method of the connection state detection circuit of the Type-C equipment.
The embodiment of the application also provides an FPGA integrated circuit, which can execute the control method of the connection state detection circuit of the Type-C equipment. The embodiment of the application further provides a non-transitory computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements each process of the control method embodiment of the connection state detection circuit of the Type-C device, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application also provides a computer program product, which comprises a computer program, and the computer program realizes the control method of the connection state detection circuit of the Type-C device when being executed by a processor.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.
In the description of the present specification, reference to the terms "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present application have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the application, the scope of which is defined by the claims and their equivalents.
Claims (10)
1. Connection state detection circuitry of Type-C equipment, its characterized in that includes:
a detection control module;
the state detection circuit is connected with the detection control module and comprises a reference bias module, a current source and a comparator, wherein the reference bias module comprises a first reference bias module and a second reference bias module, the current source comprises a first current source and a second current source, a first pin of the comparator is connected with the reference bias module, a second pin of the comparator is connected with the current source, an output end of the comparator is connected with the detection control module, the power consumption of the first reference bias module is lower than that of the second reference bias module, and the power consumption of the first current source is lower than that of the second current source;
The Type-C interface is provided with a first connecting channel and a second connecting channel, and the state detection circuit is selectively connected with the first connecting channel or the second connecting channel;
the detection control module is used for controlling the state detection circuit to work in a first rough detection state when one of the first connection channel and the second connection channel is in an Ra state and the other one of the first connection channel and the second connection channel is in an Open state, and in the first rough detection state, the first pin is connected with the first reference bias module, and the second pin is connected with the first current source.
2. The connection state detection circuit of a Type-C device of claim 1, further comprising:
the first switch is connected between the Type-C interface and the second pin, and is used for switching connection between the first connection channel and the second connection channel according to a target time interval, so that the state detection circuit can be selectively connected with the first connection channel or the second connection channel.
3. The connection state detection circuit of the Type-C device of claim 2, wherein the detection control module is configured to control the first switch to switch between the first connection channel and the second connection channel, and to control the state detection circuit to operate in a third coarse detection state if it is determined that the first connection channel is in an Ra state and the second connection channel is in an Open state.
4. The connection state detection circuit of the Type-C device of claim 2, wherein the detection control module is configured to control the first switch to switch between the second connection channel and the second connection channel, and to control the state detection circuit to operate in a fourth coarse detection state if it is determined that the first connection channel is in an Open state and the second connection channel is in an Ra state.
5. The connection state detection circuit of a Type-C device according to any one of claims 1-4, wherein the detection control module is configured to control the state detection circuit to operate in a second coarse detection state in which the first pin is connected to a first reference bias module and the second pin is connected to a first current source, when the first connection channel and the second connection channel are both in an Open state.
6. The connection state detection circuit of a Type-C device according to any one of claims 1 to 4, wherein the detection control module is configured to control the state detection circuit to operate in a first accurate detection state in which the first pin is connected to a second reference bias module and the second pin is connected to a second current source, when the first connection channel or the second connection channel is not in an Open state or an Ra state.
7. A control method of a connection state detection circuit based on the Type-C device according to any one of claims 1 to 6, comprising:
acquiring states corresponding to the first connecting channel and the second connecting channel;
and under the condition that one of the states of the first connecting channel and the second connecting channel is determined to be Ra state and the other is Openstate, controlling the state detection circuit to work in a first rough detection state, wherein in the first rough detection state, a first pin of a comparator of the state detection circuit is connected with a first reference bias module of the state detection circuit, and a second pin of the state detection circuit is connected with a first current source.
8. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the control method of the connection state detection circuit of the Type-C device of claim 7 when executing the program.
9. An ASIC integrated circuit for executing the control method of the connection state detection circuit of the Type-C device according to claim 7.
10. An FPGA integrated circuit for executing the control method of the connection state detection circuit of the Type-C device of claim 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310481294.3A CN116204389B (en) | 2023-04-28 | 2023-04-28 | Connection state detection circuit of Type-C equipment and control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310481294.3A CN116204389B (en) | 2023-04-28 | 2023-04-28 | Connection state detection circuit of Type-C equipment and control method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116204389A true CN116204389A (en) | 2023-06-02 |
CN116204389B CN116204389B (en) | 2023-08-08 |
Family
ID=86513263
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310481294.3A Active CN116204389B (en) | 2023-04-28 | 2023-04-28 | Connection state detection circuit of Type-C equipment and control method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116204389B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117250566A (en) * | 2023-09-18 | 2023-12-19 | 珠海智融科技股份有限公司 | Type-C connection detection circuit and electronic equipment |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5107440A (en) * | 1990-08-09 | 1992-04-21 | Pacific Scientific Company | Electrical load management with autogenically transmitted status data |
KR20040031649A (en) * | 2002-10-07 | 2004-04-13 | 산요덴키가부시키가이샤 | Charge controlling circuit and voltage regulating method for detecting full-charge of secondaty battery in the charge controlling circuit |
CN106020176A (en) * | 2016-07-29 | 2016-10-12 | 珠海智融科技有限公司 | CC logic control chip low power consumption connection detection method and structure |
CN106021150A (en) * | 2016-04-29 | 2016-10-12 | 青岛海信电器股份有限公司 | Type-C interface equipment, communication system and communication method |
US20160342492A1 (en) * | 2015-05-22 | 2016-11-24 | Jianli Chen | Usb interface detector |
US20170139467A1 (en) * | 2015-11-13 | 2017-05-18 | Texas Instruments Incorporated | Usb interface circuit and method for low power operation |
US20170344505A1 (en) * | 2016-05-25 | 2017-11-30 | Realtek Semiconductor Corporation | Data Processing Circuit and Data Processing Method |
EP3270297A1 (en) * | 2016-07-12 | 2018-01-17 | Samsung Electronics Co., Ltd | Electronic device supporting usb interface and control method for usb interface |
CN109672950A (en) * | 2017-10-13 | 2019-04-23 | 华为终端(东莞)有限公司 | A kind of power-saving circuit and electricity saving method based on Type-C earphone |
CN110221163A (en) * | 2019-03-21 | 2019-09-10 | 珠海智融科技有限公司 | A kind of the connecting detection method and detection circuit of USB Type-C interface |
CN113590402A (en) * | 2021-07-30 | 2021-11-02 | 深圳市广和通无线股份有限公司 | Pin testing device, method, control equipment and storage medium |
-
2023
- 2023-04-28 CN CN202310481294.3A patent/CN116204389B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5107440A (en) * | 1990-08-09 | 1992-04-21 | Pacific Scientific Company | Electrical load management with autogenically transmitted status data |
KR20040031649A (en) * | 2002-10-07 | 2004-04-13 | 산요덴키가부시키가이샤 | Charge controlling circuit and voltage regulating method for detecting full-charge of secondaty battery in the charge controlling circuit |
US20160342492A1 (en) * | 2015-05-22 | 2016-11-24 | Jianli Chen | Usb interface detector |
CN106291210A (en) * | 2015-05-22 | 2017-01-04 | 快捷半导体(苏州)有限公司 | USB interface detector, detection method, USB connector and electronic equipment |
US20170139467A1 (en) * | 2015-11-13 | 2017-05-18 | Texas Instruments Incorporated | Usb interface circuit and method for low power operation |
CN106021150A (en) * | 2016-04-29 | 2016-10-12 | 青岛海信电器股份有限公司 | Type-C interface equipment, communication system and communication method |
US20170344505A1 (en) * | 2016-05-25 | 2017-11-30 | Realtek Semiconductor Corporation | Data Processing Circuit and Data Processing Method |
EP3270297A1 (en) * | 2016-07-12 | 2018-01-17 | Samsung Electronics Co., Ltd | Electronic device supporting usb interface and control method for usb interface |
CN106020176A (en) * | 2016-07-29 | 2016-10-12 | 珠海智融科技有限公司 | CC logic control chip low power consumption connection detection method and structure |
CN109672950A (en) * | 2017-10-13 | 2019-04-23 | 华为终端(东莞)有限公司 | A kind of power-saving circuit and electricity saving method based on Type-C earphone |
CN110221163A (en) * | 2019-03-21 | 2019-09-10 | 珠海智融科技有限公司 | A kind of the connecting detection method and detection circuit of USB Type-C interface |
CN113590402A (en) * | 2021-07-30 | 2021-11-02 | 深圳市广和通无线股份有限公司 | Pin testing device, method, control equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117250566A (en) * | 2023-09-18 | 2023-12-19 | 珠海智融科技股份有限公司 | Type-C connection detection circuit and electronic equipment |
CN117250566B (en) * | 2023-09-18 | 2024-05-03 | 珠海智融科技股份有限公司 | Type-C connection detection circuit and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN116204389B (en) | 2023-08-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109947496B (en) | Application program preloading method and device, storage medium and mobile terminal | |
CN106990888B (en) | Application display control method and device | |
CN116204389B (en) | Connection state detection circuit of Type-C equipment and control method thereof | |
CN107390976B (en) | Icon display processing method and electronic equipment | |
WO2020133418A1 (en) | Application icon display method and apparatus, and storage medium and electronic device | |
WO2013094624A1 (en) | Information processing device | |
US12093472B2 (en) | Stylus and control method therefor, and electronic device | |
CN103185867A (en) | Battery managing method and apparatus, and electronic device using the same | |
CN101872284A (en) | Display mode switching method of functional keys and terminal | |
US11036670B2 (en) | Electronic device having USB Type-C interface, control method, and readable storage | |
CN108347068A (en) | A kind of method and mobile terminal of charging | |
CN104598238A (en) | Shielding method of application push message and intelligent terminal | |
CN107770376A (en) | The control method and mobile terminal of a kind of mobile terminal | |
CN110368676A (en) | Control method, device, storage medium and the electronic equipment of touch information | |
CN110098826A (en) | The detection method of chip circuit and its state of a control, electronic equipment and medium | |
CN109582114A (en) | A kind of mobile terminal and its start-up control method | |
CN109002339A (en) | Touch operation method and device, storage medium and electronic equipment | |
CN109861038B (en) | USB connection port capable of automatically switching connection mode and control method thereof | |
US11556158B2 (en) | On-the-go (OTG) control and configuration method, mobile terminal, and storage medium | |
CN104750369B (en) | The control method and device of rapid switch in a kind of intelligent terminal | |
CN107544740B (en) | Application processing method and device, storage medium and electronic equipment | |
CN210109804U (en) | Interface circuit system for microcomputer control | |
CN109085983A (en) | Operation control method, operation control device, storage medium and electronic equipment | |
CN113451669B (en) | Charging method and device, electronic equipment and storage medium | |
CN112791392A (en) | Touch data processing method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |