Hall module, chip and electronic equipment
By introducing detection circuits, switching control circuits and switching Hall circuits into the Hall module, the sleep and working mode switching of the linear Hall circuit are achieved, and the problem of high energy consumption of linear Hall circuits in multiple Hall circuit matrix arrangement scenarios is solved, and the power consumption is reduced.
Patent Information
- Application Number
- CN202421703265.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2034-07-17
AI Technical Summary
The existing linear Hall circuit consumes a lot of power when working for a long time in multiple Hall circuit matrix arrangement scenarios, resulting in an increase in energy consumption.
By introducing detection circuits, switching control circuits and switching Hall circuits into the Hall module, the wake-up signal of the switching Hall circuit and the control of the switching control circuits can be used to realize the sleep and working mode switching of the linear Hall circuit, reducing unnecessary power consumption.
While ensuring the linear Hall detection effect, it effectively reduces the power consumption of the linear Hall circuit and reduces energy consumption.
Smart Images

Figure CN223274098U_ABST
Abstract
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] Existing linear Hall circuits generally have three pins: a power supply terminal (VCC), a ground terminal (GND), and an output terminal (OUT). The linear Hall circuit needs to be powered by the power supply terminal to operate normally.
[0003] In applications where multiple linear Hall circuits are arranged in a matrix and need to operate simultaneously, they must be powered simultaneously to detect changes in the magnetic field, convert these changes into corresponding electrical signals, and output the detection signals from the output terminals. Because the linear Hall circuits need to maintain power to ensure their proper operation, they consume significant amounts of power over extended periods of operation, leading to increased energy consumption. Utility Model Content
[0004] The embodiments of the present application provide a Hall module, chip and 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. It 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 working mode or sleep mode.
[0010] In the embodiment of the present application, a detection circuit is connected to a switch Hall circuit and a 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 based on the received magnetic field detection signal. The detection circuit can detect magnetic field changes and output a magnetic field detection signal. The switch Hall circuit can output a wake-up signal based on the received magnetic field detection signal. The switching control circuit can switch the linear Hall circuit to an operating 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, thereby reducing the power consumption of the linear Hall circuit. When a detection target is detected, a corresponding wake-up signal is output. The switching control circuit can control the linear Hall circuit to switch to the operating mode to ensure 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] In an embodiment of the present application, a Hall module is configured in a Hall chip, wherein a detection circuit is connected to a switch Hall circuit and a linear Hall circuit. The output end of the switch Hall circuit serves as a wake-up output end of the Hall module, and the output end of the linear Hall circuit serves as a 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 an enable end of the Hall module. The linear Hall circuit can output a linear Hall detection signal based on a received magnetic field detection signal. The detection circuit can detect magnetic field changes and output a magnetic field detection signal. The switch Hall circuit can output a wake-up signal based on the received magnetic field detection signal. The switching control circuit can switch the linear Hall circuit to an operating 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, thereby reducing the power consumption of the linear Hall circuit. When a detection target is detected, a corresponding wake-up signal is output. The switching control circuit can control the linear Hall circuit to switch to the operating mode to ensure timely and accurate 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.
[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 the wake-up output terminal, the detection output terminal and the 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, detection output and enable end 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 first control module controls the linear Hall circuit to switch to sleep mode through the switching control circuit, thereby reducing the power consumption of the linear Hall circuit. When the detection target is detected, the corresponding wake-up signal is output. The first control module can control the linear Hall circuit to switch to 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 keycap mounting positions, and the keycap mounting positions correspond to one or more 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 with the wake-up output end, detection output end and enable end 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 sleep mode through the switching control circuit, thereby reducing the power consumption of the linear Hall circuit. When the detection target is detected, the corresponding wake-up signal is output. The second control module can control the linear Hall circuit to switch to 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 an embodiment of the present application;
[0020] Figure 2This is a principle block diagram of the second Hall module provided in an embodiment of the present application;
[0021] Figure 3 This is a principle block diagram of the third Hall module provided in an embodiment of the present application;
[0022] Figure 4 This is a principle block diagram of the fourth Hall module provided in an embodiment of the present application;
[0023] Figure 5 This is a principle block diagram of the fifth Hall module provided in an embodiment of the present application;
[0024] Figure 6 This is a principle block diagram of the sixth Hall module provided in an embodiment of the present application;
[0025] Figure 7 This is a principle block diagram of the seventh Hall module provided in an embodiment of the present application;
[0026] Figure 8 This is a principle block diagram of a Hall chip provided in an embodiment of the present application.
[0027] Figure 9 This is a principle block diagram of an electronic device provided in an embodiment of the present application;
[0028] Figure 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 switching element; 22. Second switching element; 23. Third switching element; 24. Fourth switching element; 25. First switch; 26. Second switch; 3. Switching 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 main body; 8. Second control module. DETAILED DESCRIPTION
[0030] To make the objectives, technical solutions, and advantages of this application more apparent, specific embodiments of this application are described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are intended only to illustrate this application and are not intended to limit this application. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to this application, not all of the content.
[0031] In the description of the embodiments of the present application, unless otherwise expressly specified or limited, the terms "connected," "connected," and "fixed" should be understood in a broad sense. For example, they can be fixedly connected, detachably connected, or integrated; they can be mechanically connected or electrically connected; they can be directly connected or indirectly connected through an intermediate medium; they can be internal communication between two elements or an interactive relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in this 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 flowcharts describe the various operations (or steps) as sequential processes, many of the operations can be performed in parallel, concurrently, or simultaneously. In addition, the order of the operations can be rearranged. The above process can be terminated when its operations are completed, but it can also have additional steps not included in the figures. The above process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[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] The detection circuit 1 provided in this solution can be used to detect changes in the magnetic field and output a magnetic field detection signal. The switch Hall circuit 3 can be used to output a wake-up signal based on the received magnetic field detection signal. The linear Hall circuit 4 can be used to output a linear Hall detection signal based on the received magnetic field detection signal. The switching control circuit 2 can be used to switch the linear Hall circuit 4 to an operating mode or a sleep mode. Optionally, the detection circuit 1 provided in this solution can include a Hall sensing electrode sheet (e.g., a Hall sheet WAFE).
[0035] In one embodiment, the switching circuit provided by this 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 changes in 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 the human body, metal materials, and other objects that can cause magnetic field changes) within the detection range of the detection circuit 1, or if 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, the switching control circuit 2 causes the linear Hall circuit 4 to operate in sleep mode, waiting for the detection target to approach with lower power consumption (the operating power consumption of the switch Hall circuit 3 is lower than that of the linear Hall circuit 4), thereby reducing power consumption.
[0037] When a detection target exists within the detection range of the detection circuit 1, or the distance between the detection target and the detection circuit 1 is within a 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. 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 a 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 promptly turned on for detection to ensure the normal operation 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 between the detection target and the detection circuit 1, and / or negatively correlated or positively correlated with the detected magnetic field intensity.
[0038] Optionally, the present application can achieve the goal of not outputting the wake-up signal by outputting a second level signal (low level signal or high level signal), and correspondingly, can output the wake-up signal by outputting a first level signal (high level signal or low level signal).
[0039] Optionally, the Hall module provided by this solution can be used with an external power supply. In this case, the voltage supplied to various locations 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 this solution further includes a power supply circuit 5. The input end of the power supply circuit 5 can be used as the power 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 power the electrical components in the Hall module based on the external power supply. Optionally, the power supply circuit 5 can perform voltage conversion processing of multiple voltage levels of the external power supply (for example, the power supply circuit 5 is set to multiple power sub-circuits corresponding to different voltage levels) to provide corresponding operating 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 effect module provided by this solution can also be configured with a communication module. This communication module can connect and control the power supply corresponding to each module within the Hall effect module, or read the status of each module and each component through communication methods such as daisy chain communication or I2C communication. The Hall effect module can also be configured with a constant current drive control module, which can control external LED lights through the constant current drive control module, achieving more comprehensive control effects for the Hall effect 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 based on the received magnetic field detection signal. The detection circuit 1 can detect magnetic field changes and output magnetic field detection signals. The switch Hall circuit 3 can output a wake-up signal based on the received magnetic field detection signal. The switching control circuit 2 can switch the linear Hall circuit 4 to an operating mode or a sleep mode. When the switch Hall circuit 3 fails to detect a 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, thereby reducing the power consumption of the linear Hall circuit 4. When a detection target is detected, a corresponding wake-up signal is output. The switching control circuit 2 controls the linear Hall circuit 4 to switch to the operating mode to ensure timely and correct linear Hall detection. While ensuring the linear Hall detection effect, the power consumption of the linear Hall circuit 4 is effectively reduced, 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 will not be repeated in this solution.
[0045] Among them, the difference between the Hall module provided by this solution and the above-mentioned Hall module is that the output end of the switching control circuit 2 provided by this solution 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). The switching control circuit 2 provided by this solution 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 and the working mode of the linear Hall circuit 4 the same.
[0046] For example, when no enable signal is sent to the enable terminal of the Hall module, the switching control circuit 2 causes the switch Hall circuit 3 to operate in the working mode and the linear Hall circuit 4 to operate in the sleep mode. At this time, detection is performed by the switch Hall circuit 3, which consumes less power, reducing the power consumption of the linear Hall circuit 4. When an enable signal is sent to the enable terminal of the Hall module, the switching control circuit 2 causes the switch Hall circuit 3 to operate in the sleep mode and the linear Hall circuit 4 to operate in the working mode. At this time, detection is performed by the linear Hall circuit 4 and the corresponding linear Hall detection signal is output, reducing the power consumption of the switch Hall circuit 3.
[0047] In one embodiment, the switching circuit provided by this 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 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 changes in 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 the human body, metal materials, and other objects that can cause magnetic field changes) within the detection range of the detection circuit 1, or if the distance between the detection target and the detection circuit 1 is greater than the set distance threshold, no wake-up signal is output. At this time, the switching control circuit 2 enables the linear Hall circuit 4 to operate in sleep mode, waiting for the approach of the detection target with lower power consumption (the operating power consumption of the switch Hall circuit 3 is lower than that of the linear Hall circuit 4), reducing power consumption, and enabling the switch Hall circuit 3 to operate in working mode to continuously detect the approach of the detection target.
[0049] When a detection target exists 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. 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 a 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 promptly turned on 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 does not 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 operate 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. When the detection target is detected, the corresponding wake-up signal is output. 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. While ensuring timely and correct linear Hall detection, the power consumption of the linear Hall circuit 4 is effectively reduced, 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. The switching control circuit 2 provided in this solution includes a first switching element 21. The peripheral circuits of the various components provided in this solution can be configured as needed and will not be described in detail in this application.
[0053] The switch element provided in the present application (including the first switch element 21 to the fourth switch element 24) 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 the gate, the source and the drain. When a triode is used as a switch element, the corresponding control end, the first connection end and the second connection end can be the base, the collector and the 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 microswitch enables the detection circuit 1 to switch the connection between the switch Hall circuit 3 and the linear Hall circuit 4.
[0054] The control end of the first switching element 21 provided in this solution serves as the enable end of the Hall module. The first connection end of the first switching element 21 is connected to the detection circuit 1, and the second connection end of the first switching element 21 is connected to the linear Hall circuit 4. When the first connection end and the second connection end of the first switching element 21 are connected, the linear Hall circuit 4 operates in the working mode. When the first connection end and the second connection end of the first switching 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 the set distance threshold, no wake-up signal is output. At this time, a control signal for controlling the disconnection of the first switching 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 and waits 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) can be 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 a 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 promptly turned on for detection to ensure the normal operation of the linear Hall detection. This solution uses the first switch element 21 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.
[0057] In one possible embodiment, the switching control circuit 2 provided by the present solution further 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. In this case, the first switch element 21 and the second switch element 22 can be simultaneously controlled to be on and off 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 no enable signal is sent to the enable terminal of the Hall module, the second switch element 22 is turned on, causing the switch Hall circuit 3 to operate in the working mode, and the first switch element 21 is turned off, causing the linear Hall circuit 4 to operate in the sleep mode. At this time, detection is performed by the switch Hall circuit 3, which consumes less power, thereby reducing the power consumption of the linear Hall circuit 4. When an enable signal is sent to the enable terminal of the Hall module, the second switch element 22 is turned off, causing the switch Hall circuit 3 to operate in the sleep mode, and the first switch element 21 is closed, causing the linear Hall circuit 4 to operate in the working mode. At this time, detection is performed by the linear Hall circuit 4 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 by using the first switch element 21 and the second switch element 22 with opposite on-off states. While ensuring timely and accurate linear Hall detection, it effectively reduces the power consumption of the linear Hall circuit 4, 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 based on the received magnetic field detection signal. The detection circuit 1 can detect magnetic field changes and output magnetic field detection signals. The switch Hall circuit 3 can output a wake-up signal based on the received magnetic field detection signal. The switching control circuit 2 can switch the linear Hall circuit 4 to an operating mode or a sleep mode. When the switch Hall circuit 3 fails to detect a 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, thereby reducing the power consumption of the linear Hall circuit 4. When a detection target is detected, a corresponding wake-up signal is output. The switching control circuit 2 controls the linear Hall circuit 4 to switch to the operating mode to ensure timely and correct linear Hall detection. While ensuring the linear Hall detection effect, the power consumption of the linear Hall circuit 4 is effectively reduced, thereby reducing energy consumption. At the same time, the first switching element 21 switches the linear Hall circuit 4 between the operating mode and the sleep mode, effectively reducing the power consumption of the linear Hall circuit 4 and thus reducing power consumption. The first switching element 21 and the second switching element 22, which have opposite on and off states, can also be used to control the linear Hall circuit 4 and the switch Hall circuit 3, effectively reducing the power consumption of the linear Hall circuit 4 and thus reducing power consumption while ensuring timely and accurate 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 based on 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] 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. The first follower 42 can be used to filter the amplified magnetic field detection signal and enhance the driving capability 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 linear Hall detection function through the first amplifier 41 and the first follower 42, ensuring that the linear Hall detection is performed correctly.
[0064] In one possible embodiment, the switch Hall circuit 3 provided by this 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 of the comparator 31 is connected to the output of the detection circuit 1, and the inverting input 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 output by the comparator 31 (e.g., an analog signal) into a logic signal and output the corresponding logic signal from the wake-up output terminal of the Hall module. For example, when the comparator 31 outputs a first comparison signal, the output logic gate 32 converts the first comparison signal into a first logic signal (e.g., a logic "1"). When the comparator 31 outputs a second comparison signal, the output logic gate 32 converts the second comparison signal into a second logic signal (e.g., a logic "0"). When the first logic signal (the first logic signal is an enable signal) is output at the wake-up output terminal of the Hall module, it can be considered that the approach of the detection target has been detected. This solution uses the comparator 31 and output logic gate 32, which consume less power than the linear Hall circuit 4, to accurately process the magnetic field detection signal output by the detection circuit 1, accurately determine the proximity of the detection target, and accurately determine the timing of waking up the linear Hall circuit 4. This ensures timely and accurate linear Hall detection while effectively reducing the power consumption of the linear Hall circuit 4.
[0067] In one embodiment, the switch Hall circuit 3 provided by this solution further includes a second amplifier 34, wherein the input of the second amplifier 34 is connected to the detection circuit 1, and the output of the second amplifier 34 is connected to the input of the comparator 31. The second amplifier 34 can be used to amplify the magnetic field detection signal output by the detection circuit 1. The comparator 31 then compares the amplified magnetic field detection signal of the 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. When the amplified magnetic field detection signal does not reach the set reference voltage, the comparator 31 outputs a second comparison signal. This solution uses the second amplifier 34 to amplify the magnetic field detection signal output by the detection circuit 1, thereby improving the accuracy of the timing of waking up the linear Hall circuit 4 and ensuring timely linear Hall detection.
[0068] In one possible embodiment, the switch Hall circuit 3 provided by this solution further includes a second follower 33, wherein the input of the second follower 33 is connected to the detection circuit 1, and the output of the second follower 33 is connected to the input 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, thereby effectively improving the accuracy of the timing for waking up the linear Hall circuit 4 and ensuring timely linear Hall detection.
[0069] Optionally, the switch Hall circuit 3 provided in this 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 comparator 31 and the output logic gate 32 are used to accurately process the magnetic field detection signal output by the detection circuit 1, accurately judge the proximity of the detection target, accurately determine the timing of waking up the linear Hall circuit 4, ensure timely and correct linear Hall detection, and effectively reduce the power consumption of the linear Hall circuit 4. The second amplifier 34 is used to amplify the magnetic field detection signal output by the detection circuit 1, thereby improving the accuracy of the timing of waking up the linear Hall circuit 4 and ensuring 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 based on the Hall module provided in any of the above embodiments.
[0072] Exemplarily, the switching control module provided by this solution 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] For example, when the detection circuit 1 does not output a wake-up signal, a control signal for controlling the disconnection of the third switch element 23 can be sent to the enable end of the Hall module, disconnecting the connection between 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 terminal of the Hall module, connecting the first amplifier 41 and the detection circuit 1. At this time, the linear Hall circuit 4 switches to the working mode. 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 promptly turned on 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.
[0075] In one possible embodiment, the switching control module provided by this solution includes a fourth switch element 24. The control terminal of the fourth switch element 24 is connected to the enable terminal of the Hall module (which can be understood as the control terminals of the third switch element 23 and the fourth switch element 24 are commonly connected and serve as the enable terminal of the Hall module). The first connection terminal of the fourth switch element 24 is connected to the detection circuit 1, and the second connection terminal of the fourth switch element 24 is connected to the input terminal 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 an enable signal is not sent to the enable terminal of the Hall module, the fourth switch element 24 is turned on, connecting the detection circuit 1 to the second follower 33, and the switch Hall circuit 3 operates in the working mode. At this time, detection is performed by the switch Hall circuit 3 with lower power consumption, reducing the power consumption of the linear Hall circuit 4. When an enable signal is sent to the enable terminal of the Hall module, the fourth switch element 24 is turned off, disconnecting the detection circuit 1 from the second follower 33, and the switch Hall circuit 3 operates in the sleep mode. The third switch element 23 is closed, causing the linear Hall circuit 4 to operate in the working mode. At this time, detection is performed by the linear Hall circuit 4 and a corresponding linear Hall detection signal is output, 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 waking up the linear Hall circuit 4, reducing the power consumption of the switch Hall circuit 3.
[0077] In one embodiment, the detection circuit 1 provided by this solution includes a detection element 11 (e.g., a Hall effect chip). The detection element 11 is connected to the switch Hall effect circuit 3 and the linear Hall effect circuit 4. The detection element 11 can detect changes in the magnetic field in the detection area, ensuring timely and accurate linear Hall effect detection. Optionally, the detection element 11 can be a Hall effect sensor electrode.
[0078] In one embodiment, the detection circuit 1 provided by the present solution further includes a temperature compensation module 13. 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 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. 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, ensuring that the linear Hall detection is performed correctly, and the third switching element 23 is used 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 the fourth switching element 24 is used to accurately control the switch Hall circuit 3, which can put the switch Hall circuit 3 to sleep when waking up the linear Hall circuit 4, 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 based on 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. The detection circuit 1 provided in this solution includes a detection element 11, which is connected to the switch Hall circuit 3 and the linear Hall circuit 4. The detection element 11 can detect changes in the magnetic field in the detection area, ensuring timely and accurate linear Hall detection.
[0082] The difference between the Hall module provided by this solution and the Hall module provided by the above embodiment is that the detection circuit 1 provided by 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 by 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). By sharing the third amplifier 12 with the linear Hall circuit 4 and the switch Hall circuit 3, this solution can reduce the number of amplifier configurations, 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 based on the Hall module provided in any of the above embodiments.
[0084] The switching elements provided in this solution 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 is connected to the first amplifier 41. 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, accurately realizing the switching between the switch Hall detection in the sleep state and the linear Hall detection when the target is detected. 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 The 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. The ports (pins) configured on the Hall chip provided in this solution correspond to the pins configured on the Hall module. 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, wake-up output terminal, detection output terminal, and enable terminal on the Hall module.
[0089] In the above, a Hall module is configured 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 based on the received magnetic field detection signal. The detection circuit can detect magnetic field changes and output a magnetic field detection signal. The switch Hall circuit can output a wake-up signal based on the received magnetic field detection signal. The switching control circuit can switch the linear Hall circuit to an operating 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, thereby reducing the power consumption of the linear Hall circuit. When a detection target is detected, a corresponding wake-up signal is output. The switching control circuit controls the linear Hall circuit to switch to the operating mode to ensure 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.
[0090] Based on the above embodiments, Figure 9 A principle block diagram of an electronic device provided in an embodiment of the present application is given. Figure 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 connected to the wake-up output, detection output, and 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 this 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 from 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 this solution can operate 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 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 achieve 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, it effectively reduces the power consumption of the Hall module or Hall chip 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 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 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 electronic equipment.
[0096] Based on the above embodiments, Figure 10 A block diagram of the principle of a keyboard provided in an embodiment of the present application is given. Figure 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, and the Hall module or Hall chip is installed on the circuit board body 7. The circuit board body 7 is provided with multiple keycap installation positions (such as the dotted area in the figure). The keycap installation position corresponds to one or more Hall modules or Hall chips. The tapping action on the keycap can be detected by the Hall module or Hall chip. For example, the key detection signal output by the Hall module or 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, detection output terminal, and enable terminal of the Hall module or Hall chip. The second control module 8 can perform linear Hall-based detection through the Hall module or Hall chip, and generate keyboard input operation information based on the key detection signal (i.e., linear Hall detection signal), and send it to the terminal device (such as a mobile phone, tablet, computer, etc.) connected to the keyboard wired and / or wirelessly.
[0099] In one embodiment, the second control module 8 provided in this 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 the 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 operate 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 Hall chip. At this time, the switching control module in the Hall module or Hall chip disconnects the connection between the linear Hall circuit 4 and the detection circuit 1, and detects the target by switching the Hall circuit 3. At this time, the second control module 8 and the Hall module or Hall chip both work with low power consumption. When the wake-up output end of the Hall module or Hall chip outputs a wake-up signal, the second control module 8 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 Hall chip. At this time, the switching control module in the Hall module or 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 achieve 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 keycap displacement, turns on the linear Hall circuit 4 to perform linear Hall detection when the keycap displacement is detected, and obtains the key detection signal. While ensuring the linear Hall detection effect of the Hall module or Hall chip, it effectively reduces the power consumption of the Hall module or Hall chip when the keyboard is not operated.
[0102] As mentioned above, by connecting the second control module 8 to 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 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 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 employed. 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 depart from the scope of protection of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments. Without departing from the concept of the present application, it may also include more other equivalent embodiments, and the scope of the present application is determined by the scope of the claims.
Claims
1. A Hall module, 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 working mode or sleep mode.
2. The Hall module according to claim 1, 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, characterized in that: The switching control circuit includes a first switching 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, characterized in that: The switching control circuit further includes a second switch element, the on-off state of the second switch element being 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, 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, characterized in that: The switching control module includes a third switching element, the control end of the third switching element serves as the enable end of the Hall module, the first connection end of the third switching element is connected to the output end of the first amplifier, and the second connection end of the third switching element is connected to the input end of the first follower.
7. The Hall module according to claim 1, 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, 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 the input end of the comparator.
9. The Hall module according to claim 8, characterized in that: The switch Hall circuit further includes a second follower, wherein 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, 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, characterized in that: The detection circuit includes a detection element connected to the switch Hall circuit and the linear Hall circuit.
12. The Hall module according to claim 11, 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, characterized in that: The Hall module further includes a power supply circuit, which is used to supply power to electrical components in the Hall module.
14. A Hall chip, characterized in that: The method comprises a Hall module as described in any one of claims 1 to 13.
15. An electronic device, characterized in that: It includes 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, 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 emitted 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, 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 keycap mounting positions, and the keycap mounting positions correspond to one or more 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, wherein 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 from 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.