The application claims the benefit of priority under 35 U.S.C. §119(a) to Peng Zhu et al. CN Application Nos. 201410062075.2, filed on Feb. 14, 2014, and 201410111546.4, filed on Mar. 19, 2014, which are hereby incorporated by reference in their entirety.
The present invention relates to impedance detection technologies, and in particular, to an impedance detection circuit, method, and integrated circuit.
With the development of technology, at present, cell phones, especially smart phones, have become indispensable electronic devices in people's daily lives. In addition, as people's daily requirements for cell phones become higher and higher, they desire cell phones capable of implementing more functions, such as supporting the connection of various types of external devices thereto, to satisfy usage requirements and enhance the user experience.
Currently, cell phones fail to effectively and accurately detect the impedance of an external device connected thereto. Therefore, they are merely capable of identifying few external devices.
To solve the technical problem in the related art, the present inventors have recognized, among other things, an impedance detection circuit, method, and integrated circuit.
In an example, an impedance detection circuit includes a ramp-up current generation circuit and an impedance determining circuit. The ramp-up current generation circuit can be configured to input a ramp-up current including n breaks to a port of a device where the ramp-up current generation circuit is disposed, to which port an external device is connected. The impedance determining circuit can be configured to detect an impedance of the external device in each break time period of the ramp-up current input by the ramp-up current generation circuit until the impedance of the external device is acquired by detection in the last break time period of the n breaks. In an example, an integrated circuit can include the impedance detection circuit.
In an example, an impedance detection method includes inputting a ramp-up current including n breaks to a port of a device where the impedance detection circuit is disposed, to which port an external device is connected, and detecting an impedance of the external device in each break time period of the ramp-up current input by the ramp-up current generation circuit until the impedance of the external device is acquired by detection in the last break time period of the n breaks.
According to the impedance detection circuit, the impedance detection method, or the integrated circuit provided herein, in the process of inputting a ramp-up current including n breaks to a port of a device to which port an external device is connected, an impedance of the external device can be detected in each break time period of the ramp-up current until the impedance of the external device is acquired by detection in the last break time period of the n breaks. Since the impedance of the external device can be detected in each break time period of the ramp-up current before the impedance of the external is detected in the last break time period of the n breaks, accordingly, the impedance of the external device may be precisely detected.
In addition, the current input to the port of the device, to which port the external device is connected, can include a ramp-up current. As such, during the impedance detection, a great pulse may not be generated. Great pulses may generate great noise, which cannot be eliminated. In other words, since the current input to the port of the device, to which port the external device is connected is a ramp-up current, during the impedance detection, less noise is generated, and thus the user experience is improved.
In the drawings, which are not necessarily drawn to scale, like numerals may describe similar components in different views. Like numerals having different letter suffixes may represent different instances of similar components. The drawings illustrate generally, by way of example, but not by way of limitation, various embodiments discussed in the present document.
In various embodiments of the present subject matter, in the process of inputting a ramp-up current including n breaks to a port of a device to which port an external device is connected, an impedance of the external device is detected in each break time period of the ramp-up current until the impedance of the external device is acquired by detection in the last break time period of the n breaks.
An embodiment of the present invention includes an impedance detection circuit. As illustrated in
The ramp-up current generation circuit 11 inputs a ramp-up current including n breaks to a port of a device where the ramp-up current generation circuit is disposed, to which port an external device is connected. In the process of inputting the ramp-up current, the impedance determining circuit 12 detects an impedance of the external device in each break time period of the ramp-up current input by the ramp-up current generation circuit 11 until the impedance of the external device is acquired by detection in the last break time period of the n breaks.
The device where the ramp-up current generation circuit 11 is disposed may be an electronic device, such as a cellphone or the like.
As illustrated in
In practice, the impedance range of the external device to be detected may be firstly defined to eight sub-ranges according to actual needs, as listed in Table 1. Since the impedance range is defined to eight sub-ranges, accordingly seven breaks need to be set. Correspondingly, corresponding seven breaks are preset in the ramp-up current generation current 11. That is, the ramp-up current generated by the ramp-up current generation circuit 11 includes seven breaks at maximum.
In practice, when a ramp-up current needs to be input, the ramp-up current generation circuit 11 inputs a ramp-up current to the port according to a speed set by the ramp-up current generation circuit 11. When the first break time is reached, the impedance determining circuit 12 detects the impedance of the external device in the first break time period. When the impedance of the external device fails to be detected in the first break time period, upon completion of the break time, the ramp-up current generation circuit 11 continues to input the ramp-up current to the port. Correspondingly, when the second break time is reached, the impedance determining circuit 12 detects the impedance of the external device in the second break time period. When the impedance of the external device fails to be detected in the second break time period, upon completion of the break time, the ramp-up current generation circuit 11 continues to input the ramp-up current to the port. Such operations are performed analogously until the impedance determining circuit 12 acquires by detection the impedance of the external device. Upon detection of the impedance of the external device, the ramp-up current generation circuit stops inputting the ramp-up current to the port. In this case, the value of n is equal to the number of break time periods corresponding to the detected impedance of the external device. To be specific, the value of n is an integer greater than 0, and the maximum value of n is equal to the number of breaks that are predetermined in the ramp-up current generation circuit 11. For example, if the number of breaks that are predetermined in the ramp-up current generation circuit 11 is 7 and the impedance determining circuit 12 acquires by detection the impedance of the external device in the fourth break time period, the value of n is 4. When the impedance determining circuit 12 detects the impedance of the external device in the seventh break time period, the value of n is 7. To be specific, the maximum value of n is 7.
In practice, the detected impedance of the external device is a value range. Using Table 1 as an example, the detected impedance of the external device may be 0 to 24 ohms, 24 to 42 ohms, 42 to 100 ohms, 100 to 200 ohms, 200 to 450 ohms, 450 to 1000 ohms, 1000 to 15000 ohms, or greater than 15000 ohms.
The external device may be an external audio device, for example, an earphone, a speaker, or the like.
In practice, the impedance determining circuit 12 may send the detected impedance of the external device to other circuits which need to acquire the impedance of the external device, for example, circuits which need to identify which type of device the external device is, or the like.
When the impedance of the external device is acquired by detection, the ramp-up current generation circuit 11 input a ramp-down current to the port, such that the input current is gradually reduced to zero. As such, the generated noise may be reduced. Herein, as illustrated in
As illustrated in
When a ramp-up current needs to be input, the enable circuit 111 inputs an enable signal to the digital-to-analog conversion circuit 113. Upon receiving the enable signal input by the enable circuit 111, the digital-to-analog conversion circuit 113 converts the ramp-up current that needs to be input from a digital signal to an analog signal and inputs the converted analog signal of the ramp-up current to the port according to the clock control signal output by the control circuit 112. The control circuit 112 inputs a corresponding clock control signal to the digital-to-analog conversion circuit 113 according to a magnitude of a ramp-up current that needs to be input.
Herein, the implementation of the enable circuit 111 is a common technical means for a person skilled in the art, which is thus not described herein any further.
The control circuit 112 may comprise a latch clock generation circuit. As illustrated in
In practice, as illustrated in
As illustrated in
When the ramp-up current that needs to be input is equal to the maximum current that can be processed by the binary decoder circuit 1131, the control circuit 112 inputs a corresponding clock control signal to the binary decoder circuit 1131, and the binary decoder circuit 1131 converts the ramp-up current that needs to be input from a digital signal to an analog signal and inputs the converted analog signal of the ramp-up current to the port according to the received clock control signal input by the control circuit 112.
When the ramp-up current that needs to be input is greater than the maximum current that can be processed by the binary decoder circuit 1131, the control circuit 112 inputs a corresponding clock control signal to the thermometer decoder circuit 1132, and the thermometer decoder circuit 1132 converts the ramp-up current that needs to be input from a digital signal to an analog signal and inputs the converted analog signal of the ramp-up current to the port according to the received clock control signal input by the control circuit 112. Alternatively, the control circuit 112 simultaneously inputs a corresponding clock control signal to the binary decoder circuit 1131 and the thermometer decoder circuit 1132, and the binary decoder circuit 1131 and the thermometer decoder circuit 1132 each convert the ramp-up current that needs to be input from a digital signal to an analog signal and input the converted analog signal of the ramp-up current to the port according to the received clock control signal input by the control circuit 112.
In practice, as illustrated in
In practice, as illustrated in
As illustrated in
In practice, as illustrated in
As illustrated in
The logical operation circuit 122 determines, according to a comparison result of the comparator 121, whether the impedance of the external device is acquired by detection.
To be specific, the ramp-up current generation circuit 11 inputs a ramp-up current to the port. When the first break time is reached, the comparison circuit 121 compares a voltage of the port with a reference voltage, and sends a comparison result to the logical operation circuit 122. When the comparison result is a high voltage signal, the logical operation circuit 122 determines the impedance of the external device according to the high voltage signal, the corresponding number of times of breaks, the saved number of times of breaks, and a corresponding impedance range. When the comparison result is a low voltage signal, the logical operation circuit 122 determines whether the break is the last break of all the set breaks, and the logical operation circuit 122 triggers the ramp-up current generation circuit 11 when it is determined that the break is not the last break. The ramp-up current generation circuit 11 continues to input the ramp-up current to the port upon receiving the trigger of the logical operation circuit 122 and upon completion of the corresponding break time. When the second break time is reached, the comparison circuit 121 compares a voltage of the port with a reference voltage, and sends a comparison result to the logical operation circuit 122. When the comparison result is a high voltage signal, the logical operation circuit 122 determines the impedance of the external device according to the high voltage signal, the corresponding number of breaks, the saved number of breaks, and a corresponding impedance range. When the comparison result is a low voltage signal, the logical operation circuit 122 determines whether the break is the last break of all the set breaks, and the logical operation circuit 122 sends to the ramp-up current generation circuit 111 a command for continuing to input the ramp-up current when it is determined that the break is not the last break. When it is determined that the break is the last break, the logical operation circuit 122 determines the impedance of the external device according to the low voltage signal, the corresponding number of times of breaks, the saved number of times of breaks, and a corresponding impedance range. Such determinations are performed analogously until the impedance of the external device is determined.
Herein, it should be noted that when the logical operation circuit 122 determines that the current break is the last break of all the set breaks, and when the comparison result is a low voltage signal and the comparison result is a high voltage signal, the saved corresponding impedance ranges are different. Therefore, in this case, the impedance ranges of the external device that are determined are two different impedance ranges. Using the parameters in Table 1 as an example, when the current break is the last break, that is, the last break is the seventh break of all the set breaks, and when the comparison result is a low voltage signal, it is determined that the impedance range of the external device is 0 to 24 ohms. When the comparison result is a high voltage signal, it is determined that the impedance range of the external device is 24 to 42 ohms.
When one break of all the set breaks ends, the reference voltage of the comparison circuit 121 may be correspondingly regulated. Using the parameters in Table 1 as an example, the input ramp-up current and the corresponding reference voltage of the comparison circuit 122 may be referenced to Table 2.
In practice, to improve the detection precision, the comparison circuit 121 may be enabled to output comparison results multiple times according to actual needs. For example, the comparison circuit 121 may be enabled to output the comparison results three times, and correspondingly, the logical operation circuit 122 determines the comparison result is a high voltage signal or a low voltage signal according to the comparison results output three times. To be specific, when the comparison results output three times indicate more than two high voltage signals, it is determined that the comparison result is a high voltage signal, and when the comparison result output three times indicate more than two low voltage signals, it is determined that the comparison result is a low voltage signal. Herein, the high voltage signal refers to a signal indicating that the voltage of the port is greater than the reference voltage, and the low voltage signal refers to a signal indicating that the voltage of the port is less than the reference voltage. For example, if the signals output by the comparator include two types of signals 0 and 1, then 1 is a high voltage signal and 0 is a low voltage signal.
As illustrated in
It should be noted that: When the impedance detection circuit is operating, some components in various circuits of the impedance detection circuit also need to be connected to a power source, and additionally need to be grounded. As such, the impedance detection circuit is capable of operating normally. Therefore, in the corresponding drawings, pwrp indicate a power source node, and pwrn indicates a ground node.
According to the impedance detection circuit provided herein, the ramp-up current generation circuit can input a ramp-up current including n breaks to a port of the device where the ramp-up current generation circuit is disposed, to which port an external device is connected. In the process of inputting the ramp-up current, the impedance determining circuit detects an impedance of the external device in each break time period of the ramp-up current input by the ramp-up current generation circuit until the impedance of the external device is acquired by detection in the last break time period of the n breaks. Since the impedance of the external device is detected in each break time period of the ramp-up current before the impedance of the external is acquired by detection in the last break time period of the n breaks, accordingly the impedance of the external device may be precisely acquired by detection.
In addition, the current input to the port of the device, to which port the external device is connected is a ramp-up current. As such, during the impedance detection, a great pulse may not be generated. Great pulses may generate great noise, which cannot be eliminated. In other words, since the current input to the port of the device, to which port the external device is connected is a ramp-up current, during the impedance detection, less noise is generated, and thus the user experience is improved.
Based on the above described impedance detection circuit, an embodiment includes an impedance detection method. As illustrated in
Step 1401: Inputting a ramp-up current including n breaks to a port of a device where the impedance detection circuit is disposed, to which port an external device is connected.
Herein, the device where the impedance detection circuit is disposed may be such an electronic device as a cellphone or the like.
The external device may be an external audio device, for example, an earphone, a speaker, or the like.
As illustrated in
In practice, the impedance range of the external device to be detected may be firstly defined to eight sub-ranges according to actual needs, as listed in Table 1. Since the impedance range is defined to eight sub-ranges, accordingly seven breaks need to be set. That is, the input ramp-up current includes seven breaks at maximum.
The step specifically comprises generating an enable signal when the ramp-up current needs to be input, and upon receiving the enable signal, converting the ramp-up current that needs to be input from a digital signal to an analog signal and inputting the converted analog signal of the ramp-up current to the port according to the clock control signal.
In an embodiment, the ramp-up current that needs to be input is converted from the digital signal to the analog signal through a binary decoding course and/or a thermometer decoding course. To be specific, when the ramp-up current that needs to be input is less than or equal to the maximum current that can be processed by a binary decoder circuit in the impedance detection circuit, the ramp-up current that needs to be input is converted from a digital signal to an analog signal through a binary decoding course. When the ramp-up current that needs to be input is greater than the maximum current that can be processed by the binary decoder circuit, the ramp-up current that needs to be input is converted from a digital signal to an analog signal through a thermometer decoding course, or when the ramp-up current that needs to be input is greater than the maximum current than can be processed by the binary decoder circuit, the ramp-up current is converted from a digital signal to an analog signal through a thermometer decoding course and a binary decoding course.
Step 1402: Detecting an impedance of the external device in each break time period of the ramp-up current input by the ramp-up current generation circuit until the impedance of the external device is acquired by detection in the last break time period of the n breaks.
In an example, the detecting an impedance of the external device specifically comprises: when the first break time of the ramp-up current starts, comparing a voltage of the port with a reference voltage; when the voltage of the port is greater than or equal to the reference signal, determining the impedance of the external device according to the corresponding number of times of breaks, the saved number of times of breaks, and a corresponding impedance range; when the voltage of the port is less than the reference voltage, determining whether the corresponding break is the last break of all the set breaks, and determining that the corresponding break is not the last break of all the set breaks; and upon completion of the break time, continuing to input the ramp-up current to the port; and when the second break time starts, comparing a voltage of the port with a reference voltage; when the voltage of the port is greater than or equal to the reference voltage, determining the impedance of the external device according to the corresponding number of times of breaks, the saved number of times of breaks, and a corresponding impedance range; when the voltage of the port is less than the reference voltage, determining whether the corresponding break is the last break of all the set breaks, determining that the corresponding break is not the last break of all the set breaks, and upon completion of the break time, continuing to input the ramp-up current to the port; when it is determined that the corresponding break is the last break of all the set breaks, determining the impedance of the external device according to the corresponding number of times of breaks, the saved number of times of breaks, and the corresponding impedance range; and analogously performing such determinations until the impedance of the external device is determined.
In an example, when it is determined that the corresponding break is the last break of all the set breaks, under the two circumstances that the voltage of the port is less than the reference signal, or greater than or equal to the reference signal, since the saved corresponding impedance ranges are different, in this case, the determined impedance ranges of the external device are two different impedance ranges. Using the parameters in Table 1 as an example, when the current break is the last break, that is, the last break is the seventh break of all the set breaks, and when the voltage of the port is less than the reference voltage, it is determined that the impedance range of the external device is 0 to 24 ohms, and when the voltage of the port is greater than or equal to the reference voltage, it is determined that the impedance range of the external device is 24 to 42 ohms.
The method may further comprise: when the impedance of the external device is acquired by detection, inputting a ramp-down current to the port, such that the input current is gradually reduced to zero. As such, the generated noise may be reduced. Herein, as illustrated in
The method may further comprise: sending the detected impedance of the external device to other circuit which need to acquire the impedance of the external device, for example, circuits which need to identify which type of device the external device is, or the like.
Based on the above described impedance detection circuit, an embodiment includes an integrated circuit. The integrated circuit comprises an impedance detection circuit. As illustrated in
The ramp-up current generation circuit 11 inputs a ramp-up current including n breaks to a port of a device where the ramp-up current generation circuit is disposed, to which port an external device is connected. In the process of inputting the ramp-up current, the impedance determining circuit 12 detects an impedance of the external device in each break time period of the ramp-up current input by the ramp-up current generation circuit 11 until the impedance of the external device is acquired by detection in the last break time period of the n breaks.
The device where the ramp-up current generation circuit 11 is disposed may be an electronic device, such as a cellphone or the like.
As illustrated in
In practice, the impedance range of the external device to be detected may be firstly defined to eight sub-ranges according to actual needs, as listed in Table 1. Since the impedance range is defined to eight sub-ranges, accordingly seven breaks need to be set. Correspondingly, corresponding seven breaks are preset in the ramp-up current generation current 11. That is, the ramp-up current generated by the ramp-up current generation circuit 11 includes seven breaks at maximum.
In practice, when a ramp-up current needs to be input, the ramp-up current generation circuit 11 inputs a ramp-up current to the port according to a speed set by the ramp-up current generation circuit 11. When the first break time is reached, the impedance determining circuit 12 detects the impedance of the external device in the first break time period. When the impedance of the external device fails to be detected in the first break time period, upon completion of the break time, the ramp-up current generation circuit 11 continues to input the ramp-up current to the port. Correspondingly, when the second break time is reached, the impedance determining circuit 12 detects the impedance of the external device in the second break time period. When the impedance of the external device fails to be detected in the second break time period, upon completion of the break time, the ramp-up current generation circuit 11 continues to input the ramp-up current to the port. Such operations are performed analogously until the impedance determining circuit 12 acquires by detection the impedance of the external device. Upon detection of the impedance of the external device, the ramp-up current generation circuit stops inputting the ramp-up current to the port. In this case, the value of n is equal to the number of break time periods corresponding to the detected impedance of the external device. To be specific, the value of n is an integer greater than 0, and the maximum value of n is equal to the number of breaks that are predetermined in the ramp-up current generation circuit 11. For example, if the number of breaks that are predetermined in the ramp-up current generation circuit 11 is 7 and the impedance determining circuit 12 acquires by detection the impedance of the external device in the fourth break time period, the value of n is 4, when the impedance determining circuit 12 detects the impedance of the external device in the seventh break time period, the value of n is 7. To be specific, the maximum value of n is 7.
In practice, the detected impedance of the external device is a value range. Using Table 1 as an example, the detected impedance of the external device may be 0 to 24 ohms, 24 to 42 ohms, 42 to 100 ohms, 100 to 200 ohms, 200 to 450 ohms, 450 to 1000 ohms, 1000 to 15000 ohms, or greater than 15000 ohms.
The external device may be an external audio device, for example, an earphone, a speaker, or the like.
In practice, the impedance determining circuit 12 may send the detected impedance of the external device to other circuits which need to acquire the impedance of the external device, for example, circuits which need to identify which type of device the external device is, or the like.
When the impedance of the external device is acquired by detection, the ramp-up current generation circuit 11 input a ramp-down current to the port, such that the input current is gradually reduced to zero. As such, the generated noise may be reduced. Herein, as illustrated in
As illustrated in
When a ramp-up current needs to be input, the enable circuit 111 inputs an enable signal to the digital-to-analog conversion circuit 113. Upon receiving the enable signal input by the enable circuit 111, the digital-to-analog conversion circuit 113 converts the ramp-up current that needs to be input from a digital signal to an analog signal and inputs the converted analog signal of the ramp-up current to the port according to the clock control signal output by the control circuit 112. The control circuit 112 inputs a corresponding clock control signal to the digital-to-analog conversion circuit 113 according to a magnitude of a ramp-up current that needs to be input.
Herein, the implementation of the enable circuit 111 is a common technical means for a person skilled in the art, which is thus not described herein any further.
The control circuit 112 may comprise a latch clock generation circuit. As illustrated in
In practice, as illustrated in
As illustrated in
When the ramp-up current that needs to be input is equal to the maximum current that can be processed by the binary decoder circuit 1131, the control circuit 112 inputs a corresponding clock control signal to the binary decoder circuit 1131, and the binary decoder circuit 1131 converts the ramp-up current that needs to be input from a digital signal to an analog signal and inputs the converted analog signal of the ramp-up current to the port according to the received clock control signal input by the control circuit 112.
When the ramp-up current that needs to be input is greater than the maximum current that can be processed by the binary decoder circuit 1131, the control circuit 112 inputs a corresponding clock control signal to the thermometer decoder circuit 1132, and the thermometer decoder circuit 1132 converts the ramp-up current that needs to be input from a digital signal to an analog signal and inputs the converted analog signal of the ramp-up current to the port according to the received clock control signal input by the control circuit 112. Alternatively, the control circuit 112 simultaneously inputs a corresponding clock control signal to the binary decoder circuit 1131 and the thermometer decoder circuit 1132, and the binary decoder circuit 1131 and the thermometer decoder circuit 1132 each convert the ramp-up current that needs to be input from a digital signal to an analog signal and input the converted analog signal of the ramp-up current to the port according to the received clock control signal input by the control circuit 112.
In practice, as illustrated in
In practice, as illustrated in
As illustrated in
In practice, as illustrated in
As illustrated in
The logical operation circuit 122 determines, according to a comparison result of the comparator 121, whether the impedance of the external device is acquired by detection.
To be specific, the ramp-up current generation circuit 11 inputs a ramp-up current to the port. When the first break time is reached, the comparison circuit 121 compares a voltage of the port with a reference voltage, and sends a comparison result to the logical operation circuit 122. When the comparison result is a high voltage signal, the logical operation circuit 122 determines the impedance of the external device according to the high voltage signal, the corresponding number of times of breaks, the saved number of times of breaks, and a corresponding impedance range. When the comparison result is a low voltage signal, the logical operation circuit 122 determines whether the break is the last break of all the set breaks, and the logical operation circuit 122 triggers the ramp-up current generation circuit 11 when it is determined that the break is not the last break. The ramp-up current generation circuit 11 continues to input the ramp-up current to the port upon receiving the trigger of the logical operation circuit 122 and upon completion of the corresponding break time. When the second break time is reached, the comparison circuit 121 compares a voltage of the port with a reference voltage, and sends a comparison result to the logical operation circuit 122. When the comparison result is a high voltage signal, the logical operation circuit 122 determines the impedance of the external device according to the high voltage signal, the corresponding number of breaks, the saved number of breaks, and a corresponding impedance range. When the comparison result is a low voltage signal, the logical operation circuit 122 determines whether the break is the last break of all the set breaks, and the logical operation circuit 122 sends to the ramp-up current generation circuit 111 a command for continuing to input the ramp-up current when it is determined that the break is not the last break. When it is determined that the break is the last break, the logical operation circuit 122 determines the impedance of the external device according to the low voltage signal, the corresponding number of times of breaks, the saved number of times of breaks, and a corresponding impedance range. Such determinations are performed analogously until the impedance of the external device is determined.
Herein, it should be noted that when the logical operation circuit 122 determines that the current break is the last break of all the set breaks, and when the comparison result is a low voltage signal and the comparison result is a high voltage signal, the saved corresponding impedance ranges are different. Therefore, in this case, the impedance ranges of the external device that are determined are two different impedance ranges. Using the parameters in Table 1 as an example, when the current break is the last break, that is, the last break is the seventh break of all the set breaks, and when the comparison result is a low voltage signal, it is determined that the impedance range of the external device is 0 to 24 ohms, and when the comparison result is a high voltage signal, it is determined that the impedance range of the external device is 24 to 42 ohms.
When one break of all the set breaks ends, the reference voltage of the comparison circuit 121 may be correspondingly regulated. Using the parameters in Table 1 as an example, the input ramp-up current and the corresponding reference voltage of the comparator 122 may be referenced to Table 2.
In practice, to improve the detection precision, the comparison circuit 121 may be enabled to output comparison results multiple times according to actual needs. For example, the comparison circuit 121 may be enabled to output the comparison results three times, and correspondingly, the logical operation circuit 122 determines the comparison result is a high voltage signal or a low voltage signal according to the comparison results output three times. To be specific, when the comparison results output three times indicate more than two high voltage signals, it is determined that the comparison result is a high voltage signal, and when the comparison result output three times indicate more than two low voltage signals, it is determined that the comparison result is a low voltage signal. Herein, the high voltage signal refers to a signal indicating that the voltage of the port is greater than the reference voltage, and the low voltage signal refers to a signal indicating that the voltage of the port is less than the reference voltage. For example, if the signals output by the comparator include two types of signals 0 and 1, then 1 is a high voltage signal and 0 is a low voltage signal.
As illustrated in
It should be noted that: When the impedance detection circuit is operating, some components in various circuits of the impedance detection circuit also need to be connected to a power source, and additionally need to be grounded. As such, the impedance detection circuit is capable of operating normally. Therefore, in the corresponding drawings, pwrp indicate a power source node, and pwrn indicates a ground node.
According to the integrated circuit provided in the embodiments described herein, the ramp-up current generation circuit inputs a ramp-up current including n breaks to a port of the device where the ramp-up current generation circuit is disposed, to which port an external device is connected. In the process of inputting the ramp-up current, the impedance determining circuit detects an impedance of the external device in each break time period of the ramp-up current input by the ramp-up current generation circuit until the impedance of the external device is acquired by detection in the last break time period of the n breaks. Since the impedance of the external device is detected in each break time period of the ramp-up current before the impedance of the external is acquired by detection in the last break time period of the n breaks, accordingly the impedance of the external device may be precisely acquired by detection.
In addition, the current input to the port of the device, to which port the external device is connected is a ramp-up current. As such, during the impedance detection, a great pulse may not be generated. Great pulses may generate great noise, which cannot be eliminated. In other words, since the current input to the port of the device, to which port the external device is connected is a ramp-up current, during the impedance detection, less noise is generated, and thus the user experience is improved.
Those skilled in the art shall understand that the embodiments may be described as illustrating methods, systems, or computer program products. Therefore, hardware embodiments, software embodiments, or hardware-plus-software embodiments may be used to illustrate the present invention. In addition, the present invention may further employ a computer program product which may be implemented by at least one non-transitory computer-readable storage medium with an executable program code stored thereon. The non-transitory computer-readable storage medium comprises but not limited to a disk memory and an optical memory.
The embodiments disclosed herein are described based on the flowcharts and/or block diagrams of the method, device (system), and computer program product. It should be understood that each process and/or block in the flowcharts and/or block diagrams, and any combination of the processes and/or blocks in the flowcharts and/or block diagrams may be implemented using computer program instructions. These computer program instructions may be issued to a computer, a dedicated computer, an embedded processor, or processors of other programmable data processing device to generate a machine, which enables the computer or the processors of other programmable data processing devices to execute the instructions to implement an apparatus for implementing specific functions in at least one process in the flowcharts and/or at least one block in the block diagrams.
These computer program instructions may also be stored a non-transitory computer-readable memory capable of causing a computer or other programmable data processing devices to work in a specific mode, such that the instructions stored on the non-transitory computer-readable memory implement a product comprising an instruction apparatus, wherein the instruction apparatus implements specific functions in at least one process in the flowcharts and/or at least one block in the block diagrams.
These computer program instructions may also be stored on a computer or other programmable data processing devices, such that the computer or the other programmable data processing devices execute a series of operations or steps to implement processing of the computer. In this way, the instructions, when executed on the computer or the other programmable data processing devices, implement the specific functions in at least one process in the flowcharts and/or at least one block in the block diagrams.
The above detailed description includes references to the accompanying drawings, which form a part of the detailed description. The drawings show, by way of illustration, specific embodiments in which the invention can be practiced. These embodiments are also referred to herein as “examples.” Such examples can include elements in addition to those shown or described. However, the present inventors also contemplate examples in which only those elements shown or described are provided. Moreover, the present inventors also contemplate examples using any combination or permutation of those elements shown or described (or one or more aspects thereof), either with respect to a particular example (or one or more aspects thereof), or with respect to other examples (or one or more aspects thereof) shown or described herein.
All publications, patents, and patent documents referred to in this document are incorporated by reference herein in their entirety, as though individually incorporated by reference. In the event of inconsistent usages between this document and those documents so incorporated by reference, the usage in the incorporated reference(s) should be considered supplementary to that of this document; for irreconcilable inconsistencies, the usage in this document controls.
In this document, the terms “a” or “an” are used, as is common in patent documents, to include one or more than one, independent of any other instances or usages of “at least one” or “one or more.” In this document, the term “or” is used to refer to a nonexclusive or, such that “A or B” includes “A but not B,” “B but not A,” and “A and B,” unless otherwise indicated. In the appended claims, the terms “including” and “in which” are used as the plain-English equivalents of the respective terms “comprising” and “wherein.” Also, in the following claims, the terms “including” and “comprising” are open-ended, that is, a system, device, article, or process that includes elements in addition to those listed after such a term in a claim are still deemed to fall within the scope of that claim. Moreover, in the following claims, the terms “first,” “second,” and “third,” etc. are used merely as labels, and are not intended to impose numerical requirements on their objects.
Method examples described herein can be machine or computer-implemented at least in part. Some examples can include a computer-readable medium or machine-readable medium encoded with instructions operable to configure an electronic device to perform methods as described in the above examples. An implementation of such methods can include code, such as microcode, assembly language code, a higher-level language code, or the like. Such code can include computer readable instructions for performing various methods. The code may form portions of computer program products. Further, the code can be tangibly stored on one or more volatile or non-volatile tangible computer-readable media, such as during execution or at other times. Examples of these tangible computer-readable media can include, but are not limited to, hard disks, removable magnetic disks, removable optical disks (e.g., compact disks and digital video disks), magnetic cassettes, memory cards or sticks, random access memories (RAMs), read only memories (ROMs), and the like.
The above description is intended to be illustrative, and not restrictive. For example, the above-described examples (or one or more aspects thereof) may be used in combination with each other. Other embodiments can be used, such as by one of ordinary skill in the art upon reviewing the above description. The Abstract is provided to comply with 37 C.F.R. §1.72(b), to allow the reader to quickly ascertain the nature of the technical disclosure. It is submitted with the understanding that it will not be used to interpret or limit the scope or meaning of the claims. Also, in the above Detailed Description, various features may be grouped together to streamline the disclosure. This should not be interpreted as intending that an unclaimed disclosed feature is essential to any claim. Rather, inventive subject matter may lie in less than all features of a particular disclosed embodiment. Thus, the following claims are hereby incorporated into the Detailed Description, with each claim standing on its own as a separate embodiment, and it is contemplated that such embodiments can be combined with each other in various combinations or permutations. The scope of the invention should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.
Number | Date | Country | Kind |
---|---|---|---|
201410062075.2 | Feb 2014 | CN | national |
201410111546.4 | Mar 2014 | CN | national |