Methods and circuits for electrical power supply
12620998 ยท 2026-05-05
Assignee
Inventors
- Alberto Bianco (Gressan, IT)
- Francesco Ciappa (Borgofranco d'Ivrea, IT)
- Donato BONDETTI (Montalto Dora, IT)
Cpc classification
H03M1/125
ELECTRICITY
H03M1/368
ELECTRICITY
International classification
Abstract
A circuit includes at least one coupling node configured to be coupled, via a cable, to a load to transmit a supply voltage thereto. The circuit includes test circuitry configured to sense at least one sensing signal indicative of a value of the cable impedance and/or of the cable voltage across the cable, to perform a comparison between the at least one sensing signal and at least one threshold indicative either of a threshold resistance value for the cable impedance or indicative of a threshold voltage value for the cable voltage, produce a comparison signal as a result of the comparison.
Claims
1. A circuit, comprising: at least one coupling node configured to be coupled, via a cable, to a load to transmit a supply voltage thereto, the cable having a cable impedance and configured to carry a cable voltage; and test circuitry coupled to the at least one coupling node, the test circuitry configured to: sense at least one sensing signal indicative of a value of the cable impedance and/or of a cable voltage across the cable; perform a comparison between the at least one sensing signal and at least one threshold indicative either of a threshold resistance value for the cable impedance or indicative of a threshold voltage value for the cable voltage; produce a comparison signal as a result of the comparison, the comparison signal having a first logic value or a second logic value, as a result of the at least one sensing signal reaching or failing to reach the at least one threshold; and assert a flag signal based on the logic value of the comparison signal, the flag signal being indicative of the value of the cable impedance being lower than the threshold resistance value or being indicative of a cable voltage across the wired cable being greater than the threshold voltage value, wherein the test circuit includes: an I/O node configured to provide the sensing signal; at least one Zener diode interposed to the at least one resistive element of the coupling circuit and the I/O node; a capacitive element coupled between ground and the I/O node; an analog-to-digital converter circuit coupled to the I/O node to sense the sensing signal therefrom, the analog-to-digital converter circuit configured to perform the comparison and to produce the comparison signal based on the comparison; and a logic unit coupled to the ADC circuit to receive the comparison signal from the analog-to-digital converter circuit, wherein the ADC circuit is configured to produce the comparison signal having the first logic value or the second logic value based on the at least one sensing signal reaching or failing to reach the at least one threshold and the logic unit is configured to assert the flag signal based on the logic value of the comparison signal.
2. The circuit of claim 1, wherein the test circuitry includes: a digital buffer circuit coupled to the logic unit and to the I/O node, the digital buffer circuit configured to receive a drive signal from the logic unit and to apply a first voltage level or a second voltage level to the I/O node in response to the logic unit asserting the drive signal with a first logic value or a second logic value, wherein the test circuitry is configured to: assert the drive signal with the first logic value during a first time-interval to initiate charging the capacitive element; after lapse of the first time-interval, leave floating the drive signal during a second time interval to initiate discharging of the capacitive element; assert the drive signal after lapse of the second time-interval to reset the capacitive element to a discharged state; perform the comparison between the at least one sensing signal and at least one threshold indicative of a threshold resistance value for the cable impedance during the discharge of the capacitive element at lapse of the second time interval and to produce the comparison signal as a result of the comparison, the comparison signal having a first logic value or a second logic value based on the at least one sensing signal reaching or failing to reach the at least one threshold; and assert the flag signal based on the logic value of the comparison signal being indicative of the value of the cable impedance being lower than the threshold resistance value.
3. The circuit of claim 2, further comprising at least one resistive element coupled to the test circuitry.
4. The circuit of claim 1, comprising: a digital buffer coupled to the logic unit and to the I/O node, the digital buffer circuit configured to receive a drive signal from the logic unit and to apply a first voltage level or a second voltage level to the I/O node based on the logic unit asserting the drive signal with a first logic value or a second, logic value, wherein the test circuitry is configured to: assert the drive signal with the first logic value during a first time-interval to initiate charging the capacitive element; leave floating the drive signal after lapse of the first time-interval, to initiate discharging of the capacitive element; perform the comparison between the at least one sensing signal and at least one threshold indicative of a threshold resistance value for the cable impedance and to produce the comparison signal as a result of the comparison, the comparison signal having a first logic value logic value or a second logic value, as a result of the at least one sensing signal reaching, resp. failing to reach, the at least one threshold; in response to the comparison signal having the second logic value, calculate a decay time interval between a first time instant of assertion of the drive signal and a second time instant at which the comparison signal transitions from the first logic value to the second logic value; compute a value of the cable resistance based on the calculated decay time interval; and provide the computed cable resistance value to a user circuit.
5. The circuit of claim 1, wherein the cable is compliant with the universal serial bus standard.
6. A method, comprising: coupling at least one coupling node, via a cable, to a load to transmit a supply voltage thereto, the cable having a cable impedance and configured to carry a cable voltage; sensing at least one sensing signal indicative of a value of the cable impedance or of the cable voltage across the cable; performing a comparison between the at least one sensing signal and at least one threshold indicative either of a threshold resistance value for the cable impedance or indicative of a threshold voltage value for the cable voltage; producing a comparison signal as a result of the comparison, the comparison signal having a first logic value or a second logic value based on the at least one sensing signal reaching or failing to reach the at least one threshold; asserting a flag signal based on the logic value of the comparison signal, the asserted flag signal being indicative of the value of the cable impedance being lower than the threshold resistance value, or being indicative of a cable voltage across the wired cable being greater than the threshold voltage value; and asserting a drive signal with the first logic value during a first time-interval; after lapse of the first time-interval, leaving the drive signal floating during a second time interval; asserting the drive signal after lapse of the second time-interval; performing the comparison between the at least one sensing signal and at least one threshold indicative a threshold resistance value for the cable impedance during the discharge of the capacitive element at lapse of the second time interval, producing the comparison signal as a result of the comparison, the comparison signal having a first logic value or a second logic value, as a result of the at least one sensing signal reaching or failing to reach, the at least one threshold; and asserting the flag signal based on the logic value of the comparison signal being indicative of the value of the cable impedance being lower than the threshold resistance value.
7. The method of claim 6, comprising: asserting the drive signal with the first value during a first time-interval; initiating discharging of the capacitive element by leaving the drive signal floating after lapse of the first time-interval; performing the comparison between the at least one sensing signal and at least one threshold indicative a threshold resistance value for the cable impedance and producing the comparison signal as a result of the comparison, the comparison signal having a first logic value or a second logic value, as a result of the at least one sensing signal reaching or failing to reach the at least one threshold; in response to the comparison signal having the second logic value, calculating a decay time interval between a first time instant of assertion of the drive signal and a second time instant at which the comparison signal transitions from the first logic value to the second logic value; computing a value of the cable resistance based on the calculated decay time interval; and providing the computed cable resistance value to a user circuit.
8. The method of claim 6, wherein the cable is compliant with the universal serial bus standard.
9. A device, comprising: a transmission interface including: a first coupling node configured to be coupled to a cable; a sensing circuit coupled to the first coupling node and configured to sense an electrical quantity of the cable via the first coupling node, wherein the sensing circuit includes a first resistor coupled to the first coupling node and a Zener diode coupled to the first resistor; a testing circuit coupled to the sensing circuit and configured to provide a signal indicative of an operational condition of the cable based on the electrical quantity; and a control circuit coupled to the testing circuit and configured to drive the testing circuit block to perform a test on the coupling node and to receive the signal from the testing circuit based on the test, wherein the control circuit includes a single bit ADC configured to receive the signal from the testing circuit, a logic circuit coupled to an output of the single-bit ADC and configured to assert a flag indicative of a fault in the cable based on the signal, and a tri-state buffer including an input coupled to the logic circuit and an output coupled to the input of the single-bit ADC.
10. The device of claim 9, wherein the transmission interface includes a second coupling node configured to be coupled to the cable, wherein the sensing circuit includes a second resistor coupled between the second coupling node and the first resistor.
11. The device of claim 9, wherein the testing circuit includes a capacitor coupled between the Zener diode and ground.
12. The device of claim 11, wherein the testing circuit includes a limiting resistor coupled to the capacitor and the Zener diode.
13. The device of claim 9, comprising: a plug configured to be coupled to a socket to receive an AC voltage; and an AC/DC converter coupled to the plug to receive the AC voltage and to provide a supply voltage based on the AC voltage; wherein the transmission interface is coupled to the AC/DC converter to receive the supply voltage therefrom and is configured to transmit the supply voltage to a load via the cable.
Description
BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS
(1) One or more embodiments will now be described, by way of non-limiting example only, with reference to the annexed Figures, wherein:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10) Corresponding numerals and symbols in the different figures generally refer to corresponding parts unless otherwise indicated.
(11) The figures are drawn to clearly illustrate the relevant aspects of the embodiments and are not necessarily drawn to scale.
(12) The edges of features drawn in the figures do not necessarily indicate the termination of the extent of the feature.
DETAILED DESCRIPTION
(13) In the ensuing description, one or more specific details are illustrated, to assist in providing an in-depth understanding of examples of embodiments of this description. The embodiments may be obtained without one or more of the specific details, or with other methods, components, materials, etc. In other cases, known structures, materials, or operations are not illustrated or described in detail so that certain aspects of embodiments will not be obscured.
(14) Reference to an embodiment or one embodiment in the framework of the present description is intended to indicate that a particular configuration, structure, or characteristic described in relation to the embodiment is included in at least one embodiment. Hence, phrases such as in an embodiment or in one embodiment that may be present in one or more points of the present description do not necessarily refer to one and the same embodiment.
(15) Moreover, particular conformations, structures, or characteristics may be combined in any adequate way in one or more embodiments.
(16) The drawings are in simplified form and are not to precise scale.
(17) The references used herein are provided merely for convenience and hence do not define the extent of protection or the scope of the embodiments.
(18) As exemplified in
(19) As exemplified in
(20) Currently, a USB connector interface 12 is present in a wide range of power adapters 11, in particular battery chargers for charging the battery of portable electronic devices.
(21) As exemplified in
(22) As exemplified in
(23) As exemplified in
(24) As exemplified in
(25) For instance, in the exemplary case of power interfaces 12, 14 of the USB type, the various nodes include: coupling nodes D+, D on the side of the power adapted and respective coupling nodes D++, D on the side of the load 16; and further nodes CC1, CC2 to communicate with the load 14 and determine the power level thereof.
(26) It is noted that there may be also other nodes or coupling between nodes, not shown for the sake of simplicity of the figures.
(27) For the sake of simplicity, one or more embodiments will be described in the following mainly with reference to a USB-kind of cable 13 and power interfaces 12, 14, being otherwise understood that such a kind of connector is purely exemplary and in no way limiting.
(28) As exemplified in
(29) For instance: a first test device 18 may be configured to test the cable impedance across the first coupling nodes D+, D and ground to simulate the presence therebetween of an impedance towards ground lower than a threshold value R.sub.SHORT, indicating the risk of a short-circuit; and a second test device 20 may be configured to simulate a condition in which the voltage across either one the first D+, D++ on the interface 12 and ground is higher than a certain threshold level, in order to detect any overvoltage condition therebetween which may result from a short circuit among either one of nodes D+, D and a supply voltage (e.g., VBUS).
(30) As exemplified in
(31) As exemplified in
(32) The first test device 18 as exemplified in
(33) As exemplified in
(34) The second test device 20 as exemplified in
(35)
(36) As illustrated in
(37) As exemplified in
(38) An arrangement as exemplified in
(39) As exemplified in
(40) As exemplified in
(41) As exemplified in
(42) Optionally, the detection circuit block 122 further includes a limiter element R.sub.LIM (e.g., a resistive element R.sub.LIM) interposed between the diode D.sub.Z, the capacitive element C.sub.M and the I/O node GPIO, the limiter element R.sub.LIM configured to protect the control circuit block 124 from receiving exceedingly high current levels in case of an overvoltage across the cable 13.
(43) As exemplified in
(44) As exemplified in
(45) In one or more embodiments, the control circuit block 124 is configured to perform at least one testing method regularly for brief time intervals, e.g., about 1 second while power supply is being provided normally to the load 14, without severely interrupting the power transfer.
(46) In one or more embodiments, the control circuit block 124 is configured to perform a first testing method, including: at a first time instant T1, asserting the drive signal DRV at the first logic value (e.g., high or 1); in the hypothesis that the capacitive element C.sub.M is initially discharged, charging the capacitive element C.sub.M in the detection circuit block 122 until reaching (at a second time instant T2) the first voltage level V.sub.OH of the digital buffer circuit 128 in response to the digital buffer circuit 128 providing a converted drive signal DRV having the first voltage level V.sub.OH at the I/O node GPIO; when the capacitance of the capacitive element C.sub.M is charged at time instant T2, coupling the input node of the digital buffer circuit 128 to an open circuit, leaving the corresponding input node of the digital buffer 128 floating at high impedance and also the I/O node GPIO free to have any value; optionally, detecting the electrical quantity (e.g., voltage) at the I/O node GPIO and converting the electrical quantity (via ADC circuit 126) to a logic value of the digital detection signal logic level D.sub.S; waiting for a time-out time, e.g.,
(47)
(48) As exemplified in
(49)
(50) As exemplified in
(51) For instance, the logic unit 129 is configured to compute the value of the cable resistance R.sub.C, as:
(52)
(53) For instance, the logic unit 129 is configured to perform a comparison between the computed value of resistance R.sub.C and the threshold resistance value R.sub.SHORT, and to raise the fault flag signal F in response to the comparison yielding that the measured resistance fails to reach the resistance threshold value R.sub.SHORT.
(54) In an alternative scenario, the act of computing the resistance value may be optional: by setting the time-out time instant T3 to have a value equal to the worst case scenario decay time .sub.WCS, that is the scenario in which the cable resistance R.sub.C is equal to the threshold resistance value R.sub.SHORT, e.g.,
(55)
(56) In such an alternative scenario, the logic unit 129 is configured to assert the fault flag signal F in response to the sensing signal D.sub.S switching from the high logic value to the low logic value at any time during the worst-case scenario decay time interval .sub.WCS.
(57) For instance, in both scenarios discussed above, after completing the first testing method, the control circuit block 124 may be configured to assert the drive signal back to the low voltage signal in order to drive the I/O node GPIO back to ground, fully discharging any voltage remaining on the capacitive element C.sub.M and therefore being able to perform again the same or another testing method.
(58)
(59) As exemplified in
(60) As exemplified in
(61) In one or more embodiments, the control circuit block 124 is configured to perform a second testing method, including: at a first time instant (e.g., after the reset discharge of the capacitive element C.sub.M), coupling the input of the digital buffer circuit 128 to an open circuit, leaving it floating at high impedance; consequently, due to the breakdown voltage V.sub.Z of the Zener diode D.sub.Z, the voltage V.sub.GPIO on the I/O node GPIO becomes equal to the average voltage V.sub.P minus the breakdown voltage V.sub.Z, e.g., V.sub.GPIO=V.sub.PV.sub.Z=(V.sub.D+V.sub.D+)/2V.sub.Z.
(62) Selecting an appropriate value for the voltage breakdown of the diode V.sub.Z, it is possible to obtain an indication of the presence or absence of an overvoltage condition V.sub.FAULT on the cables.
(63) Specifically, selecting the Zener breakdown voltage to be equal to
(64)
(65) For instance, the sensing signal D.sub.S reaches a first (e.g., high) logic value in response to the average voltage V.sub.P across ground and any coupling node of the coupling nodes D+, D being higher than the overvoltage threshold value V.sub.FAULT.
(66) Therefore, the logic unit 129 is configured to raise the fault flag signal F (or an additional fault flag signal) in response to the sensing signal D.sub.S having a high logic level during performance of the second testing method.
(67) As exemplified in
(68) A solution as exemplified in
(69) As exemplified in
(70) Specifically, one or more embodiments discussed in the foregoing are based on the observation that the time-constant of the discharge process of the capacitive element C.sub.M varies if the resistance of the cable goes below the resistance threshold value R.sub.SHORT.
(71) In the alternative scenario exemplified in
(72) As exemplified in
(73) In such an exemplary scenario, the first testing method includes: at the first time instant T.sub.1 the drive signal DRV is asserted for a (e.g., short) time interval, leading to the capacitive element C.sub.M beginning the charging process, with a voltage signal V.sub.GPIO at the I/O node GPIO increasing as a result; for instance, the capacitor C.sub.M is charged so as to have a stored voltage V.sub.CM until the stored voltage V.sub.CM reaches a limit voltage V, e.g.,
(74)
(75)
(76) For instance, during the interval between the fourth time interval and the first time-interval of a new impedance-testing sequence, the overvoltage-testing sequence may be performed.
(77) As exemplified in
(78) In one or more embodiments, the ADC 126 may be configured to provide the sensing signal D.sub.S with the first logic value, respectively the second logic value, in response to the voltage at the I/O node GPIO being above, respectively below, a voltage which may be expressed as
(79)
(80) Alternatively, in one or more embodiments the threshold voltage of the ADC 126 may have different values V.sub.IH, V.sub.IL previously discussed. In such an alternative scenario, the limiting element R.sub.LIM can be selected to have an alternative resistance value R.sub.LIM which may be expressed as:
(81)
(82) Thereby, if the fault resistance R.sub.C is higher than the resistance threshold value R.sub.SHORT, the sensing signal has the first logic value during the time interval T2-T3 in which the I/O node GPIO is left in high impedance.
(83) It is further noted than in the alternative scenario exemplified in
(84) As exemplified herein, a circuit 12 includes: at least one coupling node D+, D configured to be coupled, via a cable 13, to a load 16 to transmit a supply voltage thereto, the cable having a cable impedance R.sub.C (e.g., referred to ground) and configured to carry a cable voltage V.sub.C (e.g., the cable voltage V.sub.C equal to a voltage drop between a coupling node D+ or D and ground); and test circuitry 122, 124 coupled to the at least one coupling node, the test circuitry configured to: sense 126 at least one sensing signal V.sub.GPIO indicative of a value of the cable impedance and/or of a cable voltage across the cable; perform a comparison between the at least one sensing signal and at least one threshold V.sub.IL indicative either of a threshold resistance value for the cable impedance or indicative of a threshold voltage value for the cable voltage; produce a comparison signal D.sub.S as a result of the comparison, the comparison signal having a first logic value, resp. a second logic value, as a result of the at least one sensing signal reaching, resp. failing to reach, the at least one threshold, and assert a flag signal F based on the logic value of said comparison signal, the flag signal being indicative of the value of the cable impedance being lower than the threshold resistance value, and/or being indicative of a cable voltage across the wired cable being greater than the threshold voltage value.
(85) As exemplified herein, the test circuit includes: an input/output, I/O, node GPIO configured to provide the sensing signal; at least one Zener diode D.sub.Z; D.sub.Z1, D.sub.Z2 interposed to the at least one resistive element of the coupling circuit and the I/O node; a capacitive element C.sub.M referred to ground coupled to the I/O node; an analog-to-digital converter, ADC circuit 126 coupled to the I/O node to sense the sensing signal therefrom, the ADC circuit configured to perform said comparison, producing the comparison signal as a result; and a logic unit 129 coupled to the ADC circuit to receive the comparison signal therefrom.
(86) For instance, the ADC circuit is configured to produce the comparison signal having the first logic value, resp. the second logic value, as a result of the at least one sensing signal reaching, resp. failing to reach, the at least one threshold.
(87) For instance, the logic unit is configured to assert said flag signal based on the logic value of said comparison signal.
(88) As exemplified herein, the test circuitry includes: a digital buffer circuit 128 coupled to the logic unit and to the I/O node, the digital buffer circuit configured to receive a drive signal DRV from the logic unit and to apply a first voltage level, resp. a second voltage level, to the I/O node in response to the logic unit asserting the drive signal with a first, resp. second, logic value.
(89) For instance, the test circuitry is configured to: assert the drive signal with the first logic value during a first time-interval T1, T2, initiating charging the capacitive element as a result; after lapse of the first time-interval, leave floating the drive signal during a second time interval T2, T3; .sub.WCS, initiating discharging of the capacitive element as a result; assert the drive signal after lapse of the second time-interval .sub.WCS, resetting the capacitive element to a discharged state; perform the comparison 126 between the at least one sensing signal and at least one threshold indicative of a threshold resistance value for the cable impedance during the discharge of the capacitive element at lapse of the second time interval, producing the comparison signal as a result of the comparison, the comparison signal having a first logic value, resp. a second logic value, as a result of the at least one sensing signal reaching, resp. failing to reach, the at least one threshold; and assert the flag signal based on the logic value of said comparison signal being indicative of the value of the cable impedance being lower than the threshold resistance value.
(90) As exemplified herein, the circuit further includes at least one resistive element R.sub.D1, R.sub.D2; R.sub.D; R.sub.LIM coupled to the test circuitry.
(91) As exemplified herein, the circuit includes: a digital buffer coupled to the logic unit and to the I/O node, the digital buffer circuit configured to receive a drive signal from the logic unit and to apply a first voltage level, resp. a second voltage level, to the I/O node (GPIO) in response to the logic unit (129) asserting the drive signal (DRV) with a first, resp. second, logic value.
(92) For instance, the test circuitry is configured to: assert the drive signal with the first logic value during a first time-interval T1, T2, initiating charging the capacitive element as a result; leave floating the drive signal after lapse of the first time-interval, initiating discharging of the capacitive element as a result; perform the comparison between the at least one sensing signal and at least one threshold indicative of a threshold resistance value for the cable impedance, producing the comparison signal as a result of the comparison, the comparison signal having a first logic value, resp. a second logic value, as a result of the at least one sensing signal reaching, resp. failing to reach, the at least one threshold; in response to the comparison signal having the second logic value, calculating a decay time interval between a first time instant T1 of assertion of the drive signal and a second time instant at which the comparison signal D.sub.S transitions from the first logic value to the second logic value; computing a value of the cable resistance based on the calculated decay time interval; and providing the computed cable resistance value to a user circuit.
(93) As exemplified herein, the cable is a cable compliant with the universal serial bus standard.
(94) As exemplified herein, a power adapter 10 includes: a plug 11 configured to be coupled to a socket to receive an AC voltage therefrom; an AC/DC converter coupled to the plug 11 to receive the AC voltage therefrom, the AC/DC converter configured to provide a supply voltage based on an AC voltage; a cable 13 having a cable impedance R.sub.C and configured to carry a cable voltage V.sub.C; and a circuit 12 according to any of the previous claim coupled to the AC/DC converter to receive the supply voltage therefrom and coupled to the cable 13 to transmit the supply voltage to a load 16.
(95) As exemplified herein, a method includes: coupling at least one coupling node D+, D, via a cable 13, to a load 16 to transmit a supply voltage thereto, the cable having a cable impedance R.sub.C and configured to carry a cable voltage V.sub.C; sensing 126 at least one sensing signal V.sub.GPIO indicative of a value of the cable impedance R.sub.C and/or of a cable voltage V.sub.C across the cable; performing a comparison between the at least one sensing signal and at least one threshold V.sub.IL indicative either of a threshold resistance value for the cable impedance or indicative of a threshold voltage value for the cable voltage; producing a comparison signal D.sub.S as a result of the comparison, the comparison signal having a first logic value, resp. a second logic value, as a result of the at least one sensing signal reaching, resp. failing to reach, the at least one threshold; and asserting a flag signal F based on the logic value of said comparison signal, the asserted flag signal being indicative of the value of the cable impedance being lower than the threshold resistance value, and/or being indicative of a cable voltage across the wired cable being greater than the threshold voltage value.
(96) As exemplified herein, the method includes: asserting a drive signal DRV with the first logic value during a first time-interval T1, T2; after lapse of the first time-interval, leaving the drive signal floating during a second time interval (T2, T3; .sub.WCS); assert the drive signal after lapse of the second time-interval .sub.WCS; performing the comparison between the at least one sensing signal and at least one threshold indicative a threshold resistance value for the cable impedance during the discharge of the capacitive element at lapse of the second time interval T2, T3; .sub.WCS, producing the comparison signal as a result of the comparison, the comparison signal having a first logic value, resp. a second logic value, as a result of the at least one sensing signal reaching, resp. failing to reach, the at least one threshold; and asserting the flag signal based on the logic value of said comparison signal being indicative of the value of the cable impedance being lower than the threshold resistance value.
(97) As exemplified herein, the method includes: asserting the drive signal with the first value during a first time-interval T1, T2; leaving the drive signal floating after lapse of the first time-interval, initiating discharging of the capacitive element as a result; performing the comparison between the at least one sensing signal and at least one threshold indicative a threshold resistance value for the cable impedance, producing the comparison signal as a result of the comparison, the comparison signal having a first logic value, resp. a second logic value, as a result of the at least one sensing signal reaching, resp. failing to reach, the at least one threshold; in response to the comparison signal having the second logic value, calculating a decay time interval between a first time instant T1 of assertion of the drive signal and a second time instant at which the comparison signal D.sub.S transitions from the first logic value to the second logic value; computing a value of the cable resistance based on the calculated decay time interval; and providing the computed cable resistance value to a user circuit.
(98) It will be otherwise understood that the various individual implementing options exemplified throughout the figures accompanying this description are not necessarily intended to be adopted in the same combinations exemplified in the figures. One or more embodiments may thus adopt these (otherwise non-mandatory) options individually and/or in different combinations with respect to the combination exemplified in the accompanying figures.
(99) Without prejudice to the underlying principles, the details and embodiments may vary, even significantly, with respect to what has been described by way of example only, without departing from the extent of protection. The extent of protection is defined by the annexed claims.
(100) A circuit (12) may be summarized as including: at least one coupling node (D+, D) configured to be coupled, via a cable (13), to a load (16) to transmit a supply voltage thereto, the cable (13) having a cable impedance (R.sub.C) and configured to carry a cable voltage (V.sub.C); test circuitry (122, 124) coupled to the at least one coupling node (D+, D), the test circuitry (122, 124) configured to: sense (126) at least one sensing signal (V.sub.GPIO) indicative of a value of the cable impedance (R.sub.C) and/or of a cable voltage (V.sub.C) across the cable (13); perform a comparison (126) between the at least one sensing signal (V.sub.GPIO) and at least one threshold (V.sub.IL) indicative either of a threshold resistance value for the cable impedance (R.sub.C) or indicative of a threshold voltage value for the cable voltage (V.sub.C); produce a comparison signal (D.sub.S) as a result of the comparison, the comparison signal (D.sub.S) having a first logic value, resp. a second logic value, as a result of the at least one sensing signal (V.sub.GPIO) reaching, resp. failing to reach, the at least one threshold (V.sub.IL), and assert a flag signal (F) based on the logic value of said comparison signal (D.sub.S), the flag signal (F) being indicative of the value of the cable impedance (R.sub.C) being lower than the threshold resistance value, and/or being indicative of a cable voltage (V.sub.C) across the wired cable (13) being greater than the threshold voltage value.
(101) The test circuit (122, 124) may include: an input/output, I/O, node (GPIO) configured to provide the sensing signal (V.sub.GPIO); at least one Zener diode (D.sub.Z; D.sub.Z, D.sub.Z2) interposed to the at least one resistive element (R.sub.D1, R.sub.D2; R.sub.D) of the coupling circuit (120) and the I/O node (GPIO); a capacitive element (C.sub.M) referred to ground coupled to the I/O node (GPIO); an analog-to-digital converter, ADC circuit (126) coupled to the I/O node (GPIO) to sense the sensing signal (V.sub.GPIO) therefrom, the ADC circuit (126) configured to perform said comparison, producing the comparison signal (D.sub.S) as a result, and a logic unit (129) coupled to the ADC circuit (126) to receive the comparison signal (D.sub.S) therefrom, wherein: the ADC circuit (126) is configured to produce the comparison signal (D.sub.S) having the first logic value, resp. the second logic value, as a result of the at least one sensing signal (V.sub.GPIO) reaching, resp. failing to reach, the at least one threshold (V.sub.IL), and the logic unit (129) is configured to assert said flag signal (F) based on the logic value of said comparison signal (D.sub.S).
(102) The test circuitry (122, 124) may include: a digital buffer circuit (128) coupled to the logic unit (129) and to the I/O node (GPIO), the digital buffer circuit (128) configured to receive a drive signal (DRV) from the logic unit (129) and to apply a first voltage level, resp. a second voltage level, to the I/O node (GPIO) in response to the logic unit asserting the drive signal (DRV) with a first, resp. second, logic value; wherein the test circuitry (122, 124) is configured to: assert the drive signal (DRV) with the first logic value during a first time-interval (T1, T2), initiating charging the capacitive element (C.sub.M) as a result; after lapse of the first time-interval (T1, T2), leave floating the drive signal (DRV) during a second time interval (T2, T3; .sub.WCS), initiating discharging of the capacitive element (C.sub.M) as a result; assert the drive signal (DRV) after lapse of the second time-interval (.sub.WCS), resetting the capacitive element (C.sub.M) to a discharged state; perform the comparison (126) between the at least one sensing signal (V.sub.GPIO) and at least one threshold (V.sub.IL) indicative of a threshold resistance value for the cable impedance (R.sub.C) during the discharge of the capacitive element (C.sub.M) at lapse of the second time interval (T2, T3; .sub.WCS), producing the comparison signal (D.sub.S) as a result of the comparison (126), the comparison signal (D.sub.S) having a first logic value, resp. a second logic value, as a result of the at least one sensing signal (V.sub.GPIO) reaching, resp. failing to reach, the at least one threshold (V.sub.IL), and assert the flag signal (F) based on the logic value of said comparison signal (D.sub.S) being indicative of the value of the cable impedance (R.sub.C) being lower than the threshold resistance value.
(103) The circuit may further include at least one resistive element (RD1, RD2; RD; RLIM) coupled to the test circuitry (122, 124).
(104) The circuit may include: a digital buffer (128) coupled to the logic unit (129) and to the I/O node (GPIO), the digital buffer circuit (128) configured to receive a drive signal (DRV) from the logic unit (129) and to apply a first voltage level, resp. a second voltage level, to the I/O node (GPIO) in response to the logic unit (129) asserting the drive signal (DRV) with a first, resp. second, logic value; wherein the test circuitry (122, 124) is configured to: assert the drive signal (DRV) with the first logic value during a first time-interval (T1, T2), initiating charging the capacitive element (C.sub.M) as a result, leave floating the drive signal (DRV) after lapse of the first time-interval (T1, T2), initiating discharging of the capacitive element (C.sub.M) as a result, perform the comparison (126) between the at least one sensing signal (V.sub.GPIO) and at least one threshold (V.sub.IL) indicative of a threshold resistance value for the cable impedance (R.sub.C), producing the comparison signal (D.sub.S) as a result of the comparison (126), the comparison signal (D.sub.S) having a first logic value, resp. a second logic value, as a result of the at least one sensing signal (V.sub.GPIO) reaching, resp. failing to reach, the at least one threshold (V.sub.IL), in response to the comparison signal (D.sub.S) having the second logic value, calculating a decay time interval () between a first time instant (T1) of assertion of the drive signal (DRV) and a second time instant at which the comparison signal (D.sub.S) transitions from the first logic value to the second logic value, computing a value of the cable resistance (R.sub.C) based on the calculated decay time interval (), and providing the computed cable resistance value to a user circuit.
(105) The cable (13) may be a cable compliant with the universal serial bus standard.
(106) A power adapter (10), may be summarized as including: a plug (11) configured to be coupled to a socket to receive an AC voltage therefrom, an AC/DC converter coupled to the plug (11) to receive the AC voltage therefrom, the AC/DC converter configured to provide a supply voltage based on an AC voltage, a cable (13) having a cable impedance (R.sub.C) and configured to carry a cable voltage (V.sub.C), a circuit (12) according to any of the previous claim coupled to the AC/DC converter to receive the supply voltage therefrom and coupled to the cable (13) to transmit the supply voltage to a load (16).
(107) A method, may be summarized as including: coupling at least one coupling node (D+, D), via a cable (13), to a load (16) to transmit a supply voltage thereto, the cable (13) having a cable impedance (R.sub.C) and configured to carry a cable voltage (V.sub.C); sensing (126) at least one sensing signal (V.sub.GPIO) indicative of a value of the cable impedance (R.sub.C) and/or of a cable voltage (V.sub.C) across the cable (13); performing a comparison (126) between the at least one sensing signal (V.sub.GPIO) and at least one threshold (V.sub.IL) indicative either of a threshold resistance value for the cable impedance (R.sub.C) or indicative of a threshold voltage value for the cable voltage (V.sub.C); producing a comparison signal (D.sub.S) as a result of the comparison, the comparison signal (D.sub.S) having a first logic value, resp. a second logic value, as a result of the at least one sensing signal (V.sub.GPIO) reaching, resp. failing to reach, the at least one threshold (V.sub.IL), and asserting a flag signal (F) based on the logic value of said comparison signal (D.sub.S), the asserted flag signal (F) being indicative of the value of the cable impedance (R.sub.C) being lower than the threshold resistance value, and/or being indicative of a cable voltage (V.sub.C) across the wired cable (13) being greater than the threshold voltage value.
(108) The method may include: asserting a drive signal (DRV) with the first logic value during a first time-interval (T1, T2); after lapse of the first time-interval (T1, T2), leaving the drive signal (DRV) floating during a second time interval (T2, T3; .sub.WCS); assert the drive signal (DRV) after lapse of the second time-interval (.sub.WCS); performing the comparison (126) between the at least one sensing signal (V.sub.GPIO) and at least one threshold (V.sub.IL) indicative a threshold resistance value for the cable impedance (R.sub.C) during the discharge of the capacitive element (C.sub.M) at lapse of the second time interval (T2, T3; .sub.WCS), producing the comparison signal (D.sub.S) as a result of the comparison (126), the comparison signal (D.sub.S) having a first logic value, resp. a second logic value, as a result of the at least one sensing signal (V.sub.GPIO) reaching, resp. failing to reach, the at least one threshold (V.sub.IL), and asserting the flag signal (F) based on the logic value of said comparison signal (D.sub.S) being indicative of the value of the cable impedance (R.sub.C) being lower than the threshold resistance value.
(109) The method may include: asserting the drive signal (DRV) with the first value during a first time-interval (T1, T2), leaving the drive signal (DRV) floating after lapse of the first time-interval (T1, T2), initiating discharging of the capacitive element (C.sub.M) as a result, performing the comparison (126) between the at least one sensing signal (V.sub.GPIO) and at least one threshold (V.sub.IL) indicative a threshold resistance value for the cable impedance (R.sub.C), producing the comparison signal (D.sub.S) as a result of the comparison (126), the comparison signal (D.sub.S) having a first logic value, resp. a second logic value, as a result of the at least one sensing signal (V.sub.GPIO) reaching, resp. failing to reach, the at least one threshold (V.sub.IL), in response to the comparison signal (D.sub.S) having the second logic value, calculating a decay time interval () between a first time instant (T1) of assertion of the drive signal (DRV) and a second time instant at which the comparison signal (D.sub.S) transitions from the first logic value to the second logic value, computing a value of the cable resistance (R.sub.C) based on the calculated decay time interval (), and providing the computed cable resistance value to a user circuit.
(110) These and other changes can be made to the embodiments in light of the above-detailed description. In general, in the following claims, the terms used should not be construed to limit the claims to the specific embodiments disclosed in the specification and the claims, but should be construed to include all possible embodiments along with the full scope of equivalents to which such claims are entitled. Accordingly, the claims are not limited by the disclosure.