Hall module, chip and electronic equipment

By integrating the detection circuit and switching control circuit in the Hall module, and using magnetic field changes to switch the working mode of the linear Hall circuit, the problem of high power consumption of linear Hall circuits in multiple matrix applications is solved, and energy consumption is reduced. and guarantee of detection results.

CN118713644APending Publication Date: 2024-09-27GUANGZHOU SIRUI SEMICON CO LTD
View PDF 0 Cites 6 Cited by

Patent Information

Application Number
CN202410960922.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing linear Hall circuits consume a large amount of power in multiple Hall circuit matrix application scenarios, resulting in increased energy consumption.

Method used

A Hall module is designed, including a detection circuit, a switching control circuit and a switching Hall circuit. By detecting changes in the magnetic field and outputting a wake-up signal, the switching control circuit switches the linear Hall circuit to sleep mode to reduce power consumption. Switch to working mode when targeting to ensure detection effect.

Benefits of technology

It effectively reduces the power consumption of the linear Hall circuit, reduces energy consumption, and at the same time ensures the timeliness and accuracy of magnetic field detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713644A
    Figure CN118713644A
Patent Text Reader

Abstract

The embodiment of the invention discloses a Hall module, a chip and electronic equipment. According to the technical scheme provided by the embodiment of the invention, the detection circuit is connected with the switch Hall circuit and the linear Hall circuit, the output end of the switch Hall circuit serves as the wake-up output end of the Hall module, and the output end of the linear Hall circuit serves as the detection output end of the Hall module; the control output end of the switching control circuit is connected with the linear Hall circuit, the control input end of the switching control circuit serves as the enabling end of the Hall module, the Hall module outputs a wake-up signal when detecting a detection target, and the linear Hall circuit can be controlled to be switched to a working mode to work through the switching control circuit. Therefore, linear Hall detection can be carried out timely and correctly, the electric quantity consumption of the linear Hall circuit is effectively reduced while the linear Hall detection effect is ensured, and the energy consumption is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of electronic technology, and in particular to a Hall module, a chip, and an electronic device. Background Art

[0002] The existing linear Hall circuit usually has three pins, namely, a power supply terminal (VCC), a ground terminal (GND), and an output terminal (OUT), and the linear Hall circuit needs to be powered by the power supply terminal to work properly.

[0003] In an application scenario where multiple linear Hall circuits are arranged in a matrix and multiple Hall circuits need to work simultaneously, multiple linear Hall circuits need to be powered at the same time so that they can work normally to detect changes in the magnetic field, convert the magnetic field changes into corresponding electrical signals, and output the detection signals from the output end. Since the linear Hall circuits need to be powered to ensure the normal operation of the linear Hall circuits, the linear Hall circuits will consume a large amount of electricity under long-term operation, resulting in increased energy consumption. Summary of the invention

[0004] The embodiments of the present application provide a Hall module, a chip and an electronic device to solve the technical problem in the related art that the linear Hall circuit consumes a large amount of electricity, resulting in increased energy consumption, and can effectively reduce the power consumption of the linear Hall circuit and reduce energy consumption.

[0005] In a first aspect, an embodiment of the present application provides a Hall module, including a detection circuit, a switching control circuit, a switch Hall circuit and a linear Hall circuit, wherein:

[0006] The detection circuit is connected to the switch Hall circuit and the linear Hall circuit, and the detection circuit is used to detect magnetic field changes and output a magnetic field detection signal;

[0007] The output end of the switch Hall circuit serves as the wake-up output end of the Hall module, and the switch Hall circuit is used to output a wake-up signal according to the received magnetic field detection signal;

[0008] The output end of the linear Hall circuit serves as the detection output end of the Hall module, and the linear Hall circuit is used to output a linear Hall detection signal according to the received magnetic field detection signal;

[0009] The control output end of the switching control circuit is connected to the linear Hall circuit, the control input end of the switching control circuit serves as the enable end of the Hall module, and the switching control circuit is used to switch the linear Hall circuit to a working mode or a sleep mode.

[0010] In the embodiment of the present application, the detection circuit is connected to the switch Hall circuit and the linear Hall circuit. The output end of the switch Hall circuit serves as the wake-up output end of the Hall module, the output end of the linear Hall circuit serves as the detection output end of the Hall module, the control output end of the switching control circuit is connected to the linear Hall circuit, and the control input end of the switching control circuit serves as the enable end of the Hall module. The linear Hall circuit can output a linear Hall detection signal according to the received magnetic field detection signal. The detection circuit can detect the magnetic field change and output the magnetic field detection signal. The switch Hall circuit can output a wake-up signal according to the received magnetic field detection signal. The switching control circuit can switch the linear Hall circuit to a working mode or a sleep mode. When the switch Hall circuit fails to detect the detection target based on the magnetic field detection signal, the switching control circuit controls the linear Hall circuit to switch to the sleep mode to reduce the power consumption of the linear Hall circuit. When the detection target is detected, the corresponding wake-up signal is output. The switching control circuit can control the linear Hall circuit to switch to the working mode to work, thereby ensuring timely and correct linear Hall detection. While ensuring the linear Hall detection effect, the power consumption of the linear Hall circuit is effectively reduced, thereby reducing energy consumption.

[0011] In a second aspect, an embodiment of the present application provides a Hall chip, comprising a Hall module as described in any one of the first aspects.

[0012] The embodiment of the present application configures a Hall module in a Hall chip, wherein the detection circuit is connected to the switch Hall circuit and the linear Hall circuit, the output end of the switch Hall circuit serves as the wake-up output end of the Hall module, the output end of the linear Hall circuit serves as the detection output end of the Hall module, the control output end of the switching control circuit is connected to the linear Hall circuit, the control input end of the switching control circuit serves as the enable end of the Hall module, the linear Hall circuit can output a linear Hall detection signal according to the received magnetic field detection signal, the detection circuit can detect the magnetic field change and output the magnetic field detection signal, the switch Hall circuit can output a wake-up signal according to the received magnetic field detection signal, the switching control circuit can switch the linear Hall circuit to a working mode or a sleep mode, when the switch Hall circuit fails to detect a detection target based on the magnetic field detection signal, the switching control circuit controls the linear Hall circuit to switch to the sleep mode to reduce the power consumption of the linear Hall circuit, and outputs a corresponding wake-up signal when the detection target is detected, the switching control circuit controls the linear Hall circuit to switch to the working mode to work, and ensures timely and correct linear Hall detection, while ensuring the linear Hall detection effect, effectively reducing the power consumption of the linear Hall circuit and reducing energy consumption.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a first control module and a Hall module as described in any one of the first aspect or a Hall chip as described in the second aspect, wherein the first control module is connected to a wake-up output terminal, a detection output terminal and an enable terminal of the Hall module or the Hall chip.

[0014] The embodiment of the present application connects the first control module with the wake-up output terminal, the detection output terminal and the enable terminal of the Hall module or the Hall chip. When the switch Hall circuit fails to detect the detection target based on the magnetic field detection signal, the first control module controls the linear Hall circuit to switch to the sleep mode through the switching control circuit to reduce the power consumption of the linear Hall circuit, and outputs the corresponding wake-up signal when the detection target is detected. The first control module can control the linear Hall circuit to switch to the working mode through the switching control circuit to ensure timely and correct linear Hall detection. While ensuring the linear Hall detection effect, it effectively reduces the power consumption of the linear Hall circuit and reduces the energy consumption of electronic equipment.

[0015] In a fourth aspect, an embodiment of the present application provides a keyboard, comprising a circuit board body, a second control module, and a plurality of Hall modules as described in any one of the first aspect or the Hall chips as described in the second aspect;

[0016] The second control module is mounted on the circuit board body, the Hall module or the Hall chip is mounted on the circuit board body, the circuit board body is provided with a plurality of key cap mounting positions, and the key cap mounting positions correspond to one or more of the Hall modules or the Hall chips;

[0017] The second control module is connected to the wake-up output terminal, the detection output terminal and the enable terminal of the Hall module or the Hall chip.

[0018] The embodiment of the present application connects the second control module to the wake-up output terminal, detection output terminal and enable terminal of the Hall module or Hall chip. When the switch Hall circuit fails to detect the detection target based on the magnetic field detection signal, the second control module controls the linear Hall circuit to switch to the sleep mode through the switching control circuit to reduce the power consumption of the linear Hall circuit, and outputs the corresponding wake-up signal when the detection target is detected. The second control module can control the linear Hall circuit to switch to the working mode through the switching control circuit to ensure timely and correct linear Hall detection. While ensuring the linear Hall detection effect, it effectively reduces the power consumption of the linear Hall circuit and reduces the energy consumption of the keyboard. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a principle block diagram of the first Hall module provided in the embodiment of the present application;

[0020] Figure 2is a principle block diagram of a second Hall module provided in an embodiment of the present application;

[0021] Figure 3 is a principle block diagram of a third Hall module provided in an embodiment of the present application;

[0022] Figure 4 is a principle block diagram of a fourth Hall module provided in an embodiment of the present application;

[0023] Figure 5 is a principle block diagram of the fifth Hall module provided in an embodiment of the present application;

[0024] Figure 6 is a principle block diagram of a sixth Hall module provided in an embodiment of the present application;

[0025] Figure 7 is a principle block diagram of the seventh Hall module provided in an embodiment of the present application;

[0026] Figure 8 This is a schematic diagram of a Hall chip provided in an embodiment of the present application.

[0027] Fig. 9 It is a principle block diagram of an electronic device provided in an embodiment of the present application;

[0028] Fig.10 This is a principle block diagram of a keyboard provided in an embodiment of the present application.

[0029] Figure numerals: 1. detection circuit; 11. detection element; 12. third amplifier; 13. temperature compensation module; 14. signal calibration compensation module; 2. switching control circuit; 21. first switch element; 22. second switch element; 23. third switch element; 24. fourth switch element; 25. first switch; 26. second switch; 3. switch Hall circuit; 31. comparator; 32. output logic gate; 33. second follower; 34. second amplifier; 35. output control module; 4. linear Hall circuit; 41. first amplifier; 42. first follower; 5. power supply circuit; 6. first control module; 7. circuit board body; 8. second control module. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the sake of ease of description, only the parts related to the present application are shown in the accompanying drawings, rather than all the contents.

[0031] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, the terms "connected", "connected", and "fixed" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral body; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the operations can be rearranged. The above process can be terminated when its operation is completed, but it can also have additional steps not included in the drawings. The above process can correspond to a method, a function, a procedure, a subroutine, a subprogram, and the like.

[0032] Figure 1 The principle block diagram of the first Hall module provided in the embodiment of the present application is given, referring to Figure 1 The Hall module includes a detection circuit 1, a switching control circuit 2, a switch Hall circuit 3 and a linear Hall circuit 4.

[0033] The detection circuit 1 provided in this solution is connected to the switch Hall circuit 3 and the linear Hall circuit 4 (the detection circuit 1 is connected to the linear Hall circuit 4 through the switching control circuit 2, and the detection circuit 1 is directly connected to the switch Hall circuit 3), and the control output end of the switching control circuit 2 is connected to the linear Hall circuit 4. The Hall module provided in this solution is at least configured with a wake-up output end (INT end in the figure), a detection output end (OUT end in the figure) and an enable end (EN end in the figure). Among them, the output end of the switch Hall circuit 3 serves as the wake-up output end of the Hall module, the output end of the linear Hall circuit 4 serves as the detection output end of the Hall module, and the control input end of the switching control circuit 2 serves as the enable end of the Hall module.

[0034] Among them, the detection circuit 1 provided by this solution can be used to detect magnetic field changes and output magnetic field detection signals, the switch Hall circuit 3 can be used to output a wake-up signal according to the received magnetic field detection signal, the linear Hall circuit 4 can be used to output a linear Hall detection signal according to the received magnetic field detection signal, and the switching control circuit 2 can be used to switch the linear Hall circuit 4 to a working mode or a sleep mode. Optionally, the detection circuit 1 provided by this solution may include a Hall sensing electrode sheet (e.g., a Hall sheet WAFE).

[0035] In one embodiment, the switching circuit provided by the present solution can switch the linear Hall circuit 4 between the working mode and the sleep mode by connecting and disconnecting the connection between the linear Hall circuit 4 and the detection circuit 1 .

[0036] Exemplarily, the detection circuit 1 in the Hall module detects the change of the magnetic field, and the detection circuit 1 outputs a magnetic field detection signal to the switch Hall circuit 3. The switch Hall circuit 3 receives the magnetic field detection signal, and determines whether to output a wake-up signal based on the received magnetic field detection signal. For example, if there is no detection target (such as human body, metal material, etc. that can cause magnetic field change) within the detection range of the detection circuit 1, or the distance between the detection target and the detection circuit 1 is greater than the set distance threshold, the wake-up signal is not output. At this time, the switching control circuit 2 makes the linear Hall circuit 4 work in the sleep mode, waiting for the detection target to approach with lower power consumption (the working power consumption of the switch Hall circuit 3 is lower than the working power consumption of the linear Hall circuit 4), reducing power consumption.

[0037] When there is a detection target within the detection range of the detection circuit 1, or the distance between the detection target and the detection circuit 1 is within the set distance threshold, the switch Hall circuit 3 outputs a wake-up signal. Optionally, when it is detected that the Hall module outputs a wake-up signal through the wake-up output terminal, an enable signal can be sent to the enable terminal of the Hall module, so that the switching control circuit 2 switches the linear Hall circuit 4 to the working mode based on the enable signal, and the linear Hall circuit 4 receives the magnetic field detection signal output by the detection circuit 1, and performs linear Hall detection based on the magnetic field detection signal, and outputs the corresponding linear Hall detection signal from the detection output terminal of the Hall module, and promptly turns on the linear Hall circuit 4 for detection when the detection target is detected, so as to ensure the normal progress of the linear Hall detection. Among them, the linear Hall detection signal output by the linear Hall circuit 4 is positively correlated or negatively correlated with the distance from the detection target to the detection circuit 1, and / or negatively correlated or positively correlated with the detected magnetic field intensity.

[0038] Optionally, the present application can achieve not outputting the wake-up signal by outputting a second level signal (a low level signal or a high level signal), and correspondingly, can output the wake-up signal by outputting a first level signal (a high level signal or a low level signal).

[0039] Optionally, the Hall module provided in this solution can be used with an external power supply. In this case, the voltage supplied to various places inside the Hall module can be a consistent voltage, or a power supply circuit 5 can be configured inside the Hall module.

[0040] In one embodiment, the Hall module provided by the present solution further includes a power supply circuit 5, the input end of the power supply circuit 5 can be used as the power supply input end of the Hall module (for example, VCC in the figure), the power supply circuit 5 can be used for an external power supply, and based on the external power supply, the electrical components in the Hall module are powered. Optionally, the power supply circuit 5 can transform the external power supply to multiple voltage levels (for example, the power supply circuit 5 is set to multiple power sub-circuits corresponding to different voltage levels) to provide corresponding working voltages for different electrical components in the Hall module. Optionally, the power supply circuit 5 may include a low-dropout voltage regulator module (LDO).

[0041] In one embodiment, the Hall module provided by the present solution may also be configured with a communication module, which may connect and control the power supply corresponding to each module in the Hall module, or read the status of each module and each component, etc., through daisy chain communication or I2C communication. The Hall module may also be configured with a constant current drive control module, which may control an external LED light, thereby achieving a richer control effect of the Hall module.

[0042] As described above, by connecting the detection circuit 1 with the switch Hall circuit 3 and the linear Hall circuit 4, the output end of the switch Hall circuit 3 serves as the wake-up output end of the Hall module, the output end of the linear Hall circuit 4 serves as the detection output end of the Hall module, the control output end of the switching control circuit 2 is connected to the linear Hall circuit 4, and the control input end of the switching control circuit 2 serves as the enable end of the Hall module. The linear Hall circuit 4 can output a linear Hall detection signal according to the received magnetic field detection signal, the detection circuit 1 can detect the magnetic field change and output the magnetic field detection signal, the switch Hall circuit 3 can output a wake-up signal according to the received magnetic field detection signal, and the switching control circuit 2 can switch the linear Hall circuit 4 to the working mode or the sleep mode. When the switch Hall circuit 3 fails to detect the detection target based on the magnetic field detection signal, the switching control circuit 2 controls the linear Hall circuit 4 to switch to the sleep mode to reduce the power consumption of the linear Hall circuit 4, and outputs the corresponding wake-up signal when the detection target is detected. The switching control circuit 2 can control the linear Hall circuit 4 to switch to the working mode to work, thereby ensuring timely and correct linear Hall detection, and effectively reducing the power consumption of the linear Hall circuit 4 while ensuring the linear Hall detection effect, thereby reducing energy consumption.

[0043] Based on the above embodiments, Figure 2 A principle block diagram of a second Hall module provided in an embodiment of the present application is given. The Hall module provided in this solution can be further configured on the basis of the Hall module provided in the above embodiment.

[0044] refer to Figure 2The Hall module provided in this solution includes a detection circuit 1, a switching control circuit 2, a switch Hall circuit 3 and a linear Hall circuit 4. The connection relationship between the detection circuit 1, the switching control circuit 2, the switch Hall circuit 3 and the linear Hall circuit 4 can refer to the above embodiment, and this solution will not repeat it.

[0045] Among them, the difference between the Hall module provided by this scheme and the above-mentioned Hall module is that the output end of the switching control circuit 2 provided by this scheme is also connected to the switch Hall circuit 3 (the detection circuit 1 is connected to the switch Hall circuit 3 and the linear Hall circuit 4 through the switching control circuit 2), and the switching control circuit 2 provided by this scheme can also be used to switch the linear Hall circuit 4 to sleep mode or working mode, and make the working mode of the switch Hall circuit 3 the same as the working mode of the linear Hall circuit 4.

[0046] For example, when the enable signal is not sent to the enable end of the Hall module, the switching control circuit 2 makes the switch Hall circuit 3 work in the working mode, and the linear Hall circuit 4 works in the sleep mode. At this time, the switch Hall circuit 3 with lower power consumption is used for detection, thereby reducing the power consumption of the linear Hall circuit 4. When the enable signal is sent to the enable end of the Hall module, the switching control circuit 2 makes the switch Hall circuit 3 work in the sleep mode, and the linear Hall circuit 4 works in the working mode. At this time, the linear Hall circuit 4 is used for detection and outputs the corresponding linear Hall detection signal, thereby reducing the power consumption of the switch Hall circuit 3.

[0047] In one embodiment, the switching circuit provided by the present solution can realize the switching of the linear Hall circuit 4 between the working mode and the sleep mode by connecting and disconnecting the connection between the linear Hall circuit 4 and the detection circuit 1, and can realize the switching of the linear Hall circuit 4 between the sleep mode and the working mode by disconnecting and connecting the connection between the switch Hall circuit 3 and the detection circuit 1.

[0048] Exemplarily, the detection circuit 1 in the Hall module detects the change of the magnetic field, and the detection circuit 1 outputs a magnetic field detection signal to the switch Hall circuit 3. The switch Hall circuit 3 receives the magnetic field detection signal, and determines whether to output a wake-up signal based on the received magnetic field detection signal. For example, when there is no detection target (such as human body, metal material, etc. that can cause magnetic field change) within the detection range of the detection circuit 1, or when the distance between the detection target and the detection circuit 1 is greater than the set distance threshold, the wake-up signal is not output. At this time, the switching control circuit 2 enables the linear Hall circuit 4 to work in the sleep mode, and waits for the approach of the detection target with lower power consumption (the working power consumption of the switch Hall circuit 3 is lower than the working power consumption of the linear Hall circuit 4), reduces power consumption, and enables the switch Hall circuit 3 to work in the working mode to continuously detect the approach of the detection target.

[0049] When there is a detection target within the detection range of the detection circuit 1, or the distance between the detection target and the detection circuit 1 is within the set distance threshold, the switch Hall circuit 3 outputs a wake-up signal. Optionally, when it is detected that the Hall module outputs a wake-up signal through the wake-up output terminal, an enable signal can be sent to the enable terminal of the Hall module, so that the switching control circuit 2 switches the linear Hall circuit 4 to the working mode based on the enable signal, and the linear Hall circuit 4 receives the magnetic field detection signal output by the detection circuit 1, and performs linear Hall detection based on the magnetic field detection signal, and outputs the corresponding linear Hall detection signal from the detection output terminal of the Hall module. When the detection target is detected, the linear Hall circuit 4 is turned on in time for detection to ensure the normal operation of the linear Hall detection, and the switch Hall circuit 3 is switched to the sleep mode to reduce the power consumption of the switch Hall circuit 3.

[0050] As mentioned above, when the switch Hall circuit 3 fails to detect the detection target based on the magnetic field detection signal, the second control module 8 controls the linear Hall circuit 4 to switch to the sleep mode and controls the switch Hall circuit 3 to work in the working mode through the switching control circuit 2, thereby reducing the power consumption of the linear Hall circuit 4, and continuously detecting the approach of the detection target, and outputting the corresponding wake-up signal when the detection target is detected. The second control module 8 can control the linear Hall circuit 4 to switch to the working mode through the switching control circuit 2 to work, and control the switch Hall circuit 3 to enter the sleep mode, thereby reducing the power consumption of the switch Hall circuit 3, and effectively reducing the power consumption of the linear Hall circuit 4 while ensuring timely and correct linear Hall detection, thereby reducing power consumption.

[0051] Based on the above embodiments, Figure 3 A principle block diagram of a third Hall module provided in an embodiment of the present application is given. The Hall module provided in this solution can be further configured on the basis of the Hall module provided in any of the above embodiments.

[0052] like Figure 3 As shown, the Hall module provided in the embodiment of the present application includes a detection circuit 1, a switching control circuit 2, a switch Hall circuit 3 and a linear Hall circuit 4. Among them, the switching control circuit 2 provided in this solution includes a first switch element 21. The peripheral circuits of each component provided in this solution can be set as needed, and this application will not repeat them.

[0053] The switch element (including the first switch element 21-the fourth switch element 24) provided in the present application is configured with a control end, a first connection end and a second connection end, and the on-off between the first connection end and the second connection end can be controlled by the control end. Optionally, the switch element provided in the present application can be a combination of one or more of a MOS tube (such as an NMOS tube, a PMOS tube, etc.), a triode (such as an NPN-type triode, a PNP-type triode, etc.), an insulated gate bipolar transistor, a micro switch (such as a single-pole single-throw, a single-pole multiple-throw micro switch, etc.). For example, when a MOS tube is used as a switch element, the corresponding control end, the first connection end and the second connection end can be a gate, a source and a drain, and when a triode is used as a switch element, the corresponding control end, the first connection end and the second connection end can be a base, a collector and an emitter. When a single-pole multi-throw (e.g., single-pole double-throw) microswitch is used as a switching element, the fixed end of the microswitch is connected to the output end of the detection circuit 1, and the two active ends of the microswitch are respectively connected to the switch Hall circuit 3 and the linear Hall circuit 4. The detection circuit 1 is switched between the switch Hall circuit 3 and the linear Hall circuit 4 through the microswitch.

[0054] The control end of the first switch element 21 provided in this solution serves as the enable end of the Hall module, the first connection end of the first switch element 21 is connected to the detection circuit 1, and the second connection end of the first switch element 21 is connected to the linear Hall circuit 4. When the first connection end and the second connection end of the first switch element 21 are connected, the linear Hall circuit 4 operates in the working mode, and when the first connection end and the second connection end of the first switch element 21 are disconnected, the linear Hall circuit 4 operates in the sleep mode.

[0055] Exemplarily, the switch Hall circuit 3 receives a magnetic field detection signal, and determines whether to output a wake-up signal based on the received magnetic field detection signal. For example, when there is no detection target within the detection range of the detection circuit 1, or the distance between the detection target and the detection circuit 1 is greater than a set distance threshold, no wake-up signal is output. At this time, a control signal for controlling the disconnection of the first switch element 21 can be sent to the enable end of the Hall module to disconnect the linear Hall circuit 4 and the detection circuit 1, so that the linear Hall circuit 4 operates in sleep mode, waiting for the approach of the detection target with lower power consumption, thereby reducing power consumption.

[0056] When there is a detection target within the detection range of the detection circuit 1, or the distance between the detection target and the detection circuit 1 is within the set distance threshold, the switch Hall circuit 3 outputs a wake-up signal. Optionally, when it is detected that the Hall module outputs a wake-up signal through the wake-up output terminal, an enable signal (a control signal for controlling the conduction of the first switch element 21) is sent to the enable terminal of the Hall module, and the linear Hall circuit 4 and the detection circuit 1 are connected to switch the linear Hall circuit 4 to the working mode. The linear Hall circuit 4 receives the magnetic field detection signal output by the detection circuit 1, and performs linear Hall detection based on the magnetic field detection signal, and outputs the corresponding linear Hall detection signal from the detection output terminal of the Hall module. When the detection target is detected, the linear Hall circuit 4 is turned on in time for detection to ensure the normal operation of the linear Hall detection. This scheme realizes the switching of the linear Hall circuit 4 between the working mode and the sleep mode through the first switch element 21, accurately and effectively reducing the power consumption of the linear Hall circuit 4, and reducing power consumption.

[0057] In a possible embodiment, the switching control circuit 2 provided by the present scheme also includes a second switching element 22, and the on-off state of the second switching element 22 is opposite to the on-off state of the first switching element 21, that is, when the first connection end and the second connection end of the first switching element 21 are connected, the first connection end and the second connection end of the second switching element 22 are disconnected, and when the first connection end and the second connection end of the first switching element 21 are disconnected, the first connection end and the second connection end of the second switching element 22 are connected.

[0058] The control end of the second switch element 22 provided in this solution is connected to the control end of the first switch element 21, and the first connection end of the second switch element 22 is connected to the detection circuit 1, and the second connection end of the second switch element 22 is connected to the switch Hall circuit 3. At this time, the first switch element 21 and the second switch element 22 can be simultaneously controlled by the enable end of the Hall module. For example, the first switch element 21 is in a normally open state under normal conditions (no enable signal is sent to the enable end of the Hall module), and the second switch element 22 is in a normally closed state under normal conditions. When an enable signal is sent to the enable end of the Hall module, the first switch element 21 is turned on and the second switch element 22 is turned off.

[0059] For example, when the enable signal is not sent to the enable end of the Hall module, the second switch element 22 is turned on so that the switch Hall circuit 3 works in the working mode, and the first switch element 21 is turned off so that the linear Hall circuit 4 works in the sleep mode. At this time, the switch Hall circuit 3 with lower power consumption is used for detection, thereby reducing the power consumption of the linear Hall circuit 4. When the enable signal is sent to the enable end of the Hall module, the second switch element 22 is turned off so that the switch Hall circuit 3 works in the sleep mode, and the first switch element 21 is closed so that the linear Hall circuit 4 works in the working mode. At this time, the linear Hall circuit 4 is used for detection and the corresponding linear Hall detection signal is output, thereby reducing the power consumption of the switch Hall circuit 3. This solution controls the linear Hall circuit 4 and the switch Hall circuit 3 through the first switch element 21 and the second switch element 22 with opposite on and off states, thereby effectively reducing the power consumption of the linear Hall circuit 4 while ensuring timely and correct linear Hall detection, thereby reducing power consumption.

[0060] As described above, by connecting the detection circuit 1 with the switch Hall circuit 3 and the linear Hall circuit 4, the output end of the switch Hall circuit 3 serves as the wake-up output end of the Hall module, the output end of the linear Hall circuit 4 serves as the detection output end of the Hall module, the control output end of the switching control circuit 2 is connected to the linear Hall circuit 4, and the control input end of the switching control circuit 2 serves as the enable end of the Hall module. The linear Hall circuit 4 can output a linear Hall detection signal according to the received magnetic field detection signal, the detection circuit 1 can detect the magnetic field change and output the magnetic field detection signal, the switch Hall circuit 3 can output a wake-up signal according to the received magnetic field detection signal, and the switching control circuit 2 can switch the linear Hall circuit 4 to the working mode or the sleep mode. When the switch Hall circuit 3 fails to detect the detection target based on the magnetic field detection signal, the switching control circuit 2 controls the linear Hall circuit 4 to switch to the sleep mode to reduce the power consumption of the linear Hall circuit 4, and outputs the corresponding wake-up signal when the detection target is detected. The switching control circuit 2 can control the linear Hall circuit 4 to switch to the working mode to work, thereby ensuring timely and correct linear Hall detection, and effectively reducing the power consumption of the linear Hall circuit 4 while ensuring the linear Hall detection effect, thereby reducing energy consumption. At the same time, the first switch element 21 is used to switch the linear Hall circuit 4 between the working mode and the sleep mode, which accurately and effectively reduces the power consumption of the linear Hall circuit 4. The linear Hall circuit 4 and the switch Hall circuit 3 can also be controlled by the first switch element 21 and the second switch element 22 with opposite on and off states, which effectively reduces the power consumption of the linear Hall circuit 4 while ensuring timely and correct linear Hall detection.

[0061] Based on the above embodiments, Figure 4A principle block diagram of a fourth Hall module provided in an embodiment of the present application is given. The Hall module provided in this solution can be further configured on the basis of the Hall module provided in any of the above embodiments.

[0062] like Figure 4 As shown, the Hall module provided in the embodiment of the present application includes a detection circuit 1, a switching control circuit 2, a switch Hall circuit 3 and a linear Hall circuit 4. Among them, the linear Hall circuit 4 provided in this solution includes a first amplifier 41 and a first follower 42, the input end of the first amplifier 41 is connected to the detection circuit 1, the output end of the first amplifier 41 is connected to the input end of the first follower 42, and the output end of the first follower 42 is the detection output end of the Hall module.

[0063] Among them, the first amplifier 41 provided in this solution can be used to receive and amplify the magnetic field detection signal output by the detection circuit 1, and the first follower 42 can be used to filter the amplified magnetic field detection signal and enhance the driving ability of the signal output. The signal output from the first follower 42 can be output as a linear Hall detection signal. This solution implements the function of linear Hall detection through the first amplifier 41 and the first follower 42 to ensure that the linear Hall detection is performed correctly.

[0064] In a possible embodiment, the switch Hall circuit 3 provided by the present solution includes a comparator 31 and an output logic gate 32. The input end of the comparator 31 is connected to the detection circuit 1, the output end of the comparator 31 is connected to the input end of the output logic gate 32, and the output end of the output logic gate 32 serves as the wake-up output end of the Hall module.

[0065] The comparator 31 provided in this solution can be used to compare the voltage corresponding to the received signal with the set reference voltage and output the corresponding comparison result. For example, the non-inverting input terminal of the comparator 31 is connected to the output terminal of the detection circuit 1, and the inverting input terminal of the comparator 31 is connected to the set reference voltage (for example, connected to a reference voltage module for providing a reference voltage). When the magnetic field detection signal output by the detection circuit 1 reaches the set reference voltage, the comparator 31 outputs a first comparison signal (for example, a high-level signal), and when the magnetic field detection signal output by the detection circuit 1 does not reach the set reference voltage, the comparator 31 outputs a second comparison signal (for example, a low-level signal). Correspondingly, when the comparator 31 outputs the first comparison signal, it can be considered that the approach of the detection target is detected.

[0066] The output logic gate 32 provided in this solution can be used to convert the signal (such as an analog signal) output by the comparator 31 into a logic signal, and output the corresponding logic signal from the wake-up output end of the Hall module. For example, when the comparator 31 outputs the first comparison signal, the output logic gate 32 converts the first comparison signal into a first logic signal (such as logic "1"); when the comparator 31 outputs the second comparison signal, the output logic gate 32 converts the second comparison signal into a second logic signal (such as logic "0"); when the wake-up output end of the Hall module outputs the first logic signal (the first logic signal is the enable signal at this time), it can be considered that the approach of the detection target is detected. This solution accurately processes the magnetic field detection signal output by the detection circuit 1 through the comparator 31 and the output logic gate 32, which consume less power than the linear Hall circuit 4, accurately judges the approach of the detection target, accurately determines the timing of waking up the linear Hall circuit 4, ensures timely and correct linear Hall detection, and effectively reduces the power consumption of the linear Hall circuit 4, thereby reducing power consumption.

[0067] In one embodiment, the switch Hall circuit 3 provided by the present solution further includes a second amplifier 34, wherein the input end of the second amplifier 34 is connected to the detection circuit 1, and the output end of the second amplifier 34 is connected to the input end of the comparator 31. The second amplifier 34 can be used to amplify the magnetic field detection signal output by the detection circuit 1, and the comparator 31 then compares the amplified magnetic field detection circuit 1 with the corresponding reference voltage. When the amplified magnetic field detection signal reaches the set reference voltage, the comparator 31 outputs a first comparison signal, and when the amplified magnetic field detection signal does not reach the set reference voltage, the comparator 31 outputs a second comparison signal. The present solution amplifies the magnetic field detection signal output by the detection circuit 1 through the second amplifier 34, thereby improving the accuracy of the timing of waking up the linear Hall circuit 4 and ensuring timely linear Hall detection.

[0068] In a possible embodiment, the switch Hall circuit 3 provided by the present solution further includes a second follower 33, the input end of the second follower 33 is connected to the detection circuit 1, and the output end of the second follower 33 is connected to the input end of the comparator 31. The second follower 33 can be used to filter the magnetic field detection signal and enhance the driving capability of the signal output, which can effectively improve the accuracy of the timing of waking up the linear Hall circuit 4 and ensure timely linear Hall detection.

[0069] Optionally, the switch Hall circuit 3 provided in the present solution may further include an output control module 35, the input end of the output control module 35 is connected to the output end of the comparator 31, and the output end of the output control module 35 is connected to the input end of the output logic gate 32. The output control module 35 can be used to invert, normally high, normally low, output pulses and other operations on the signal output by the comparator 31 to ensure that the corresponding signal is correctly output to the output logic gate 32.

[0070] As described above, the magnetic field detection signal output by the detection circuit 1 is accurately processed through the comparator 31 and the output logic gate 32, the approach of the detection target is accurately judged, and the timing of waking up the linear Hall circuit 4 is accurately determined, ensuring timely and correct linear Hall detection while effectively reducing the power consumption of the linear Hall circuit 4. The magnetic field detection signal output by the detection circuit 1 is amplified by the second amplifier 34 to improve the accuracy of the timing of waking up the linear Hall circuit 4 and ensure timely linear Hall detection.

[0071] Based on the above embodiments, Figure 5 A principle block diagram of a fifth Hall module provided in an embodiment of the present application is given. The Hall module provided in this solution can be further configured on the basis of the Hall module provided in any of the above embodiments.

[0072] Exemplarily, the switching control module provided by the present scheme includes a third switching element 23, the control end of the third switching element 23 serves as the enable end of the Hall module, the first connection end of the third switching element 23 is connected to the output end of the first amplifier 41, and the second connection end of the third switching element 23 is connected to the input end of the first follower 42.

[0073] Exemplarily, when the detection circuit 1 does not output a wake-up signal, a control signal for controlling the third switch element 23 to be disconnected can be sent to the enable end of the Hall module, thereby disconnecting the first amplifier 41 and the detection circuit 1, so that the linear Hall circuit 4 operates in sleep mode, waiting for the approach of the detection target with lower power consumption, thereby reducing power consumption.

[0074] When the detection circuit 1 outputs a wake-up signal, an enable signal (a control signal for controlling the conduction of the third switch element 23) can be sent to the enable end of the Hall module to connect the first amplifier 41 and the detection circuit 1. At this time, the linear Hall circuit 4 switches to the working mode, and the first amplifier 41 receives the magnetic field detection signal output by the detection circuit 1 and amplifies it. The amplified magnetic field detection signal is filtered by the first follower 42 and output as a linear Hall detection signal. When the detection target is detected, the linear Hall circuit 4 is turned on in time for detection to ensure the normal operation of the linear Hall detection. This solution uses the third switch element 23 to switch the linear Hall circuit 4 between the working mode and the sleep mode, accurately and effectively reducing the power consumption of the linear Hall circuit 4 and reducing power consumption.

[0075] In a possible embodiment, the switching control module provided by the present solution includes a fourth switch element 24. The control end of the fourth switch element 24 is connected to the enable end of the Hall module (it can be understood that the control ends of the third switch element 23 and the fourth switch element 24 are connected together and serve as the enable end of the Hall module), the first connection end of the fourth switch element 24 is connected to the detection circuit 1, and the second connection end of the fourth switch element 24 is connected to the input end of the second follower 33. The on-off state of the fourth switch element 24 is opposite to the on-off state of the third switch element 23.

[0076] For example, when the enable signal is not sent to the enable end of the Hall module, the fourth switch element 24 is turned on so that the detection circuit 1 is connected to the second follower 33, and the switch Hall circuit 3 works in the working mode. At this time, the switch Hall circuit 3 with lower power consumption is used for detection, thereby reducing the power consumption of the linear Hall circuit 4. When the enable signal is sent to the enable end of the Hall module, the fourth switch element 24 is turned off, so that the detection circuit 1 is disconnected from the second follower 33, and the switch Hall circuit 3 works in the sleep mode. The third switch element 23 is closed so that the linear Hall circuit 4 works in the working mode. At this time, the linear Hall circuit 4 is used for detection and the corresponding linear Hall detection signal is output, thereby reducing the power consumption of the switch Hall circuit 3. This solution accurately controls the switch Hall circuit 3 through the fourth switch element 24, and can put the switch Hall circuit 3 into sleep mode when the linear Hall circuit 4 is awakened, thereby reducing the power consumption of the switch Hall circuit 3.

[0077] In one embodiment, the detection circuit 1 provided by the present solution includes a detection element 11 (e.g., a Hall plate), which is connected to the switch Hall circuit 3 and the linear Hall circuit 4. The detection element 11 can detect the magnetic field change in the detection area to ensure timely and accurate linear Hall detection. Optionally, the detection element 11 can be a Hall sensing electrode sheet.

[0078] In one embodiment, the detection circuit 1 provided by the present solution further includes a temperature compensation module 13, and the temperature compensation module 13 provided by the present solution is connected to the detection element 11. The temperature compensation module 13 provided by the present solution can be used to perform temperature compensation with the detection element 11, so as to improve the accuracy of the detection element 11 in detecting changes in the magnetic field. Optionally, the detection circuit 1 provided by the present solution further includes a signal calibration compensation module 14, the input end of the signal calibration compensation module 14 is connected to the output end of the detection element 11, and the output end of the signal calibration compensation module 14 serves as the output end of the detection circuit 1. The signal calibration compensation module 14 can be used to calibrate the magnetic field detection signal output by the detection element 11, reduce the situation where the process differences of different detection elements 11 lead to inconsistent outputs under the same magnetic field strength, and improve the detection accuracy of the detection target.

[0079] As described above, the function of linear Hall detection is realized by the first amplifier 41 and the first follower 42 to ensure correct linear Hall detection, and the switching of the linear Hall circuit 4 between the working mode and the sleep mode is realized by the third switch element 23, so as to accurately and effectively reduce the power consumption of the linear Hall circuit 4, and the control of the switch Hall circuit 3 is accurately realized by the fourth switch element 24, so that the switch Hall circuit 3 can be put into sleep mode when the linear Hall circuit 4 is awakened, thereby reducing the power consumption of the switch Hall circuit 3.

[0080] Based on the above embodiments, Figure 6 A principle block diagram of a sixth Hall module provided in an embodiment of the present application is given. The Hall module provided in this solution can be further configured on the basis of the Hall module provided in any of the above embodiments.

[0081] The Hall module provided in this solution includes a detection circuit 1, a switching control circuit 2, a switch Hall circuit 3 and a linear Hall circuit 4. Among them, the detection circuit 1 provided in this solution includes a detection element 11, and the detection element 11 is connected to the switch Hall circuit 3 and the linear Hall circuit 4. The detection element 11 can detect the change of the magnetic field in the detection area to ensure timely and accurate linear Hall detection.

[0082] The difference between the Hall module provided in this solution and the Hall module provided in the above embodiment is that the detection circuit 1 provided in this solution also includes a third amplifier 12, wherein the second amplifier 34 may be configured in the switch Hall circuit 3, or the second amplifier 34 may not be configured, and the linear Hall circuit 4 and the switch Hall circuit 3 share the third amplifier 12. The input end of the third amplifier 12 provided in this solution is connected to the detection circuit 1 (for example, connected to the detection element 11 through the signal calibration compensation module 14), and the output end of the third amplifier 12 is connected to the switch Hall circuit 3 and the linear Hall circuit 4 (for example, the output end of the third amplifier 12 is connected to the switch Hall circuit 3 and the linear Hall circuit 4). In this solution, the linear Hall circuit 4 and the switch Hall circuit 3 share the third amplifier 12, which can reduce the number of amplifiers configured, effectively reduce the cost of the Hall module, and reduce the volume of the Hall module.

[0083] Based on the above embodiments, Figure 7 A principle block diagram of a seventh Hall module provided in an embodiment of the present application is given. The Hall module provided in this solution can be further configured on the basis of the Hall module provided in any of the above embodiments.

[0084] The switch elements provided in the present scheme can be a linked single-pole double-throw first switch and a single-pole double-throw second switch. The detection circuit 1 is configured with a first output end and a second output end, and is respectively connected to the fixed end of the first switch and the fixed end of the second switch. The first active end of the first switch is connected to the non-inverting input end of the first amplifier 41, and the second active end is connected to the non-inverting input end of the second amplifier 34. The first active end of the second switch is connected to the inverting input end of the first amplifier 41, and the second active end is connected to the inverting input end of the second amplifier 34.

[0085] Among them, when the first switch and the second switch are in normal state (no enable signal is sent to the enable end of the Hall module), the fixed ends of the first switch and the second switch are connected to their corresponding second active ends, so that the detection circuit 1 is connected to the second amplifier 34, and the connection between the detection circuit 1 and the first amplifier 41 is cut off. At this time, the linear Hall circuit 4 operates in sleep mode, waiting for the approach of the detection target with lower power consumption, thereby reducing power consumption.

[0086] When an enable signal is sent to the enable end of the Hall module, the fixed ends of the first switch and the second switch are connected to their corresponding first active ends, the connection between the detection circuit 1 and the second amplifier 34 is switched, and the detection circuit 1 and the first amplifier 41 are connected. When the detection target is detected, the linear Hall circuit 4 is turned on in time for detection to ensure the normal progress of the linear Hall detection, and the switch Hall circuit 3 is switched to sleep mode to reduce the power consumption of the switch Hall circuit 3.

[0087] As described above, the connection between the detection circuit 1 and the switch Hall circuit 3 and the linear Hall circuit 4 can be switched synchronously through the linked first switch and the second switch, and the switching between the switch Hall detection in the sleep state and the linear Hall detection when the target is detected can be accurately realized. While ensuring timely and correct linear Hall detection, the power consumption of the linear Hall circuit 4 is effectively reduced, thereby reducing power consumption.

[0088] Based on the above embodiments, Figure 8 A principle block diagram of a Hall chip provided in an embodiment of the present application is given. Figure 8 , the Hall chip includes a Hall module as provided in any of the above embodiments. Among them, the ports (pins) configured on the Hall chip provided in this solution correspond to the pins configured on the Hall module, and the Hall chip is configured with a power supply terminal, a wake-up output terminal, a detection output terminal, and an enable terminal, which correspond to the power supply terminal, the wake-up output terminal, the detection output terminal, and the enable terminal on the Hall module.

[0089] In the above, by configuring a Hall module in the Hall chip, wherein the detection circuit is connected to the switch Hall circuit and the linear Hall circuit, the output end of the switch Hall circuit serves as the wake-up output end of the Hall module, the output end of the linear Hall circuit serves as the detection output end of the Hall module, the control output end of the switching control circuit is connected to the linear Hall circuit, and the control input end of the switching control circuit serves as the enable end of the Hall module. The linear Hall circuit can output a linear Hall detection signal according to the received magnetic field detection signal, the detection circuit can detect the magnetic field change and output the magnetic field detection signal, the switch Hall circuit can output a wake-up signal according to the received magnetic field detection signal, and the switching control circuit can switch the linear Hall circuit to a working mode or a sleep mode. When the switch Hall circuit fails to detect the detection target based on the magnetic field detection signal, the switching control circuit controls the linear Hall circuit to switch to the sleep mode to reduce the power consumption of the linear Hall circuit, and outputs the corresponding wake-up signal when the detection target is detected. The switching control circuit can control the linear Hall circuit to switch to the working mode to work, thereby ensuring timely and correct linear Hall detection, and effectively reducing the power consumption of the linear Hall circuit while ensuring the linear Hall detection effect, thereby reducing energy consumption.

[0090] Based on the above embodiments, Fig. 9 A functional block diagram of an electronic device provided in an embodiment of the present application is given. Fig. 9 The electronic device includes a first control module 6 and one or more Hall modules as provided in any of the above embodiments or one or more Hall chips as provided in any of the above embodiments. The figure describes the setting of one Hall module or one Hall chip as an example.

[0091] The first control module 6 provided in this solution is respectively connected to the wake-up output terminal, the detection output terminal and the enable terminal of each Hall module or Hall chip. The first control module 6 can perform linear Hall-based detection through the Hall module or Hall chip, and perform subsequent data analysis and / or execute set actions based on the linear Hall detection signal.

[0092] In one embodiment, the first control module 6 provided in the present solution can be used to send an enable signal to the enable end of the Hall module or the Hall chip when receiving a wake-up signal sent by the wake-up output end of the Hall module or the Hall chip (for example, the magnetic field detected by the linear Hall element changes or the magnetic field change reaches a set threshold), so that the switching control circuit 2 of the Hall module or the Hall chip switches the linear Hall circuit 4 to the working mode based on the enable signal. The first control module 6 can also be used to receive a linear Hall detection signal through the detection output end of the Hall module or the Hall chip, and perform a setting action based on the linear Hall detection signal.

[0093] Optionally, the first control module 6 provided in the present solution can work in working mode or sleep mode, and can switch between working mode and sleep mode, wherein the power consumption of the electronic device in sleep mode is lower than that in working mode. For example, when the first control module 6 is in sleep mode, it sends a non-enable signal (e.g., a low-level signal) to the enable end of the Hall module or the Hall chip. At this time, the switching control module in the Hall module or the Hall chip disconnects the connection between the linear Hall circuit 4 and the detection circuit 1, and detects the detection target by switching the Hall circuit 3. At this time, the first control module 6 and the Hall module or the Hall chip both work with low power consumption. When the wake-up output end of the Hall module or the Hall chip outputs a wake-up signal, the first control module 6 switches from sleep mode to working mode, and at the same time sends an enable signal (e.g., a high-level signal) to the enable end of the Hall module or the Hall chip. At this time, the switching control module in the Hall module or the Hall chip connects the connection between the linear Hall circuit 4 and the detection circuit 1, and detects through the linear Hall circuit 4, which can effectively reduce the power consumption of the electronic device in sleep mode, and can also wake up the first control module 6 based on the wake-up signal to realize automatic wake-up of the electronic device.

[0094] This solution controls the Hall module or Hall chip through the first control module 6, uses the switch Hall circuit 3 to detect the detection target, turns on the linear Hall circuit 4 to perform linear Hall detection when the detection target is detected, and obtains the linear Hall detection signal. While ensuring the linear Hall detection effect of the Hall module or Hall chip, the power consumption of the Hall module or Hall chip is effectively reduced when there is no detection target within the detection range.

[0095] As mentioned above, by connecting the first control module 6 with the wake-up output end, detection output end and enable end of the Hall module or Hall chip, when the switch Hall circuit 3 fails to detect the detection target based on the magnetic field detection signal, the first control module 6 controls the linear Hall circuit 4 to switch to the sleep mode through the switching control circuit 2, thereby reducing the power consumption of the linear Hall circuit 4, and outputs the corresponding wake-up signal when the detection target is detected. The first control module 6 can control the linear Hall circuit 4 to switch to the working mode through the switching control circuit 2 to ensure timely and correct linear Hall detection. While ensuring the linear Hall detection effect, it effectively reduces the power consumption of the linear Hall circuit 4 and reduces the energy consumption of electronic equipment.

[0096] Based on the above embodiments, Fig.10 A functional block diagram of a keyboard provided in an embodiment of the present application is given. Fig.10 The keyboard includes a circuit board body 7, a second control module 8, and a plurality of Hall modules or a plurality of Hall chips as provided in any of the above embodiments.

[0097] Among them, the second control module 8 provided by this solution is installed on the circuit board body 7, the Hall module or the Hall chip is installed on the circuit board body 7, and the circuit board body 7 is provided with multiple keycap installation positions (such as the dotted area in the figure), and the keycap installation positions correspond to one or more Hall modules or Hall chips. The tapping action on the keycap can be detected by the Hall module or the Hall chip. For example, the key detection signal output by the Hall module or the Hall chip is positively correlated or negatively correlated with the pressing depth of the keycap, and the keyboard input operation information of the keyboard is determined accordingly.

[0098] The second control module 8 is connected to the wake-up output terminal, the detection output terminal and the enable terminal of the Hall module or the Hall chip. The second control module 8 can perform linear Hall-based detection through the Hall module or the Hall chip, and generate keyboard input operation information based on the key detection signal (i.e., the linear Hall detection signal), and send it to the terminal device (such as a mobile phone, a tablet, a computer, etc.) connected to the keyboard by wire and / or wireless connection.

[0099] In one embodiment, the second control module 8 provided in the present solution can be used to send an enable signal to the enable end of the Hall module or the Hall chip when receiving a wake-up signal sent by the wake-up output end of the Hall module or the Hall chip (for example, the magnetic field detected by the linear Hall element changes or the magnetic field change reaches a set threshold), so that the switching control circuit 2 of the Hall module or the Hall chip switches the linear Hall circuit 4 to the working mode based on the enable signal. The second control module 8 can also be used to receive a linear Hall detection signal through the detection output end of the Hall module, and perform a setting action based on the linear Hall detection signal.

[0100] Optionally, the second control module 8 provided in this solution can work in working mode or sleep mode, and can switch between working mode and sleep mode, wherein the power consumption of the keyboard in sleep mode is lower than that in working mode. For example, when the second control module 8 is in sleep mode, it sends a non-enable signal (e.g., a low-level signal) to the enable end of the Hall module or the Hall chip. At this time, the switching control module in the Hall module or the Hall chip disconnects the connection between the linear Hall circuit 4 and the detection circuit 1, and detects the detection target by switching the Hall circuit 3. At this time, the second control module 8 and the Hall module or the Hall chip both work with low power consumption. When the wake-up output end of the Hall module or the Hall chip outputs a wake-up signal, the second control module 8 switches from sleep mode to working mode, and sends an enable signal (e.g., a high-level signal) to the enable end of the Hall module or the Hall chip. At this time, the switching control module in the Hall module or the Hall chip connects the connection between the linear Hall circuit 4 and the detection circuit 1, and detects through the linear Hall circuit 4, which can effectively reduce the power consumption of the keyboard in sleep mode, and can also wake up the second control module 8 based on the wake-up signal to realize automatic wake-up of the keyboard.

[0101] This solution controls the Hall module or Hall chip through the second control module 8, uses the switch Hall circuit 3 to detect the displacement of the keycap, turns on the linear Hall circuit 4 to perform linear Hall detection when the displacement of the keycap is detected, and obtains the key detection signal. While ensuring the linear Hall detection effect of the Hall module or Hall chip, the power consumption of the Hall module or Hall chip is effectively reduced when the keyboard is not operated.

[0102] As mentioned above, by connecting the second control module 8 with the wake-up output end, detection output end and enable end of the Hall module or Hall chip, when the switch Hall circuit 3 fails to detect the detection target based on the magnetic field detection signal, the second control module 8 controls the linear Hall circuit 4 to switch to the sleep mode through the switching control circuit 2, thereby reducing the power consumption of the linear Hall circuit 4, and outputs the corresponding wake-up signal when the detection target is detected. The second control module 8 can control the linear Hall circuit 4 to switch to the working mode through the switching control circuit 2 to ensure timely and correct linear Hall detection. While ensuring the linear Hall detection effect, it effectively reduces the power consumption of the linear Hall circuit 4 and reduces the energy consumption of the keyboard.

[0103] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments provided herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A Hall module, It is characterized in that It includes a detection circuit, a switching control circuit, a switch Hall circuit and a linear Hall circuit, wherein: The detection circuit is connected to the switch Hall circuit and the linear Hall circuit, and the detection circuit is used to detect magnetic field changes and output a magnetic field detection signal; The output end of the switch Hall circuit serves as the wake-up output end of the Hall module, and the switch Hall circuit is used to output a wake-up signal according to the received magnetic field detection signal; The output end of the linear Hall circuit serves as the detection output end of the Hall module, and the linear Hall circuit is used to output a linear Hall detection signal according to the received magnetic field detection signal; The control output end of the switching control circuit is connected to the linear Hall circuit, the control input end of the switching control circuit serves as the enable end of the Hall module, and the switching control circuit is used to switch the linear Hall circuit to a working mode or a sleep mode.

2. The Hall module according to claim 1, It is characterized in that The output end of the switching control circuit is also connected to the switch Hall circuit, and the switching control circuit is used to switch the linear Hall circuit to a sleep mode or a working mode.

3. The Hall module according to claim 1, It is characterized in that The switching control circuit comprises a first switch element, wherein: The control end of the first switch element serves as an enable end of the Hall module, the first connection end of the first switch element is connected to the detection circuit, and the second connection end of the first switch element is connected to the linear Hall circuit.

4. The Hall module according to claim 3, It is characterized in that The switching control circuit further includes a second switch element, the on-off state of the second switch element is opposite to the on-off state of the first switch element, wherein: The control end of the second switch element is connected to the control end of the first switch element, the first connection end of the second switch element is connected to the detection circuit, and the second connection end of the second switch element is connected to the switch Hall circuit.

5. The Hall module according to claim 1, It is characterized in that The linear Hall circuit includes a first amplifier and a first follower, the input end of the first amplifier is connected to the detection circuit, the output end of the first amplifier is connected to the input end of the first follower, and the output end of the first follower is the detection output end of the Hall module.

6. The Hall module according to claim 5, It is characterized in that The switching control module includes a third switch element, a control end of the third switch element serves as an enable end of the Hall module, a first connection end of the third switch element is connected to the output end of the first amplifier, and a second connection end of the third switch element is connected to the input end of the first follower.

7. The Hall module according to claim 1, It is characterized in that The switch Hall circuit includes a comparator and an output logic gate, the input end of the comparator is connected to the detection circuit, the output end of the comparator is connected to the input end of the output logic gate, and the output end of the output logic gate serves as the wake-up output end of the Hall module.

8. The Hall module according to claim 7, It is characterized in that The switch Hall circuit further includes a second amplifier, an input end of the second amplifier is connected to the detection circuit, and an output end of the second amplifier is connected to an input end of the comparator.

9. The Hall module according to claim 8, It is characterized in that The switch Hall circuit further includes a second follower, an input end of the second follower is connected to the detection circuit, and an output end of the second follower is connected to an input end of the comparator.

10. The Hall module according to claim 9, It is characterized in that The switching control module includes a fourth switch element, a control end of the fourth switch element is connected to the enable end of the Hall module, a first connection end of the fourth switch element is connected to the detection circuit, and a second connection end of the fourth switch element is connected to the input end of the second follower.

11. The Hall module according to claim 1, It is characterized in that The detection circuit includes a detection element, and the detection element is connected to the switch Hall circuit and the linear Hall circuit.

12. The Hall module according to claim 11, It is characterized in that The detection circuit further includes a third amplifier, an input end of the third amplifier is connected to the detection circuit, and an output end of the third amplifier is connected to the switch Hall circuit and the linear Hall circuit.

13. The Hall module according to claim 1, It is characterized in that The Hall module further includes a power supply circuit, and the power supply circuit is used to supply power to electrical devices in the Hall module.

14. A Hall chip, It is characterized in that Comprising a Hall module as described in any one of claims 1-13.

15. An electronic device, It is characterized in that It comprises a first control module and the Hall module according to any one of claims 1 to 13 or the Hall chip according to claim 14, wherein the first control module is connected to the wake-up output terminal, the detection output terminal and the enable terminal of the Hall module or the Hall chip.

16. The electronic device according to claim 15, It is characterized in that The first control module is used to send an enable signal to the enable end of the Hall module or the Hall chip when receiving a wake-up signal sent by the wake-up output end of the Hall module or the Hall chip, so that the switching control circuit of the Hall module or the Hall chip switches the linear Hall circuit to the working mode based on the enable signal; the first control module is also used to receive a linear Hall detection signal through the detection output end of the Hall module or the Hall chip.

17. A keyboard, It is characterized in that It comprises a circuit board body, a second control module, and a plurality of Hall modules according to any one of claims 1 to 13 or a plurality of Hall chips according to claim 14; The second control module is mounted on the circuit board body, the Hall module or the Hall chip is mounted on the circuit board body, the circuit board body is provided with a plurality of key cap mounting positions, and the key cap mounting positions correspond to one or more of the Hall modules or the Hall chips; The second control module is connected to the wake-up output terminal, the detection output terminal and the enable terminal of the Hall module or the Hall chip.

18. The keyboard according to claim 17, It is characterized in that The second control module is used to send an enable signal to the enable end of the Hall module or the Hall chip when receiving a wake-up signal sent by the wake-up output end of the Hall module or the Hall chip, so that the switching control circuit of the Hall module or the Hall chip switches the linear Hall circuit to the working mode based on the enable signal, and receives the key detection signal through the detection output end of the Hall module or the Hall chip.

Citation Information

Cited By

  • Row and column scanning control system based on dormancy and wake-up functional chip

    CN119758850A

  • Row and Column Scanning Control System Based on Sleep and Wake-up Function Chip

    CN119758850B

  • Linear Hall chip suitable for three-mode keyboard and application device thereof

    CN119847850A

  • Hall circuit and Hall chip

    CN120165676A

  • Self-adaptive low-power-consumption magnetic sensor structure and control method

    CN120490926A