CN115617582A - Calibration method and calibration device for current detection and current protection mechanism - Google Patents

Calibration method and calibration device for current detection and current protection mechanism Download PDF

Info

Publication number
CN115617582A
CN115617582A CN202110789333.7A CN202110789333A CN115617582A CN 115617582 A CN115617582 A CN 115617582A CN 202110789333 A CN202110789333 A CN 202110789333A CN 115617582 A CN115617582 A CN 115617582A
Authority
CN
China
Prior art keywords
control chip
current
usb
calibrated
analog
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110789333.7A
Other languages
Chinese (zh)
Inventor
杨顺富
陈威丞
李仁晟
詹文贤
方柏尧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Primax Electronics Ltd
Original Assignee
Primax Electronics Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Primax Electronics Ltd filed Critical Primax Electronics Ltd
Priority to CN202110789333.7A priority Critical patent/CN115617582A/en
Publication of CN115617582A publication Critical patent/CN115617582A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

A calibration method and a calibration device for a current detection and current protection mechanism, the calibration device comprising: the device comprises a main control unit, an interface conversion unit, an electronic load generation unit and a power transmission function detection unit; the electronic load generating unit provides an electronic load, so that the universal serial bus control chip outputs a load constant current and generates an analog-to-digital conversion value by applying at least one preset conversion parameter according to the load constant current; the main control unit inputs and generates and stores output current to be calibrated by applying a current push-back operation means to be calibrated and at least one preset conversion parameter in response to an analog-to-digital conversion value, generates at least one calibration conversion parameter by applying a conversion parameter calibration means in response to a load constant current and the output current to be calibrated, and replaces at least one preset conversion parameter in the universal serial bus control chip with at least one calibration conversion parameter, so that the at least one calibration conversion parameter is applied to generate a calibrated analog-to-digital conversion value and an overcurrent protection mechanism can be correctly started.

Description

Calibration method and calibration device for current detection and current protection mechanism
Technical Field
The present disclosure relates to a calibration method for a current detection and protection mechanism and a calibration apparatus using the same, and more particularly, to a calibration method for a current detection and protection mechanism applied to a Universal Serial Bus (USB) control chip and a calibration apparatus using the same.
Background
The Universal Serial Bus (USB) transmission specification is an interface transmission standard widely used by various electronic devices, and particularly, a Type C universal serial bus (USB-C) transmission specification has become popular in recent years, and provides higher power transmission capability and data transmission speed based on the conventional USB standard, so as to meet the ever-increasing connection requirements between modern devices.
The USB-C transmission specification includes a Power Delivery (PD) function protocol for realizing higher Power transmission capability (including providing Power with large wattage), and therefore, no matter what the Current USB-C transmission specification is, a general purpose microprocessor chip or a special single chip is used to implement the PD function protocol, and the USB-C control chip is required to have a design for implementing the PD function protocol, and further, based on the requirement for realizing the PD function protocol to supply Power with large wattage to electronic products, the USB-C control chip is required to have an Over Current Protection (OCP) mechanism to protect various electronic products electrically connected to the USB-C control chip.
Further, when the USB-C control chip implements the PD function coordination, it usually executes an analog-to-digital signal conversion procedure according to a preset analog-to-digital conversion module and at least one preset conversion parameter matched with the analog-to-digital conversion module, so as to convert an analog transmission current prepared to be output by the USB-C control chip into an analog-to-digital conversion value (ADC value) in advance, and executes a storage record, so that when the USB-C control chip detects that the analog transmission current is equal to or greater than a preset power-off protection threshold value through the analog-to-digital conversion value, the USB-C control chip needs to immediately stop outputting the analog transmission current, so as to implement the over-current protection mechanism.
The analog-to-digital conversion module is a set of conversion operation formulas, and preferably, the conversion formulas can be built in the USB-C control chip in a firmware form, and the at least one preset conversion parameter is an important parameter for participating in the operation process of the analog-to-digital conversion module; of course, the analog-to-digital conversion module and the at least one predetermined conversion parameter are all technical contents that can be understood and appreciated by those skilled in the art, and thus, will not be described herein again.
On the other hand, in terms of practical implementation, if a chip with a lower specification is used to implement the USB-C transmission specification based on the consideration of production cost, it is often faced that the chip itself is weak in noise immunity or poor in analog-to-digital conversion resolution of the chip itself, so that the USB-C control chip is prone to generate an excessive error in the process of converting the analog transmission current into the analog-to-digital conversion value, so that the generated analog-to-digital conversion value is seriously inaccurate or biased, and therefore, the overcurrent protection mechanism is obviously caused to be activated too early, so that the USB-C control chip cannot normally supply power, or the overcurrent protection mechanism is activated too late, so that various electronic products electrically connected to the USB-C control chip are exposed to a high risk situation of large current impact.
Based on the above-mentioned shortcomings of the prior art, it is the technical subject of the present disclosure to consider the production cost of electronic products, and how to enable the USB-C control chip to correctly convert and record the real output current value, so as to ensure that the over-current protection mechanism can be correctly activated.
Disclosure of Invention
The present disclosure is directed to a calibration method and a calibration device for calibrating a usb control chip to generate a correct analog-to-digital conversion value.
Another objective of the present disclosure is to provide a calibration method for calibrating a usb chip to correctly activate an over-current protection (OCP) mechanism and a calibration apparatus using the same.
A preferred embodiment of the present disclosure provides a calibration method for a current detection and current protection mechanism, which is applied to a Universal Serial Bus (USB) control chip, and the calibration method at least includes the following steps: (a) Providing a calibration device electrically connected with the universal sequence bus control chip; wherein, the universal sequence bus control chip is internally provided with at least one preset conversion parameter, and the calibration device is internally provided with a current push-back operation means to be calibrated and the at least one preset conversion parameter; (b) Making the calibration device provide an electronic load (electronic load) to form a load constant current; (c) Making the calibration device obtain an analog-to-digital conversion value (ADC value) generated by the usb control chip due to the constant load current and applying the at least one predetermined conversion parameter; (d) In response to the analog-to-digital conversion value, the calibration device generates and stores an output current to be calibrated by using the current to be calibrated backstepping operation means and the at least one preset conversion parameter set in the calibration device; wherein, in response to the total number of the at least one preset conversion parameter, the steps (b) to (d) are further executed at least once or for multiple times so as to generate one or more load constant currents in sequence, correspondingly generate one or more analog-to-digital conversion values in sequence, and correspondingly generate one or more output currents to be calibrated in sequence; (e) Generating at least one calibrated conversion parameter by the calibration device in response to the single or the plurality of load constant currents and the single or the plurality of output currents to be calibrated by using a conversion parameter calibration means arranged in the calibration device; and (f) enabling the calibration device to replace the at least one preset conversion parameter in the USB control chip with the at least one calibrated conversion parameter, so that the USB control chip utilizes the at least one calibrated conversion parameter to generate a calibrated analog-to-digital conversion value and correctly start an over-current protection (OCP) mechanism.
In a preferred embodiment, before the step (b), the method further comprises the step (b 1): enabling the calibration device to initialize the USB control chip.
In a preferred embodiment, in the step (c), the usb control chip applies an analog-to-digital conversion module and applies the at least one predetermined conversion parameter to convert the load constant current into the analog-to-digital conversion value.
In a preferred embodiment, in the step (d), when the total number of the at least one predetermined conversion parameter is two, the step (b) to the step (d) are further performed twice, so that the calibration device sequentially generates two load constant currents, the usb control chip sequentially generates two analog-to-digital conversion values corresponding to the two load constant currents, and the calibration device sequentially generates two output currents to be calibrated corresponding to the two analog-to-digital conversion values.
In a preferred embodiment, in the step (e), the calibration device is enabled to generate two calibrated conversion parameters by applying the conversion parameter calibration means disposed in the calibration device in response to the two load constant currents and the two output currents to be calibrated.
In a preferred embodiment, in the step (f), the method further comprises the steps of: (f1) The calibration device is used for replacing the at least one preset conversion parameter in the universal serial bus control chip with the at least one calibrated conversion parameter so that the universal serial bus control chip can generate the calibrated analog-to-digital conversion value by applying the at least one calibrated conversion parameter according to the load constant current; (f2) Making the calibration device provide another electronic load to form an overload constant current; (f3) Judging whether the USB control chip can start the over-current protection mechanism in response to the over-load constant current; (f4) When the USB control chip fails to activate the over-current protection mechanism, re-executing the steps (b) to (d) and the steps (f 1) to (f 3); and (f 5) ending the calibration method of the current detection and protection mechanism when the USB control chip can activate the over-current protection mechanism.
In a preferred embodiment, in the step (f 2), the overload constant current is equal to or greater than a power-off protection threshold value of the usb control chip for stopping the output current.
In a preferred embodiment, in the step (f 4) and the step (f 5), activating the over-current protection mechanism means that the usb control chip should overload a constant current, so that an output voltage level of an over-current protection pin of the usb control chip is changed from a voltage level state to another voltage level state, and failing to activate the over-current protection mechanism means that the usb control chip should overload a constant current, so that the output voltage level of the over-current protection pin is still maintained at the voltage level state and fails to be changed to the another voltage level state.
In a preferred embodiment, the USB controller chip is a Type C USB (USB-C) controller chip having a Power Delivery (PD) protocol.
In a preferred embodiment, the Type C USB control chip is disposed in an electronic product or a circuit board under test, and either the electronic product or the circuit board under test is electrically connected to the calibration device, and either the electronic product or the circuit board under test is provided with a USB port.
Another preferred embodiment of the present disclosure provides a calibration apparatus for a current detection and protection mechanism, which is applied to a Universal Serial Bus (USB) control chip having at least one predetermined conversion parameter, the calibration apparatus comprising: an electronic load generating unit electrically connected to the usb control chip, the electronic load generating unit being configured to provide an electronic load (electronic load) to enable the usb control chip to output a load constant current, and enable the usb control chip to generate an analog-to-digital conversion value (ADC value) according to the load constant current and using the at least one predetermined conversion parameter; an interface conversion unit electrically connected to the USB control chip for converting the analog-to-digital conversion value belonging to a non-USB transmission specification into the analog-to-digital conversion value belonging to a USB transmission specification; and a main control unit, connect electrically to the electronic load generating unit and the interface conversion unit, the main control unit is used for inputting and responding to the analog-to-digital conversion value belonging to the USB transmission specification, and use and set up in the main control unit and wait to calibrate the current back to push out the operation means and the at least one conversion parameter preserved, and make the main control unit produce and store waiting to calibrate the output current, and the main control unit and then respond to the load constant current and should wait to calibrate the output current, and use and set up in the main control unit and transfer the parameter calibration means, in order to produce at least one conversion parameter calibrated; the master control unit replaces the at least one preset conversion parameter in the universal serial bus control chip with the at least one calibrated conversion parameter, so that the universal serial bus control chip utilizes the at least one calibrated conversion parameter to generate a calibrated analog-to-digital conversion value and can correctly start an Over Current Protection (OCP) mechanism.
In a preferred embodiment, the USB controller chip is a Type C USB (USB-C) controller chip having a Power Delivery (PD) protocol.
In a preferred embodiment, the Type C usb control chip is disposed in an electronic product or a circuit board to be tested, and either the electronic product or the circuit board to be tested is electrically connected to the electronic load generating unit and the interface converting unit.
In a preferred embodiment, one of the electronic product or the circuit board under test is provided with a universal serial bus (USB port), and a power line set in the USB port is used to be directly electrically connected to the electronic load generating unit, so that the Type C USB control chip generates and outputs the load constant current in response to the electronic load.
In a preferred embodiment, the device further includes a power transmission function detecting unit electrically connected between the usb transmission terminal and the electronic load generating unit, wherein a power line group in the usb transmission terminal is indirectly electrically connected to the electronic load generating unit through the power transmission function detecting unit, so that the Type C usb control chip generates and outputs the load constant current according to the electronic load.
In a preferred embodiment, the power transmission function detecting unit is electrically connected between the usb transmission terminal and the main control unit, and the main control unit can communicate with the Type C usb control chip through the power transmission function detecting unit and confirm a voltage specification interval in the power transmission function protocol, and enable the electronic load generating unit to generate the corresponding electronic load, so that the Type C usb control chip generates and outputs the load constant current in response to the electronic load.
In a preferred embodiment, the electronic load generating unit is used for providing another electronic load, so that the usb control chip outputs an overload constant current, and the usb control chip correctly activates the over-current protection mechanism due to the overload constant current; the overcurrent protection mechanism is that the universal serial bus control chip leads the output voltage level of an overcurrent protection pin of the universal serial bus control chip to be converted from one voltage level state to another voltage level state because the universal serial bus control chip is overloaded with constant current.
In a preferred embodiment, the usb control chip and the current-to-be-calibrated calculating means in the main control unit both include an analog-to-digital conversion module for the usb control chip to determine the current load, and the analog-to-digital conversion module and the at least one predetermined conversion parameter are used to convert the current load into the analog-to-digital conversion value, or the usb control chip to determine the current load, and the analog-to-digital conversion module and the at least one predetermined conversion parameter are used to convert the current load into the calibrated analog-to-digital conversion value, or the main control unit uses the current-to-be-calibrated calculating means with an analog-to-digital conversion module and the at least one predetermined conversion parameter to generate and store the output current to be calibrated.
In a preferred embodiment, the USB transmission specification is at least one Inter-Integrated Circuit (IC), I 2 C) Any one of a bus transmission specification, a Universal Asynchronous Receiver Transmitter (UART) bus transmission specification, or a Serial Peripheral Interface (SPI) bus transmission specification.
Drawings
FIG. 1: it is a flow chart of a first preferred implementation calibration method of the present disclosure.
Fig. 2A and 2B: which is a flow chart illustrating a second preferred embodiment of the calibration method of the present disclosure.
FIG. 3: it is a block conceptual illustration of a first preferred embodiment calibration apparatus of the present disclosure;
FIG. 4: which is a block conceptual illustration of a second preferred embodiment calibration apparatus of the present disclosure.
Wherein the reference numerals are as follows:
s100, S101, S102, S103, S104, S105, S106: step (ii) of
S200, S201, S202, S203, S204, S205, S206, S207, S208, S209, S210, S211, S212, S213: step (ii) of
10. 20: electronic product (Circuit board to be tested)
101. 201: universal sequence bus control chip
102. 202: universal sequence bus transmission terminal
1011. 2011: analog-to-digital conversion module
11. 21: calibration device
111. 211: master control unit
1111. 2111: back-push operation means for current to be calibrated
1112. 2112: conversion parameter calibration means
112. 212, and (3): interface conversion unit
113. 213: electronic load generating unit
114: power transmission function detection unit
L10, L11, L12, L13, L14, L20, L21, L22, L23: electrical connection path
Detailed Description
In order to make the description of the present disclosure more complete and complete, the following illustrative description is given of implementation aspects and specific embodiments of the present disclosure; it is not intended to be the only form in which a particular embodiment of the disclosure may be practiced or utilized. The embodiments disclosed below may be combined with or substituted for one another where appropriate, and additional embodiments may be added to one embodiment without further recitation or description.
The present disclosure provides related Universal Serial Bus (USB) controller chips belonging to Type C USB-C controller chips with a Power Delivery (PD) function; the power transmission (PD) function is a power expansion standard of a usb that can provide 100W (watts) of power supply and reception by using the usb, and the voltage range that can be supported can be expanded from 5V (volt) to 20V (volt) of the original standard, and the current range that can be supported is also expanded from 2A (ampere) to 5A (ampere) of the original standard.
However, the present disclosure is not limited thereto, and for other Universal Serial Bus (USB) control chips with advanced or updated bus versions in the future, such as those providing power transfer (PD) functionality similar to the above, the calibration solution and optimization proposed below in the present disclosure can be applied.
Please refer to fig. 1, which is a flowchart illustrating a first preferred calibration method according to the present disclosure, and the method at least includes the following steps:
step S100: starting;
step S101: providing a calibration device electrically connected to a Universal Serial Bus (USB) control chip; wherein, the universal sequence bus control chip is internally provided with at least one preset conversion parameter, and the calibration device is internally provided with a current push-back operation means to be calibrated and the at least one preset conversion parameter;
in a preferred embodiment, the usb control chip is disposed in an electronic product or a circuit board to be tested, and either the electronic product or the circuit board to be tested is electrically connected to the calibration device; for example, the electronic product may be an expansion device (docking station), but not limited thereto;
in addition, any one of the electronic product or the circuit board to be tested is provided with a universal serial bus transmission terminal (USB port);
step S102: making the calibration device provide an electronic load (electronic load) to form a load constant current;
step S103: making the calibration device obtain an analog-to-digital conversion value (ADC value) generated by the USB control chip due to the constant current of the load and applying the at least one preset conversion parameter;
preferably, the usb control chip uses an analog-to-digital conversion module and the at least one predetermined conversion parameter to convert the load constant current into the analog-to-digital conversion value;
preferably, the at least one predetermined conversion parameter is matched with the analog-to-digital conversion module, and the current push-back operation means to be calibrated, which is disposed inside the calibration device, further includes the analog-to-digital conversion module;
the analog-to-digital conversion module is a set of conversion operation formulas, and preferably, the conversion formulas can be built in the universal serial bus control chip and the calibration device in a firmware form, and the at least one preset conversion parameter is an important parameter for participating in the operation process of the analog-to-digital conversion module; of course, the aforementioned analog-to-digital conversion module and the at least one predetermined conversion parameter are all technical contents that can be understood and known by those skilled in the art, and are not described herein again;
step S104: in response to the analog-to-digital conversion value, the calibration device generates and stores an output current to be calibrated by using the current to be calibrated backstepping operation means and the at least one preset conversion parameter set in the calibration device; wherein, in response to the total number of the at least one predetermined conversion parameter, the steps S102 to S104 are further executed at least once or for multiple times to generate one or more load constant currents in sequence, generate one or more analog-to-digital conversion values in sequence, and generate one or more output currents to be calibrated in sequence;
in a preferred embodiment, the calibration device generates and stores the output current to be calibrated by applying the current to be calibrated back-stepping operation means with the analog-to-digital conversion module and the at least one preset conversion parameter in response to the analog-to-digital conversion value;
for example, when the total number of the at least one predetermined conversion parameter is two, three or four, the steps S102 to S104 are correspondingly performed two, three or four times to generate two, three or four load constant currents in sequence, and to generate two, three or four analog-to-digital conversion values in sequence, and to generate two, three or four output currents to be calibrated in sequence;
step S105: generating at least one calibrated conversion parameter by the calibration device in response to the single or the plurality of load constant currents and the single or the plurality of output currents to be calibrated by using a conversion parameter calibration means arranged in the calibration device; and
step S106: the calibration device is used for replacing the at least one preset conversion parameter in the universal serial bus control chip with the at least one calibrated conversion parameter so that the universal serial bus control chip can use the at least one calibrated conversion parameter to generate a calibrated analog-to-digital conversion value and correctly start an over-current protection (OCP) mechanism;
preferably, the USB control chip is configured to set the current for the single or the plurality of loads, and to apply the at least one calibrated conversion parameter and the ADC module to generate the calibrated ADC value and to enable the over-current protection mechanism.
One of the technical features of the first preferred calibration method is that, even if the usb control chip used in the step S103 is implemented by a chip with a lower specification (e.g., lower cost), and if the chip itself has an error in the analog-to-digital conversion value due to weak noise immunity or poor analog-to-digital conversion resolution of the chip itself, the current-to-be-calibrated calculation means and the at least one predetermined conversion parameter in the step S104 are executed to recover and obtain the output current to be calibrated, so as to obtain an error current value (i.e., the output current to be calibrated) corresponding to the analog-to-digital conversion value; then, by executing the step S105, the calibration device obtains the at least one calibrated conversion parameter with compensation property by the known and correct load constant current and the output current to be calibrated with deviation, and by using the conversion parameter calibration means arranged in the calibration device; that is, with the above embodiments, the conversion parameter to be used for calibrating the at least one calibration of the usb chip can be obtained.
Of course, the calibration device uses the current-to-be-calibrated backstepping operation means with the analog-to-digital conversion module and the at least one predetermined conversion parameter to generate the output current to be calibrated through backstepping operation in the step S104, and the calibration device uses the conversion parameter calibration means for inputting the load constant current and the output current to be calibrated to generate the at least one calibrated conversion parameter through conversion in the step S105.
Then, by executing the step S106, the at least one predetermined conversion parameter in the usb control chip is replaced with the at least one calibrated conversion parameter, so that the usb control chip uses the at least one calibrated conversion parameter and the adc to generate the calibrated adc and correctly activate the over-current protection mechanism.
To further illustrate the inventive spirit of the calibration method of the present disclosure, the following embodiment is exemplified when the total number of the at least one predetermined conversion parameter is two.
In addition, a Universal Serial Bus (USB) controller chip in a preferred calibration method to be described later will be described by taking a Type C universal serial bus (USB-C) controller chip having a Power Delivery (PD) function as an example.
Please refer to fig. 2A and fig. 2B, which are exemplary diagrams of a second preferred calibration method according to the present disclosure, comprising the following steps:
step S200: starting;
step S201: providing a calibration device electrically connected with a USB-C control chip; wherein, two groups of preset conversion parameters are arranged in the USB-C control chip, and a current push-back operation means to be calibrated and the two groups of preset conversion parameters are arranged in the calibrating device;
a preferred embodiment, wherein the USB-C control chip is disposed in an electronic product or a circuit board to be tested, and either the electronic product or the circuit board to be tested is electrically connected to the calibration device; for example, the electronic product may be an expansion device (docking station), but not limited thereto;
in addition, any one of the electronic product or the circuit board to be tested is provided with a universal serial bus transmission terminal (USB port);
step S202: initializing the calibration device to the USB-C control chip;
in a preferred embodiment, the calibration device can initialize a power-off protection threshold value for stopping the output current of the USB-C control chip, so that the USB-C control chip can determine whether to activate an over-current protection (OCP) mechanism;
step S203: making the calibration device provide a first electronic load (electronic load) to form a first load constant current;
step S204: making the calibration device obtain a first analog-to-digital conversion value (ADC value) generated by the USB-C control chip due to the first load constant current and applying the two sets of preset conversion parameters;
preferably, the USB-C control chip uses an analog-to-digital conversion module and the two sets of predetermined conversion parameters to convert the first load constant current into the first analog-to-digital conversion value;
a preferred embodiment, wherein the two sets of predetermined conversion parameters are matched with the analog-to-digital conversion module, and the current push-back operation means to be calibrated, which is disposed inside the calibration device, further includes the analog-to-digital conversion module, but not limited thereto;
step S205: the calibration device generates and stores a first output current to be calibrated by applying the current to be calibrated push-back operation means set in the calibration device and the two sets of preset conversion parameters according to the first analog-to-digital conversion value;
in a preferred embodiment, the calibration device generates and stores the first output current to be calibrated by applying the current-to-be-calibrated push-back operation means with the analog-to-digital conversion module and the two sets of predetermined conversion parameters in response to the first analog-to-digital conversion value;
step S206: enabling the calibration device to provide a second electronic load to form a second load constant current;
step S207: the calibration device obtains a second analog-to-digital conversion value generated by the USB-C control chip due to the second load constant current and the application of the two groups of preset conversion parameters;
preferably, the USB-C control chip uses the analog-to-digital conversion module and the two sets of predetermined conversion parameters to convert the second load constant current into the second analog-to-digital conversion value;
step S208: in response to the second analog-to-digital conversion value, the calibration current push-back operation means set in the calibration device and the two sets of preset conversion parameters are used to enable the calibration device to generate and store a second output current to be calibrated;
in a preferred embodiment, the calibration device generates and stores the second output current to be calibrated by applying the current-to-be-calibrated back-pushing operation means with the analog-to-digital conversion module and the two sets of predetermined conversion parameters in response to the second analog-to-digital conversion value;
step S209: applying a conversion parameter calibration means arranged in the calibration device to enable the calibration device to generate two sets of calibrated conversion parameters in response to the first and second loads to be in constant current and in response to the first and second to-be-calibrated output currents;
step S210: the calibration device is used for replacing the two groups of preset conversion parameters in the USB-C control chip with the two groups of calibrated conversion parameters so that the USB-C control chip can generate a calibrated analog-to-digital conversion value by using the two groups of calibrated conversion parameters according to any one of the first load constant current and the second load constant current;
step S211: enabling the calibration device to provide a third electronic load to generate an overload constant current;
in a preferred embodiment, the overload constant current is equal to or greater than a power-off protection threshold value for stopping the output current of the USB-C control chip;
step S212: judging whether the USB-C control chip can start the over-current protection (OCP) mechanism in response to the over-load constant current;
step S213: re-executing the steps S203 to S212 when the USB-C controller chip fails to activate the over-current protection mechanism; and
step S214: when the USB-C control chip can start the over-current protection mechanism, ending the calibration method of the current detection and current protection mechanism;
preferably, the activating of the over-current protection mechanism in step S213 means that the output voltage level of an over-current protection pin (not shown) of the USB-C control chip is changed from one voltage level state to another voltage level state due to the overload of the constant current, and the failing to activate the over-current protection mechanism in step S214 means that the output voltage level of the over-current protection pin is still maintained in the voltage level state and fails to be changed to the another voltage level state due to the overload of the constant current.
Two practical examples are illustrated below to further disclose the spirit of the present disclosure:
the first embodiment is as follows: assuming that the power-off protection threshold value for starting the over-current protection mechanism is set to 4.5A, and assuming that the first and second load constant currents are set to 2A and 4.25A (representing the actual output current value of the USB-C control chip), respectively, the USB-C control chip will generate the first and second analog-to-digital conversion values (e.g., two sets of analog-to-digital conversion values each having a different 8-bit value) according to the first and second load constant currents (2A and 4.25A), respectively, by using the two sets of predetermined conversion parameters, and then the calibration device obtains the first and second analog-to-digital conversion values, and calculates the first and second to-be-calibrated output currents (2.5A and 5A) back by using the to-be-calibrated current back-estimation means and the two sets of predetermined conversion parameters, so that the first and second to-be-calibrated output currents (2.5A and 5A) generated by the USB-C control chip are estimated to be the second output currents (2.5A and 5A, 5A) when an error occurs, the first and second to-be-calibrated current (2.5A, 25A) is not equal to-be-calibrated; if the calibration is not performed, the wrong second output current to be calibrated (5A) is obviously higher than the power-off protection threshold value (4.5A), however, the true output current of the USB-C control chip is only 4.25A (the second load constant current), so that the USB-C control chip can prematurely start the current protection mechanism to stop the output current due to the wrong second output current to be calibrated (5A), and an electronic device electrically connected with the USB-C control chip cannot normally obtain the power supply of the USB-C control chip.
Certainly, the calibration device can generate two sets of calibrated conversion parameters by using the conversion parameter calibration means through the first and the second load constant currents (2A, 4.25A) and the first and the second output currents (2.5A, 5A) to be calibrated, and then replace the two sets of preset conversion parameters, so that the USB-C control chip can generate calibrated analog-to-digital conversion values and further can correctly start the over-current protection mechanism; for example, if the USB-C controller chip is enabled to generate the second load constant current (4.25A) again due to the second electronic load, the USB-C controller chip can generate the correct analog-to-digital conversion value (i.e. correctly corresponding to 4.25A) without prematurely activating the over-current protection mechanism and improperly stopping the output current.
Example two: assuming that the power-off protection threshold value for activating the over-current protection mechanism is reset to 3.5A in response to different wattage requirements, and assuming that the first and second load constant currents are set to 2.5A and 3.8A (representing the actual output current value of the USB-C control chip), respectively, the USB-C control chip will generate the first and second analog-to-digital conversion values (e.g., two sets of analog-to-digital conversion values each having a different 8-bit value) in response to the first and second load constant currents (2.5A and 3.8A) respectively, and using the two sets of predetermined conversion parameters, then, the calibration device obtains the first and the second analog-to-digital conversion values, and calculates the first and the second output currents (2.2A, 3.3A) to be calibrated by back-pushing through the current to be calibrated and the two sets of preset conversion parameters, so that it is obvious that the first and the second analog-to-digital conversion values generated by the USB-C control chip are also in error, so that the back-pushed output currents (2.2A, 3.3A) to be calibrated are not equal to the first and the second load constant currents (2.5A, 3.8A); if no calibration is performed, the erroneous second output current to be calibrated (3.3A) is obviously lower than the power-off protection threshold (3.5A), but the real output current is already up to 3.8A (the second load constant current), the USB-C control chip will still not activate the over-current protection mechanism (i.e. activate the over-current protection mechanism too late) due to the erroneous second output current to be calibrated (3.3A), so that the electronic device electrically connected to the USB-C control chip is exposed to the dangerous situation of over-current impact.
Certainly, the calibration device can generate two sets of calibrated conversion parameters by passing through the first and the second load constant currents (2.5A, 3.8A) and the first and the second output currents to be calibrated (2.2A, 3.3A), and applying the conversion parameter calibration means, and then replace the two sets of preset conversion parameters, so that the USB-C control chip can generate calibrated analog-to-digital conversion values, and further can correctly start the over-current protection mechanism; for example, if the USB-C control chip generates an overload constant current (equal to or greater than 3.5A) in response to another electronic load (i.e., the third electronic load), the USB-C control chip can generate a correct analog-to-digital conversion value, and then can correctly and immediately activate the overcurrent protection mechanism to stop outputting current.
Furthermore, the calibration apparatus for current detection and current protection mechanism disclosed in the present disclosure may have various embodiments, and the following only illustrates two embodiments to further illustrate the spirit of the present disclosure, but not limited thereto.
In addition, a Universal Serial Bus (USB) controller chip of Type C having a Power Delivery (PD) function will be described as an example of a USB controller chip in a preferred embodiment of the calibration apparatus.
Please refer to fig. 3, which is a block diagram illustrating an exemplary calibration apparatus according to a first preferred embodiment of the present disclosure, wherein the calibration apparatus 11 of the current detection and protection mechanism at least includes: a main control unit 111, an interface conversion unit 112, an electronic load generation unit 113, and a power transmission function detection unit 114; in addition, the USB-C controller chip 101 is disposed in an electronic product (or a circuit board under test) 10 having a universal serial bus port 102.
The electronic load generating unit 113 is electrically connected to the power transmission function detecting unit 114 via an electrical connection path L10 capable of providing positive/negative power, and the power transmission function detecting unit 114 is electrically connected to the USB-C control chip 101 via an electrical connection path L11 capable of providing a power line set (e.g., VBUS power signal specification) in the USB transmission port 102 for transmission; that is, the power line group in the USB transmission port 102 is indirectly connected to the electronic load generating unit 113 through the power transmission function detecting unit 114.
Furthermore, the electrical connection path L12 between the interface conversion unit 112 and the USB-C controller chip 101 usually adopts a non-Universal Serial Bus (USB) transmission specification, and the USB transmission specification may be at least an Inter-Integrated Circuit (i.e. Inter-Integrated Circuit) 2 C) Any one of the bus transmission specification, universal Asynchronous Receiver Transmitter (UART) bus transmission specification, or Serial Peripheral Interface (SPI) bus transmission specification, but the disclosure is not limited thereto.
In addition, the electrical connection path L13 between the main control unit 111 and the interface conversion unit 112 and between the power transmission function detection unit 114 generally adopt a Universal Serial Bus (USB) transmission specification, and the electrical connection path L14 between the main control unit 111 and the electronic load generation unit 113 generally adopts the aforementioned universal asynchronous receiver/transmitter (UART) bus transmission specification, but the disclosure is not limited thereto.
As for the operation principle of fig. 3, the following is briefly explained:
the electronic load generating unit 113 is configured to provide an electronic load (electronic load) to enable the USB-C controller 101 to output a load constant current, and enable the USB-C controller to generate an analog-to-digital conversion value (ADC value) according to the load constant current and using the at least one predetermined conversion parameter; the USB-C control chip converts the load constant current into the analog-to-digital conversion value through an analog-to-digital conversion module 1011 and by using the at least one preset conversion parameter matched with the analog-to-digital conversion module 1011; preferably, the analog-to-digital conversion module 1011 can be a set of conversion operation formulas, and is optionally built in the USB-C controller chip 101 in firmware.
Furthermore, since the interface conversion unit 112 can convert the analog-to-digital conversion value (ADC value) belonging to the non-USB transmission specification into the analog-to-digital conversion value belonging to the USB transmission specification, the main control unit 111 can input and store an output current to be calibrated by using the current-to-be-calibrated loop back calculation means 1111 and the at least one predetermined conversion parameter provided in the main control unit 111, and the main control unit 111 further generates at least one calibrated conversion parameter by using the load constant current and the output current to be calibrated and the conversion parameter calibration means 1112 provided in the main control unit 111.
In one preferred embodiment, the current push-back operation means 1111 to be calibrated inside the main control unit 111 also includes the analog-to-digital conversion module 1011 (preferably, the analog-to-digital conversion module 1011 can be the set of conversion operation formulas), and the analog-to-digital conversion module 1011 can be built in the main control unit 111 in a firmware or software form, but not limited thereto.
Subsequently, the main control unit 111 can further replace the at least one predetermined conversion parameter in the USB-C control chip 101 with the at least one calibrated conversion parameter, so that the USB-C control chip 101 can use the at least one calibrated conversion parameter to generate a calibrated analog-to-digital conversion value and correctly activate an over-current protection (OCP) mechanism.
In addition, since the USB-C controller chip having a Power Delivery (PD) function protocol has a corresponding relationship between the allowable output current in the PD function protocol and a voltage specification interval in the PD function protocol, the main control unit 111 can communicate with the USB-C controller chip 101 through the Power Delivery function detecting unit 114 and confirm a specific output voltage between the voltage specification areas, so that the electronic load generating unit 113 generates the corresponding electronic load, and further the USB-C controller chip 101 generates and outputs the load constant current corresponding to the electronic load.
Please refer to fig. 4, which is a block diagram illustrating an exemplary calibration apparatus according to a second preferred embodiment of the present disclosure, wherein the calibration apparatus 21 of the current detection and protection mechanism at least includes: a main control unit 211, an interface conversion unit 212, and an electronic load generation unit 213; in addition, the USB-C control chip 201 is disposed in an electronic product (or a circuit board to be tested) 20 having a USB port 202, and an analog-to-digital conversion module 2011 is built in the USB-C control chip 201.
The functions and operation manners of the elements in the embodiment shown in fig. 4 are similar to those described above with respect to the same or similar elements shown in fig. 3, and the electrical connection paths L21, L22, and L23 in the embodiment shown in fig. 4 are also similar to the electrical connection paths L12, L13, and L14 shown in fig. 3, and are not repeated herein.
As for the differences between the embodiment shown in fig. 4 and the embodiment shown in fig. 3, mainly, the power transmission function detection unit 114 in fig. 3 is omitted in the embodiment shown in fig. 4, the power line group (e.g., VBUS power signal specification) in the USB transmission port 202 is used to be directly electrically connected to the electronic load generation unit 213 via the electrical connection path L20, so that the USB-C control chip 201 can directly generate and output the load constant current corresponding to the electronic load provided by the electronic load generation unit 213.
In short, by the method of the present disclosure, the USB- C control chip 101, 201 can be effectively and correctly calibrated to correctly convert and record the true output current value, thereby ensuring that the over-current protection mechanism of the USB- C control chip 101, 201 can be correctly activated; therefore, the present disclosure is a work with great industrial value.
The foregoing embodiments are merely illustrative of the principles and efficacy of the present disclosure, as well as illustrating the technical features of the present disclosure, and are not to be construed as limiting the scope of the present disclosure. Any changes or equivalent arrangements which can be easily accomplished by those skilled in the art without departing from the technical principle and spirit of the present disclosure belong to the scope of the present disclosure.

Claims (20)

1. A calibration method of current detection and current protection mechanism is applied to a universal sequence bus control chip, and the calibration method at least comprises the following steps:
(a) Providing a calibration device electrically connected with the universal sequence bus control chip; wherein, the universal sequence bus control chip is internally provided with at least one preset conversion parameter, and the calibration device is internally provided with a current push-back operation means to be calibrated and the at least one preset conversion parameter;
(b) Making the calibration device provide an electronic load to form a load constant current;
(c) Making the calibration device obtain an analog-to-digital conversion value generated by the universal serial bus control chip due to the load constant current and applying the at least one preset conversion parameter;
(d) In response to the analog-to-digital conversion value, the calibration device generates and stores an output current to be calibrated by using the current to be calibrated backstepping operation means and the at least one preset conversion parameter set in the calibration device; performing the steps (b) to (d) at least once or for multiple times according to the total number of the at least one preset conversion parameter, so as to generate one or more load constant currents in sequence, generate one or more analog-to-digital conversion values in sequence, and generate one or more output currents to be calibrated in sequence;
(e) Generating at least one calibrated conversion parameter by the calibration device in response to the single or the plurality of load constant currents and the single or the plurality of output currents to be calibrated by using a conversion parameter calibration means arranged in the calibration device; and
(f) The calibration device replaces the at least one preset conversion parameter in the USB control chip with the at least one calibrated conversion parameter, so that the USB control chip uses the at least one calibrated conversion parameter to generate a calibrated analog-to-digital conversion value and correctly start an over-current protection mechanism.
2. The calibration method according to claim 1, wherein before the step (b), further comprising the step (b 1): enabling the calibration device to initialize the USB control chip.
3. The calibration method of claim 1, wherein in step (c), the USB control chip applies an analog-to-digital conversion module and the at least one predetermined conversion parameter to convert the load constant current into the analog-to-digital conversion value.
4. The calibration method of claim 3, wherein the at least one predetermined conversion parameter is matched to the ADC module, and the current push-back operation means to be calibrated disposed inside the calibration device further comprises the ADC module.
5. The calibration method as claimed in claim 1, wherein in step (d), when the total number of the at least one predetermined conversion parameter is two, the steps (b) to (d) are further performed twice, so that the calibration device sequentially generates two load constant currents, the usb control chip sequentially generates two analog-to-digital conversion values corresponding to the two load constant currents, and the calibration device sequentially generates two output currents to be calibrated corresponding to the two analog-to-digital conversion values.
6. The calibration method as claimed in claim 5, wherein in step (e), the calibration device generates two calibrated conversion parameters by applying the conversion parameter calibration means disposed in the calibration device in response to the two load constant currents and in response to the two output currents to be calibrated.
7. The calibration method of claim 1, wherein in step (f), further comprising the steps of:
(f1) The calibration device is used for replacing the at least one preset conversion parameter in the universal serial bus control chip with the at least one calibrated conversion parameter so that the universal serial bus control chip can generate the calibrated analog-to-digital conversion value by applying the at least one calibrated conversion parameter according to the load constant current;
(f2) Making the calibration device provide another electronic load to form an overload constant current;
(f3) Judging whether the USB control chip can start the over-current protection mechanism in response to the over-load constant current;
(f4) When the USB control chip fails to activate the over-current protection mechanism, re-executing steps (b) to (d) and steps (f 1) to (f 3); and
(f5) When the universal sequence bus control chip can start the over-current protection mechanism, the calibration method of the current detection and protection mechanism is finished.
8. The calibration method according to claim 7, wherein in step (f 2), the overload constant current is equal to or greater than a power-off protection threshold for the USB control chip to stop the output current.
9. The calibration method according to claim 8, wherein in the steps (f 4) and (f 5), the activating of the over-current protection mechanism means that the USB control chip should be overloaded with a constant current, so that the output voltage level of an over-current protection pin of the USB control chip is changed from one voltage level state to another voltage level state, and the failing to activate the over-current protection mechanism means that the USB control chip should be overloaded with a constant current, so that the output voltage level of the over-current protection pin is still maintained in the voltage level state and fails to be changed to the another voltage level state.
10. The calibration method of claim 1, wherein the USB chip is of a Type C USB chip having a power over IP protocol.
11. The calibration method according to claim 10, wherein the Type C USB control chip is disposed in an electronic product or a circuit board under test, and either the electronic product or the circuit board under test is electrically connected to the calibration device, and either the electronic product or the circuit board under test has a USB transmission port.
12. A calibration device for current detection and current protection mechanism applied to a universal serial bus control chip having at least one predetermined conversion parameter, the calibration device comprising:
an electronic load generating unit electrically connected to the USB control chip for providing an electronic load to make the USB control chip output a load constant current and to make the USB control chip generate an analog-to-digital conversion value in response to the load constant current and applying the at least one predetermined conversion parameter;
an interface conversion unit electrically connected to the USB control chip for converting the analog-to-digital conversion value belonging to a non-USB transmission specification into the analog-to-digital conversion value belonging to a USB transmission specification; and
a main control unit electrically connected to the electronic load generating unit and the interface conversion unit, the main control unit being configured to input and store an output current to be calibrated by applying a current to be calibrated back-pushing operation means and the at least one preset conversion parameter, the main control unit being configured to generate and store the output current to be calibrated, and the main control unit being further configured to generate at least one calibrated conversion parameter by applying a conversion parameter calibration means, the conversion parameter calibration means being configured to generate at least one calibrated conversion parameter;
the master control unit replaces the at least one preset conversion parameter in the universal serial bus control chip with the at least one calibrated conversion parameter, so that the universal serial bus control chip utilizes the at least one calibrated conversion parameter to generate a calibrated analog-to-digital conversion value and can correctly start an overcurrent protection mechanism.
13. The calibration device as claimed in claim 12, wherein the USB chip is of a Type C USB chip having a power transfer function protocol.
14. The calibration device according to claim 13, wherein the Type C usb control chip is disposed in an electronic product or a circuit board under test, and either the electronic product or the circuit board under test is electrically connected to the electrical load generating unit and the interface converting unit.
15. The calibration device as claimed in claim 14, wherein one of the electronic product or the circuit board under test has a usb port, and one of the usb ports has a power line set for electrically connecting to the electronic load generating unit directly, so that the Type C usb control chip generates and outputs the constant load current in response to the electronic load.
16. The calibration device according to claim 14, further comprising a power transmission function detecting unit electrically connected between the usb transmission terminal and the electronic load generating unit, wherein a power line group in the usb transmission terminal is indirectly electrically connected to the electronic load generating unit through the power transmission function detecting unit, so that the Type C usb control chip generates and outputs the load constant current in response to the electronic load.
17. The calibration apparatus according to claim 15, wherein the power transmission function detecting unit is electrically connected between the usb port and the main control unit, the main control unit can communicate with the Type C usb control chip through the power transmission function detecting unit and confirm a voltage specification interval in the power transmission function protocol, and enable the electronic load generating unit to generate the corresponding electronic load, so that the Type C usb control chip generates and outputs the load constant current in response to the electronic load.
18. The calibration device according to claim 12, wherein the electronic load generating unit is configured to provide another electronic load, so that the usb control chip outputs an overload constant current, and the usb control chip correctly activates the over-current protection mechanism due to the overload constant current; the overcurrent protection mechanism refers to that the universal serial bus control chip leads the output voltage level of an overcurrent protection pin of the universal serial bus control chip to be converted into another voltage level state from one voltage level state due to the fact that the universal serial bus control chip is overloaded with constant current.
19. The calibration apparatus as claimed in claim 12, wherein the usb control chip and the current-to-be-calibrated operation means in the main control unit each include an analog-to-digital conversion module for the usb control chip to determine the load current, and the analog-to-digital conversion module and the at least one predetermined conversion parameter are used to convert the load current into the analog-to-digital conversion value, or for the usb control chip to determine the load current, and the analog-to-digital conversion module and the at least one calibrated conversion parameter are used to convert the load current into the calibrated analog-to-digital conversion value, or for the main control unit to generate and store the output current to be calibrated by using the current-to-be-calibrated operation means with an analog-to-digital conversion module and the at least one predetermined conversion parameter.
20. The calibration device of claim 12, wherein the USB transmission specification is at least one of an inter-integrated circuit bus transmission specification, a universal asynchronous receiver/transmitter bus transmission specification, or a serial peripheral interface bus transmission specification.
CN202110789333.7A 2021-07-13 2021-07-13 Calibration method and calibration device for current detection and current protection mechanism Pending CN115617582A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110789333.7A CN115617582A (en) 2021-07-13 2021-07-13 Calibration method and calibration device for current detection and current protection mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110789333.7A CN115617582A (en) 2021-07-13 2021-07-13 Calibration method and calibration device for current detection and current protection mechanism

Publications (1)

Publication Number Publication Date
CN115617582A true CN115617582A (en) 2023-01-17

Family

ID=84854383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110789333.7A Pending CN115617582A (en) 2021-07-13 2021-07-13 Calibration method and calibration device for current detection and current protection mechanism

Country Status (1)

Country Link
CN (1) CN115617582A (en)

Similar Documents

Publication Publication Date Title
TWI235910B (en) Apparatus for testing I/O ports of a computer motherboard
EP2584471A1 (en) Method and terminal for selecting internal circuit according to USB interface status
CN101989246A (en) Electronic device capable of automatically switching master and slave equipment modes of universal serial bus (USB)
EP3171480B1 (en) Method for identifying types of cables, power adaptor and cable
TWI657641B (en) A charging circuit and battery charging protection control method
TW201622292A (en) Portable electronic device and charging method therefor
CN105071484A (en) Charging method and apparatus of terminal having data exchange function
CN115617582A (en) Calibration method and calibration device for current detection and current protection mechanism
TWI414794B (en) Ac power supply detecting circuit
US11081840B2 (en) Detection circuit applied to a connecting port
CN108845558B (en) Detection control device
CN217179803U (en) Temperature sensor detection circuit and detection device with same
CN217213685U (en) Debugging device and debugging system of data storage equipment
TWI806093B (en) Calibration method for current detection and current protection mechanism and calibration device using the same
CN113986600B (en) Test method and device for chip serial interface and chip
CN114720740A (en) Device power supply unit of ATE
CN109274611B (en) Method for switching sharing network protocol by baseboard management controller
CN102346701A (en) Power supply test system for CPU (Central Processing Unit)
EP3451182A1 (en) Connection circuit
JP7371260B2 (en) Electronic equipment and connection inspection method
CN210955061U (en) Multi-channel analog signal output board card
CN117075587B (en) Electric control unit testing device and system
TWI774430B (en) Current sense short protection circuit
CN220307228U (en) Gateway (GW)
CN108594105B (en) Detection method for control circuit of main board indicator light

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination