Bidirectional voltage detection circuit and bidirectional voltage detection data line
By introducing an intelligent switching mechanism into the charging data cable, the sampling input terminal is automatically switched to obtain the correct voltage sampling signal, which solves the hardware cost and space occupation problems in the bidirectional display design and realizes the accuracy of bidirectional current detection and reduces costs.
Patent Information
- Application Number
- CN202520223786.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-13
- Publication Date
- 2025-12-26
- Estimated Expiration
- 2035-02-13
AI Technical Summary
Existing charging data cables require two independent sampling resistors and operational amplifier circuits in bidirectional display designs, which increases hardware costs and PCB space usage, and cannot correctly detect voltage when connected in reverse.
An intelligent switching mechanism is adopted, in which the processing unit automatically switches the sampling input terminal according to the positive or negative value of the voltage sampling signal, ensuring that the correct voltage sampling signal is obtained, without the need for additional sampling resistors and operational amplifier circuits.
It achieves accurate bidirectional current detection, reduces the number of hardware components, lowers production costs, and solves the problem of abnormal voltage detection during reverse connection.
Smart Images

Figure CN223727904U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of charging detection, and in particular to a bidirectional voltage detection circuit and a bidirectional voltage detection data line. BACKGROUND
[0002] The common charging power display data line on the market currently mainly converts power by detecting voltage and current. Among them, the current detection method is to collect signals through a sampling resistor, and input the signals into an operational amplifier circuit, and finally transmit them to a processing unit 400 for processing. However, this traditional detection method has some limitations in actual application, especially in the design of unidirectional and bidirectional display data lines. The unidirectional display data line usually has a fixed display screen and can only be connected to the power supply end (such as an adapter) or the power receiving end (such as a mobile phone). If connected reversely, the power cannot be displayed normally. This is because the current detection mechanism relies on the current flowing in a specific direction. When the data line can only be used in one direction, the current only flows in one direction, so only one sampling resistor and one operational amplifier circuit are needed to realize current detection. The bidirectional display data line can be flexibly connected to the power supply end or the power receiving end, but two independent sampling resistors and operational amplifier circuits are needed to detect the current in the two directions respectively. This design of double sampling and operational amplifier circuit puts great pressure on the limited PCB space of the data line. The additional components increase the material cost and production complexity. SUMMARY
[0003] In view of the above-mentioned shortcomings of the prior art, the purpose of the present disclosure is to provide a bidirectional voltage detection circuit and a bidirectional voltage detection data line to solve the problems in the related art.
[0004] The first aspect of the present disclosure provides a bidirectional voltage detection circuit, which is applied to a charging data line having a first charging interface and a second charging interface, and the circuit comprises:
[0005] a first sampling end coupled to the first charging interface and coupled to ground through a first sampling resistor to output a first voltage sampling signal of the first charging interface;
[0006] a second sampling end coupled to the second charging interface and coupled to ground through a second sampling resistor to output a second voltage sampling signal of the second charging interface;
[0007] a sampling unit comprising a first sampling input end coupled to the first sampling end, a second sampling input end coupled to the second sampling end, and a sampling output end for outputting the first voltage sampling signal or the second voltage sampling signal;
[0008] a processing unit coupled to the sampling output terminal, configured to determine a current charging direction between the first charging interface and the second charging interface according to a signal value of the first voltage sampling signal or the second voltage sampling signal output by the sampling output terminal, and output a target voltage sampling signal conforming to the current charging direction;
[0009] wherein the processing unit generates a switching signal when the signal value of the voltage sampling signal of one sampling input terminal is negative, and sends the switching signal to the sampling unit to switch to acquire the voltage sampling signal of another sampling input terminal to obtain the target voltage sampling signal conforming to the current charging direction.
[0010] In an embodiment of the first aspect, the target voltage sampling signal conforming to the current charging direction refers to the first voltage sampling signal or the second voltage sampling signal with a positive signal value.
[0011] The processing unit is configured to send a switching signal to the sampling unit to close the acquisition of the first voltage sampling signal and output the second voltage sampling signal when the signal value of the first voltage sampling signal output by the sampling output terminal is negative, or send a switching signal to the sampling unit to close the acquisition of the second voltage sampling signal and output the first voltage sampling signal when the signal value of the second voltage sampling signal output by the sampling output terminal is negative.
[0012] In an embodiment of the first aspect, the device further comprises an amplification unit, the amplification unit comprising: a voltage input terminal coupled to the sampling output terminal, and an amplification output terminal coupled to the processing unit; the amplification unit is configured to amplify the voltage sampling signal.
[0013] In an embodiment of the first aspect, the amplification unit comprises:
[0014] an amplifier comprising a non-inverting input terminal, an inverting input terminal, and an amplification output terminal; the non-inverting input terminal is coupled to the sampling output terminal; the amplification output terminal is coupled to an input terminal of the processing unit;
[0015] an input resistor, one end of the input resistor being coupled to the inverting input terminal, and the other end of the input resistor being grounded;
[0016] a feedback resistor, connected in parallel between the inverting input terminal and the amplification output terminal.
[0017] In an embodiment of the first aspect, the amplification unit further comprises a bias circuit coupled to the non-inverting input terminal.
[0018] In an embodiment of the first aspect, the amplifier is one of a non-inverting amplifier, an inverting amplifier, and a differential amplifier.
[0019] In an embodiment of the first aspect, the first charging interface and the second charging interface are both Type-C interfaces.
[0020] In an embodiment of the first aspect, the sampling unit comprises a switching chip, including a first detection end, a second detection end, a signal input end, and a sampling output end; the first detection end is coupled to a common connection point between the first charging interface and a first sampling resistor, the second detection end is coupled to a common connection point between the second charging interface and a second sampling resistor, and the sampling output end is coupled to the processing unit, for turning on the first detection end / second detection end according to the switching signal to output a voltage sampling signal of the corresponding charging interface to the processing unit through the sampling output end.
[0021] The second aspect of the present disclosure provides a bidirectional voltage detection data line, which comprises the bidirectional voltage detection circuit of any one of the above.
[0022] In an embodiment of the second aspect, a display device is arranged at at least one charging interface of the bidirectional voltage detection data line to display the charging voltage of the bidirectional voltage detection data line.
[0023] The present disclosure has the following beneficial effects: by introducing an intelligent switching mechanism, the present disclosure can realize bidirectional current detection without increasing additional sampling resistors and operational amplifier circuits. The system can automatically select the correct sampling signal input end according to the actual current direction. When the voltage sampling signal of one sampling input end is negative, the processing unit generates a switching signal to make the sampling unit switch to another sampling input end. This design ensures that the target voltage sampling signal can be accurately obtained and output regardless of the change of the charging direction. Compared with the design of the conventional bidirectional display data line which requires two independent sampling resistors and operational amplifier circuits, the technical solution of the present disclosure only needs one set of sampling resistors and operational amplifier circuits, and realizes bidirectional detection through intelligent switching. This greatly reduces the number of hardware components and reduces the production cost. BRIEF DESCRIPTION OF DRAWINGS
[0024] Figure 1 A structural block diagram of a bidirectional voltage detection circuit in an embodiment of the present disclosure is shown.
[0025] Figure 2 A circuit connection schematic diagram of a bidirectional voltage detection circuit in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0026] The advantages and features of the present disclosure will become apparent from specific examples which are given as thorough and complete descriptions of the present disclosure. It will be obvious to those skilled in the art that various other modifications or changes can be made thereto without departing from the spirit and scope of the present disclosure. It is to be understood that the embodiments and features of the present disclosure can be combined with each other, if not incompatible.
[0027] The embodiments of the present disclosure will be described in detail with reference to the drawings, so that those skilled in the art can easily implement the present disclosure. The present disclosure can be embodied in various ways, and is not limited to the embodiments described herein.
[0028] In the present disclosure, the expressions of "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" mean that the specific features, structures, materials, or characteristics expressed in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. Also, the specific features, structures, materials, or characteristics expressed can be combined in any one or a set of embodiments or examples in a suitable manner. In addition, the different embodiments or examples expressed in the present disclosure and the features of the different embodiments or examples can be combined and integrated by those skilled in the art without contradiction.
[0029] In addition, the terms "first", "second", etc. are used only to indicate the purpose, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features limited by "first", "second" can explicitly or implicitly include at least one of the features. In the present disclosure, the meaning of "a set" is two or more, unless specifically limited.
[0030] In order to clearly explain the present disclosure, devices irrelevant to the description are omitted, and the same reference numerals are assigned to the same or similar constituent elements throughout the specification.
[0031] Throughout the specification, when it is said that a device is "connected" to another device, it includes not only the case of "direct connection", but also the case of "indirect connection" in which other elements are interposed therebetween. In addition, when it is said that a device "includes" a certain constituent element, unless specifically stated to the contrary, other constituent elements are not excluded, but it means that other constituent elements can also be included.
[0032] Although the terms first, second, etc. are used herein to refer to various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first interface and a second interface, etc. are distinguished from each other. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises", "comprising", "includes" and / or "including" specify the presence of stated features, steps, operations, elements, modules, items, components, and / or groups thereof but do not preclude the presence or addition of one or more other features, steps, operations, elements, modules, items, components, and / or groups thereof. As used herein, the terms "or" and "and / or" are construed to be inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". This exception occurs only when the combination of elements, functions, steps or operations are inherently mutually exclusive by their nature.
[0033] The professional terms used herein are only used to refer to specific embodiments and are not intended to limit the disclosure. The singular form used herein, unless the context clearly indicates otherwise, also includes the plural form. The meaning of "comprising" used in the specification is to specify the particular characteristics, regions, integers, steps, operations, elements and / or components, and not to exclude the presence or addition of other characteristics, regions, integers, steps, operations, elements and / or components.
[0034] Although not differently defined, all terms including technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. Terms defined in commonly used dictionaries are to be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present disclosure, unless otherwise defined specifically herein, and are not to be interpreted in an ideal or overly formal sense.
[0035] In the related art, a unidirectional display data line can only be fixedly connected to a power supply end (such as an adapter) or a powered end (such as a mobile phone). If connected in reverse, the power cannot be normally displayed. This is because the current detection mechanism relies on the current flow in a specific direction, and the unidirectional design cannot adapt to the bidirectional use requirement. In order to realize bidirectional display, the prior art usually adopts two independent sampling resistors and operational amplifier circuits to detect the current in two directions respectively. The bidirectional display data line needs two independent sampling resistors and operational amplifier circuits, which not only increases the hardware cost, but also occupies more PCB space. When a TYPE-C port is connected to a power supply device, the voltage becomes negative, which will cause the operational amplifier circuit to be abnormal, so that the amplified voltage value cannot be correctly detected.
[0036] To solve the above problems, an embodiment of the present disclosure provides a bidirectional voltage detection circuit, which is applied to a charging data line with a first charging interface and a second charging interface. When the voltage sampling signal of one sampling input end is negative, the processing unit generates a switching signal to make the sampling unit switch to the other sampling input end, so as to ensure that the correct voltage sampling signal is always obtained. In this way, the target voltage sampling signal can be accurately obtained and output regardless of the change of the charging direction, and the problem of abnormal operation amplification caused by the negative voltage is avoided.
[0037] In Figure 1 In an embodiment, the bidirectional voltage detection circuit comprises:
[0038] The first sampling end 101 is coupled to the first charging interface 201 and coupled to the ground through a first sampling resistor R1 to output the first voltage sampling signal of the first charging interface 201.
[0039] The second sampling end 102 is coupled to the second charging interface 202 and coupled to the ground through a second sampling resistor R2 to output the second voltage sampling signal of the second charging interface 202.
[0040] The sampling unit 300 comprises a first sampling input end coupled to the first sampling end 101, a second sampling input end coupled to the second sampling end 102, and a sampling output end for outputting the first voltage sampling signal or the second voltage sampling signal.
[0041] The processing unit 400 is coupled to the sampling output end and is used for determining the current charging direction between the first charging interface 201 and the second charging interface 202 according to the signal value of the first voltage sampling signal or the second voltage sampling signal output by the sampling output end, and outputting the target voltage sampling signal conforming to the current charging direction.
[0042] The processing unit 400 generates a switching signal when the signal value of the voltage sampling signal of one sampling input end is negative, and sends the switching signal to the sampling unit 300 to switch to obtain the voltage sampling signal of the other sampling input end, so as to obtain the target voltage sampling signal conforming to the current charging direction.
[0043] Specifically, in some embodiments, the processing unit 400 determines whether the signal value of the voltage sampling signal is negative. If it is negative, it indicates that the current charging direction is not as expected, and the sampling input end needs to be switched. For example: the processing unit 400 receives the first voltage sampling signal (V1) and determines that the signal value is positive, indicating that the current charging direction is from the adapter to the mobile phone. The processing unit 400 outputs the first voltage sampling signal (V1) as the target voltage sampling signal and normally displays the charging power. The processing unit 400 receives the first voltage sampling signal (V1) and determines that the signal value is negative, indicating that the current charging direction is not as expected. The processing unit 400 generates a switching signal to make the sampling unit 300 switch to the second sampling input end to re-collect the voltage sampling signal (V2). The processing unit 400 receives the second voltage sampling signal (V2) and determines that the signal value is positive, indicating that the current charging direction is from the adapter to the notebook computer.
[0044] In some embodiments, the determination of the charging direction is achieved by analyzing the voltage signal across the sampling resistor. Specifically, the direction of the current determines which charging interface is the power supply end (adapter) and which is the powered end (device). If the current flows from the power supply end to the powered end, the voltage drop is positive; otherwise, if the current flows from the powered end to the power supply end, the voltage drop is negative. The first voltage sampling signal (V1): if V1 is positive, it indicates that the current flows from the first charging interface 201 to the ground, i.e. the first charging interface 201 is the power supply end (adapter) and the second charging interface 202 is the powered end (device). If V1 is negative, it indicates that the current flows from the ground to the first charging interface 201, i.e. the first charging interface 201 is the powered end (device) and the second charging interface 202 is the power supply end (adapter). The second voltage sampling signal (V2): if V2 is positive, it indicates that the current flows from the second charging interface 202 to the ground, i.e. the second charging interface 202 is the power supply end (adapter) and the first charging interface 201 is the powered end (device). If V2 is negative, it indicates that the current flows from the ground to the second charging interface 202, i.e. the second charging interface 202 is the powered end (device) and the first charging interface 201 is the power supply end (adapter).
[0045] Optionally, the target voltage sampling signal that conforms to the current charging direction refers to the first voltage sampling signal or the second voltage sampling signal with a positive signal value.
[0046] The processing unit 400 is configured to send a switching signal to the sampling unit 300 to close the collection of the first voltage sampling signal when the signal value of the first voltage sampling signal output by the sampling output end is negative, and output the second voltage sampling signal; or send a switching signal to the sampling unit 300 to close the collection of the second voltage sampling signal when the signal value of the second voltage sampling signal output by the sampling output end is negative, and output the first voltage sampling signal.
[0047] In some embodiments, the processing unit 400 receives and determines whether the signal value is negative. The processing unit 400 receives the first voltage sampling signal and determines whether the signal value is negative. If the first voltage sampling signal is positive, it indicates that the current flows from the adapter to the first charging interface 201, i.e. the first charging interface 201 is the powered end (device). At this time, the processing unit 400 outputs the first voltage sampling signal as the target voltage sampling signal. If the first voltage sampling signal is negative, it indicates that the current flows from the first charging interface 201 to the adapter, i.e. the first charging interface 201 is the power supply end (adapter). At this time, the processing unit 400 generates a switching signal, stops collecting the first voltage sampling signal, and switches to the second sampling input end. The second voltage sampling signal: the processing unit 400 receives the second voltage sampling signal and determines whether the signal value is negative. If the second voltage sampling signal is positive, it indicates that the current flows from the adapter to the second charging interface 202, i.e. the second charging interface 202 is the powered end (device). At this time, the processing unit 400 outputs the second voltage sampling signal as the target voltage sampling signal. If the second voltage sampling signal is negative, it indicates that the current flows from the second charging interface 202 to the adapter, i.e. the second charging interface 202 is the power supply end (adapter). At this time, the processing unit 400 generates a switching signal, stops collecting the second voltage sampling signal, and switches to the first sampling input end.
[0048] Optionally, in some embodiments, the apparatus further comprises an amplification unit, the amplification unit comprising: a voltage input end coupled to the sampling output end, and an amplification output end coupled to the processing unit 400; the amplification unit is configured to amplify the voltage sampling signal. Figure 2 In some embodiments, the apparatus further comprises an amplification unit, the amplification unit comprising: a voltage input end coupled to the sampling output end, and an amplification output end coupled to the processing unit 400; the amplification unit is configured to amplify the voltage sampling signal.
[0049] Optionally, in some embodiments, the apparatus further comprises an amplification unit, the amplification unit comprising: a voltage input end coupled to the sampling output end, and an amplification output end coupled to the processing unit 400; the amplification unit is configured to amplify the voltage sampling signal. Figure 2 In some embodiments, the amplification unit comprises:
[0050] The amplifier 500 comprises a non-inverting input end, a negative phase input end, and an amplification output end; the non-inverting input end is coupled to the sampling output end; the amplification output end is coupled to the input end of the processing unit 400.
[0051] The input resistor R3 has one end coupled to the negative phase input end and the other end grounded.
[0052] The feedback resistor R4 is connected between the negative phase input end and the amplification output end.
[0053] Specifically, in some embodiments, an amplifier 500 is used to amplify the voltage difference across the sampling resistor. One end of the input resistor R3 is coupled to the negative phase input of the amplifier 500, and the other end is grounded, forming a virtual ground and ensuring the high input impedance characteristic of the amplifier 500. The feedback resistor R4 is connected across the negative phase input and the output of the amplifier 500, forming a negative feedback loop to improve the stability and linearity of the amplifier 500. Optionally, the amplifier 500 is one of a non-inverting amplifier, an inverting amplifier, and a differential amplifier.
[0054] Optionally, in some embodiments, the amplification unit further includes a bias circuit coupled to the positive phase input. Direct amplification when the input signal is close to or below the ground level can result in distorted or inaccurate results. By adding a bias voltage, the input signal can be raised to a suitable range, ensuring that the amplifier 500 can correctly process the signal.
[0055] Optionally, the first charging interface 201 and the second charging interface 202 are both Type-C interfaces.
[0056] Specifically, in some embodiments, the Type-C interface supports double-sided pluggable, so users do not need to care about the direction of the plug and can insert the device arbitrarily. The bidirectional voltage detection circuit in the present disclosure is then applied to the double interface.
[0057] Optionally, in Figure 2 In an embodiment, the sampling unit 300 includes a switching chip including a first detection end, a second detection end, a signal input end, and a sampling output end; the first detection end is coupled to the common connection point between the first charging interface 201 and the first sampling resistor R1, the second detection end is coupled to the common connection point between the second charging interface 202 and the second sampling resistor R2, and the sampling output end is coupled to the processing unit 400, for corresponding conduction of the first detection end / second detection end according to the switching signal, to output the voltage sampling signal of the corresponding charging interface to the processing unit 400 through the sampling output end.
[0058] Specifically, in some embodiments, the switching chip can select a multiplexer or an analog switch (such as CD4053, ADG719, etc.) for selectively conducting the first detection end or the second detection end. The switching chip selects the first detection end or the second detection end according to the switching signal of the processing unit 400, and outputs the voltage sampling signal to the positive phase input of the amplifier 500.
[0059] Another embodiment of the present disclosure provides a bidirectional voltage detection data line, which includes the bidirectional voltage detection circuit of any one of the above.
[0060] Optionally, a display device is arranged at at least one charging interface of the bidirectional voltage detection data line to display the charging voltage of the bidirectional voltage detection data line.
[0061] The above embodiments are only illustrative of the principles and effects of the present disclosure, and are not intended to limit the present disclosure. Any person skilled in the art can modify or change the above embodiments without departing from the spirit and scope of the present disclosure. Therefore, all equivalent modifications or changes made by those skilled in the art without departing from the spirit and technical ideas disclosed by the present disclosure shall be covered by the protection scope of the present disclosure.
Claims
1. A bidirectional voltage detection circuit, characterized by, The application relates to a charging data line with a first charging interface and a second charging interface, and the circuit comprises: a first sampling terminal coupled to the first charging interface and coupled to the ground through a first sampling resistor to output a first voltage sampling signal of the first charging interface; a second sampling terminal coupled to the second charging interface and coupled to the ground through a second sampling resistor to output a second voltage sampling signal of the second charging interface; a sampling unit comprising a first sampling input terminal coupled to the first sampling terminal, a second sampling input terminal coupled to the second sampling terminal, and a sampling output terminal for outputting the first voltage sampling signal or the second voltage sampling signal; a processing unit coupled to the sampling output terminal and configured to determine a current charging direction between the first charging interface and the second charging interface according to a signal value of the first voltage sampling signal or the second voltage sampling signal output by the sampling output terminal, and output a target voltage sampling signal conforming to the current charging direction; wherein the processing unit generates a switching signal when the signal value of the voltage sampling signal of one sampling input terminal is negative, and sends the switching signal to the sampling unit to switch to the voltage sampling signal of the other sampling input terminal to obtain the target voltage sampling signal conforming to the current charging direction.
2. The bidirectional voltage detection circuit of claim 1, wherein, The target voltage sampling signal conforming to the current charging direction refers to the first voltage sampling signal or the second voltage sampling signal with a positive signal value. The processing unit is configured to send a switching signal to the sampling unit to close the collection of the first voltage sampling signal and output the second voltage sampling signal when the signal value of the first voltage sampling signal output by the sampling output terminal is negative. Or, the processing unit is configured to send a switching signal to the sampling unit to close the collection of the second voltage sampling signal and output the first voltage sampling signal when the signal value of the second voltage sampling signal output by the sampling output terminal is negative.
3. The bidirectional voltage detection circuit of claim 1, wherein, The circuit further comprises an amplification unit comprising a voltage input terminal coupled to the sampling output terminal and an amplification output terminal coupled to the processing unit; and the amplification unit is configured to amplify the voltage sampling signal.
4. The bidirectional voltage detection circuit of claim 3, wherein, The amplification unit comprises: an amplifier comprising a non-inverting input terminal, an inverting input terminal and an amplification output terminal; the non-inverting input terminal is coupled to the sampling output terminal; and the amplification output terminal is coupled to an input terminal of the processing unit; an input resistor having one end coupled to the inverting input terminal and the other end grounded; a feedback resistor connected between the inverting input terminal and the amplification output terminal.
5. The bidirectional voltage detection circuit of claim 4, wherein, The amplification unit further comprises a bias circuit coupled to the non-inverting input terminal.
6. The bidirectional voltage detection circuit of claim 4, wherein, The amplifier is one of a non-inverting amplifier, an inverting amplifier and a differential amplifier.
7. The bidirectional voltage detection circuit of claim 1, wherein, The first charging interface and the second charging interface are both Type-C interfaces.
8. The bidirectional voltage detection circuit of claim 1, wherein, The sampling unit comprises a switching chip, including a first detection end, a second detection end, a signal input end and a sampling output end; the first detection end is coupled to a common connection point between the first charging interface and a first sampling resistor, the second detection end is coupled to a common connection point between the second charging interface and a second sampling resistor, and the sampling output end is coupled to the processing unit, for corresponding conduction of the first detection end / second detection end according to the switching signal, so as to output a voltage sampling signal of a corresponding charging interface to the processing unit through the sampling output end.
9. A bidirectional voltage sensing data line, characterized by, The bidirectional voltage detection circuit comprises the bidirectional voltage detection circuit according to any one of claims 1-8.
10. The bidirectional voltage-sensing data line of claim 9, wherein, A display device is arranged at at least one charging interface of the bidirectional voltage detection data line, for displaying a charging voltage of the bidirectional voltage detection data line.