A switch wake-up circuit and a vehicle
Patent Information
- Application Number
- CN202522195361.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-16
- Publication Date
- 2026-09-25
- Estimated Expiration
- 2035-10-16
AI Technical Summary
[0004]本实用新型的目的是提供一种开关唤醒电路以及车辆,以解决汽车电子产品唤醒时的静态电流功耗较大影响汽车电子产品的工作性能的问题
[0034]本实用新型所提供的一种开关唤醒电路,系统基础芯片的电源引脚连接控制器的电源引脚;系统基础芯片的高边开关引脚连接第一控制电路的第一端;第一控制电路的第二端连接开关单元的第一端,且连接第二控制电路的第二端;第二控制电路的第一端连接控制器的GPIO引脚;系统基础芯片的唤醒引脚连接开关单元的第二端,且连接开关检测电路的第一端;开关检测电路的第二端连接控制器的ADC引脚。
Smart Images

Figure CN224796919U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of power control technology, and in particular to a switch wake-up circuit and a vehicle. Background Technology
[0002] In automotive electronic products with switch-signal wake-up capabilities, the general purpose input / output (GPIO) pins of the microcontroller unit (MCU) are connected to the control circuit to provide pull-up power to the switch. When the switch is pressed, a voltage value is generated by a switch detection circuit through a resistor divider. This voltage value is then sent to the MCU's analog-to-digital converter (ADC) pin for signal detection to determine if a wake-up source signal has been input, thus waking up the MCU. In other words, the MCU's VCC power signal remains powered on in a polling mode, while the system base chip (SBC) enters a stop mode, periodically waking up the switch signal. Throughout this process, the quiescent current in the MCU's polling mode and the SBC's stop mode corresponds to significant power consumption, impacting the performance of the automotive electronic product.
[0003] Therefore, how to reduce the static current consumption of automotive electronic products during wake-up to improve their performance is a problem that urgently needs to be solved by those skilled in the art. Utility Model Content
[0004] The purpose of this invention is to provide a switch wake-up circuit and a vehicle to solve the problem that the large static current power consumption during the wake-up of automotive electronic products affects their performance.
[0005] To solve the above-mentioned technical problems, this utility model provides a switch wake-up circuit, including a system base chip, a first control circuit, a second control circuit, a switch unit, a wake-up source voltage detection circuit, a controller, and a switch detection circuit;
[0006] The power supply pin of the system base chip is connected to the power supply pin of the controller; the high-side switch pin of the system base chip is connected to the first terminal of the first control circuit; the second terminal of the first control circuit is connected to the first terminal of the switch unit and to the second terminal of the second control circuit; the first terminal of the second control circuit is connected to the GPIO pin of the controller.
[0007] The wake-up pin of the system base chip is connected to the second terminal of the switching unit and to the first terminal of the switch detection circuit; the second terminal of the switch detection circuit is connected to the ADC pin of the controller.
[0008] On one hand, the first control circuit is a first diode;
[0009] The high-side switch pin of the system base chip is connected to the anode of the first diode; the cathode of the first diode is connected to the second terminal of the second control circuit and the first terminal of the switching unit.
[0010] On the other hand, the wake-up source voltage detection circuit includes a second diode, a first resistor, a second resistor, and a first capacitor;
[0011] The anode of the second diode is connected to the second terminal of the switching unit, and the cathode of the second diode is connected to the first terminal of the first resistor and the first terminal of the second resistor; the second terminal of the first resistor is grounded.
[0012] The second end of the second resistor is connected to the wake-up pin of the system base chip and the first end of the first capacitor; the second end of the first capacitor is grounded.
[0013] On the other hand, the second control circuit includes a third resistor and a switching transistor;
[0014] The first end of the third resistor is connected to a power source.
[0015] The second end of the third resistor is connected to the first end of the switching transistor; the control end of the switching transistor serves as the first end of the second control circuit and is connected to the GPIO pin of the controller.
[0016] The second terminal of the switching transistor serves as the second terminal of the second control circuit and is connected to the first terminal of the switching unit.
[0017] The third terminal of the switching transistor is grounded.
[0018] On the other hand, the switching transistor includes a first switching transistor and a second switching transistor;
[0019] The first terminal of the first switching transistor is connected to the second terminal of the third resistor, the second terminal of the first switching transistor is connected to the first terminal of the switching unit, and the control terminal of the first switching transistor is connected to the second terminal of the second switching transistor.
[0020] The control terminal of the second switch is connected to the GPIO pin of the controller, and the first terminal of the second switch is grounded.
[0021] On the other hand, the switching unit includes a wake-up switch and a non-wake-up switch;
[0022] The wake-up switch and the non-wake-up switch are connected in parallel and are connected to the second terminal of the first control circuit and the first terminal of the switch detection circuit.
[0023] The second terminal of the wake-up switch is connected to the first terminal of the wake-up source voltage detection circuit.
[0024] On the other hand, the switch detection circuit includes at least two switch detection sub-circuits;
[0025] The second terminal of each of the wake-up switch and the non-wake-up switch is respectively connected to the first terminal of a switch detection sub-circuit.
[0026] The second terminal of each of the switch detection sub-circuits is connected to the corresponding ADC pin of the controller.
[0027] On the other hand, the switch detection sub-circuit includes a voltage divider circuit and a first filter circuit; wherein, the voltage divider circuit includes a fourth resistor and a fifth resistor; and the first filter circuit includes a sixth resistor and a second capacitor;
[0028] The first end of the fourth resistor serves as the first end of the switch detection sub-circuit and is connected to the corresponding wake-up switch or non-wake-up switch.
[0029] The second terminal of the fourth resistor is connected to the first terminal of the fifth resistor and the first terminal of the sixth resistor; the second terminal of the fifth resistor is grounded.
[0030] The second end of the sixth resistor is connected to the first end of the second capacitor and to the corresponding ADC pin of the controller; the second end of the second capacitor is grounded.
[0031] On the other hand, it also includes a power supply circuit; the power supply circuit includes a first-capacity capacitor and a second-capacity capacitor;
[0032] The first capacitance level capacitor and the second capacitance level capacitor are connected in parallel and connected to the power supply pins of the system base chip and the controller.
[0033] To solve the above-mentioned technical problems, this utility model also provides a vehicle, including the aforementioned switch wake-up circuit.
[0034] The present invention provides a switch wake-up circuit in which the power supply pin of the system base chip is connected to the power supply pin of the controller; the high-side switch pin of the system base chip is connected to the first terminal of the first control circuit; the second terminal of the first control circuit is connected to the first terminal of the switch unit and also to the second terminal of the second control circuit; the first terminal of the second control circuit is connected to the GPIO pin of the controller; the wake-up pin of the system base chip is connected to the second terminal of the switch unit and also to the first terminal of the switch detection circuit; and the second terminal of the switch detection circuit is connected to the ADC pin of the controller.
[0035] Throughout the process, when the power supply pins of the system base chip are not powered, the power supply pins of the connected controller have no input, causing the controller to power down. In this situation, the high-side switch pin of the system base chip is used as an enable signal to output a first-level signal as a pull-up power supply for the switch wake-up source. The software configures the conduction time and period of the high-side switch pin and adjusts the duty cycle to enable PWM output from the high-side switch pin. By adjusting the PWM duty cycle, static power consumption is effectively reduced. When the high-side switch pin outputs the first-level signal, the switch unit connected through the first control circuit detects that the switch in the switch unit is closed through the wake-up source voltage detection circuit, thereby waking up the system base chip to power the controller. When the wake-up source voltage detection circuit does not detect that the switch in the switch unit is closed, the second-level state is maintained. At this time, the controller does not work, and the high-side switch pin will enter the next cycle of opening until the wake-up source signal is detected. During the wake-up process, the first control circuit works, and the second control circuit does not work; after wake-up, the first control circuit does not work, and the second control circuit works. In summary, compared to conventional solutions that use the polling mode of the controller and the stop mode of the system base chip, which result in relatively high power consumption due to static current, the static current corresponding to the wake-up pin and high-side switch pin of the controller in the power-down mode and the sleep mode of the system base chip in the switch wake-up circuit of this invention is relatively small. This reduces static current power consumption while improving the performance of the product.
[0036] In addition, this utility model also provides a vehicle that has the same beneficial effects as the switch wake-up circuit described above. Attached Figure Description
[0037] To more clearly illustrate the embodiments of this utility model, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this utility model. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 This is a schematic diagram of a conventional technical solution with a switch signal wake-up circuit.
[0039] Figure 2 This is a schematic diagram of a switch wake-up circuit provided in an embodiment of the present invention. Detailed Implementation
[0040] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present utility model.
[0041] The core of this invention is to provide a switch wake-up circuit and a vehicle to solve the problem that the large static current power consumption during the wake-up of automotive electronic products affects their performance.
[0042] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0043] For automotive electronic products that require a switch signal to wake up, Figure 1 This is a schematic diagram of a conventional technical solution with a switch signal wake-up circuit, such as... Figure 1 As shown, the MCU's GPIO port connects to the control circuit, providing a pull-up power supply to the switch. When a switch is pressed, a voltage value is generated through a resistor divider and sent to the MCU's ADC port for signal detection. This determines whether it is a wake-up source signal input, thereby waking up the MCU and the entire product. This design achieves this by keeping the MCU's VCC powered on, entering polling mode, and the SBC entering Stop mode, periodically waking up the local switch signal. In conventional solutions, the quiescent current of the MCU in polling mode is 35uA, and the quiescent current of the SBC in Stop mode is 44uA, resulting in a total quiescent current of Iq = 35uA + 44uA = 79uA. This leads to a large static power consumption, affecting the product's performance. Therefore, the switch wake-up circuit provided by this invention can solve the above technical problems.
[0044] Figure 2 A schematic diagram of a switch wake-up circuit provided in an embodiment of this utility model is shown below. Figure 2 As shown, it includes a system base chip 1, a first control circuit 2, a second control circuit 3, a switching unit 4, a wake-up source voltage detection circuit 5, a controller 6, and a switch detection circuit 7;
[0045] The power supply pin of the system base chip 1 is connected to the power supply pin of the controller 6; the high-side switch pin of the system base chip 1 is connected to the first terminal of the first control circuit 2; the second terminal of the first control circuit 2 is connected to the first terminal of the switch unit 4 and to the second terminal of the second control circuit 3; the first terminal of the second control circuit 3 is connected to the GPIO pin of the controller 6.
[0046] The wake-up pin of the system base chip 1 is connected to the second end of the switch unit 4 and to the first end of the switch detection circuit 7; the second end of the switch detection circuit 7 is connected to the ADC pin of the controller 6.
[0047] Specifically, the high-side switch pin (HS pin) in the system base chip provides the first control circuit, and the wake-up pin is used to connect to the switch wake-up source to realize the wake-up source voltage detection function. Regarding the high-side switch pin, after the SBC is configured in Cyclic Sense mode, the high-side switch pin polls the switch, a function that cyclically detects the wake-up source, designed to reduce quiescent current in devices and applications. During the on-time of the cyclic sensing cycle, any edge change in the wake-up input signal will trigger a wake-up. The wake-up pin is used to detect changes in external signals, thereby triggering the SBC to wake up. For example, when the SBC enters sleep mode, the high-side switch polls-on for a period in each cycle. If a level change is detected during this period, but then returns to a low level during the filter time, it will be judged as noise and filtered out. If a level change is detected in the nth cycle, and the level remains high until the end of the filter time, the wake-up level will be pulled high during the (n+1)th polling-on time, triggering a wake event and waking up the SBC. For this function, the wake-up input cyclically senses the voltage level during the on-time of the high-side switch. The wake-up event is triggered by a change in voltage level.
[0048] Once the voltage on the wake-up source switch circuit reaches the turn-on voltage threshold of the wake-up pin, the SBC will be woken up, outputting voltage VCC to the controller, thereby waking up the controller and the entire product. In conventional solutions, the VCC pin is still on in the SBC's stop mode. However, in this invention, when entering sleep mode, the controller's VCC is directly powered off, the VCC pin stops operating, and the system base chip enters sleep mode. Consequently, the static current of the controller in power-down mode is 0uA. Compared to the 44uA current in the conventional SBC stop mode, the static current in the SBC sleep mode of this embodiment is 15uA, a significant reduction.
[0049] In the system's base chip, its corresponding wake-up pin is used as the voltage monitoring pin for the wake-up source. An enabled high-side switch pin serves as the pull-up power supply for the wake-up source, and its cyclic sense function is also enabled. PWM functionality reduces the product's sleep power consumption. When the high-side switch pin outputs a high level, it detects if a wake-up source is pressed. If so, the chip is woken up via the wake-up pin, thus waking up the entire product. If no wake-up source is detected, the high-side switch pin enters another cycle until a corresponding wake-up source signal is detected. At this point, the controller is awakened, the first control circuit ceases operation, and the second control circuit begins operation. When any switch in the switching unit is pressed, a voltage value is generated through resistor division and sent to the controller's ADC pin for signal detection, thereby activating the corresponding switching function.
[0050] This shows that the quiescent current of the controller in power-down mode is 0uA, the quiescent current of the SBC in Sleep mode is 15uA, the quiescent current of the wake-up pin is 0.2uA, the cyclic sensing setting of the high-side switch pin sets the PWM duty cycle to 0.2%, and its quiescent current consumption during the start-up process in stop mode is 20uA. The total quiescent current consumed by the high-side switch pin is 550uA. Therefore, the quiescent current of the high-side switch pin is... The total static current is .
[0051] The present invention provides a switch wake-up circuit in which the power supply pin of the system base chip is connected to the power supply pin of the controller; the high-side switch pin of the system base chip is connected to the first terminal of the first control circuit; the second terminal of the first control circuit is connected to the first terminal of the switch unit and to the second terminal of the second control circuit; the first terminal of the second control circuit is connected to the GPIO pin of the controller; the wake-up pin of the system base chip is connected to the second terminal of the switch unit and to the first terminal of the switch detection circuit; and the second terminal of the switch detection circuit is connected to the ADC pin of the controller.
[0052] Throughout the process, when the power supply pins of the system base chip are not powered, the power supply pins of the connected controller have no input, causing the controller to power down. In this situation, the high-side switch pin of the system base chip is used as an enable signal to output a first-level signal as a pull-up power supply for the switch wake-up source. The software configures the conduction time and period of the high-side switch pin and adjusts the duty cycle to enable pulse width modulation (PWM) output. By adjusting the PWM duty cycle, static power consumption is effectively reduced. When the high-side switch pin outputs the first-level signal, the switch unit connected through the first control circuit detects that the switch in the switch unit is closed through the wake-up source voltage detection circuit, thereby waking up the system base chip to power the controller. When the wake-up source voltage detection circuit does not detect that the switch in the switch unit is closed, the second-level state is maintained. At this time, the controller does not work, and the high-side switch pin will enter the next cycle of opening until the wake-up source signal is detected. During the wake-up process, the first control circuit works, and the second control circuit does not work; after wake-up, the first control circuit does not work, and the second control circuit works. In summary, compared to conventional solutions that use the polling mode of the controller and the stop mode of the system base chip, which result in relatively high power consumption due to static current, the static current corresponding to the wake-up pin and high-side switch pin of the controller in the power-down mode and the sleep mode of the system base chip in the switch wake-up circuit of this invention is relatively small. This reduces static current power consumption while improving the performance of the product.
[0053] In some embodiments, such as Figure 2 As shown, the first control circuit 2 is the first diode D1;
[0054] The high-side switch pin of the system base chip 1 is connected to the anode of the first diode D1; the cathode of the first diode D1 is connected to the second terminal of the second control circuit 3 and the first terminal of the switching unit 4.
[0055] Specifically, the first control circuit primarily uses a first diode, whose function is to prevent reverse current flow, thereby protecting other components in the circuit from damage. By enabling the high-side switch pin through software, a first-level signal, i.e., a high-level signal, is output as the pull-up power supply for the switch wake-up source. The voltage of the switching unit is the vehicle battery voltage minus the voltage difference of the first diode. By configuring the conduction time and period of the high-side switch pin, the duty cycle is adjusted to enable PWM (Pulse Width Modulation) output from the high-side switch, thus activating the Cyclic Sense function of the high-side switch pin. Adjusting the duty cycle effectively reduces the product's static power consumption.
[0056] The first control circuit provided in this embodiment is the connection relationship of the first diode, which ensures that the current can only flow from the anode to the cathode, prevents the current from flowing in the opposite direction, and thus protects other components in the circuit from damage.
[0057] In some embodiments, such as Figure 2 As shown, the wake-up source voltage detection circuit 5 includes a second diode D2, a first resistor R1, a second resistor R2, and a first capacitor C1;
[0058] The anode of the second diode D2 is connected to the second terminal of the switching unit 4, and the cathode of the second diode D2 is connected to the first terminal of the first resistor R1 and the first terminal of the second resistor R2; the second terminal of the first resistor R1 is grounded.
[0059] The second end of the second resistor R2 is connected to the wake-up pin of the system base chip 1 and the first end of the first capacitor C1; the second end of the first capacitor C1 is grounded.
[0060] Specifically, the switching unit has a wake-up switch, i.e., a wake-up source. When the product enters sleep mode, the SBC's VCC is not powered, the controller is powered down, the GPIO port has no output, and the second control circuit does not work. When the CyclicSense function of the high-side switch pin is enabled via software, and the PWM output is high, the high-side switch pin outputs a high level close to the battery voltage. If the switch of the switching unit is not pressed, the SBC's wake-up pin is grounded through an external pull-down resistor (the first resistor), maintaining a low level, and the controller does not work. If the switch wake-up source goes from off to on, a voltage value, VC, is obtained by voltage division between the resistor connected to the wake-up source and the resistor of the switch detection circuit. VC minus the voltage drop of the second diode is the voltage of VD. The second resistor and the first capacitor form a filter circuit, and the voltages across the second resistor are equal, i.e., the VE voltage equals the VD voltage. The specific formula is: When a non-wake-up source switch goes from off to on, the wake-up pin of its system base chip cannot detect the corresponding voltage change and cannot achieve the wake-up function. At this time, the high-side switch will enter the next cycle of opening until the wake-up pin detects a wake-up source input and wakes up the system base chip.
[0061] In this embodiment, the filter circuit composed of the second resistor and the first capacitor is used to filter out voltage spikes on the wake-up pin, so that there is a stable voltage value on the wake-up pin.
[0062] The connection relationship between the components in the wake-up source voltage detection circuit provided in this embodiment utilizes the characteristic of the small static current of the wake-up pin of the system base chip, combined with the cyclic sensing function of the high-side switch pin, to realize the wake-up function while improving the stability and accuracy of the wake-up voltage value.
[0063] In some embodiments, such as Figure 2 As shown, the second control circuit 3 includes a third resistor R3 and a switching transistor T1;
[0064] The first terminal of the third resistor R3 is connected to the power supply.
[0065] The second end of the third resistor R3 is connected to the first end of the switching transistor T1; the control end of the switching transistor T1 serves as the first end of the second control circuit 3 and is connected to the GPIO pin of the controller 6.
[0066] The second terminal of the switching transistor T1 serves as the second terminal of the second control circuit 3 and is connected to the first terminal of the switching unit 4.
[0067] The third terminal of the switching transistor T1 is grounded.
[0068] Specifically, switching transistors can simplify circuit structures, reduce the number of components, and make circuit designs simpler.
[0069] In the second control circuit, after the automotive electronics are woken up, the high-side switch pin output is turned off via software. At this time, the first control circuit is not working, and the second control circuit is working. The controller's GPIO port outputs a high level, the switching transistor is turned on, and the VBAT (power supply) voltage is transmitted to the switching unit through the third resistor and the voltage drop of the switching transistor.
[0070] The connection relationship of each component in the second control circuit provided in this embodiment can simplify the peripheral circuit and save printed circuit board (PCB) space while improving the reliability of the circuit during the operation of the second control circuit after wake-up, through the connection between the third resistor and the switching transistor.
[0071] In some embodiments, the switching transistor includes a first switching transistor and a second switching transistor;
[0072] The first terminal of the first switching transistor is connected to the second terminal of the third resistor, the second terminal of the first switching transistor is connected to the first terminal of the switching unit, and the control terminal of the first switching transistor is connected to the second terminal of the second switching transistor.
[0073] The control terminal of the second switch is connected to the GPIO pin of the controller, and the first terminal of the second switch is grounded.
[0074] Specifically, the switching transistors include a first switching transistor and a second switching transistor, and their corresponding connection relationships are related to the third resistor and the connection between the switching unit, such as... Figure 2 As shown, if the switching unit includes three switches, corresponding to S1, S2, and S3, the final voltage of switch S1 is: .
[0075] The connection relationship between the first and second switching transistors in this embodiment drives a low-power load without requiring additional high-current driving components. This simplifies the circuit structure and the number of components.
[0076] In some embodiments, such as Figure 2 As shown, the switching unit 4 includes a wake-up switch S1 and a non-wake-up switch;
[0077] The wake-up switch S1 and the non-wake-up switch are connected in parallel and connected to the second terminal of the first control circuit 2 and the first terminal of the switch detection circuit 7.
[0078] The second terminal of the wake-up switch S1 is connected to the first terminal of the wake-up source voltage detection circuit 5.
[0079] Specifically, the switching unit includes a wake-up switch and a non-wake-up switch, which are connected in parallel. It should be noted that the number of switches within the non-wake-up switch can be one or more, depending on the actual situation. The multiple switches within the non-wake-up switch are also connected in parallel. Both the wake-up switch and the non-wake-up switch are connected to the second terminal of the first control circuit and the first terminal of the switch detection circuit. The switching unit can be set up independently of the switch detection circuit, or it can be placed within the switch detection circuit; there is no limitation here, and it can be set according to the actual situation.
[0080] In the above embodiments, the switching unit includes three switches, where switch S1 is the wake-up switch, i.e., the wake-up source. Switches S2 and S3 are non-wake-up switches. If no switch is pressed, i.e., S1, S2, and S3 are all open, the wake-up pin of SBC is grounded through the external pull-down resistor R1, i.e., it remains in a low-level state, and the controller does not work. If the wake-up source switch S1 changes from off to on, i.e., A1 and B1 are connected, a voltage value VC is obtained at pin C through the voltage divider between the resistor S1 and resistors R41 and R51. VC minus the voltage drop at D2 is the voltage VD. The voltage VE is equal to the voltage VD. By selecting appropriate resistors R41 and R51 to divide the voltage, the voltage VE can be made greater than the wake-up voltage threshold of the SBC wake-up pin, thereby waking up SBC. If the non-wake-up source switch S2 or S3 changes from off to on, the wake-up pin of SBC cannot detect the corresponding voltage change, and the wake-up function cannot be realized.
[0081] The specific connection relationship between the wake-up switch and the non-wake-up switch in the switching unit provided in this embodiment distinguishes different types of switches in order to realize the wake-up function and improve the reliability of the system.
[0082] In some embodiments, such as Figure 2 As shown, the switch detection circuit includes at least two switch detection sub-circuits;
[0083] The second terminal of the wake-up switch S1 and the non-wake-up switch are respectively connected to the first terminal of a switch detection sub-circuit.
[0084] The second end of each switch detection sub-circuit is connected to the corresponding ADC pin of controller 6.
[0085] Specifically, since wake-up switches and non-wake-up switches are two types of switches, this embodiment has at least two switch detection sub-circuits, each corresponding to a different type. The number of switch detection sub-circuits is the same as the number of switches in the switch unit, and they are matched one-to-one.
[0086] When any switch is pressed, a voltage value is generated and sent to the ADC pin of the controller for pin detection. Once the voltage range required for the switch to turn on is met, the corresponding switch function will be activated.
[0087] The connection relationship of each device in the switch detection circuit provided in this embodiment, in the connection relationship of the wake-up switch, is the same as the switch function corresponding to other non-wake-up switches, in addition to realizing the wake-up function, so as to realize the purpose of switch signal detection.
[0088] In some embodiments, such as Figure 2 As shown, the switch detection sub-circuit includes a voltage divider circuit and a first filter circuit; wherein, the voltage divider circuit includes a fourth resistor and a fifth resistor; the first filter circuit includes a sixth resistor and a second capacitor;
[0089] The first end of the fourth resistor serves as the first end of the switch detection sub-circuit, and is connected to the corresponding wake-up switch or non-wake-up switch.
[0090] The second terminal of the fourth resistor is connected to the first terminal of the fifth resistor and the first terminal of the sixth resistor; the second terminal of the fifth resistor is grounded.
[0091] The second end of the sixth resistor is connected to the first end of the second capacitor and to the corresponding ADC pin of the controller; the second end of the second capacitor is grounded.
[0092] It should be noted that, in Figure 2 The terms "fourth resistor," "fifth resistor," and "sixth resistor" in the text refer to a collective term. Figure 2The circuit includes three switch detection sub-circuits. Specifically, the fourth resistors are R41, R42, and R43; the fifth resistors are R51, R52, and R53; the sixth resistors are R61, R62, and R63; and the second capacitors are C21, C22, and C23. One switch detection sub-circuit includes a voltage divider circuit and a first filter circuit. The voltage divider circuit includes two resistors. Their connection relationship is as follows: when any switch (e.g., S2) is pressed, the voltage VA2 at A2 will be divided by the resistors S2 and R42 and R52 to generate a voltage value VF2. The voltage VG2 equals the voltage VF2, which is sent to the controller's ADC2 port for signal detection. If the voltage meets the software-preset voltage range for switch activation, the corresponding S2 switch function will be activated. The specific voltage calculation formula is as follows: .
[0093] The connection relationship of each component in the switch detection sub-circuit provided in this embodiment, through a voltage divider circuit formed by two resistors, can convert the higher input voltage into a suitable voltage value required by other components or modules in the circuit according to the proportional relationship of the resistor values. When the subsequent circuit (such as the load circuit connected to the filter circuit) has specific requirements for the input voltage, the voltage divider circuit can match the input voltage to ensure that the subsequent circuit can work normally. The filter circuit smooths voltage fluctuations, reduces noise interference, and improves voltage stability.
[0094] In some embodiments, such as Figure 2 As shown, it also includes a power supply circuit 8; the power supply circuit 8 includes a first capacitance level capacitor and a second capacitance level capacitor.
[0095] The first and second capacitance levels are connected in parallel and connected to the power supply pins of the system base chip 1 and the controller 6.
[0096] Specifically, this module uses the VCC pin of the SBC and the VCC pin of the controller, including a first-level capacitor and a second-level capacitor. The specific number of capacitors in each level is not limited and can be set according to actual needs. In this embodiment, four filter capacitors, C3, C4, C5, and C6, are connected in parallel to form the power supply circuit. These four capacitors typically consist of two uF capacitors and two nF capacitors to achieve good filtering. When the SBC is woken up, its VCC pin normally outputs a 5V level. After being filtered by the capacitors, a more stable 5V power supply voltage is provided to the controller, waking it up and thus waking up the entire product.
[0097] This embodiment uses a parallel connection of capacitors of different capacitance levels to form a power supply circuit. Smaller capacitors have higher self-resonant frequencies and provide good bypassing of high-frequency noise. In the power supply circuit, various high-frequency interference signals may exist on the power lines; this circuit can quickly respond to these high-frequency noises and bypass them to ground, resulting in a cleaner supply voltage. Larger capacitors can store and release more charge, effectively smoothing low-frequency ripple and making the output DC voltage more stable.
[0098] Furthermore, this utility model embodiment provides a vehicle including a switch wake-up circuit.
[0099] For an introduction to the vehicle provided by this utility model, please refer to the above method embodiments. This utility model will not be described in detail here, but it has the same beneficial effects as the above-described switch wake-up circuit.
[0100] The present invention provides a detailed description of a switch wake-up circuit and a vehicle. The various embodiments are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make various improvements and modifications to the present invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the present invention.
[0101] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
Claims
1. A switch wake-up circuit, characterized in that, It includes a system base chip, a first control circuit, a second control circuit, a switching unit, a wake-up source voltage detection circuit, a controller, and a switch detection circuit; The power supply pin of the system base chip is connected to the power supply pin of the controller; the high-side switch pin of the system base chip is connected to the first terminal of the first control circuit; the second terminal of the first control circuit is connected to the first terminal of the switch unit and to the second terminal of the second control circuit; the first terminal of the second control circuit is connected to the GPIO pin of the controller. The wake-up pin of the system base chip is connected to the second terminal of the switching unit and to the first terminal of the switch detection circuit; the second terminal of the switch detection circuit is connected to the ADC pin of the controller.
2. The switch wake-up circuit according to claim 1, characterized in that, The first control circuit is a first diode; The high-side switch pin of the system base chip is connected to the anode of the first diode; the cathode of the first diode is connected to the second terminal of the second control circuit and the first terminal of the switching unit.
3. The switch wake-up circuit according to claim 1, characterized in that, The wake-up source voltage detection circuit includes a second diode, a first resistor, a second resistor, and a first capacitor; The anode of the second diode is connected to the second terminal of the switching unit, and the cathode of the second diode is connected to the first terminal of the first resistor and the first terminal of the second resistor; the second terminal of the first resistor is grounded. The second end of the second resistor is connected to the wake-up pin of the system base chip and the first end of the first capacitor; the second end of the first capacitor is grounded.
4. The switch wake-up circuit according to claim 1, characterized in that, The second control circuit includes a third resistor and a switching transistor; The first end of the third resistor is connected to a power source. The second end of the third resistor is connected to the first end of the switching transistor; the control end of the switching transistor serves as the first end of the second control circuit and is connected to the GPIO pin of the controller. The second terminal of the switching transistor serves as the second terminal of the second control circuit and is connected to the first terminal of the switching unit. The third terminal of the switching transistor is grounded.
5. The switch wake-up circuit according to claim 4, characterized in that, The switching transistor includes a first switching transistor and a second switching transistor; The first terminal of the first switching transistor is connected to the second terminal of the third resistor, the second terminal of the first switching transistor is connected to the first terminal of the switching unit, and the control terminal of the first switching transistor is connected to the second terminal of the second switching transistor. The control terminal of the second switch is connected to the GPIO pin of the controller, and the first terminal of the second switch is grounded.
6. The switch wake-up circuit according to claim 1, characterized in that, The switching unit includes a wake-up switch and a non-wake-up switch; The wake-up switch and the non-wake-up switch are connected in parallel and are connected to the second terminal of the first control circuit and the first terminal of the switch detection circuit. The second terminal of the wake-up switch is connected to the first terminal of the wake-up source voltage detection circuit.
7. The switch wake-up circuit according to claim 6, characterized in that, The switch detection circuit includes at least two switch detection sub-circuits; The second terminal of each of the wake-up switch and the non-wake-up switch is respectively connected to the first terminal of a switch detection sub-circuit. The second terminal of each of the switch detection sub-circuits is connected to the corresponding ADC pin of the controller.
8. The switch wake-up circuit according to claim 7, characterized in that, The switch detection sub-circuit includes a voltage divider circuit and a first filter circuit; wherein, the voltage divider circuit includes a fourth resistor and a fifth resistor; and the first filter circuit includes a sixth resistor and a second capacitor. The first end of the fourth resistor serves as the first end of the switch detection sub-circuit and is connected to the corresponding wake-up switch or non-wake-up switch. The second terminal of the fourth resistor is connected to the first terminal of the fifth resistor and the first terminal of the sixth resistor; the second terminal of the fifth resistor is grounded. The second end of the sixth resistor is connected to the first end of the second capacitor and to the corresponding ADC pin of the controller; the second end of the second capacitor is grounded.
9. The switch wake-up circuit according to claim 1, characterized in that, It also includes a power supply circuit; the power supply circuit includes a first-capacity capacitor and a second-capacity capacitor. The first capacitance level capacitor and the second capacitance level capacitor are connected in parallel and connected to the power supply pins of the system base chip and the controller.
10. A vehicle, characterized in that, Includes the switch wake-up circuit as described in any one of claims 1 to 9.