Touch key scanning circuit, low power consumption mode exit method and device

By adopting a multi-channel scanning mode and trigger signal detection mechanism in the touch button scanning circuit, the problems of slow exit speed and large power consumption in the existing technology are solved, and the effects of fast exit and low power consumption are achieved.

CN113472357BActive Publication Date: 2025-05-09BYD SEMICON CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010246645.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-31
Publication Date
2025-05-09
Estimated Expiration
2040-03-31

AI Technical Summary

Technical Problem

The existing touch button low-power products have slow exit speed and high power consumption in low-power power saving mode, resulting in higher product power consumption during scanning interval time.

Method used

A touch key scanning circuit is designed, including a key scanning unit, a trigger unit and multiple touch keys, and adopts a multi-channel scanning mode. When the trigger signal of any touch key is detected, it directly exits the low-power mode.

Benefits of technology

It realizes the rapid detection of any touch button trigger signal in low-power mode and exits the low-power mode as soon as possible, which improves the exit speed, reduces the average power consumption, and improves the wake-up experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113472357B_ABST
    Figure CN113472357B_ABST
Patent Text Reader

Abstract

The present invention provides a touch key scanning circuit, a low power consumption mode exit method and a device, comprising a key scanning unit, a trigger unit and a plurality of touch keys, wherein the trigger unit comprises: a master control switch, a plurality of first switches and second switches corresponding one to one, and the second switches correspond one to one to the touch keys; when the master control switch, the first switch and the second switch are all closed, the touch key scanning circuit operates in a multi-channel scanning mode; in the low power consumption mode, the present invention detects a trigger signal of any touch key based on the multi-channel scanning mode, and can exit the low power consumption mode at the first time when the trigger signal of any touch key is detected; the speed of exiting the low power consumption mode is greatly improved, so that the average power consumption in the low power consumption mode is greatly reduced, and the wake-up experience of the touch keys in the low power consumption mode is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of touch control technology, and in particular to a touch key scanning circuit, a low power mode exit method and a low power mode exit device. Background Art

[0002] Portable electronic products play an extremely important role in our lives, and portable devices are generally powered by batteries. With the same amount of power, products with low power consumption can work longer.

[0003] The touch button low power product has multiple touch buttons. In the current low power saving mode of the touch button low power product, the touch button low power product polls and scans all the touch buttons one by one, which results in that when a touch button is triggered, it will not be detected immediately. Even after detection, the touch button low power product will not exit the low power saving mode immediately, but will exit the low power saving mode only after all the touch buttons are detected in this round. This makes the current touch button low power product exit the low power saving mode slowly and consumes more power during the exit process. Summary of the invention

[0004] The present invention provides a touch key scanning circuit, a low power consumption mode exit method and a low power consumption mode exit device to overcome the problems of the above-mentioned technology.

[0005] In order to solve the above problem, based on one aspect of the present invention, the present invention discloses a touch key scanning circuit, including a key scanning unit, a trigger unit and a plurality of touch keys; the trigger unit includes:

[0006] A master switch, a plurality of first switches and second switches corresponding to each other, wherein the second switches correspond to each other to the touch keys; one end of the master switch is connected to the key scanning unit, and the other end is respectively connected to one end of the plurality of first switches; the other end of the first switch is respectively connected to the key scanning unit and one end of the corresponding second switch; the other end of the second switch is connected to the corresponding touch key;

[0007] When the master control switch, the first switch and the second switch are all closed, the touch key scanning circuit operates in a multi-channel scanning mode.

[0008] Optionally, when the master control switch and the first switch are both disconnected, and the second switches are both closed, the touch key scanning circuit operates in a single-channel scanning mode;

[0009] The touch key scanning circuit further includes a control unit connected to the key scanning unit, and the control unit is used to control the key scanning unit to switch between the multi-channel scanning mode and the single-channel scanning mode.

[0010] In order to solve the above problem, based on another aspect of the present invention, the present invention further discloses a method for exiting a low power consumption mode, which is applied to the touch key scanning circuit, the touch key scanning circuit having a multi-channel scanning mode, and the method comprises:

[0011] In the low power consumption mode, detecting a trigger signal of any touch key based on the multi-channel scanning mode;

[0012] When a trigger signal of any touch key is detected, the low power consumption mode is exited.

[0013] Optionally, in the low power consumption mode, detecting a trigger signal of any touch key based on the multi-channel scanning mode includes:

[0014] In the low power consumption mode, the touch key scanning circuit is awakened by a timer interrupt or an external interrupt;

[0015] After the touch key scanning circuit is awakened, a trigger signal of any touch key is detected based on the multi-channel scanning mode.

[0016] Optionally, when a trigger signal of any touch button is detected, exiting the low power consumption mode includes:

[0017] When a trigger signal of any touch key is detected, determining whether the trigger signal is greater than or equal to a preset sensing threshold;

[0018] When the trigger signal is greater than or equal to the sensing threshold, exiting the low power consumption mode;

[0019] The method further comprises:

[0020] When exiting the low power consumption mode, the multi-channel scanning mode is also exited.

[0021] Optionally, the method further includes:

[0022] Acquire application environment characteristics of the touch key scanning circuit;

[0023] Determining the first panel thickness of the touch button according to the application environment characteristics;

[0024] The sensing threshold is determined according to the first panel thickness of the touch button.

[0025] Optionally, the method further includes:

[0026] Acquiring functional characteristics of touch keys of the touch key scanning circuit;

[0027] Determining the thickness of the second panel of the touch button according to the functional characteristics;

[0028] The sensing threshold is determined according to the thickness of the second panel of the touch button.

[0029] Optionally, the method further includes:

[0030] Configuring the parameters of the multi-channel scanning mode to enter the multi-channel scanning mode;

[0031] In the multi-channel scanning mode, determining whether a trigger signal of any touch key is detected;

[0032] When the trigger signal is detected, determining whether the trigger signal satisfies a condition for entering a low power consumption mode;

[0033] When the trigger signal is not detected or the trigger signal meets the condition for entering the low power consumption mode, the low power consumption mode is entered.

[0034] In order to solve the above problem, based on another aspect of the present invention, the present invention discloses a low power mode exit device, which is applied to the touch key scanning circuit, the touch key scanning circuit has a multi-channel scanning mode, and the device includes:

[0035] A trigger signal detection module, used to detect a trigger signal of any touch key based on the multi-channel scanning mode in a low power consumption mode;

[0036] The low power consumption mode exit module is used to exit the low power consumption mode when a trigger signal of any touch key is detected.

[0037] Optionally, the trigger signal detection module includes:

[0038] A scanning circuit wake-up submodule, used to wake up the touch key scanning circuit in the low power consumption mode by means of a timer interrupt or an external interrupt;

[0039] The touch key scanning submodule is used to detect a trigger signal of any touch key based on the multi-channel scanning mode after waking up the touch key scanning circuit.

[0040] Optionally, the low power consumption mode exit module includes:

[0041] A trigger signal judgment submodule, used to judge whether the trigger signal is greater than or equal to a preset sensing threshold when a trigger signal of any touch key is detected;

[0042] A low power mode exit execution submodule, used for exiting the low power mode when the trigger signal is greater than or equal to the sensing threshold;

[0043] The device also includes:

[0044] The multi-channel scanning mode exit module is used to exit the multi-channel scanning mode when exiting the low power consumption mode.

[0045] Optionally, the device further comprises:

[0046] An application environment feature acquisition module, used to acquire application environment features of the touch key scanning circuit;

[0047] A first panel thickness determination module, used to determine the first panel thickness of the touch key according to the application environment characteristics;

[0048] The first sensing threshold determination module is used to determine the sensing threshold according to the first panel thickness of the touch button.

[0049] Optionally, the device further comprises:

[0050] A functional characteristic determination module, used for obtaining functional characteristics of the touch keys of the touch key scanning circuit;

[0051] A second panel thickness determination module, used to determine the second panel thickness of the touch key according to the functional characteristics;

[0052] The second sensing threshold determination module is used to determine the sensing threshold according to the second panel thickness of the touch button.

[0053] Optionally, the device further comprises:

[0054] A multi-channel scanning mode entry module, used to configure the parameters of the multi-channel scanning mode and enter the multi-channel scanning mode;

[0055] A trigger signal detection module, used to determine whether a trigger signal of any touch key is detected in the multi-channel scanning mode;

[0056] A trigger signal determination module, configured to determine whether the trigger signal satisfies a condition for entering a low power consumption mode when the trigger signal is detected;

[0057] The low power consumption mode entry module is used to enter the low power consumption mode when the trigger signal is not detected or the trigger signal meets the condition for entering the low power consumption mode.

[0058] Compared with the prior art, the present invention has the following advantages:

[0059] The present invention provides a touch key scanning circuit, comprising a key scanning unit, a trigger unit and a plurality of touch keys; the trigger unit comprises: a master control switch, a plurality of first switches and second switches corresponding one to one, the second switches corresponding one to one to the touch keys; one end of the master control switch is connected to the key scanning unit, and the other end is respectively connected to one end of the plurality of first switches; the other end of the first switch is respectively connected to the key scanning unit and one end of the corresponding second switch; the other end of the second switch is connected to the corresponding touch key; when the master control switch, the first switch and the second switch are all closed, the touch key scanning circuit works in a multi-channel scanning mode; in the multi-channel scanning mode of the present invention, any touch key can be detected in time when it is triggered, without polling all the touch keys one by one, thus saving the scanning time of the touch keys, greatly reducing the average power consumption in the low power consumption mode, saving the power consumption of the product in this scanning interval, improving the frame rate of the key scanning, and improving the wake-up experience of the touch keys in the low power consumption mode.

[0060] The present invention provides a method for exiting a low power consumption mode. In the low power consumption mode, based on the multi-channel scanning mode, the trigger signal of any touch key is detected, and the low power consumption mode can be exited immediately when the trigger signal of any touch key is detected; the speed of exiting the low power consumption mode is greatly improved, so that the average power consumption in the low power consumption mode is greatly reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 is a circuit diagram of a touch key scanning circuit according to an embodiment of the present invention;

[0062] Figure 2 is a clock schematic diagram of touch key scanning in a multi-channel scanning mode according to an embodiment of the present invention;

[0063] Figure 3 is a flowchart of a method for exiting a low power consumption mode according to an embodiment of the present invention;

[0064] Figure 4 is a flowchart of steps for entering a multi-channel scanning mode and a low power consumption mode according to an embodiment of the present invention;

[0065] Figure 5 is a flowchart of the steps of a method for determining a first sensing threshold according to an embodiment of the present invention;

[0066] Figure 6 is a flowchart of the steps of a method for determining a second sensing threshold according to an embodiment of the present invention;

[0067] Figure 7 It is an operation flow chart of a method for exiting a low power consumption mode according to an embodiment of the present invention;

[0068] Figure 8 It is a structural schematic diagram of a low power consumption mode exit device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0069] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0070] To solve the problem of the embodiment of the present invention, refer to Figure 1 , shows a circuit diagram of a touch key scanning circuit according to an embodiment of the present invention, including a key scanning unit, a trigger unit and a plurality of touch keys; the trigger unit includes:

[0071] A master switch, a plurality of first switches and second switches corresponding to each other, wherein the second switches correspond to each other to the touch keys; one end of the master switch is connected to the key scanning unit, and the other end is respectively connected to one end of the plurality of first switches; the other end of the first switch is respectively connected to the key scanning unit and one end of the corresponding second switch; the other end of the second switch is connected to the corresponding touch key;

[0072] When the master control switch, the first switch and the second switch are all closed, the touch key scanning circuit operates in a multi-channel scanning mode.

[0073] exist Figure 1 In the figure, KP represents a master control switch; L represents a first switch, L0 to LN represent multiple first switches; S represents a second switch, S0 to SN represent multiple second switches; SNS represents a touch key, and SNS0 to SNSN represent multiple touch keys.

[0074] When the master switch KP, the first switch L0~LN and the second switch S0~SN are all closed, all the touch buttons SNS0~SNSN are connected in parallel. At this time, the touch button scanning circuit is in multi-channel scanning mode. Since all the touch buttons are connected in parallel, the button scanning unit does not need to scan the touch buttons one by one, and can receive touch signals from multiple touch buttons at the same time. Compared with the one-by-one scanning method, it can greatly save the scanning time of the touch buttons. Touch buttons SNS0~SNSN can refer to all touch buttons on the product where the touch button scanning circuit is located. Figure 2 , shows a clock schematic diagram of touch key scanning in the multi-channel scanning mode of an embodiment of the present invention. In the multi-channel scanning mode, the average power consumption of the touch key scanning circuit in the low power consumption mode is:

[0075]

[0076] Wherein: T1 is the key scanning time of any touch key, T2 is the interval time between two triggering of the touch key scanning circuit, that is, the interval time between the first touch key being triggered in this round and the first touch key being triggered in the next round; I1 is the power consumption of the touch key scanning circuit within the T1 time, and I2 is the power consumption of the touch key scanning circuit within the T2 time.

[0077] From the above content, it can be seen that when the touch button scanning circuit of the embodiment of the present invention works in the multi-channel scanning mode, in the same round of detection process, there is no need to poll and scan all the touch buttons one by one. When any touch button is triggered, it can be detected at the first time. Compared with the prior art, the scanning interval time of adjacent touch buttons is subtracted, so that the average power consumption in the low power consumption mode is greatly reduced, the product power consumption during this scanning interval time is saved, the frame rate of the button scanning is improved, and the wake-up experience of the touch button in the low power consumption mode is improved.

[0078] In an optional embodiment of the present invention, when the master control switch and the first switch are both disconnected and the second switches are both closed, the touch key scanning circuit operates in a single-channel scanning mode; the touch key scanning circuit also includes a control unit connected to the key scanning unit, and the control unit is used to control the key scanning unit to switch between the multi-channel scanning mode and the single-channel scanning mode.

[0079] In an embodiment of the present invention, the circuit structure of the single-channel scanning mode provided is simpler than the touch button circuit structure of the existing touch button low-power product. Through the one-to-one correspondence between the second switch and the touch button, the triggering of all touch buttons can be accurately located, which can improve the key recognition accuracy of the touch button low-power product. Through the control of the key scanning unit by the control unit, it is possible to achieve arbitrary switching between the multi-channel scanning mode and the single-channel scanning mode, which can meet the needs of the touch button low-power product in different time periods or different application scenarios. The control unit can optionally use an MCU chip. The control unit can control the multi-channel scanning mode or the single-channel scanning mode through the 5th bit of SNS_SCAN_CFG2, SNS_SCAN_CFG2 in the touch button scanning mode register. When SNS_SCAN_CFG2.5 is set to 1, the touch button scanning circuit is in the multi-channel scanning mode.

[0080] Reference Figure 3 , showing a flowchart of a method for exiting a low power consumption mode according to an embodiment of the present invention, applied to Figure 1 The touch key scanning circuit shown in the figure has a multi-channel scanning mode, and the method may specifically include the following steps:

[0081] Step S301, in the low power consumption mode, detecting a trigger signal of any touch key based on the multi-channel scanning mode;

[0082] Step S302: when a trigger signal of any touch key is detected, exit the low power consumption mode.

[0083] In order to facilitate those skilled in the art to more clearly understand the implementation process of the present invention, in an optional embodiment of the present invention, firstly, how the touch key scanning circuit enters the multi-channel scanning mode and the low power consumption mode is described, referring to Figure 4 , shows a flowchart of the steps of entering the multi-channel scanning mode and the low power consumption mode according to an embodiment of the present invention, which may include the following steps:

[0084] Step S401, configuring the parameters of the multi-channel scanning mode and entering the multi-channel scanning mode;

[0085] In an embodiment of the present invention, by configuring the touch key scan mode register, the touch key scan mode register is configured into a multi-channel scan mode, and at this time, all the touch keys in the touch key scan circuit are equivalent to being physically connected together. The multi-channel scan mode can be configured by manual debugging for the first time, and the parameters of the multi-channel scan mode can be configured later, so that the touch key scan circuit automatically enters the multi-channel scan mode. For example, the configuration method can be: setting the conditions for entering the multi-channel scan mode, judging whether a touch key is pressed within a preset time interval, and entering the multi-channel scan mode if no touch key is pressed within the preset time interval; otherwise, waiting.

[0086] Step S402, in the multi-channel scanning mode, determining whether a trigger signal of any touch key is detected;

[0087] In the multi-channel scanning mode, the key scanning unit scans the trigger unit at a preset time interval or continuously to determine whether any touch key trigger signal is detected. The preset time interval can generally be set to 5 seconds to 60 seconds, which can be adjusted according to user habits and needs; continuously can be understood as scanning at the fastest speed without artificial time control, based on the scanning performance of the touch key scanning circuit itself.

[0088] Step S403, when the trigger signal is detected, determining whether the trigger signal satisfies a condition for entering a low power consumption mode;

[0089] In practice, the trigger signal may be triggered intentionally or accidentally. Therefore, the embodiment of the present invention not only sets the condition for judging whether the trigger signal of any touch key is detected, but also further sets the condition for judging whether the trigger signal meets the condition for entering low power consumption. The condition for low power consumption mode can be the current value collected when the touch key is triggered. For example, if the current value is small, it means that the key is light, then it can be judged as an accidental trigger, and the condition for entering low power consumption mode is met.

[0090] In specific implementation, the step of whether to enter the low power mode can be executed according to whether Low_power in the low power saving mode register of the control unit is equal to 1. When Low_power=1, the low power mode is entered, and when Low_power=0, the low power mode is exited.

[0091] Step S404: When the trigger signal is not detected or the trigger signal meets the condition for entering the low power consumption mode, enter the low power consumption mode.

[0092] In specific implementation, the embodiment of the present invention can set a certain waiting time, that is, when the trigger signal is not detected or the trigger signal meets the conditions for entering the low power mode, the low power mode is entered after the waiting time. This can not only avoid the problem that the touch key scanning circuit cannot enter the low power mode due to accidental triggering, but also reserve a certain amount of time for the user to respond to the user's triggering operation on the touch key in a timely manner, so as to realize the automatic and accurate entry of the product into the low power mode.

[0093] In an optional embodiment of the present invention, step S301 may include the following sub-steps:

[0094] Sub-step 1, in the low power consumption mode, waking up the touch key scanning circuit by means of a timer interrupt or an external interrupt;

[0095] Sub-step 2: After waking up the touch key scanning circuit, detecting a trigger signal of any touch key based on the multi-channel scanning mode.

[0096] In an embodiment of the present invention, the touch key scanning circuit is awakened by a timed interruption method, which can be implemented in the following manner: a timed awakening program is set in the control unit of the touch key scanning circuit, that is, in the low power mode, the control unit automatically wakes up at a certain interval, and then the control unit controls the key scanning unit to ensure that the touch key scanning circuit works in a multi-channel scanning mode, so that when any touch key is triggered, the key scanning unit can scan the trigger signal of the touch key. The touch key scanning circuit is awakened by an external interruption method, which can be implemented in the following manner: the touch key scanning circuit is awakened when the touch key is triggered (such as being pressed or touched), and the control unit is awakened at this time, and the control unit controls the key scanning unit to ensure that it detects the trigger signal of the touch key in the multi-channel scanning mode.

[0097] When the trigger signal of the touch button is detected, the embodiment of the present invention can directly exit the low power mode to solve the problem that the current low-power products with touch buttons exit the low power mode slowly and consume a large amount of power during the exit process. However, the touch button may be triggered intentionally or accidentally. In order to avoid the problem that the circuit directly exits the low power mode when the touch button is accidentally triggered, resulting in a waste of power consumption, in an optional embodiment of the present invention, step S302 can be performed in the following manner, which may specifically include the following sub-steps:

[0098] Sub-step 3, when a trigger signal of any touch key is detected, determining whether the trigger signal is greater than or equal to a preset sensing threshold;

[0099] Sub-step 4: when the trigger signal is greater than or equal to the sensing threshold, exit the low power consumption mode;

[0100] The method further comprises:

[0101] When exiting the low power consumption mode, the multi-channel scanning mode is also exited.

[0102] In an embodiment of the present invention, a sensing threshold is set, and the sensing threshold is used as a threshold for whether to exit the low power mode, and the trigger signal of the touch button is judged based on the sensing threshold. When the trigger signal reaches the sensing threshold, the low power mode is exited again, which can solve the problem of frequent exit of the low power mode due to accidental triggering of the touch button, resulting in waste of power consumption, so as to reduce the probability of accidental triggering and exit. Since the key scanning in the multi-channel scanning mode is not as fast as the scanning in the non-low power mode, the key response speed is also not as fast as the non-low power mode. Therefore, after the screen is awakened, the low power mode is immediately exited, and the multi-channel scanning mode is exited at the same time, that is, the touch button scanning circuit switches from the multi-channel scanning mode to the single-channel scanning mode to ensure that each touch button is quickly identified.

[0103] The trigger signal of the embodiment of the present invention can be the parasitic capacitance change value on the touch key, and the sensing threshold can be adjusted by selecting the value of the reference capacitance CSEL. The sensing threshold can be set and determined by humans, or by other methods. In an optional embodiment of the present invention, two methods for determining the sensing threshold are provided. Figure 5 , shows a flowchart of the steps of a method for determining a first sensing threshold according to an embodiment of the present invention, which may include the following steps:

[0104] Step S501, obtaining application environment characteristics of the touch key scanning circuit;

[0105] Step S502, determining the first panel thickness of the touch button according to the application environment characteristics;

[0106] Step S503: determining the sensing threshold according to the first panel thickness of the touch button.

[0107] In an embodiment of the present invention, the application environment characteristics are the characteristics of the surrounding environment where the touch key scanning circuit is located, such as high temperature, high humidity, low temperature, low humidity, high pressure, etc. The first panel thickness refers to the basic panel thickness of the touch key, which can also be understood as the overall panel thickness of the low-power product. In this thickness, the sensing threshold of each touch key is the same, and the touch sensitivity is also the same. In actual applications, when the low-power product where the touch key scanning circuit is located is used in a relatively harsh environment such as high temperature and high pressure, the requirements for its sensitivity are not too high. At this time, in order to protect the low-power product, the thickness of the first panel can be set thicker, otherwise, it can be set thinner.

[0108] Reference Figure 6 , shows a flowchart of the steps of a second method for determining a sensing threshold according to an embodiment of the present invention, which may include the following steps:

[0109] Step S601, obtaining functional characteristics of the touch keys of the touch key scanning circuit;

[0110] Step S602, determining the thickness of the second panel of the touch button according to the functional characteristics;

[0111] Step S603, determining the sensing threshold according to the thickness of the second panel of the touch key. In an embodiment of the present invention, the functional feature refers to the functional feature of the touch key, such as switch, return, next step, confirmation, etc. The second panel thickness is a thickness that is unique to the touch key and specially customized. The sensing threshold of each touch key is different, and the touch sensitivity is also different. For example, the position where the screen unlock key is often used can be set thicker, and other positions can be set thinner. This can avoid accidentally touching the switch key, causing the touch key to be unintentionally awakened, causing the low-power program to exit, and wasting power; it can also be used when the screen is not locked. The sensing sensitivity of the touch keys at other positions. The second panel thickness can be further set based on the first panel thickness, or it can be set independently. If the first panel thickness is 1mm, the panel thickness of the screen unlock key (second panel thickness) can be set to 1.15mm.

[0112] Based on the above content, the operation flow chart of a method for exiting a low power consumption mode according to an embodiment of the present invention is shown in FIG. Figure 7 When a trigger signal of any touch key is detected, the low power consumption mode can be exited, which greatly improves the speed of exiting the low power consumption mode, greatly reduces the average power consumption in the low power consumption mode, and improves the wake-up experience of the touch key in the low power consumption mode.

[0113] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0114] Reference Figure 8 , shows a schematic diagram of the structure of a low power mode exit device according to an embodiment of the present invention, which is applied to the touch key scanning circuit, the touch key scanning circuit has a multi-channel scanning mode, and the device may include the following modules:

[0115] A trigger signal detection module 801 is used to detect a trigger signal of any touch key based on the multi-channel scanning mode in a low power consumption mode;

[0116] The low power mode exit module 802 is used to exit the low power mode when a trigger signal of any touch key is detected.

[0117] In an optional embodiment of the present invention, the trigger signal detection module 801 includes:

[0118] A scanning circuit wake-up submodule, used to wake up the touch key scanning circuit in the low power consumption mode by means of a timer interrupt or an external interrupt;

[0119] The touch key scanning submodule is used to detect a trigger signal of any touch key based on the multi-channel scanning mode after waking up the touch key scanning circuit.

[0120] In an optional embodiment of the present invention, the low power consumption mode exit module 802 includes:

[0121] A trigger signal judgment submodule, used to judge whether the trigger signal is greater than or equal to a preset sensing threshold when a trigger signal of any touch key is detected;

[0122] A low power mode exit execution submodule, used for exiting the low power mode when the trigger signal is greater than or equal to the sensing threshold;

[0123] The device also includes:

[0124] The multi-channel scanning mode exit module is used to exit the multi-channel scanning mode when exiting the low power consumption mode.

[0125] In an optional embodiment of the present invention, the device further comprises:

[0126] An application environment feature acquisition module, used to acquire application environment features of the touch key scanning circuit;

[0127] A first panel thickness determination module, used to determine the first panel thickness of the touch key according to the application environment characteristics;

[0128] The first sensing threshold determination module is used to determine the sensing threshold according to the first panel thickness of the touch button.

[0129] In an optional embodiment of the present invention, the device further comprises:

[0130] A functional characteristic determination module, used for obtaining functional characteristics of the touch keys of the touch key scanning circuit;

[0131] A second panel thickness determination module, used to determine the second panel thickness of the touch key according to the functional characteristics;

[0132] The second sensing threshold determination module is used to determine the sensing threshold according to the second panel thickness of the touch button.

[0133] In an optional embodiment of the present invention, the device further comprises:

[0134] A multi-channel scanning mode entry module, used to configure the parameters of the multi-channel scanning mode and enter the multi-channel scanning mode;

[0135] A trigger signal detection module, used to determine whether a trigger signal of any touch key is detected in the multi-channel scanning mode;

[0136] A trigger signal determination module, configured to determine whether the trigger signal satisfies a condition for entering a low power consumption mode when the trigger signal is detected;

[0137] The low power consumption mode entry module is used to enter the low power consumption mode when the trigger signal is not detected or the trigger signal meets the condition for entering the low power consumption mode.

[0138] In summary, the embodiment of the present invention provides a low power consumption mode exit device, Figure 3 The method shown is based on the same inventive concept, and its implementation principle can refer to a method for exiting a low-power mode, which will not be elaborated here. An embodiment of the present invention can exit the low-power mode when a trigger signal of any touch key is detected, thereby greatly improving the speed of exiting the low-power mode, greatly reducing the average power consumption in the low-power mode, and improving the wake-up experience of the touch key in the low-power mode.

[0139] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0140] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0141] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0142] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0143] The above is a detailed introduction to a touch button scanning circuit, a low power mode exit method and a low power mode exit device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technicians in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A touch key scanning circuit, characterized in that: It includes a key scanning unit, a trigger unit and a plurality of touch keys; the trigger unit includes: A master switch, a plurality of first switches and second switches corresponding to each other, wherein the second switches correspond to each other to the touch keys; one end of the master switch is connected to the key scanning unit, and the other end is respectively connected to one end of the plurality of first switches; the other end of the first switch is respectively connected to the key scanning unit and one end of the corresponding second switch; the other end of the second switch is connected to the corresponding touch key; When the master control switch, the first switch and the second switch are all closed, the touch key scanning circuit works in a multi-channel scanning mode; when the master control switch and the first switch are all disconnected and the second switches are all closed, the touch key scanning circuit works in a single-channel scanning mode; The touch key scanning circuit further includes a control unit connected to the key scanning unit, and the control unit is used to control the key scanning unit to switch between the multi-channel scanning mode and the single-channel scanning mode.

2. A method for exiting a low power consumption mode, characterized in that: Applied to the touch key scanning circuit of claim 1, the touch key scanning circuit having a multi-channel scanning mode, the method comprising: In the low power consumption mode, detecting a trigger signal of any touch key based on the multi-channel scanning mode; When a trigger signal of any touch key is detected, the low power consumption mode is exited.

3. The method according to claim 2, characterized in that In the low power consumption mode, detecting a trigger signal of any touch key based on the multi-channel scanning mode includes: In the low power consumption mode, the touch key scanning circuit is awakened by a timer interrupt or an external interrupt; After the touch key scanning circuit is awakened, a trigger signal of any touch key is detected based on the multi-channel scanning mode.

4. The method according to claim 2, characterized in that: When a trigger signal of any touch key is detected, exiting the low power consumption mode includes: When a trigger signal of any touch key is detected, determining whether the trigger signal is greater than or equal to a preset sensing threshold; When the trigger signal is greater than or equal to the sensing threshold, exiting the low power consumption mode; The method further comprises: When exiting the low power consumption mode, the multi-channel scanning mode is also exited.

5. The method according to claim 4, characterized in that The method further comprises: Acquire application environment characteristics of the touch key scanning circuit; Determining the first panel thickness of the touch button according to the application environment characteristics; The sensing threshold is determined according to the first panel thickness of the touch button.

6. The method according to claim 4, characterized in that The method further comprises: Acquiring functional characteristics of touch keys of the touch key scanning circuit; Determining the thickness of the second panel of the touch button according to the functional characteristics; The sensing threshold is determined according to the thickness of the second panel of the touch button.

7. The method according to claim 5, characterized in that The method further comprises: Configuring the parameters of the multi-channel scanning mode to enter the multi-channel scanning mode; In the multi-channel scanning mode, determining whether a trigger signal of any touch key is detected; When the trigger signal is detected, determining whether the trigger signal satisfies a condition for entering a low power consumption mode; When the trigger signal is not detected or the trigger signal meets the condition for entering the low power consumption mode, the low power consumption mode is entered.

8. A low power mode exit device, characterized in that: The touch key scanning circuit according to claim 1, wherein the touch key scanning circuit has a multi-channel scanning mode, and the device comprises: A trigger signal detection module, used to detect a trigger signal of any touch key based on the multi-channel scanning mode in a low power consumption mode; The low power consumption mode exit module is used to exit the low power consumption mode when a trigger signal of any touch key is detected.

9. The device according to claim 8, characterized in that The trigger signal detection module comprises: A scanning circuit wake-up submodule, used to wake up the touch key scanning circuit in the low power consumption mode by means of a timer interrupt or an external interrupt; The touch key scanning submodule is used to detect a trigger signal of any touch key based on the multi-channel scanning mode after waking up the touch key scanning circuit.

Citation Information

Patent Citations

  • Touch button scanning method and device, and computer readable storage medium

    CN108259044A