Dynamic clock management method and device, computer equipment and storage medium

Through the dynamic clock management method, the clock signals of the system state machine, analog front-end controller and processor are controlled and only operate when the system is idle, solving the problem of high dynamic power consumption in the existing technology and achieving more efficient energy manage.

CN118760352APending Publication Date: 2024-10-11SHENZHEN XIHUA TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410869938.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing touch sensing chips have problems with high power consumption in terms of dynamic power consumption management, and cannot be effectively optimized through clock management.

Method used

Through the dynamic clock management method, the clock signals of the system state machine, analog front-end controller and processor are controlled so that write access and parameter configuration are only performed when the system is idle, thereby reducing the dynamic power consumption of the capacitance detection system.

Benefits of technology

It effectively reduces the dynamic power consumption of the capacitance detection system and improves the working efficiency and energy efficiency of the chip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760352A_ABST
    Figure CN118760352A_ABST
Patent Text Reader

Abstract

The invention relates to a dynamic clock management method and device, computer equipment and a storage medium. The dynamic clock management method is used for performing dynamic power consumption control on the capacitance detection system. The capacitance detection system comprises an analog front-end controller, a processor and a system state machine. The analog front-end controller is connected with the processor and the system state machine, and the processor is also connected with the system state machine; the dynamic clock management method comprises the following steps: controlling a clock signal of a system state machine, so that a register in the system state machine can be written and accessed only when the system state machine is in an idle state; a clock signal of the analog front-end controller is controlled, so that working parameter configuration can be carried out on the analog front-end controller only when the system state machine is in an idle state; the clock signal of the processor is controlled, so that working parameter configuration can be carried out on the processor only when the system state machine is in an idle state. The dynamic clock management method can effectively reduce the dynamic power consumption of the capacitance detection system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of touch sensing chips, and in particular to a dynamic clock management method, device, computer equipment and storage medium. Background Art

[0002] In the field of touch sensing chip technology (such as capacitive detection systems), in addition to the design of system solutions, clock control of circuit design during operation can also effectively reduce dynamic power consumption. However, current touch sensing chips do not involve solutions that effectively reduce dynamic power consumption through clock control, and the problem of high dynamic power consumption is common. Summary of the invention

[0003] Based on this, it is necessary to provide a dynamic clock management method, apparatus, computer equipment and storage medium to address the technical problems in the above-mentioned background technology, so as to achieve the purpose of saving dynamic power consumption.

[0004] To achieve the above-mentioned purpose and other purposes, the first aspect of the present invention provides a dynamic clock management method for dynamically controlling power consumption of a capacitance detection system, wherein the capacitance detection system comprises: an analog front-end controller, a processor and a system state machine; the analog front-end controller is connected to the processor and the system state machine, and the processor is also connected to the system state machine; the dynamic clock management method comprises: controlling the clock signal of the system state machine so that the registers in the system state machine can be written and accessed only when the system state machine is in an idle state; controlling the clock signal of the analog front-end controller so that the working parameters of the analog front-end controller can be configured only when the system state machine is in an idle state; and controlling the clock signal of the processor so that the working parameters of the processor can be configured only when the system state machine is in an idle state.

[0005] The dynamic clock management method in the above embodiment controls the clock signal of the system state machine so that the registers in the system state machine can be written and accessed only when the system state machine is in an idle state; controls the clock signal of the analog front-end controller so that the working parameters of the analog front-end controller can be configured only when the system state machine is in an idle state; controls the clock signal of the processor so that the working parameters of the processor can be configured only when the system state machine is in an idle state; and can effectively reduce the dynamic power consumption of the capacitance detection system.

[0006] In some embodiments, the clock signal of the system state machine includes: a system state machine function clock signal, a system state machine register read clock signal and a system state machine register write clock signal; the clock signal of the system state machine is controlled so that the registers in the system state machine can be written and accessed only when the system state machine is in an idle state, including: the control system state machine function clock signal is always on, the control system state machine register read signal is always on; the control system state machine register write clock signal is only turned on when the system state machine is in an idle state.

[0007] In some embodiments, the clock signal of the analog front-end controller includes: an analog front-end controller functional clock signal and an analog front-end controller register clock signal; the working parameters of the analog front-end controller are stored in the register of the analog front-end controller; the clock signal of the analog front-end controller is controlled so that the working parameters of the analog front-end controller can be configured only when the system state machine is in an idle state, including: controlling the analog front-end controller functional clock signal to be turned off when the capacitance detection system is in a pause state and an idle state, and to be turned on when the capacitance detection system is in a working state; controlling the analog front-end controller register clock signal to be turned off when the capacitance detection system is in a pause state, and to be turned on when the capacitance detection system is in other states.

[0008] In some embodiments, when the analog front-end controller function clock signal is in an off state, if the analog front-end controller function clock signal needs to be reopened, the analog front-end controller function clock signal is turned on by setting the register of the analog front-end controller; when the analog front-end controller storage clock signal is in an off state, if the analog front-end controller storage clock signal needs to be reopened, the analog front-end controller storage clock signal is turned on by setting the register of the analog front-end controller.

[0009] In some embodiments, the clock signal of the processor includes: a processor function clock signal and a processor register clock signal; the operating parameters of the processor are stored in the register of the processor; the clock signal of the processor is controlled so that the operating parameters of the processor can be configured only when the system state machine is in an idle state, including: controlling the processor function clock signal to turn on after the analog front-end controller sends a control signal, and turning it off after the current phase data processing is completed; controlling the processor register clock signal to turn it off when the capacitance detection system is in a paused state, and turning it on when the capacitance detection system is in other states.

[0010] In some embodiments, when the processor function clock signal is in an off state, if the processor function clock signal needs to be turned on again, the processor function clock signal is turned on by setting the register of the processor; when the processor storage clock signal is in an off state, if the processor storage clock signal needs to be turned on again, the processor storage clock signal is turned on by setting the register of the processor.

[0011] The second aspect of the present invention provides a dynamic clock management device, which includes: a capacitance detection system, which includes: an analog front-end controller, a processor and a system state machine; the analog front-end controller is connected to the processor and the system state machine, and the processor is also connected to the system state machine; a control device is connected to the analog front-end controller, the processor and the system state machine; the control device is configured to: control the clock signal of the system state machine so that the registers in the system state machine can be written and accessed only when the system state machine is in an idle state; control the clock signal of the analog front-end controller so that the working parameters of the analog front-end controller can be configured only when the system state machine is in an idle state; control the clock signal of the processor so that the working parameters of the processor can be configured only when the system state machine is in an idle state.

[0012] In the dynamic clock management device in the above embodiment, a control device is set and configured to: control the clock signal of the system state machine so that the registers in the system state machine can be written and accessed only when the system state machine is in an idle state; control the clock signal of the analog front-end controller so that the working parameters of the analog front-end controller can be configured only when the system state machine is in an idle state; control the clock signal of the processor so that the working parameters of the processor can be configured only when the system state machine is in an idle state; through the above settings, the dynamic power consumption of the capacitance detection system can be effectively reduced.

[0013] In a third aspect, the present invention further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the above method when executing the computer program.

[0014] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps in the above method when executed by a processor.

[0015] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, which implements the steps in the above method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, without paying any creative work, they can also obtain drawings of other embodiments based on these drawings.

[0017] Figure 1 A flow chart of a dynamic clock management method provided in one embodiment of the present invention;

[0018] Figure 2 is a structural block diagram of a capacitance detection system provided in one embodiment of the present invention;

[0019] Figure 3 A schematic diagram of processing collected signals by an analog front-end controller and a processor in a capacitance detection system provided in an embodiment of the present invention;

[0020] Figure 4 A structural block diagram of a dynamic clock management device provided in another embodiment of the present invention;

[0021] Figure 5 An internal structure diagram of a computer device provided in accordance with another embodiment of the present invention.

[0022] Description of reference numerals:

[0023] 10. Capacitance detection system; 101. Analog front-end controller; 102. Processor; 103. System state machine; 20. Control device. DETAILED DESCRIPTION

[0024] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present invention are shown in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0026] In addition, certain terms used throughout the specification and the claims that follow refer to specific components. Those skilled in the art will understand that manufacturers may refer to components by different names. This document does not intend to distinguish between components that have different names but the same function. In the following description and embodiments, the terms "comprises" and "includes" are used in an open manner and should be interpreted as "including, but not limited to...". Similarly, the term "connected" is intended to express an indirect or direct electrical connection. Accordingly, if one device is connected to another device, the connection can be completed through a direct electrical connection, or through an indirect electrical connection through other devices and connectors.

[0027] It should be understood that although the terms "first", "second", etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first element may be referred to as a second element, and similarly, a second element may be referred to as a first element without departing from the scope of the present invention.

[0028] In the field of touch sensing chip technology (such as capacitive detection systems), in addition to the design of system solutions, clock control of circuit design during operation can also effectively reduce dynamic power consumption. However, current touch sensing chips do not involve solutions that effectively reduce dynamic power consumption through clock control, and the problem of high dynamic power consumption is common.

[0029] See also Figure 1 and Figure 2 The present invention provides a dynamic clock management method, which is used to dynamically control the power consumption of a capacitance detection system 10. The capacitance detection system 10 may include: an analog front end controller (AFEC) 101, a processor (DP) 102 and a system state machine (FSM) 103; the analog front end controller 101 is connected to the processor 102 and the system state machine 103, and the processor 102 is also connected to the system state machine 103; the dynamic clock management method may include the following steps: S10~S30.

[0030] S10: Controls the clock signal of the system state machine so that the registers (FSM reg) in the system state machine can be written and accessed only when the system state machine is in an idle state.

[0031] S20: Control the clock signal of the analog front-end controller so that the working parameters of the analog front-end controller can be configured only when the system state machine is in an idle state.

[0032] S30: Control the clock signal of the processor so that the operating parameters of the processor can be configured only when the system state machine is in an idle state.

[0033] The dynamic clock management method in the above embodiment controls the clock signal of the system state machine 103 so that the registers in the system state machine 103 can be written and accessed only when the system state machine is in an idle state; controls the clock signal of the analog front-end controller 101 so that the working parameters of the analog front-end controller 101 can be configured only when the system state machine 103 is in an idle state; controls the clock signal of the processor 102 so that the working parameters of the processor 102 can be configured only when the system state machine 103 is in an idle state; and can effectively reduce the dynamic power consumption of the capacitance detection system.

[0034] As an example, the clock signal of the system state machine 103 may include: a system state machine function clock signal (FSM function clock), a system state machine register read clock signal, and a system state machine register write clock signal.

[0035] As an example, in step S10, the clock signal of the system state machine 103 is controlled so that the registers in the system state machine 103 can be write-accessed only when the system state machine 103 is in an idle state. This may include: the function clock signal of the control system state machine is always on, the register read signal of the control system state machine is always on; the register write clock signal of the control system state machine is only turned on when the system state machine is in an idle state.

[0036] As an example, the clock signal of the analog front end controller 101 may include: an analog front end controller function clock signal (AFEC function clock) and an analog front end controller memory clock signal (AFEC memory clock); the working parameters of the analog front end controller 101 may be stored in the register of the analog front end controller.

[0037] As an example, in step S20, controlling the clock signal of the analog front-end controller 101 so that the working parameters of the analog front-end controller 101 can be configured only when the system state machine 103 is in an idle state may include: controlling the analog front-end controller function clock signal to be turned off when the capacitance detection system 10 is in a suspended state and an idle state, and to be turned on when the capacitance detection system 10 is in a working state; controlling the analog front-end controller storage clock signal to be turned off when the capacitance detection system 10 is in a suspended state, and to be turned on when the capacitance detection system 10 is in other states.

[0038] As an example, when the analog front-end controller function clock signal is in an off state, if the analog front-end controller function clock signal needs to be turned on again, the analog front-end controller function clock signal is turned on by setting the register of the analog front-end controller; specifically, the analog front-end controller function clock signal can be turned on at any time through register setting (rg_clken_afecfuc).

[0039] As an example, when the analog front-end controller register clock signal is in the off state, if the analog front-end controller register clock signal needs to be turned on again, the analog front-end controller register clock signal can be turned on by setting the register of the analog front-end controller; specifically, the analog front-end controller register clock signal can be turned on at any time through register setting (rg_clken_afecreg). At this time, if the capacitance detection system 10 is in a sleep state (standby mode), the register of the analog front-end controller can be put into a low power consumption mode.

[0040] As an example, the clock signal of the processor 102 may include: a processor function clock signal (DP function clock) and a processor memory clock signal (DP memory clock); the operating parameters of the processor 102 are stored in the registers of the processor 102 .

[0041] As an example, in step S30, the clock signal of the processor 102 is controlled so that the working parameters of the processor 102 can be configured only when the system state machine 103 is in an idle state, which may include: controlling the processor function clock signal to be turned on after the analog front-end controller 101 sends a control signal (afec data), and to be turned off after the current phase data processing is completed; controlling the processor register clock signal to be turned off when the capacitance detection system 10 is in a paused state, and to be turned on when the capacitance detection system 10 is in other states.

[0042] As an example, when the processor function clock signal is in an off state, if the processor function clock signal needs to be turned on again, the processor function clock signal is turned on by setting the register of the processor; specifically, the processor function clock signal can be turned on at any time through register setting (rg_clken_procfuc).

[0043] As an example, when the processor register clock signal is in an off state, if the processor register clock signal needs to be turned on again, the processor register clock signal can be turned on by setting the register of the processor; specifically, the processor register clock signal can be turned on at any time through register setting (rg_clken_procreg). At this time, if the capacitance detection system 10 is in a standby mode, the processor register can be put into a low power consumption mode.

[0044] In some embodiments, please refer to Figure 3 , the dynamic clock management method is automatically awakened and enters the scanning state at regular intervals, and then enters the pause state and waits for the next wake-up. Such a cycle is called a scanning cycle. In a scanning cycle, the signal acquisition process is executed in sequence by multiple time windows. The number of time windows that can be set is 0-30, and the time range of signal acquisition is set to 0-4 seconds. The channels for performing acquisition in each time window can flexibly configure the detection mode. In one scanning cycle, N (N is less than or equal to 30) time windows are set when acquiring signals. After the analog front-end controller processes the sampled data of a time window, the sampled data is sent to the processor for digital signal processing, where the running time of the processor is less than the running time of the analog front-end controller. When the processor ends its operation, the processor waits before the next sampled data arrives at the processor. At this time, the processor is in a low power consumption state. For example, when the analog front-end controller obtains the sampling data of time window 0, the processor is not running. The analog front-end controller transmits the sampling data of time window 0 to the processor for processing, and at the same time, the analog front-end controller processes the sampling data of time window 1. During the period when the analog front-end controller processes the sampling data of time window 1, the processor enters a low power consumption state after processing the sampling data of time window 0, and waits for the analog front-end controller to transmit the sampling data of time window 1. The analog front-end controller transmits the sampling data of time window 1 to the processor for processing. The time for the processor to process the sampling data of time window 1 is 6.2 microseconds. At the same time, the analog front-end controller processes the sampling data of time window 2. During the period when the analog front-end controller processes the sampling data of time window 2, the processor enters a low power consumption state after processing the sampling data of time window 1, and waits for the analog front-end controller to transmit the sampling data of time window 2, and so on, until the data of all time windows are processed by the processor. The analog front-end controller and the processor are used to run and process the sampling data simultaneously, which improves the working efficiency of the chip. When the processor 102 waits for the analog front-end controller 101 to transmit the sampling data, it enters a low power consumption state, which reduces the energy consumption of the chip.

[0045] In another embodiment, see Figure 4The present invention also provides a dynamic clock management device, which may include: a capacitance detection system 10 and a control device 20. The capacitance detection system 10 may include: an analog front-end controller 101, a processor 102 and a system state machine 103; the analog front-end controller 101 is connected to the processor 102 and the system state machine 103, and the processor 102 is also connected to the system state machine 103; the control device 20 is connected to the analog front-end controller 101, the processor 102 and the system state machine 103; the control device 20 is configured to: control the clock signal of the system state machine 103, so that the registers in the system state machine 103 can only be written and accessed when the system state machine 103 is in an idle state; control the clock signal of the analog front-end controller 101, so that the working parameters of the analog front-end controller 101 can be configured only when the system state machine 103 is in an idle state; control the clock signal of the processor 102, so that the working parameters of the processor 102 can be configured only when the system state machine 103 is in an idle state.

[0046] In the dynamic clock management device in the above embodiment, the control device 20 is set and configured to: control the clock signal of the system state machine 103, so that the registers in the system state machine 103 can be written and accessed only when the system state machine 103 is in an idle state; control the clock signal of the analog front-end controller 101, so that the working parameters of the analog front-end controller 101 can be configured only when the system state machine 103 is in an idle state; control the clock signal of the processor 102, so that the working parameters of the processor 102 can be configured only when the system state machine 103 is in an idle state; through the above settings, the dynamic power consumption of the capacitance detection system 10 can be effectively reduced.

[0047] In another embodiment, please refer to Figure 4The system state machine 103 is configured to control the dynamic clock management device to be in the calibration state in response to the calibration command in the idle state, assist the analog front-end controller 101 in the environment adaptive calibration, control the dynamic clock management device to be in the scanning state in response to the scan command in the idle state, or enter the scanning state in the pause state by being triggered by the automatic scan cycle, collect signal data, and analyze whether there is an object approaching or touching according to the data; a scan cycle includes a scan state and a pause state; the analog front-end controller 101 is connected to the data acquisition module (not shown) and the system state machine 103, and is used to obtain and store working parameters during the idle state, and to Generate data processing control commands during scanning state or correction state, and compress the sampled data generated by the data acquisition module in response to the data processing control commands to generate compressed data, so as to avoid excessive and redundant sampled data and reduce storage space; the data processing control commands are used to control the data acquisition module to generate sampled data based on working parameters; the working parameters include data acquisition working mode and data acquisition state parameters; the processor 102 is connected to the system state machine 103, the analog front-end controller 101 and the data acquisition module, and is used to perform preset algorithm processing on the initial processed data provided by the data acquisition module during the scanning state, and generate a result signal for indicating whether there is a proximity event.

[0048] In some embodiments, the analog front-end controller compresses the sampled data, and can perform SQRT processing and noise detection (ND) processing. SQRT processing is to calculate the square root of the data. The data obtained after orthogonal demodulation of the sampled data is subjected to SQRT processing, and the number of system state machine loop iterations, the starting value r0^2, and the basic storage unit decimal value b^2 are determined according to the most significant bit of the sampled data, according to the following formula:

[0049] (r0+b)^2=r0^2+b^2+r0*b*2= r0^2+b^2+r0 (1)

[0050] Among them, r0+b represents the sum of the current result and the value represented by the next basic storage unit to be judged, that is, the result sum. When adjusting the result sum, the square of the result sum is adjusted at the same time, which is used to compare with the square root number, and iterates continuously. Taking the decimal result of each bit of the data as a reference, the final accurate decimal value is obtained by coarse adjustment from the highest bit and fine adjustment from the lower bit.

[0051] The sampled data is processed by ND. By setting multiple virtual channels, frequency noise detection is performed on the sampled data in each time window. The sampled data is compared with the noise detection threshold and reported when it exceeds the threshold, thereby realizing noise detection of the sampled data.

[0052] In some embodiments, the system state machine is further configured to perform at least one of the following steps:

[0053] After being powered on and reset, the control processor is in the initial state;

[0054] After the start state ends and the preparation work is completed, the control processor is in an idle state;

[0055] After the calibration state is completed, the control processor is in an idle state;

[0056] controlling the processor to be in an idle state in response to an idle command during the suspend state;

[0057] In response to an idle command during the scanning state, the processor is controlled to be in an idle state after the current frame data processing is completed.

[0058] Specifically, the system state machine controls the processor to be in the starting state after being powered on and reset, at which time the initial preparation process of the dynamic clock management device will be carried out; the system state machine controls the processor to be in the idle state after the starting state ends and the preparation work is completed. After the starting state ends, all sub-modules of the dynamic clock management device will complete all preparation work and enter the idle state. At this time, the dynamic clock management device starts to work normally and waits for other commands to switch the working mode; the system state machine controls the processor to be in the idle state after the calibration state ends. In the calibration state, the system state machine assists the analog front-end controller in performing environmental adaptive calibration. After the data acquisition module collects signal data, the signal data is transmitted to the analog front-end controller for processing to generate compressed data and generate a correction end command; during the scanning state, the system state machine responds to the idle command to control the processor to be in the idle state after the current frame data processing is completed. During the scanning state, the processor officially works. After the signal data is collected by the data acquisition module, the analog front-end controller and the processor process the collected signal data to analyze whether there is an object approaching or touching, thereby giving a result signal.

[0059] In some embodiments, the system state machine avoids the processor from being in a high power consumption state for a long time, thereby achieving energy saving and environmental protection, by controlling the processor to be in a starting state after being powered on and reset, controlling the processor to be in an idle state after the starting state ends, controlling the processor to be in an idle state after the calibration state ends, controlling the processor to be in an idle state in response to an idle command during the pause state, and controlling the processor to be in an idle state after the current frame data processing is completed during the scanning state.

[0060] In some embodiments, the processor may include low-pass filtering, channel correction, useful signal filtering, obtaining the mean value of environmental capacitance, proximity analysis and capacitance compensation. In order to filter out high-frequency signals, such as noise, interference, etc., a low-pass filter is used to process the initial data, and then one of the time windows is selected to collect the environmental capacitance as a reference capacitance. The reference capacitance is used as a benchmark to filter and correct the useful signal; when a proximity event occurs, the large change in capacitance value is not dominated by the environmental capacitance. In order to prevent this change from affecting the real environmental benchmark, a new variable environmental capacitance mean is introduced. The environmental capacitance mean is compared with the benchmark to determine the cause of the capacitance change and analyze whether there is an object approaching; the role of capacitance / current compensation is to offset the influence of environmental capacitance and avoid the sampling data approaching the upper and lower saturation expectations. The dynamic clock management device submodule supports one-button startup of capacitance / current compensation, finds the best capacitance / current compensation gear by stepping through the search method, and falls back to the appropriate value.

[0061] In some embodiments, since the general analog-to-digital converter (ADC) sampling supports both hardware-triggered sampling and software-triggered sampling, and the touch key (TK) supports software-triggered single sampling and hardware-triggered periodic sampling, if there is no restriction, it may happen that both the general ADC and TK need to occupy the ADC core for sampling at the same time, causing resource conflicts. Sampling conflicts can be avoided by setting priorities. For example, ADC priority is set. If an ADC sampling request occurs during the operation of the dynamic clock management device, the dynamic clock management device adopts a non-oversampling mode and enters a waiting state when the time window alternates. After the ADC sampling is completed, the system state machine continues to sample; for another example, TK priority is set. The chip cannot sense the priority, and the ADC is forced to be in an idle (not busy) state, and TK performs sampling.

[0062] In another embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 5As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an orthogonal demodulation method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0063] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0064] In yet another embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0065] In yet another embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0066] In yet another embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0067] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0068] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnet resistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0069] Please note that the above embodiments are for illustrative purposes only and are not meant to limit the present invention.

[0070] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0071] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A dynamic clock management method, characterized in that: The method is used to dynamically control power consumption of a capacitance detection system, wherein the capacitance detection system comprises: an analog front-end controller, a processor and a system state machine; the analog front-end controller is connected to the processor and the system state machine, and the processor is also connected to the system state machine; the dynamic clock management method comprises: Controlling a clock signal of the system state machine so that registers in the system state machine can be written and accessed only when the system state machine is in an idle state; Controlling the clock signal of the analog front-end controller so that the working parameters of the analog front-end controller can be configured only when the system state machine is in an idle state; The clock signal of the processor is controlled so that the operating parameters of the processor can be configured only when the system state machine is in an idle state.

2. The dynamic clock management method according to claim 1, characterized in that: The clock signal of the system state machine includes: a system state machine function clock signal, a system state machine register read clock signal and a system state machine register write clock signal; the clock signal of the system state machine is controlled so that the registers in the system state machine can be written and accessed only when the system state machine is in an idle state, including: Control the function clock signal of the system state machine to be normally on, and control the register read signal of the system state machine to be normally on; The system state machine is controlled to register a write clock signal so as to be turned on only when the system state machine is in an idle state.

3. The dynamic clock management method according to claim 1, characterized in that: The clock signal of the analog front-end controller includes: an analog front-end controller functional clock signal and an analog front-end controller registration clock signal; the working parameters of the analog front-end controller are stored in the register of the analog front-end controller; the clock signal of the analog front-end controller is controlled so that the working parameters of the analog front-end controller can be configured only when the system state machine is in an idle state, including: Controlling the analog front-end controller function clock signal to be turned off when the capacitance detection system is in a pause state and an idle state, and to be turned on when the capacitance detection system is in a working state; The analog front end controller register clock signal is controlled to be turned off when the capacitance detection system is in a pause state, and to be turned on when the capacitance detection system is in other states.

4. The dynamic clock management method according to claim 3, characterized in that: When the analog front end controller function clock signal is in an off state, if the analog front end controller function clock signal needs to be reopened, the analog front end controller function clock signal is turned on by setting a register of the analog front end controller; When the analog front end controller register clock signal is in the off state, if the analog front end controller register clock signal needs to be reopened, the analog front end controller register clock signal is turned on by setting the register of the analog front end controller.

5. The dynamic clock management method according to claim 1, characterized in that: The clock signal of the processor includes: a processor function clock signal and a processor register clock signal; the operating parameters of the processor are stored in the register of the processor; the clock signal of the processor is controlled so that the operating parameters of the processor can be configured only when the system state machine is in an idle state, including: Control the processor function clock signal to turn on after the analog front-end controller sends a control signal, and turn off after the current phase data processing is completed; The processor register clock signal is controlled to be turned off when the capacitance detection system is in a pause state, and to be turned on when the capacitance detection system is in other states.

6. The dynamic clock management method according to claim 5, characterized in that: When the processor function clock signal is in an off state, if the processor function clock signal needs to be turned on again, the processor function clock signal is turned on by setting a register of the processor; When the processor register clock signal is in an off state, if the processor register clock signal needs to be reopened, the processor register clock signal is turned on by performing register setting on the register of the processor.

7. A dynamic clock management device, characterized in that: include: A capacitance detection system, the capacitance detection system comprising: an analog front-end controller, a processor and a system state machine; The analog front end controller is connected to both the processor and the system state machine, and the processor is also connected to the system state machine; A control device is connected to the analog front-end controller, the processor and the system state machine; the control device is configured to: control the clock signal of the system state machine so that the registers in the system state machine can be written and accessed only when the system state machine is in an idle state; control the clock signal of the analog front-end controller so that the working parameters of the analog front-end controller can be configured only when the system state machine is in an idle state; control the clock signal of the processor so that the working parameters of the processor can be configured only when the system state machine is in an idle state.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Main board and electronic device having the same

    TWI911983B