A multi-mode switching method based on touch button wake-up
By adopting the multi-mode switching touch button detection method in low-power mode, using the automatic switching of the 1st and 2th level detection circuits and the Touch Key control state machine, the problem of misjudgment in low-power mode is solved, and high-precision and low-power touch button detection is achieved.
Patent Information
- Application Number
- CN202110618269.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-01
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2041-06-01
AI Technical Summary
In the low-power mode, there is a problem of misjudgment in the touch button detection, especially when <10uA@vcc=3.5v level power consumption, error judgment of the change of the pF level capacitance occurs.
The multi-mode switching method is adopted, and the touch key detection circuits of different modes are configured, including the 1st and 2nd level touch key detection circuits, and the Touch Key control state machine automatically switches the detection mode to achieve accurate touch key detection in low-power mode.
It effectively avoids the misjudgment of touch button detection in low-power mode, realizes accurate touch button detection at different power consumption levels, improves detection accuracy and controls power consumption.
Smart Images

Figure CN113377444B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronics and information technology, and in particular to a multi-mode switching method based on touch button wake-up. Background Art
[0002] With the development of electronic technology, touch panels have become a commonly used electronic device input device in people's lives, and the application of touch buttons in daily life is becoming more and more common. In many electronic devices, only touch buttons are retained and physical buttons are removed, such as the Bluetooth headsets and LED desk lamps that are familiar in daily life.
[0003] Compared with traditional physical buttons, touch buttons can increase the life of the buttons, and do not require strong pressing, making operation more convenient. The recognition principle is achieved by sensing changes in external capacitance. Current technology can detect capacitance changes at the pF level, but there is also a problem of false detection, especially when the system operates at a power consumption of <10uA@vcc=3.5v. For touch button detection in such a low-power mode, since the design takes into account the requirements of low power consumption, there will be a large loss in accuracy, and false judgments of capacitance changes at the pF level often occur. Summary of the invention
[0004] The main purpose of the present invention is to provide a multi-mode switching method based on touch key wake-up in a low power consumption mode, which can avoid misjudgment by configuring touch key detection of different mode combinations.
[0005] In order to achieve the above-mentioned main purpose, the present invention provides a multi-mode switching method based on touch button wake-up, which is applied to a multi-mode switching circuit, wherein the multi-mode switching circuit includes a level 1 touch button detection circuit composed of a first touch button detection circuit, and a level 2 touch button detection circuit composed of a first touch button detection circuit and a second touch button detection circuit; in the first detection mode, the level 1 touch button detection circuit is started, and the first touch button detection circuit is used to detect whether a touch button signal is received, and if so, it is determined that the touch button detection is successful; in the second or third detection mode, the level 2 touch button detection circuit is started, and the first touch button detection circuit is used to detect whether a button touch signal is received, and if so, the second touch button detection circuit is used to detect and determine whether it is detected as a touch button, and if so, it is determined that the touch button detection is successful.
[0006] In a further scheme, in the second detection mode, the second-level touch key detection circuit is started, and the first touch key detection circuit is used to detect whether a key touch signal is received. If so, the second touch key detection circuit is started, and the flag of the second touch key detection circuit is displayed. The software determines whether it needs to be identified as a touch key.
[0007] In a further solution, in the third detection mode, the level 2 touch key detection circuit is started, and the first touch key detection circuit is used to detect whether a touch key signal is received. If so, the second touch key detection circuit is used to detect whether it is detected as a touch key. If so, the touch key detection is determined to be successful.
[0008] In a further solution, the first detection mode is a level 1 wake-up mode, the second detection mode and the third detection mode are level 2 wake-up modes, and the Touch Key control state machine is used to control state transitions to achieve standby wake-up detection modes with different power consumption levels.
[0009] In a further solution, the first touch key detection circuit is a low-power and low-precision touch key detection circuit, and the second touch key detection circuit is a high-power and high-precision touch key detection circuit.
[0010] In a further solution, the first / second touch key detection circuit includes a wake-up circuit scanning module, a wake-up circuit detection module, and a Touch Key control state machine. The wake-up circuit scanning module sends a TK pin scanning signal and outputs a detection signal to the wake-up circuit detection module. The wake-up circuit detection module outputs a wake-up flag signal to the Touch Key control state machine, and the Touch Key control state machine determines whether it is a real TK key signal or a false TK key signal.
[0011] In a further solution, if the Touch Key control state machine identifies the key as a real TK key, the Touch Key control state machine wakes up the system and enters the first detection mode / the second detection mode / the third detection mode.
[0012] In a further solution, if the Touch Key control state machine identifies that the TK key is touched by mistake, the Touch Key control state machine sends a sleep instruction to the wake-up circuit scanning module.
[0013] In a further solution, the Touch Key control state machine includes SLP_IDLE state, DPWK_PRE state, DPWKSTG1_OK state, DPWK_DTCT state, and SLP_PRE state, wherein the SLP_IDLE state is a sleep wake-up waiting state, the DPWK_PRE state is a wake-up preprocessing state after receiving a wake-up mark signal, the DPWKSTG1_OK state is a preprocessing state before a level 2 wake-up detection mode, and the level 2 wake-up detection mode related control signals are configured, the DPWK_DTCT state is a level 2 wake-up detection mode, and the SLP_PRE state is a level 2 wake-up detection mode. When the TK key signal is detected as an accidental touch in the level 2 wake-up detection mode, the device enters a re-sleep state.
[0014] In a further scheme, if the detection environment is water shortage detection or desk lamp touch button detection, the level 1 touch button detection circuit is started to enter the first detection mode; if the detection environment is headphone in-ear detection, the level 2 touch button detection circuit is started to enter the second detection mode or the third detection mode.
[0015] It can be seen that the present invention adopts a two-level touch button detection circuit to realize the false triggering of the touch button in the low power consumption mode. The invention has two sets of touch button wake-up detection circuits, corresponding to low-precision and high-precision detection, which are low-precision touch button detection circuits working in low power consumption mode and high-precision touch button detection circuits with higher power consumption. The present invention automatically switches the detection mode through hardware, thereby realizing the touch button detection in the low power consumption mode. At the same time, according to different application scenarios used, users can configure detection methods with different precisions.
[0016] Among them, the advantage of the low-precision touch button detection circuit is low power consumption (working in this mode, the power consumption of the entire IC is <5uA), and the disadvantage is low detection accuracy, which can only identify capacitance changes above 10pF.
[0017] Among them, the advantage of the high-precision touch button detection circuit is its high detection accuracy, which can identify a capacitance change of 1pF. The disadvantage is its high operating power consumption, with an operating current of several hundred uA.
[0018] Therefore, the present invention not only realizes two sets of touch button detection solutions for different scenarios, but also effectively integrates the two solutions through a control circuit, effectively combines the advantages of both solutions, and effectively avoids the disadvantages of both solutions. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a flow chart of an embodiment of a multi-mode switching method based on touch button wake-up of the present invention.
[0020] Figure 2 It is a circuit schematic diagram of a touch key detection circuit in an embodiment of a multi-mode switching method based on touch key wake-up of the present invention.
[0021] Figure 3 It is a schematic diagram of a Touch Key controller state machine in an embodiment of a multi-mode switching method based on touch key wake-up of the present invention.
[0022] The present invention is further described below in conjunction with the accompanying drawings and embodiments. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] See also Figure 1 A multi-mode switching method based on touch button wake-up of the present invention is applied to a multi-mode switching circuit, and the multi-mode switching circuit includes a 1-level touch button detection circuit composed of a first touch button detection circuit, and a 2-level touch button detection circuit composed of the first touch button detection circuit and a second touch button detection circuit.
[0025] In the first detection mode, the level 1 touch key detection circuit is started, and the first touch key detection circuit is used to detect whether a touch key signal is received. If so, the touch key detection is determined to be successful. It can be seen that in the first detection mode, only a low-power and low-precision touch key detection circuit is used.
[0026] In the second or third detection mode, the level 2 touch key detection circuit is started, and the first touch key detection circuit is used to detect whether a key touch signal is received. If so, the second touch key detection circuit is used to detect whether it is detected as a touch key. If so, the touch key detection is determined to be successful.
[0027] Specifically, in the second detection mode, the 2nd level touch key detection circuit is started, and the first touch key detection circuit is used to detect whether a key touch signal is received. If so, the second touch key detection circuit is started, and the flag of the second touch key detection circuit is displayed, and the software determines whether it needs to be identified as a touch key. It can be seen that in the second detection mode, a low-power and low-precision touch key detection circuit is used first, and then a higher-power and high-precision touch key detection circuit is used to check, and the software determines whether it needs to be identified as a touch key.
[0028] Specifically, in the third detection mode, the 2-level touch key detection circuit is started, and the first touch key detection circuit is used to detect whether a touch key signal is received. If so, the second touch key detection circuit is used to detect whether it is detected as a touch key. If so, it is determined that the touch key detection is successful. It can be seen that in the third detection mode, a low-power and low-precision touch key detection circuit is used first, and then a higher-power and high-precision touch key detection circuit is used for detection. The hardware automatically determines that the 2-level detection circuits are all OK before it considers it to be a touch key.
[0029] The present invention can allow users to freely choose three modes, is suitable for various application scenarios, covers a wide range of usage scenarios, and is flexible and changeable.
[0030] If the detection environment is water shortage detection or desk lamp touch button detection, start the level 1 touch button detection circuit and enter the first detection mode; if the detection environment is headphone in-ear detection, start the level 2 touch button detection circuit and enter the second detection mode or the third detection mode.
[0031] It can be seen that if the solution is for water shortage detection or table lamp touch button, only the low-precision mode of the first detection mode is needed to meet the requirements;
[0032] It can be seen that if it is an in-ear detection on a headset, and a scenario with high requirements for the accuracy of the touch buttons, the second detection mode or the third detection mode can be selected to implement it. If the third detection mode is selected, all touch detection is implemented by hardware, which not only meets the advantages of high touch accuracy but also fast response speed. If the second detection mode is selected, while improving the accuracy, the judgment standard is left to the software to decide, so the software has more room to play and the application scenario is more scalable.
[0033] Therefore, the present invention automatically completes mode switching through hardware, with a short detection time and a fast response speed. The user is basically unable to perceive the touch key detection delay caused by switching modes, and the user experience is good.
[0034] In this embodiment, the first detection mode is a level 1 wake-up mode, the second detection mode and the third detection mode are level 2 wake-up modes, and the Touch Key control state machine is used to control state transitions to implement standby wake-up detection modes of different power consumption levels.
[0035] In this embodiment, if Figure 2 As shown, the first / second touch key detection circuit includes a wake-up circuit scanning module, a wake-up circuit detection module, and a Touch Key control state machine. The wake-up circuit scanning module sends a TK pin scanning signal and outputs a detection signal to the wake-up circuit detection module. The wake-up circuit detection module outputs a wake-up flag signal to the Touch Key control state machine, and the Touch Key control state machine determines whether it is a real TK key signal or a false TK key signal.
[0036] The first touch key detection circuit is a low-power and low-precision touch key detection circuit, and the second touch key detection circuit is a high-power and high-precision touch key detection circuit.
[0037] Specifically, the high-power and high-precision touch key detection circuit is equipped with a 12M working clock, which converts the capacitance value into a clock signal through an analog circuit, and then uses the 12M working clock to sample, identify, calculate the frequency of the clock signal, and so on, so as to calculate the corresponding capacitance value. Since the entire high-power and high-precision circuit works under the 12M clock, the power consumption will be higher.
[0038] The low-power and low-precision touch key detection circuit is equipped with a working clock, the clk frequency of which is several Khz, which converts the capacitance value into a clock signal through an analog circuit, and then uses the working clock to sample, identify, calculate the frequency of the clock signal, and so on, so as to calculate the corresponding capacitance value. Since the entire low-power and low-precision circuit works at a clock of several Khz, the power consumption will be lower.
[0039] If the Touch Key control state machine identifies the key as a real TK key, the Touch Key control state machine wakes up the system and enters the first detection mode / the second detection mode / the third detection mode.
[0040] If the Touch Key control state machine identifies that the TK key is touched by mistake, the Touch Key control state machine sends a sleep instruction to the wake-up circuit scanning module.
[0041] In this embodiment, if Figure 3 As shown, the Touch Key control state machine includes SLP_IDLE state, DPWK_PRE state, DPWKSTG1_OK state, DPWK_DTCT state, and SLP_PRE state, wherein the SLP_IDLE state is a sleep wake-up waiting state, the DPWK_PRE state is a wake-up preprocessing state after receiving a wake-up mark signal, the DPWKSTG1_OK state is a preprocessing state before the 2-level wake-up detection mode, and the 2-level wake-up detection mode related control signal is configured, the DPWK_DTCT state is a 2-level wake-up detection mode, and the SLP_PRE state is a 2-level wake-up detection mode. When the TK key signal is detected to be accidentally touched in the 2-level wake-up detection mode, the device enters a re-sleep state.
[0042] Therefore, the present invention controls the state transition through the Touch Key controller state machine, thereby realizing standby wake-up detection modes with different power consumption levels. The main innovation of the present invention is not the algorithm for detecting mode switching, but that it is different from the previous technology in that the TK wake-up detection accuracy is high, but the cost is that the standby power consumption is also high; the present invention can achieve fast mode switching through hardware that is not perceived by the outside world, thereby achieving high TK wake-up detection accuracy while controlling the standby power consumption at a small x uA level.
[0043] The system of the present invention can realize touch button detection with different precisions in different modes according to different configuration schemes. At the same time, since the switching between the first-level detection circuit and the second-level detection circuit is automatically completed by hardware, it has a fast response speed and a short switching interval. Even if the second-level detection circuit is turned on, since it is automatically turned on and off by hardware, the power consumption is only mA-level in a time of <1ms. After the detection is completed, the system power consumption is still maintained at the uA level.
[0044] It can be seen that the present invention adopts a two-level touch button detection circuit to realize the false triggering of the touch button in the low power consumption mode. The invention has two sets of touch button wake-up detection circuits, corresponding to low-precision and high-precision detection, which are low-precision touch button detection circuits working in low power consumption mode and high-precision touch button detection circuits with higher power consumption. The present invention automatically switches the detection mode through hardware, thereby realizing the touch button detection in the low power consumption mode. At the same time, according to different application scenarios used, users can configure detection methods with different precisions.
[0045] Among them, the advantage of the low-precision touch button detection circuit is low power consumption (working in this mode, the power consumption of the entire IC is <5uA), and the disadvantage is low detection accuracy, which can only identify capacitance changes above 10pF;
[0046] Among them, the advantage of the high-precision touch button detection circuit is that the detection accuracy is high and it can identify the capacitance change of 1pF. The disadvantage is that the working power consumption is high and the working current is several hundred uA.
[0047] Therefore, the present invention not only realizes two sets of touch button detection solutions for different scenarios, but also effectively integrates the two solutions through a control circuit, effectively combines the advantages of both solutions, and effectively avoids the disadvantages of both solutions.
[0048] It should be noted that the above are only preferred embodiments of the present invention, but the design concept of the invention is not limited thereto, and any non-substantial modifications made to the present invention using this concept also fall within the protection scope of the present invention.
Claims
1. A multi-mode switching method based on touch button wake-up, applied to a multi-mode switching circuit, characterized in that: The multi-mode switching circuit includes a first-level touch key detection circuit composed of a first touch key detection circuit, and a second-level touch key detection circuit composed of the first touch key detection circuit and a second touch key detection circuit; In the first detection mode, the level 1 touch key detection circuit is started, and the first touch key detection circuit is used to detect whether a touch key signal is received, and if so, it is determined that the touch key detection is successful; In the second or third detection mode, the second-level touch key detection circuit is started, and the first touch key detection circuit is used to detect whether a key touch signal is received. If so, the second touch key detection circuit is used to detect whether it is detected as a touch key. If so, it is determined that the touch key detection is successful; The first / second touch key detection circuit includes a wake-up circuit scanning module, a wake-up circuit detection module, and a Touch Key control state machine. The wake-up circuit scanning module sends a TK pin scanning signal and outputs a detection signal to the wake-up circuit detection module. The wake-up circuit detection module outputs a wake-up flag signal to the Touch Key control state machine, and the Touch Key control state machine determines and identifies it as a real TK key signal or a false touch TK key signal. The Touch Key control state machine includes SLP_IDLE state, DPWK_PRE state, DPWKSTG1_OK state, DPWK_DTCT state, and SLP_PRE state. Among them, the SLP_IDLE state is the sleep wake-up waiting state, the DPWK_PRE state is the wake-up preprocessing state after receiving the wake-up mark signal, the DPWKSTG1_OK state is the preprocessing before the 2-level wake-up detection mode, and the 2-level wake-up detection mode related control signals are configured. The DPWK_DTCT state is the 2-level wake-up detection mode, and the SLP_PRE state is the 2-level wake-up detection mode. If the TK key signal is detected as an accidental touch, it will enter the re-sleep state.
2. The multi-mode switching method based on touch button wake-up according to claim 1, characterized in that: In the second detection mode, the second-level touch key detection circuit is started, and the first touch key detection circuit is used to detect whether a key touch signal is received. If so, the second touch key detection circuit is started, and the flag of the second touch key detection circuit is displayed. The software determines whether it needs to be identified as a touch key.
3. The multi-mode switching method based on touch button wake-up according to claim 2, characterized in that: In the third detection mode, the level 2 touch key detection circuit is started, and the first touch key detection circuit is used to detect whether a touch key signal is received. If so, the second touch key detection circuit is used to detect whether it is detected as a touch key. If so, it is determined that the touch key detection is successful.
4. The multi-mode switching method based on touch button wake-up according to claim 1, characterized in that: The first detection mode is a level 1 wake-up mode, and the second and third detection modes are level 2 wake-up modes. The Touch Key control state machine is used to control state transitions to achieve standby wake-up detection modes with different power consumption levels.
5. The multi-mode switching method based on touch button wake-up according to claim 1, characterized in that: The first touch key detection circuit is a low-power and low-precision touch key detection circuit, and the second touch key detection circuit is a high-power and high-precision touch key detection circuit.
6. The multi-mode switching method based on touch button wake-up according to claim 5, characterized in that: If the Touch Key control state machine recognizes it as a real TK button, the Touch Key control state machine wakes up the system and enters the first detection mode / the second detection mode / the third detection mode.
7. The multi-mode switching method based on touch button wake-up according to claim 5, characterized in that: If the Touch Key control state machine identifies that the TK key is touched by mistake, the Touch Key control state machine sends a sleep instruction to the wake-up circuit scanning module.
8. The multi-mode switching method based on touch button wake-up according to any one of claims 1 or 7, characterized in that: If the detection environment is water shortage detection or lamp touch key detection, the level 1 touch key detection circuit is started to enter the first detection mode; If the detection environment is earphone in-ear detection, the 2nd level touch button detection circuit is started to enter the second detection mode or the third detection mode.
Citation Information
Patent Citations
Full-touch system activating method and system
CN104090821A