An electronic device
Patent Information
- Application Number
- CN202521319113.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2026-09-04
- Estimated Expiration
- 2035-06-25
AI Technical Summary
本实施例中的方案通过在电子设备设置调压电路和控制器,通过该调压电路确定为串行总线接口中的检测引脚提供的电压,即调压电路的输出电压。通过调压电路的设置可以实现对输出至检测引脚的电压的调整,从而有助于降低检测 引脚的电压,检测引脚的电压降低即可减少检测引脚由于导电产生的腐蚀,降低腐蚀风险,提高防腐蚀效果,这样就减少了由于腐蚀导致的损坏以及对串行总线接口的正常使用的影响。
Smart Images

Figure CN224720469U_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of electronic equipment technology, and more particularly to an electronic device. Background Technology
[0002] With the continuous development of electronic device technology, the importance of serial bus interfaces in electronic devices is increasing. These interfaces typically include charging interfaces, such as the USB Type-C interface. This interface integrates charging and data transfer functions, allowing for both charging and data transfer. Utility Model Content
[0003] This disclosure provides an electronic device.
[0004] A first aspect of this disclosure provides an electronic device, comprising: a power supply; a serial bus interface including a detection pin; a voltage regulation circuit including an input terminal and an output terminal, the input terminal of the voltage regulation circuit being connected to the power supply, and the output terminal of the voltage regulation circuit being connected to the detection pin; the voltage regulation circuit being configured to determine an output voltage of the output terminal of the voltage regulation circuit based on a power supply voltage provided by the power supply; and a controller including a receiving terminal connected to the output terminal of the voltage regulation circuit; wherein the output voltage when the serial bus interface is connected to a plug is different from the output voltage when the serial bus interface is not connected to a plug.
[0005] In one embodiment, the controller further includes a control terminal for outputting a control signal; the electronic device further includes a switching circuit connected between the power supply and the voltage regulating circuit, and also connected to the control terminal; the switching circuit is used to control whether the power supply is connected to the voltage regulating circuit; wherein the control signal is used to control the switching circuit to periodically conduct.
[0006] In one embodiment, the switching circuit is in the off state when the serial bus interface is connected to the plug.
[0007] In one embodiment, the voltage regulating circuit includes: a voltage divider circuit for dividing the power supply voltage to obtain a divided voltage; wherein, one end of the voltage divider circuit that outputs the divided voltage serves as the output terminal of the voltage regulating circuit, and the divided voltage serves as the output voltage.
[0008] In one embodiment, the electronic device further includes: a feedback circuit connected between the output of the voltage regulating circuit and the controller, for outputting a feedback signal to the controller according to the output voltage; wherein the feedback signal is used by the controller to determine whether the serial bus interface is connected to a matching plug.
[0009] In one embodiment, the feedback circuit includes: a controlled switch, the controlled terminal of the controlled switch being connected to the output terminal of the voltage regulating circuit, the input terminal of the controlled switch being connected to the power supply, and the output terminal of the controlled switch being connected to the controller; wherein, the switching state of the controlled switch is different for different output voltages, and the output of the output terminal of the controlled switch is different for different switching states.
[0010] In one embodiment, the voltage regulating circuit includes: a first voltage divider circuit for dividing the power supply voltage to obtain a first divided voltage; wherein, one end of the first voltage divider circuit that outputs the first divided voltage serves as the output terminal of the voltage regulating circuit; and the first divided voltage serves as the output voltage.
[0011] In one embodiment, the first voltage divider circuit includes: a first resistor connected to the power supply; a second resistor connected in series with the first resistor; and a terminal of the second resistor furthest from the first resistor grounded; wherein the connection point of the first resistor and the second resistor serves as the output terminal of the voltage regulating circuit.
[0012] In one embodiment, the voltage regulating circuit further includes a reference voltage terminal for outputting a reference voltage; the feedback circuit includes a comparator circuit connected to the output terminal and the reference voltage terminal respectively, for outputting the feedback signal based on the comparison result between the output voltage and the reference voltage.
[0013] In one embodiment, the comparison circuit includes: a comparator, wherein the non-inverting input of the comparator is connected to the output of the voltage regulation circuit, the inverting input of the comparator is connected to the reference voltage terminal, and the output of the comparator is connected to the controller; or, the inverting input of the comparator is connected to the output, the non-inverting input of the comparator is connected to the reference voltage terminal, and the output of the comparator is connected to the controller.
[0014] In one embodiment, the voltage regulating circuit further includes: a second voltage divider circuit for dividing the power supply voltage to obtain a second voltage divider; wherein, one end of the second voltage divider circuit that outputs the second voltage divider is used as the reference voltage terminal; the second voltage divider is used as the reference voltage.
[0015] In one embodiment, the second voltage divider circuit includes: a third resistor connected to the power supply; a fourth resistor connected in series with the third resistor; and a fourth resistor whose end is furthest from the third resistor grounded; wherein the connection point of the third resistor and the fourth resistor serves as the reference voltage terminal.
[0016] In one embodiment, the electronic device further includes a protection circuit connected between the detection pin and the output terminal.
[0017] In one embodiment, the protection circuit includes at least one of the following: a surge protection sub-circuit; a unidirectional conduction sub-circuit; wherein, if the protection circuit includes both the surge protection sub-circuit and the unidirectional conduction sub-circuit, the surge protection sub-circuit and the unidirectional conduction sub-circuit are connected in series.
[0018] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects: The solution in this embodiment involves incorporating a voltage regulation circuit and a controller in the electronic device. This voltage regulation circuit determines the voltage supplied to the detection pin in the serial bus interface, i.e., the output voltage of the voltage regulation circuit. By adjusting the voltage output to the detection pin, the voltage at the detection pin can be reduced. A lower voltage at the detection pin reduces corrosion caused by conductivity, lowers the risk of corrosion, and improves corrosion resistance. This, in turn, reduces damage caused by corrosion and its impact on the normal operation of the serial bus interface.
[0019] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0020] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0021] Figure 1 This is a schematic diagram of an electronic device according to an exemplary embodiment; Figure 2 This is a schematic diagram illustrating the principle of another electronic device according to an exemplary embodiment; Figure 3 This is a schematic diagram illustrating the principle of another electronic device according to an exemplary embodiment; Figure 4 This is a schematic diagram illustrating the principle of another electronic device according to an exemplary embodiment. Detailed Implementation
[0022] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses consistent with some aspects of this disclosure as detailed in the appended claims.
[0023] refer to Figure 1 This is a schematic diagram of an electronic device, which includes: Power supply 1.
[0024] Serial bus interface 2 includes detection pin 201.
[0025] The voltage regulating circuit 3 includes an input terminal 301 and an output terminal 302. The input terminal 301 of the voltage regulating circuit 3 is connected to the power supply 1, and the output terminal 302 of the voltage regulating circuit 3 is connected to the detection pin 201 in the serial bus interface 2. The voltage regulating circuit 3 is used to determine the output voltage of the output terminal 302 of the voltage regulating circuit 3 according to the power supply voltage provided by the power supply 1.
[0026] The controller 4 includes a receiver 401, which is connected to the output terminal 302 of the voltage regulating circuit 3.
[0027] The output voltage when the serial bus interface 2 is connected to the plug is different from the output voltage when the serial bus interface 2 is not connected to the plug.
[0028] Power supply 1 can be a power supply that powers the voltage regulating circuit 3 in an electronic device. Power supply 1 can include the power supply circuit in the device in which the electronic device is located, and the power supply voltage can include the voltage provided by the power supply circuit in the electronic device. Power supply 1 can include VCC.
[0029] For example, the power supply voltage is not limited; it can be 1.8V, or a larger or smaller voltage value.
[0030] The input terminal 301 of the voltage regulating circuit 3 is connected to the power supply 1, and the power supply voltage provided by the power supply 1 can be directly input to the voltage regulating circuit 3. The output terminal 302 of the voltage regulating circuit 3 is connected to the detection pin 201 in the serial bus interface 2, and is used to input the output voltage of the voltage regulating circuit 3 to the detection pin 201.
[0031] The voltage regulating circuit 3 is used to determine the output voltage of the output terminal 302 of the voltage regulating circuit 3 according to the power supply voltage provided by the power supply 1. Since the output terminal 302 of the voltage regulating circuit 3 is directly connected to the detection pin 201, the output voltage can be used as the detection voltage of the detection pin 201.
[0032] For example, since the detection pin 201 is connected to the output terminal 302 of the voltage regulation circuit 3, the voltage of the detection pin 201 and the output voltage of the output terminal 302 of the voltage regulation circuit 3 are the same, or they can be positively correlated and have the same trend.
[0033] For example, detection pin 201 may be a pin dedicated to detecting the connection between the connector and the serial bus interface 2, such as a connector insertion detection (CID) pin. Detection pin 201 is different from the pins of the configuration channel, such as the CC1 and CC2 pins.
[0034] For example, the serial bus interface 2 can be a female connector and the plug can be a male connector.
[0035] For example, the serial bus interface 2 may include at least the Type-C interface of a USB interface, or other types of USB interfaces that may appear later.
[0036] The circuit structure of voltage regulating circuit 3 is not limited; any circuit with voltage regulating function is acceptable, such as a voltage divider circuit.
[0037] For example, the output voltage is lower than the power supply voltage. This results in a detection voltage lower than the power supply voltage, thereby reducing the voltage of the detection pin 201 when the serial bus interface 2 is not connected to the plug. The lower the voltage, the less corrosion occurs to the detection pin 201, thus helping to reduce corrosion of the detection pin 201.
[0038] Controller 4 can be any device with control functions, capable of determining whether serial bus interface 2 is connected to a matching connector based on the output voltage. Examples include a Central Processing Unit (CPU) and a Microcontroller Unit (MCU).
[0039] Whether the serial bus interface 2 is connected to the matching plug can include whether the plug matching the serial bus interface is inserted into the serial bus interface 2.
[0040] The controller 4 includes a receiver 401, which is connected to the output terminal 302 of the voltage regulating circuit 3. The controller 4 receives the output voltage through the receiver 401.
[0041] The output voltage when the serial bus interface 2 is connected to the plug is different from the output voltage when the serial bus interface 2 is not connected to the plug. This makes it easier for the controller 4 to determine whether the serial bus interface 2 is connected to the plug.
[0042] For example, controller 4 is used to determine whether serial bus interface 2 is connected to a matching plug based on the output voltage of voltage regulating circuit 3.
[0043] For example, when the serial bus interface 2 is connected to the plug, the plug is electrically connected to the detection pin 201, grounding the detection pin 201 and thus pulling down its voltage, for example, to a low level, such as 0V. Both the receiver 401 of the controller 4 and the detection pin 201 are connected to the output 302 of the voltage regulator circuit 3. Therefore, the voltage at the output 302 is the same as the voltage at the detection pin 201, and the signal received by the controller 4 will also change, such as becoming 0V.
[0044] When the serial bus interface 2 is not connected to the plug, there is voltage at the output terminal 302 of the voltage regulating circuit 3, and the receiving terminal 401 and the detection pin 201 of the controller 4 also have voltage and will not be pulled low.
[0045] The controller 4 can determine whether the serial bus interface 2 is connected to the plug by receiving the signal from the receiver 401.
[0046] By setting up a voltage regulation circuit, the voltage output to the detection pin can be adjusted, which helps to reduce the voltage of the detection pin. The reduction of the voltage of the detection pin reduces corrosion caused by conductivity, reduces the risk of corrosion, and improves the corrosion protection effect. This reduces damage caused by corrosion and the impact on the normal use of the serial bus interface.
[0047] In one embodiment, reference Figure 2 This is a schematic diagram of another electronic device. The controller 4 also includes a control terminal 402 for outputting control signals.
[0048] Electronic devices also include: Switching circuit 5 is connected between power supply 1 and voltage regulating circuit 3, and is also connected to control terminal 402; switching circuit 5 is used to control whether power supply 1 is connected to voltage regulating circuit 3.
[0049] Among them, the control signal is used to control the periodic conduction of the switching circuit 5.
[0050] The switching circuit 5 includes a controlled terminal 501, which is connected to the control terminal 402 of the controller 4. The controller 4 outputs a control signal to the controlled terminal 501 of the switching circuit 5 through the control terminal 402, thereby controlling the switching state of the switching circuit 5, such as being on or off, and thus controlling whether the power supply 1 supplies power to the voltage regulating circuit 3.
[0051] With switch circuit 5 on, power supply 1 is connected to voltage regulator circuit 3, and power supply 1 supplies power to voltage regulator circuit 3. In this case, there will be an output voltage at the output terminal 302 of voltage regulator circuit 3, and a detection voltage at detection pin 201.
[0052] When the switching circuit 5 is in the off state, the power supply 1 is disconnected from the voltage regulation circuit 3, and the power supply 1 does not supply power to the voltage regulation circuit 3. In this case, there is no output voltage at the output terminal 302 of the voltage regulation circuit 3, and there is no detection voltage at the detection pin 201.
[0053] The controller 4 can control the switching circuit 5 to conduct periodically by outputting a control signal, thereby causing the power supply 1 to periodically supply power to the voltage regulation circuit 3. The voltage regulation circuit 3 will also periodically supply power to the detection pin 201. The voltage of the detection pin 201 changes periodically, and the output voltage also changes periodically. This situation is the changing state of the voltage of the detection pin 201 when the serial bus interface 2 is not connected to the plug.
[0054] The switching circuit 5 can be a controlled switching circuit, including at least one controlled switch. When the switching circuit includes multiple controlled switches, the connection method of each controlled switch is not limited, as long as the switching circuit 5 can periodically connect the power supply 1 and the voltage regulation circuit 1.
[0055] The controlled switch can be a MOSFET, a transistor, or other controlled switches. Figure 2 The transistor shown is Q1.
[0056] When the serial bus interface 2 is connected to the plug, the plug will be electrically connected to the detection pin 201, pulling down the voltage of the detection pin 201, for example, pulling the voltage of the detection pin 201 down to a low level, such as 0V. After the voltage of the detection pin 201 decreases, the voltage received by the receiver 401 of the controller 4 will also decrease.
[0057] If the voltage of detection pin 201 remains at 0V within a preset time period, and the voltage of detection pin 201 and the output voltage no longer change periodically, the controller can determine that the connection status of serial bus interface 2 and plug has changed, and thus determine that serial bus interface 2 and plug are connected.
[0058] In this embodiment, by setting the switch circuit 5, under the premise of realizing the detection function of whether the serial bus interface 2 is connected to the plug, power can be supplied to the detection pin 201 periodically, thereby reducing the power-on time of the detection pin 201. After the power-on time is reduced, corrosion caused by power-on can be reduced, damage caused by corrosion can be reduced, and corrosion risk can be reduced.
[0059] For example, the voltage of power supply 1 can be a voltage that enables the switching circuit 5 to be turned on.
[0060] In one embodiment, when the serial bus interface 2 is connected to the plug, the switching circuit 5 is in the off state, disconnecting the power supply 1 and the voltage regulating circuit 3. Therefore, there is no voltage in the voltage regulating circuit 3 and the detection pin 201. This reduces corrosion of the detection pin 201 caused by energization when the serial bus interface 2 is connected to the plug, thus reducing corrosion damage and lowering the risk of corrosion.
[0061] For example, when the controller 4 determines that the serial bus interface 2 is connected to the plug, the output control signal is also used to control the switch circuit 5 to be in the off state, rather than to control the switch circuit 5 to be periodically turned on.
[0062] In one embodiment, the voltage regulating circuit 3 includes: A voltage divider circuit is used to divide the power supply voltage to obtain a divided voltage.
[0063] In a voltage divider circuit, one end that outputs the divided voltage is used as the output terminal, and the divided voltage is used as the output voltage.
[0064] A voltage divider circuit may include voltage divider resistors, such as at least two voltage divider resistors connected in series to form a voltage divider circuit. When there are two voltage divider resistors, the connection point of the two series-connected voltage divider resistors is used as the output terminal, and the voltage across one of the voltage divider resistors is used as the output voltage. When there are more than two voltage divider resistors, at least two of the voltage divider resistors are connected in series, and the voltage across at least one of the series-connected voltage divider resistors can be used as the output voltage.
[0065] Because the voltage divider circuit divides the power supply voltage of power supply 1, the output voltage is lower than the power supply voltage. This reduces the voltage input to the detection pin 201, thereby reducing corrosion.
[0066] In one embodiment, reference Figure 3 This is a schematic diagram of another electronic device, which also includes: Feedback circuit 6 is connected between the output terminal 302 of voltage regulating circuit 3 and controller 4, and is used to output a feedback signal to controller 4 according to the output voltage.
[0067] The feedback signal is used by the controller 4 to determine whether the serial bus interface 2 is connected to the matching plug.
[0068] Based on Figure 1 The circuit shown can be modified by adding feedback circuit 6, or it can be based on... Figure 2 The circuit shown has an added feedback circuit 6.
[0069] The feedback signal is determined by the feedback circuit 6 based on the output voltage. This allows the controller 4 to directly determine whether the serial bus interface 2 and the plug are connected based on the feedback signal, making it easier for the controller 4 to perform control.
[0070] For example, the feedback circuit 6 can convert the type of the output voltage. The output voltage is an analog signal with a fluctuation range, and the feedback signal is a digital signal, such as a high-level signal and a low-level signal. The high-level signal can be 1 and the low-level signal can be 0.
[0071] The controller 4 no longer needs to process the output voltage; it can directly determine whether the serial bus interface 2 and the plug are connected based on the feedback signal. This makes it easier for the controller 4 to determine whether the serial bus interface 2 and the plug are connected.
[0072] In one embodiment, reference Figure 3 The feedback circuit 6 includes: The controlled switch sub-circuit 601 has its controlled terminal connected to the output terminal 302 of the voltage regulating circuit 3, its input terminal connected to the power supply 1, and its output terminal connected to the controller 4.
[0073] Among them, the switching state of the controlled switch sub-circuit 601 is different for different output voltages, and the output of the output terminal of the controlled switch sub-circuit 601 is different for different switching states.
[0074] The controlled switch sub-circuit 601 may include at least one MOSFET, at least one transistor, or other controlled switches forming a circuit. The controlled terminal of the controlled switch sub-circuit 601 may be the controlled terminal of the MOSFET or the controlled terminal of the transistor.
[0075] Figure 3 The controlled switch sub-circuit 601 shown is a P-type MOS transistor, but it can also be an N-type MOS transistor. The controlled terminal of the controlled switch sub-circuit 601 is the gate, the input terminal is the source, and the output terminal is the drain. The power supply connected to the input terminal can be the same as or different from the power supply connected to the voltage regulation circuit 3.
[0076] The controlled switch sub-circuit 601 can be turned on or off according to the signal received from the controlled terminal. When there is an output voltage at the output terminal of the voltage regulating circuit 3, the output voltage serves as the control signal for the controlled switch sub-circuit 601, controlling the controlled switch sub-circuit 601 to be turned on. The output terminal of the controlled switch sub-circuit 601 can then output an electrical signal, such as voltage and / or current. The controller 4 receives the electrical signal through the receiving terminal 401, thereby determining that the serial bus interface 2 and the plug are not connected.
[0077] If serial bus interface 2 is connected to the plug, and detection pin 201 is grounded through the plug, the voltage of detection pin 201 is pulled low. The output voltage of the voltage regulator circuit 3's output terminal 302 is also pulled low. The pulled-low voltage is less than the voltage required to turn on the controlled switch sub-circuit 601, such as 0V. In this case, the controlled switch sub-circuit 601 is in the off state, and its output terminal will not output an electrical signal. Since the controller 4 does not receive an electrical signal, the controller 4 can determine that serial bus interface 2 is connected to the plug.
[0078] In one embodiment, reference Figure 2 and Figure 3 The voltage regulation circuit 3 includes: The first voltage divider circuit 31 is used to divide the power supply voltage to obtain the first voltage divider voltage.
[0079] In this circuit, one end of the first voltage divider circuit 31 that outputs the first voltage divider voltage serves as the output terminal 302 of the voltage regulating circuit 3; the first voltage divider voltage serves as the output voltage.
[0080] The first voltage divider circuit 31 includes: The first resistor R1 is connected to power supply 1; The second resistor R2 is connected in series with the first resistor R1; the end of the second resistor R2 furthest from the first resistor R1 is grounded.
[0081] The connection point of the first resistor R1 and the second resistor R2 serves as the output terminal 302 of the voltage regulating circuit 3.
[0082] The first resistor R1 and the second resistor R2 form a voltage divider circuit. The detection pin 201 is connected in parallel with the second resistor R2. Therefore, the output voltage of the output terminal 302 of the voltage regulation circuit 3 is the voltage across the second resistor R2. When the power supply voltage remains constant, the resistance values of the first resistor R1 and the second resistor R2 will affect the voltage across the first resistor R1 and the second resistor R2, thus affecting the magnitude of the output voltage.
[0083] With the power supply voltage constant, the output voltage can be set by the first resistor R1 and the second resistor R2. The smaller the resistance value of the second resistor R2, the smaller the voltage output to the detection pin 201, which helps to reduce the output voltage. This, in turn, helps to reduce the voltage of the detection pin 201, thereby reducing corrosion.
[0084] In one embodiment, reference Figure 4 This is a schematic diagram of another electronic device. The voltage regulation circuit 3 also has a reference voltage terminal 303, which is used to output a reference voltage.
[0085] Feedback circuit 6 includes: The comparator circuit 602 has two different input terminals. The two different input terminals of the comparator circuit 602 are connected to the output terminal 302 of the voltage regulation circuit 3 and the reference voltage terminal 303, respectively. The output terminal of the comparator circuit 602 is connected to the receiving terminal 401 of the controller 4, and is used to output a feedback signal based on the comparison result between the output voltage and the reference voltage.
[0086] The comparator circuit 602 can be any circuit with voltage comparison function, which can compare the reference voltage and the output voltage. The output terminal 302 and the reference voltage terminal 303 of the voltage regulation circuit 3 serve as the inputs of the comparator circuit 602, and the comparator circuit 602 can then obtain the output, i.e., the feedback signal.
[0087] The comparator circuit 602 can output a feedback signal based on the comparison result between the reference voltage and the output voltage. Different comparison results correspond to different feedback signals. In this way, the controller 4 can determine whether the serial bus interface 2 is not connected to the plug.
[0088] For example, if the comparison between the reference voltage and the output voltage shows that the reference voltage is greater than the output voltage, then the feedback signal is the first feedback signal. If the comparison shows that the reference voltage is less than the output voltage, then the feedback signal is a second feedback signal, different from the first feedback signal. For example, the first feedback signal may be high and the second feedback signal may be low, or the first feedback signal may be low and the second feedback signal may be high.
[0089] The reference voltage can be preset and is a voltage greater than 0V.
[0090] Because the voltage of detection pin 201 may be pulled low to 0V after serial bus interface 2 is connected to the plug, voltage comparison cannot be performed if the reference voltage is 0V. Setting the reference voltage to a value greater than 0V makes it easier to determine the comparison result between the reference voltage and the output voltage.
[0091] For example, refer to Figure 4 The comparator circuit 602 includes: Comparator U1 has its non-inverting input connected to the output 302 of the voltage regulator circuit 3, its inverting input connected to the reference voltage 303, and its output connected to the controller 4. The non-inverting input of comparator U1 can be... Figure 4 The "+" sign indicates that the inverting input of comparator U1 can be... Figure 4 The "-" shown indicates that the output of comparator U1 can be... Figure 4 The word "out" is shown.
[0092] Alternatively, the inverting input of comparator U1 can be connected to the output 302 of voltage regulation circuit 3, the non-inverting input of comparator U1 can be connected to the reference voltage 303, and the output of comparator U1 can be connected to controller 4.
[0093] In one embodiment, reference Figure 4 The voltage regulation circuit 3 also includes: The second voltage divider circuit 32 is used to divide the power supply voltage to obtain the second voltage divider.
[0094] In the second voltage divider circuit, one end that outputs the second voltage divider is used as the reference voltage terminal; the second voltage divider is used as the reference voltage.
[0095] This embodiment provides an example of obtaining a reference voltage. By setting a second voltage divider circuit 32, the reference voltage can be obtained using the same power supply voltage, and the magnitude of the reference voltage can be adjusted according to the second voltage divider circuit 32, thereby improving the flexibility of determining the reference voltage.
[0096] For example, the second voltage divider circuit 32 includes: The third resistor R3 is connected to power supply 1; The fourth resistor R4 is connected in series with the third resistor R3; the end of the fourth resistor R4 furthest from the third resistor R3 is grounded.
[0097] The connection point of the third resistor R3 and the fourth resistor R4 is used as the reference voltage terminal 303.
[0098] Since the third resistor R3 and the fourth resistor R4 are connected in series, and the inverting input of comparator U1 is connected to the reference voltage terminal 303, the inverting input of comparator circuit 602 is connected in parallel with the fourth resistor R4. The magnitude of the reference voltage is the voltage across the fourth resistor R4. With a constant power supply voltage, the voltage across the fourth resistor R4 is determined by the resistance values of the third resistor R3 and the fourth resistor R4; the smaller the resistance of the fourth resistor R4, the smaller the voltage across it.
[0099] The magnitude of the reference voltage can be determined using this example scheme, and this reference voltage can be set according to the voltage divider resistor in the second voltage divider circuit 32 without affecting other voltages.
[0100] In one embodiment, reference Figures 1 to 4 Electronic devices also include: Protection circuit 7 is connected between detection pin 201 and output terminal 302 of voltage regulation circuit 3 to protect electronic equipment and reduce the possibility of damage to the detection circuit.
[0101] For example, protection circuit 7 includes at least one of the following: Surge protection circuit; One-way conduction circuit.
[0102] If the protection circuit 7 includes both a surge protection circuit and a unidirectional conduction circuit, the surge protection circuit and the unidirectional conduction circuit are connected in series.
[0103] Surge protection circuits can include resistors to reduce current, thereby reducing the damage of surges to electronic equipment.
[0104] A unidirectional conduction circuit can include circuits with unidirectional conductivity, such as diodes. Diodes can include Schottky diodes, which have a higher potential barrier, thus improving the high voltage withstand characteristics of the unidirectional conduction circuit.
[0105] The solution in this embodiment can reduce the damage to electronic devices caused by electrical signals transmitted in reverse through the detection pin 201 from the outside. For example, excessive voltage or current can be transmitted to the inside of the electronic device through the detection pin 201, causing damage to the components in the electronic device.
[0106] In one embodiment, the electronic device may include a mobile terminal or a fixed device, and the mobile device may include a mobile phone, tablet computer, wearable device, aircraft, smart home device, vehicle device, etc.
[0107] For example, an electronic device may include at least one serial bus interface 2, a controller 4, a voltage regulating circuit 3, a switching circuit 5, a feedback circuit 6, and a protection circuit 7, wherein the number of serial bus interface 2, voltage regulating circuit 3, switching circuit 5, feedback circuit 6, and protection circuit 7 are the same.
[0108] For example, when there are multiple serial bus interfaces 2, voltage regulation circuits 3, switching circuits 5, feedback circuits 6, and protection circuits 7, the controller 4 can be a single, shared component.
[0109] In one embodiment, an illustrative example of another electronic device is also provided.
[0110] With increasingly higher charging power in mobile phones and tablets, accompanied by higher charging voltage and current, and the widespread adoption of Type-C ports, the toggle operation of the CC signal results in a periodic pulsating signal output from the Type-C pin when not charging. This poses a significant challenge to the corrosion resistance of the phone's USB port in high-temperature and humid environments. Currently, mobile phones / tablets commonly use one floating GND pin of the Type-C port as a CID detection pin. In general mobile phone / tablet projects, this is usually accomplished using the platform's built-in CID detection function. However, with the emergence of tablets requiring dual Type-C ports, this platform's built-in CID detection function is no longer sufficient.
[0111] refer to Figures 1 to 4 U1 is a comparator, which mainly performs the CID insertion detection function.
[0112] Q1 is a P-type MOSFET, which mainly controls the power supply of electronic devices and realizes the periodic detection signal of CID output. R5 pulls up CID_EN to realize the default shutdown.
[0113] R3 and R4 provide a reference voltage for the comparator.
[0114] R1 and R2 are used to adjust the CID detection voltage, where the positive voltage of U1 is set to be higher than the negative voltage.
[0115] R0 implements the surge protection function of the comparator.
[0116] D1 provides DC withstand voltage protection for CID.
[0117] The CPU controls the CID circuit and processes the signal after CID detection.
[0118] The principle behind this solution is as follows: CID_EN outputs a periodic enable signal, periodically turning on Q1 to provide voltage to the front end.
[0119] The CID outputs a periodic detection signal. When no Type C is inserted, the CID outputs a Toggle signal normally. When a Type C is inserted, the CID pulls the positive voltage of U1 low through D1, at which time CID_INT is low. Otherwise, it is a Toggle signal, thus completing the CID insertion detection.
[0120] When the CPU detects that CID_INT is always low, it assumes that a USB is inserted into the Type C port. At this time, the CCtoggle signal is enabled to complete the Type C insertion type identification.
[0121] This solution resolves the CID detection issue for dual-C port products, reducing after-sales corrosion risks. The CID detection voltage and current can be flexibly adjusted to minimize corrosion risks. It simplifies the software workflow, saves labor costs, has simple logic, and improves software robustness.
[0122] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the utility models disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0123] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. An electronic device, characterized in that, include: power supply; Serial bus interface, including detection pins; A voltage regulating circuit includes an input terminal and an output terminal. The input terminal of the voltage regulating circuit is connected to the power supply, and the output terminal of the voltage regulating circuit is connected to the detection pin. The voltage regulating circuit is used to determine the output voltage of the output terminal of the voltage regulating circuit based on the power supply voltage provided by the power supply. The controller includes a receiver connected to the output of the voltage regulation circuit. The output voltage when the serial bus interface is connected to the plug is different from the output voltage when the serial bus interface is not connected to the plug.
2. The electronic device according to claim 1, characterized in that, The controller also includes a control terminal for outputting control signals; The electronic device also includes: A switching circuit is connected between the power supply and the voltage regulating circuit, and is also connected to the control terminal; the switching circuit is used to control whether the power supply is connected to the voltage regulating circuit. The control signal is used to control the switching circuit to conduct periodically.
3. The electronic device according to claim 2, characterized in that, When the serial bus interface is connected to the plug, the switching circuit is in the off state.
4. The electronic device according to claim 1, characterized in that, The voltage regulation circuit includes: A voltage divider circuit is used to divide the power supply voltage to obtain a divided voltage. In this circuit, one end that outputs the divided voltage is used as the output terminal of the voltage regulating circuit, and the divided voltage is used as the output voltage.
5. The electronic device according to claim 1, characterized in that, The electronic device also includes: A feedback circuit, connected between the output terminal of the voltage regulating circuit and the controller, is used to output a feedback signal to the controller according to the output voltage; The feedback signal is used by the controller to determine whether the serial bus interface is connected to a matching plug.
6. The electronic device according to claim 5, characterized in that, The feedback circuit includes: A controlled switch, wherein the controlled terminal of the controlled switch is connected to the output terminal of the voltage regulating circuit, the input terminal of the controlled switch is connected to the power supply, and the output terminal of the controlled switch is connected to the controller; The controllable switch has different switching states corresponding to different output voltages, and the output of the controllable switch has different outputs corresponding to different switching states.
7. The electronic device according to any one of claims 4 to 6, characterized in that, The voltage regulation circuit includes: The first voltage divider circuit is used to divide the power supply voltage to obtain the first voltage divider voltage; Wherein, one end of the first voltage divider circuit that outputs the first divided voltage is used as the output terminal of the voltage regulating circuit; the first divided voltage is used as the output voltage.
8. The electronic device according to claim 7, characterized in that, The first voltage divider circuit includes: The first resistor is connected to the power supply; The second resistor is connected in series with the first resistor; the end of the second resistor furthest from the first resistor is grounded. The connection point between the first resistor and the second resistor serves as the output terminal of the voltage regulation circuit.
9. The electronic device according to claim 5, characterized in that, The voltage regulation circuit also has a reference voltage terminal for outputting a reference voltage; The feedback circuit includes: A comparator circuit is provided, wherein its two different input terminals are respectively connected to the output terminal of the voltage regulation circuit and the reference voltage terminal, and the output terminal of the comparator circuit is connected to the controller, for outputting the feedback signal based on the comparison result between the output voltage and the reference voltage.
10. The electronic device according to claim 9, characterized in that, The comparison circuit includes: The comparator has its non-inverting input connected to the output of the voltage regulation circuit, its inverting input connected to the reference voltage, and its output connected to the controller. or, The inverting input of the comparator is connected to the output, the non-inverting input of the comparator is connected to the reference voltage, and the output of the comparator is connected to the controller.
11. The electronic device according to claim 9, characterized in that, The voltage regulation circuit also includes: The second voltage divider circuit is used to divide the power supply voltage to obtain the second voltage divider voltage; Wherein, one end of the second voltage divider circuit that outputs the second voltage divider is used as the reference voltage terminal; the second voltage divider is used as the reference voltage.
12. The electronic device according to claim 11, characterized in that, The second voltage divider circuit includes: The third resistor is connected to the power supply. A fourth resistor is connected in series with the third resistor; the end of the fourth resistor furthest from the third resistor is grounded. The connection point between the third resistor and the fourth resistor serves as the reference voltage terminal.
13. The electronic device according to claim 1, characterized in that, The electronic device also includes: A protection circuit is connected between the detection pin and the output terminal.
14. The electronic device according to claim 13, characterized in that, The protection circuit includes at least one of the following: Surge protection circuit; One-way conduction sub-circuit; Wherein, if the protection circuit includes both the surge protection sub-circuit and the unidirectional conduction sub-circuit, the surge protection sub-circuit and the unidirectional conduction sub-circuit are connected in series.