USB interface detector
First Claim
1. A universal serial bus (USB) interface detection method, applicable to a USB connector mounted in a first device, the method comprising:
- pulling up a voltage of a first pin and a voltage of a second pin in the USB connector in a downstream facing port (DFP) operation mode to be higher than a first reference voltage using a terminating circuit;
enabling a first comparator and a second comparator during a first phase, the first phase including;
comparing the voltage of the first pin with the first reference voltage using the first comparator;
comparing the voltage of the second pin with the first reference voltage using the second comparator;
enabling a third comparator and a fourth comparator during a second phase in response to at least one of the voltage of the first pin or the voltage of the second pin being less than the first reference voltage, the second phase including;
comparing each of the voltage of the first pin and the voltage of the second pin to a second reference voltage and a third reference voltage using the first comparator, the second comparator, the third comparator, and the fourth comparator; and
providing, at an output terminal, an instruction related to attachment or detachment of the first device with a second device based on an output of the first comparator, an output of the second comparator, an output of the third comparator, and an output of the fourth comparator during the second phase.
4 Assignments
0 Petitions
Accused Products
Abstract
Systems and methods are disclosed, including a USB interface detector, a detection method, a USB connector, and an electronic device. The detection method may be applicable to the USB connector mounted in the electronic device. According to an operation mode of the electronic device, a first pin and a second pin in the USB interface can be pulled up or pulled down. After the pull up or the pull down, a voltage change at the first and second pins are detected. If the voltage changes cross a reference voltage, an instruction related to attachment or detachment with a second device can be provided.
-
Citations
17 Claims
-
1. A universal serial bus (USB) interface detection method, applicable to a USB connector mounted in a first device, the method comprising:
-
pulling up a voltage of a first pin and a voltage of a second pin in the USB connector in a downstream facing port (DFP) operation mode to be higher than a first reference voltage using a terminating circuit; enabling a first comparator and a second comparator during a first phase, the first phase including; comparing the voltage of the first pin with the first reference voltage using the first comparator; comparing the voltage of the second pin with the first reference voltage using the second comparator; enabling a third comparator and a fourth comparator during a second phase in response to at least one of the voltage of the first pin or the voltage of the second pin being less than the first reference voltage, the second phase including; comparing each of the voltage of the first pin and the voltage of the second pin to a second reference voltage and a third reference voltage using the first comparator, the second comparator, the third comparator, and the fourth comparator; and providing, at an output terminal, an instruction related to attachment or detachment of the first device with a second device based on an output of the first comparator, an output of the second comparator, an output of the third comparator, and an output of the fourth comparator during the second phase. - View Dependent Claims (2, 8, 9, 10, 11, 12, 13)
-
-
3. A universal serial bus (USB) interface detector, applicable to a USB connector mounted in a first device, comprising:
-
a first detection terminal and a second detection terminal, respectively connected to a first pin and a second pin of the USB connector; a terminating circuit configured to pull up a voltage of the first pin and a voltage of the second pin in a downstream facing port (DFP) operation mode and to pull down the voltage of the first pin and the voltage of the second pin in an upstream facing port (UFP) operation mode; a comparator circuit including a plurality of comparators operable during a first phase and a second phase, the plurality of comparators including a first comparator, a second comparator, a third comparator, and a fourth comparator, each of the plurality of comparators selectively coupled to either the first pin or the second pin, each of the plurality of comparators being coupled to a different reference voltage, at least one of the plurality of comparators being disabled during the first phase, wherein, during the first phase, the first comparator is configured to compare the voltage of the first pin to a first reference voltage, and the second comparator is configured to compare the voltage of the second pin to the first reference voltage, wherein, during the second phase, each of the first comparator, the second comparator, the third comparator, and the fourth comparator is configured to compare the voltage of the first pin or the second pin to a different reference voltage; a selection circuit configured to selectively couple the first pin or the second pin to each of the plurality of comparators; and a digital control circuit coupled to outputs of the plurality of comparators, the digital control circuit configured to receive an instruction based on results of comparisons performed by the plurality of comparators. - View Dependent Claims (4, 5, 6, 7)
-
-
14. A universal serial bus (USB) interface detection method, applicable to a USB connector mounted in a first device, the method comprising:
-
pulling down a voltage of a first pin and a voltage of a second pin in the USB connector in an upstream facing port (UFP) operation mode to be lower than a first reference voltage using a terminating circuit; enabling a first comparator and a second comparator during a first phase, the first phase including; comparing the voltage of the first pin with the first reference voltage using the first comparator; comparing the voltage of the second pin with the first reference voltage using the second comparator; enabling a third comparator and a fourth comparator during a second phase in response to at least one of the voltage of the first pin or the voltage of the second pin being greater than the first reference voltage, the second phase including; comparing the voltage of the first pin to each of a plurality of reference voltages using the first comparator, the second comparator, the third comparator, and the fourth comparator; and providing, at an output terminal, an instruction related to related to a magnitude of a provided charging current based on an output of the first comparator, an output of the second comparator, an output of the third comparator, and an output of the fourth comparator during the second phase. - View Dependent Claims (15, 16, 17)
-
Specification