Signal adjustment method, timing circuit and controller
The method allows software-controlled adjustment of filter parameters by modifying the duty cycle of a switch module based on previous touch sample signals, addressing inefficiencies in manual resistor adjustments and enhancing signal quality and adaptability.
Patent Information
- Application Number
- CN202211483149.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-24
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2042-11-24
AI Technical Summary
In the prior art, when adjusting the cutoff frequency and gain of the filter, it is necessary to manually change the resistance value in the circuit, which is inflexible and cannot adapt to different environments.
By obtaining the touch sampling signal output by the signal conditioning unit at the previous moment, determining the adjustment signal based on the mapping relationship and the touch sampling signal, adjusting the duty cycle of the switch module, and adjusting the resistance value of the resistor module in software to realize the frequency and gain adjustment of the filter.
It realizes flexible and delicate signal adjustment, adapts to different environments, improves signal balance and filter adjustment efficiency, and reduces the need for hardware replacement.
Smart Images

Figure CN116679841B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of signal processing, and in particular, to a signal adjustment method, a timing circuit, and a controller. Background Art
[0002] Currently, the scanning method of the emission lamp is a polling-on method, and the A / D acquisition circuit also needs to poll and acquire signals. Currently, in order to ensure the accuracy of signal acquisition, the touch frame circuit adopts a signal grounding circuit. In the existing solution, when adjusting the cut-off frequency and gain of the filter, only the resistance value in the circuit can be manually changed. For example, replacing the resistor in the circuit or adding a new resistor to the circuit. Summary of the Invention
[0003] The main purpose of this application is to provide a signal adjustment method, a timing circuit, and a controller to solve the problem that in the prior art, when adjusting the cut-off frequency and gain of the filter, only the resistance value in the circuit can be manually changed.
[0004] According to an aspect of an embodiment of the present invention, a signal adjustment method is provided. The method is applied to a control unit of a timing circuit. The timing circuit includes a signal conditioning unit. The signal conditioning unit is electrically connected to the control unit. The signal conditioning unit includes a resistor module, a capacitor module, and a switch module. A first end of the capacitor module is electrically connected to a voltage input terminal. A second end of the capacitor module is respectively electrically connected to a first end of the resistor module and a first end of the switch module. A second end of the resistor module and a second end of the switch module are both grounded. The first end of the switch module is connected to a voltage output terminal. The voltage input terminal is an input end of the signal conditioning unit. The voltage output terminal is an output end of the signal conditioning unit. The method includes: obtaining a touch sampling signal output by the signal conditioning unit at the previous moment; determining an adjustment signal according to the received touch sampling signal at the previous moment, and outputting the adjustment signal to the first end of the switch module to adjust the duty cycle of the switch module.
[0005] Optionally, determining an adjustment signal according to the received touch sampling signal at the previous moment includes: obtaining a mapping relationship, where the mapping relationship is a mapping relationship between the resistance value of the resistor module and a grounding signal. The grounding signal is used to indicate whether the switch module is disconnected. When the switch module is disconnected, the grounding signal is in a first level state. When the switch module is turned on, the grounding signal is in a second level state; determining the adjustment signal according to the mapping relationship and the touch sampling signal at the previous moment.
[0006] Optionally, the mapping relationship is one of the following: when the duration of the ground guiding signal in the first level state gradually increases, or the duration of the second level state gradually decreases, the resistance value of the resistance module gradually decreases; when the duration of the ground guiding signal in the first level state gradually decreases, or the duration of the second level state gradually increases, the resistance value of the resistance module gradually increases.
[0007] Optionally, the timing circuit further includes a signal lamp, the signal lamp is electrically connected to the signal conditioning unit. When the ground guiding signal is in the first level state, the signal lamp in the timing circuit is in the on state. When the ground guiding signal is in the second level state, the signal lamp in the timing circuit is in the off state.
[0008] Optionally, after adjusting the duty cycle of the switch module, the method further includes: generating a first pulse wave according to the state of the signal lamp, the first pulse wave is used to characterize the timing change of the state of the signal lamp; generating a second pulse wave according to the adjusted duty cycle of the switch module, the second pulse wave is used to characterize the timing change of the adjusted duty cycle; acquiring a first voltage timing signal of the voltage input terminal, the first voltage timing signal is used to characterize the timing change of the level state of the voltage input terminal; acquiring a second voltage timing signal of the voltage output terminal, the second voltage timing signal is used to characterize the timing change of the level state of the voltage output terminal.
[0009] Optionally, after adjusting the duty cycle of the switch module, the method further includes: determining the adjusted resistance value of the resistance module according to the adjusted duty cycle of the switch module; determining the signal cut-off frequency of the filter according to the adjusted resistance value, the filter is a filter composed of the resistance module and the capacitance module; determining the circuit gain of the signal conditioning unit according to the adjusted resistance value.
[0010] Optionally, during the process of adjusting the duty cycle of the switch module, the method further includes: generating a first prompt message when the adjusted duty cycle is not within the target range, the first prompt message includes an optoelectronic prompt message; generating a second prompt message when the resistance value corresponding to the adjusted duty cycle is greater than or equal to the resistance value threshold, the second prompt message includes an audible prompt message.
[0011] Optionally, the first level state is a high level state, the second level state is a low level state, and the mapping relationship is a linear relationship.
[0012] According to another aspect of the embodiments of the present invention, there is also provided an apparatus including a control unit and a signal conditioning unit. The signal conditioning unit is electrically connected to the control unit. The signal conditioning unit includes a resistor module, a capacitor module, and a switch module. A first end of the capacitor module is electrically connected to a voltage input terminal. A second end of the capacitor module is respectively electrically connected to a first end of the resistor module and a first end of the switch module. A second end of the resistor module and a second end of the switch module are both grounded. The first end of the switch module is connected to a voltage output terminal. The control unit is configured to execute any one of the above methods.
[0013] Optionally, the timing circuit further includes: a transmitting signal lamp unit electrically connected to the control unit; a receiving signal lamp unit having a first end and a second end. The first end of the receiving signal lamp unit is electrically connected to the signal conditioning unit, and the second end of the receiving signal lamp unit is electrically connected to the control unit.
[0014] According to yet another aspect of the embodiments of the present invention, there is also provided a controller, including: one or more processors, a memory, and one or more programs. Wherein, the one or more programs are stored in the memory and are configured to be executed by the one or more processors. The one or more programs include those for executing any one of the above methods.
[0015] In the embodiments of the present invention, first, a touch sampling signal output by the signal conditioning unit at the previous moment is obtained. Then, an adjustment signal is determined according to the received touch sampling signal at the previous moment, and the adjustment signal is output to the first end of the switch module to adjust the duty cycle of the switch module. In this solution, the touch sampling signal is controlled separately, and then the adjustment signal is determined according to the touch sampling signal. In this way, the duty cycle of the switch module can be adjusted by the adjustment signal, without the need to adjust the duty cycle of the switch module in a hardware manner. Moreover, in this solution, since the duty cycle of the switch module is adjusted in a software manner, it can be adjusted more finely, so as to ensure that the adjusted signal reaches a better balance. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings forming a part of this application are used to provide a further understanding of this application. The schematic embodiments of this application and their descriptions are used to explain this application and do not constitute an improper limitation to this application. In the drawings:
[0017] Figure 1 A schematic diagram of touch frame scanning is shown;
[0018] Figure 2 A flowchart of a signal adjustment method according to an embodiment of this application is shown;
[0019] Figure 3Shows a schematic waveform diagram in some embodiments;
[0020] Figure 4 Shows a schematic waveform diagram of an embodiment of the present application;
[0021] Figure 5 Shows a schematic structural diagram of a timing circuit;
[0022] Figure 6 Shows a schematic structural diagram of a signal conditioning unit;
[0023] Figure 7 Shows a schematic structural diagram of a signal adjustment device according to an embodiment of the present application.
[0024] Among them, the above-mentioned drawings include the following reference numerals:
[0025] 10. Transmitting lamp; 11. Receiving lamp; 20. Control unit; 21. Signal conditioning unit; 22. Transmitting signal lamp unit; 23. Receiving signal lamp unit; 210. Resistance module; 211. Capacitance module; 212. Switch module. Detailed implementation manners
[0026] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the drawings and in combination with the embodiments.
[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so as to describe the embodiments of the present application here. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0029] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, the element can be directly on the other element, or there can also be intermediate elements. Moreover, in the specification and claims, when an element is described as being "connected" to another element, the element can be "directly connected" to the other element, or "connected" to the other element through a third element.
[0030] The current method of touch frame scanning is as Figure 1 shown. The touch frame includes a plurality of emission lamps 10 (T1, T2... T22), and also includes a plurality of reception lamps 11 (R1, R2... R22). The emission lamps 10 are polled and scanned, and the reception lamps 11 within the corresponding range receive signals in sequence. Then, according to whether the signals are blocked (physically blocked by an object on the touch frame, for example, when a finger clicks on the touch frame, the clicked part is a focus and this focus is blocked), the coordinates of the blocked position are calculated through an algorithm and output, so as to realize functions such as clicking, drawing lines, and touching of the infrared touch frame, as Figure 1 shown in. Each light ray corresponds to a signal emitted by the emission lamp 10.
[0031] Embodiment 1
[0032] According to an embodiment of the present invention, an embodiment of a signal adjustment method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And, although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0033] The above signal adjustment method is applied to the control unit of a timing circuit. The above timing circuit includes a signal conditioning unit. The signal conditioning unit is electrically connected to the control unit. The signal conditioning unit includes a resistor module, a capacitor module, and a switch module. The first end of the capacitor module is electrically connected to a voltage input terminal. The second end of the capacitor module is respectively electrically connected to the first end of the resistor module and the first end of the switch module. The second ends of the resistor module and the switch module are both grounded. The first end of the switch module is connected to a voltage output terminal. The voltage input terminal is the input terminal of the signal conditioning unit, and the voltage output terminal is the output terminal of the signal conditioning unit.
[0034] Figure 2 is a flowchart of the signal adjustment method according to an embodiment of the present application. As Figure 2 shown, the method includes the following steps:
[0035] Step S101, obtain the touch sampling signal output by the signal conditioning unit at the previous moment;
[0036] Step S102: Determine an adjustment signal according to the received touch sampling signal at the previous moment, and output the adjustment signal to the first end of the switch module to adjust the duty cycle of the switch module.
[0037] In the above method, first obtain the touch sampling signal output by the signal conditioning unit at the previous moment, then determine the adjustment signal according to the received touch sampling signal at the previous moment, and output the adjustment signal to the first end of the switch module to adjust the duty cycle of the switch module. In this solution, the touch sampling signal is controlled separately, and then the adjustment signal is determined according to the touch sampling signal. In this way, the duty cycle of the switch module can be adjusted by the adjustment signal, without adjusting the duty cycle of the switch module in a hardware manner. Moreover, in this solution, since the duty cycle of the switch module is adjusted in a software manner, it can be adjusted more delicately, so that the adjusted signal can reach a better balance.
[0038] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0039] In an alternative embodiment, determining the adjustment signal according to the received touch sampling signal at the previous moment includes: obtaining a mapping relationship, where the mapping relationship is the mapping relationship between the resistance value of the resistance module and the ground signal, and the ground signal is used to indicate whether the switch module is disconnected. When the switch module is disconnected, the ground signal is in the first level state, and when the switch module is conducting, the ground signal is in the second level state; determine the adjustment signal according to the mapping relationship and the touch sampling signal at the previous moment. In this embodiment, the ground signal is controlled separately, and then the adjustment signal is determined more accurately according to the mapping relationship and the touch sampling signal, without determining the adjustment signal in a hardware adjustment manner. Moreover, in this solution, since the adjustment signal is determined in a software manner, it can ensure that the duty cycle of the switch module can be adjusted more delicately subsequently, so that the adjusted signal can reach a better balance.
[0040] In an optional embodiment, the mapping relationship is one of the following: when the duration of the ground-conducting signal in the first level state gradually increases, or the duration of the second level state gradually decreases, the resistance value of the resistance module gradually decreases; when the duration of the ground-conducting signal in the first level state gradually decreases, or the duration of the second level state gradually increases, the resistance value of the resistance module gradually increases. Through the mapping relationship, the duty cycle of the switch module can be adjusted, and then the resistance value can be adjusted by adjusting the duty cycle of the switch module.
[0041] Optionally, the duration t0-t1 of the ground-conducting signal being in the second level state is in a linear relationship with the resistance value (equivalent resistance R) of the resistance module.
[0042] In an optional embodiment, the timing circuit further includes a signal lamp, the signal lamp is electrically connected to the signal conditioning unit, and when the ground signal is in the first level state, the signal lamp in the timing circuit is in a light-on state, and when the ground signal is in the second level state, the signal lamp in the timing circuit is in a light-off state. In this embodiment, since the states of the ground signal and the signal lamp are staggered, the ground signal can be controlled separately, and the state of the signal lamp can be adjusted by adjusting the ground signal.
[0043] Optionally, the current sequential circuit has a light switch control signal, which is a light on control signal when it is in a high level state, and a light off control signal when it is in a low level state, and the grounding signal of the switch module is turned on when it is in a low level state, and the grounding signal of the switch module is disconnected when it is in a high level state. In the current application, the grounding signal and the light switch control signal are complementary signals. When the light is turned off, the switch module is disconnected. At this time, the signal at the voltage input end is quickly discharged to the ground, the resistance value of the resistor module decreases, the cutoff frequency increases, and the discharge time decreases under the effect of the resistance value of the resistor module. Before the next light is turned on, the residual signal generated by the previous light is quickly released to avoid superposition and crosstalk with the signal generated when the next light is turned on. However, since the grounding signal and the light switch control signal are complementary signals, when the cycle of the light switch remains unchanged, when you want to adjust the cutoff frequency of the filter and the circuit gain of the signal conditioning unit, you can only manually adapt and change the resistor module in the sequential circuit, which is inflexible and has limited parameters for changing hardware. However, for different environments, the signal at the voltage input end is sometimes high and sometimes low. At this time, the cutoff frequency cannot be changed, and the duty cycle of the switching module cannot be changed. Therefore, the voltage output end cannot adapt to different environments.
[0044] Optionally, in this solution, the ground signal and the switch light control signal are controlled separately. In the original solution, the hardware was adjusted, but now it is adjusted through software, which is equivalent to adjusting the hardware. Moreover, the software adjustment method is faster and can also be used to adjust the resistance value of the resistance module in real time, while the original solution could not meet the requirements.
[0045] Optionally, in the original solution, the resistance was changed and the output signal was observed to see if it met the requirements after the change. In this solution, software is directly used for adjustment. When the output signal does not meet the requirements, it is adjusted through software, and the adjustment can be made according to the duration of the ground signal in the first level state or the second level state. Through this solution, the resistance value of the resistance module can be obtained first, and then the ground signal can be adjusted to determine whether the output signal meets the requirements, that is, whether it is within the target range. If the output signal is not within the target range, it is adjusted through software. If the output signal is still not within the target range after multiple adjustments, the hardware is adjusted.
[0046] Moreover, it is also possible to determine whether the output signal reaches an ideal state based on the influence between signal lights. For example, when the first signal light is turned on, the second signal light is also turned on. The second signal light will be affected by the first signal light. Therefore, a part of the influence of the first signal light on the second signal light needs to be removed. Moreover, the ideal state is to remove all the influence, but in actual applications, the influence may still exist. Therefore, a part of this influence can be removed to ensure that the turning on and off of the second signal light are not affected by the first signal light. According to different environments, the duration of the ground signal in the first level can also be adjusted, which can be determined according to the actual application scenario. This can effectively filter out interference signals (such as the residual signals of the previous signal light), make the signal intensity reach the best, and also improve the ability of the ground signal to adapt to the environment.
[0047] In an alternative embodiment, after adjusting the duty cycle of the above-mentioned switching module, the above method further includes: generating a first pulse wave according to the state of the above-mentioned signal lamp, where the first pulse wave is used to characterize the timing change of the state of the above-mentioned signal lamp; generating a second pulse wave according to the adjusted duty cycle of the above-mentioned switching module, where the second pulse wave is used to characterize the timing change of the adjusted duty cycle;; obtaining a first voltage timing signal of the above-mentioned voltage input terminal, where the first voltage timing signal is used to characterize the timing change of the level state of the above-mentioned voltage input terminal; obtaining a second voltage timing signal of the above-mentioned voltage output terminal, where the second voltage timing signal is used to characterize the timing change of the level state of the above-mentioned voltage output terminal. In this embodiment, through the generated first pulse wave, second pulse wave, first voltage timing signal and second voltage timing signal, the relationship between the corresponding four signals can still be determined, which is more convenient for the staff to observe the waveform.
[0048] Optionally, the first pulse wave is a first PWM wave, the second pulse wave is a second PWM wave, the first voltage timing signal is a third PWM wave, and the second voltage timing signal is a fourth PWM wave.
[0049] Optionally, the waveform diagram generated by the original solution is as Figure 3 shown, the switch lamp control signal is Ton / Toff, the ground signal is R_DD, the first voltage timing signal is Vin, the second voltage timing signal is Vout, according to Figure 3 it can be determined that the switch lamp control signal and the ground signal are complementary, and the waveform diagram generated by adopting this solution is as Figure 4 shown, the turn-off lamp control signal is Ton / Toff, the ground signal is R_DD, the first voltage timing signal is Vin, the second voltage timing signal is Vout, according to Figure 4 it can be determined that the switch lamp control signal and the ground signal are staggered controlled.
[0050] In an alternative embodiment, after adjusting the duty cycle of the above-mentioned switching module, the above method further includes: determining the adjusted resistance value of the above-mentioned resistance module according to the adjusted duty cycle of the above-mentioned switching module; determining the signal cut-off frequency of the filter according to the adjusted resistance value, where the filter is a filter composed of the above-mentioned resistance module and the above-mentioned capacitance module; determining the circuit gain of the above-mentioned signal conditioning unit according to the adjusted resistance value. In this embodiment, since the resistance value of the resistance module is adjusted by software, the resistance value can be adjusted more delicately. When adjusting the signal cut-off frequency and the circuit gain, there is no need to manually change the resistance value in the circuit, which improves the efficiency of adjusting the signal cut-off frequency and the circuit gain.
[0051] Optionally, the formula for calculating the signal cut-off frequency is Among them, fc represents the signal cut-off frequency, R represents the adjusted resistance value, and C represents the capacitance value. The formula for calculating the time constant of the timing circuit is t = R×C.
[0052] Optionally, the formula for calculating the circuit gain is where A V represents the circuit gain, V OUT represents the voltage at the voltage output terminal, V IN represents the voltage at the voltage input terminal, and Xc represents the impedance, which is calculated based on the capacitance value.
[0053] In an alternative embodiment, during the process of adjusting the duty cycle of the above-mentioned switch module, the method further includes: generating a first prompt message when the adjusted duty cycle is not within the target range, and the first prompt message includes an optoelectronic prompt message; generating a second prompt message when the resistance value corresponding to the adjusted duty cycle is greater than or equal to the resistance value threshold, and the second prompt message includes an audible prompt message. In this embodiment, the staff can be prompted by the first prompt message to know in time that the adjusted duty cycle is not within the target range, and the staff can be prompted by the second prompt message to know in time that the adjusted resistance value is relatively large.
[0054] In an alternative embodiment, the first level state is a high level state and the second level state is a low level state. Of course, the first level state can also be a low level state and the second level state can also be a high level state.
[0055] In an alternative embodiment, the above mapping relationship is a linear relationship. The mapping relationship can be more accurately described by a linear relationship.
[0056] Embodiment 2
[0057] According to an embodiment of the present invention, a timing circuit is provided. This timing circuit can execute the signal adjustment method provided in the above Embodiment 1. The specific implementation manner and preferred application scenario are the same as those in the above Embodiment 1 and will not be elaborated here.
[0058] Figure 5 is a schematic structural diagram of a timing circuit according to an embodiment of the present invention. As Figure 5 shown, the circuit includes a control unit 20 and a signal conditioning unit 21. The signal conditioning unit 21 is electrically connected to the control unit 20. As Figure 6 shown, the signal conditioning unit 21 includes a resistor module 210, a capacitor module 211, and a switch module 212. The first end of the capacitor module 211 is connected to the voltage input terminal ( Figure 6is electrically connected to Vin), the second ends of the above-mentioned capacitor module 211 are respectively electrically connected to the first end of the above-mentioned resistor module 210 and the first end of the above-mentioned switch module 212, the second ends of the above-mentioned resistor module 210 and the above-mentioned switch module 212 are both grounded, and the first end of the above-mentioned switch module 212 is connected to the voltage output terminal ( Figure 6 is Vout).
[0059] As Figure 5 shown, the above-mentioned timing circuit further includes a transmitting signal lamp unit 22 and a receiving signal lamp unit 23. The transmitting signal lamp unit 22 is electrically connected to the above-mentioned control unit 20; the receiving signal lamp unit 23 has a first end and a second end. The first end of the above-mentioned receiving signal lamp unit 23 is electrically connected to the above-mentioned signal conditioning unit 21, and the second end of the above-mentioned receiving signal lamp unit 23 is electrically connected to the above-mentioned control unit 20.
[0060] Embodiment 3
[0061] According to an embodiment of the present invention, a signal adjustment device is provided. The signal adjustment device can execute the signal adjustment method provided in the above-mentioned Embodiment 1. The specific implementation manner and preferred application scenario are the same as those in the above-mentioned Embodiment 1, and will not be elaborated here.
[0062] Figure 7 is a signal adjustment device according to an embodiment of the present invention. The above-mentioned signal adjustment device is electrically connected to the control unit in the timing circuit. The above-mentioned timing circuit includes a signal conditioning unit. The above-mentioned signal conditioning unit is electrically connected to the above-mentioned control unit. The above-mentioned signal conditioning unit includes a resistor module, a capacitor module, and a switch module. The first end of the above-mentioned capacitor module is electrically connected to the voltage input terminal. The second ends of the above-mentioned capacitor module are respectively electrically connected to the first end of the above-mentioned resistor module and the first end of the above-mentioned switch module. The second ends of the above-mentioned resistor module and the above-mentioned switch module are both grounded. The first end of the above-mentioned switch module is connected to the voltage output terminal. The above-mentioned voltage input terminal is the input terminal of the above-mentioned signal conditioning unit, and the above-mentioned voltage output terminal is the output terminal of the above-mentioned signal conditioning unit. The above-mentioned signal adjustment device includes:
[0063] A first acquisition unit 100, configured to acquire the touch sampling signal output by the above-mentioned signal conditioning unit at the previous moment;
[0064] An adjustment unit 200, configured to determine an adjustment signal according to the received touch sampling signal at the previous moment, and output the above-mentioned adjustment signal to the first end of the above-mentioned switch module to adjust the duty cycle of the above-mentioned switch module.
[0065] In the above device, the first acquisition unit acquires the touch sampling signal output by the signal conditioning unit at the previous moment. The adjustment unit determines an adjustment signal according to the received touch sampling signal at the previous moment, and outputs the adjustment signal to the first end of the switch module to adjust the duty cycle of the switch module. In this solution, the touch sampling signal is controlled separately, and then the adjustment signal is determined according to the touch sampling signal, so that the duty cycle of the switch module can be adjusted by the adjustment signal, without adjusting the duty cycle of the switch module in a hardware manner. Moreover, in this solution, since the duty cycle of the switch module is adjusted by software, it can be adjusted more delicately, so that the adjusted signal can reach a better balance.
[0066] In an optional embodiment, the adjustment unit includes an acquisition module and a determination module. The acquisition module is used to acquire a mapping relationship, where the mapping relationship is the mapping relationship between the resistance value of the above resistance module and the ground signal. The ground signal is used to indicate whether the switch module is disconnected. When the switch module is disconnected, the ground signal is in the first level state, and when the switch module is turned on, the ground signal is in the second level state; the determination module is used to determine the adjustment signal according to the mapping relationship and the touch sampling signal at the previous moment. In this embodiment, the ground signal is controlled separately, and then the adjustment signal is determined more accurately according to the mapping relationship and the touch sampling signal, without determining the adjustment signal by means of hardware adjustment. Moreover, in this solution, since the adjustment signal is determined by software, it can ensure that the duty cycle of the switch module can be adjusted more delicately subsequently, so that the adjusted signal can reach a better balance.
[0067] In an optional embodiment, the mapping relationship is one of the following: when the duration of the ground signal in the first level state gradually increases, or the duration of the second level state gradually decreases, the resistance value of the resistance module gradually decreases; when the duration of the ground signal in the first level state gradually decreases, or the duration of the second level state gradually increases, the resistance value of the resistance module gradually increases. Through the mapping relationship, the duty cycle of the switch module can be adjusted, and then the resistance value can be adjusted by adjusting the duty cycle of the switch module.
[0068] In an optional embodiment, the timing circuit further includes a signal lamp, the signal lamp is electrically connected to the signal conditioning unit, and when the ground signal is in the first level state, the signal lamp in the timing circuit is in a light-on state, and when the ground signal is in the second level state, the signal lamp in the timing circuit is in a light-off state. In this embodiment, since the states of the ground signal and the signal lamp are staggered, the ground signal can be controlled separately, and the state of the signal lamp can be adjusted by adjusting the ground signal.
[0069] In an optional embodiment, the device further includes a first generating unit, a second generating unit, a second acquiring unit and a third acquiring unit, wherein the first generating unit is used to generate a first pulse wave according to the state of the signal light after adjusting the duty cycle of the switch module, and the first pulse wave is used to characterize the timing change of the state of the signal light; the second generating unit is used to generate a second pulse wave according to the adjusted duty cycle of the switch module, and the second pulse wave is used to characterize the timing change of the adjusted duty cycle; the second acquiring unit is used to acquire the first voltage timing signal of the voltage input terminal, and the first voltage timing signal is used to characterize the timing change of the level state of the voltage input terminal; the third acquiring unit is used to acquire the second voltage timing signal of the voltage output terminal, and the second voltage timing signal is used to characterize the timing change of the level state of the voltage output terminal. In this embodiment, the relationship between the corresponding four signals can still be determined by generating the first pulse wave, the second pulse wave, the first voltage timing signal and the second voltage timing signal, which can make it more convenient for the staff to observe the waveform.
[0070] In an optional embodiment, the device further includes a first determination unit, a second determination unit and a third determination unit, wherein the first determination unit is used to determine the adjusted resistance value of the resistor module according to the adjusted duty cycle of the switch module after adjusting the duty cycle of the switch module; the second determination unit is used to determine the signal cutoff frequency of the filter according to the adjusted resistance value, wherein the filter is a filter composed of the resistor module and the capacitor module; and the third determination unit is used to determine the circuit gain of the signal conditioning unit according to the adjusted resistance value. In this embodiment, since the resistance value of the resistor module is adjusted by software, the resistance value can be adjusted more delicately. When adjusting the signal cutoff frequency and the circuit gain, there is no need to manually change the resistance value in the circuit, thereby improving the efficiency of adjusting the signal cutoff frequency and the circuit gain.
[0071] In an alternative embodiment, the above-mentioned device further includes a third generation unit and a fourth generation unit. The third generation unit is configured to generate a first prompt message when the adjusted duty cycle is not within the target range during the process of adjusting the duty cycle of the above-mentioned switch module. The first prompt message includes an optoelectronic prompt message. The fourth generation unit is configured to generate a second prompt message when the resistance value corresponding to the adjusted duty cycle is greater than or equal to the resistance value threshold. The second prompt message includes an audible prompt message. In this embodiment, the first prompt message can prompt the staff, enabling the staff to promptly know that the adjusted duty cycle is not within the target range. The second prompt message can prompt the staff, enabling the staff to promptly know that the adjusted resistance value is relatively large.
[0072] In an alternative embodiment, the above-mentioned first level state is a high level state, and the above-mentioned second level state is a low level state. Of course, the first level state can also be a low level state, and the second level state can also be a high level state.
[0073] In an alternative embodiment, the above-mentioned mapping relationship is a linear relationship. The linear relationship more accurately describes the mapping relationship.
[0074] Embodiment 4
[0075] The embodiment of the present application further provides a controller, including one or more processors, a memory, and one or more programs. Among them, the above-mentioned one or more programs are stored in the above-mentioned memory and are configured to be executed by the above-mentioned one or more processors. The above-mentioned one or more programs include steps for executing the signal adjustment method in the above-mentioned Embodiment 1.
[0076] Embodiment 5
[0077] The embodiment of the present application further provides a computer storage medium. The above-mentioned computer storage medium can store multiple instructions, and the above-mentioned instructions are suitable for being loaded and executed by a processor to perform the steps of the signal adjustment method in the above-mentioned Embodiment 1.
[0078] Embodiment 6
[0079] The embodiment of the present application further provides a computer storage medium. The above-mentioned computer storage medium can store multiple instructions, and the above-mentioned instructions are suitable for being loaded and executed by a processor to perform the steps of the signal adjustment method in the above-mentioned Embodiment 1.
[0080] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) that contain computer-usable program code.
[0081] The present application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0082] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0083] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0084] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and a memory.
[0085] The memory may include non-permanent memory in the computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
[0086] A computer-readable medium includes both permanent and non-permanent, removable and non-removable media and can implement information storage by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transitory medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer-readable medium does not include transitory computer-readable media such as modulated data signals and carrier waves.
[0087] It should also be noted that the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, such that a process, method, article or apparatus comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or apparatus. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising the element.
[0088] The above are only embodiments of the present application and are not used to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
Claims
1. A signal adjustment method, characterized in that, The method is applied to a control unit of a sequential circuit. The sequential circuit includes a signal conditioning unit, which is electrically connected to the control unit. The signal conditioning unit includes a resistor module, a capacitor module, and a switch module. A first end of the capacitor module is electrically connected to a voltage input terminal. A second end of the capacitor module is respectively electrically connected to a first end of the resistor module and a first end of the switch module. A second end of the resistor module and a second end of the switch module are both grounded. The first end of the switch module is connected to a voltage output terminal. The voltage input terminal is an input terminal of the signal conditioning unit, and the voltage output terminal is an output terminal of the signal conditioning unit. The method includes: Obtain a touch sampling signal output by the signal conditioning unit at the previous moment; Determine an adjustment signal according to the received touch sampling signal at the previous moment, and output the adjustment signal to the first end of the switch module to adjust the duty cycle of the switch module.
2. The method according to claim 1, wherein Determining an adjustment signal according to the received touch sampling signal at the previous moment includes: Obtain a mapping relationship, where the mapping relationship is a mapping relationship between the resistance value of the resistor module and a grounding signal. The grounding signal is used to indicate whether the switch module is disconnected. When the switch module is disconnected, the grounding signal is in a first level state, and when the switch module is conducting, the grounding signal is in a second level state; Determine the adjustment signal according to the mapping relationship and the touch sampling signal at the previous moment.
3. The method according to claim 2, characterized in that, The mapping relationship is one of the following: When the duration of the grounding signal in the first level state gradually increases, or when the duration of the grounding signal in the second level state gradually decreases, the resistance value of the resistor module gradually decreases; When the duration of the grounding signal in the first level state gradually decreases, or when the duration of the grounding signal in the second level state gradually increases, the resistance value of the resistor module gradually increases.
4. The method according to claim 2, wherein The sequential circuit further includes a signal lamp, which is electrically connected to the signal conditioning unit. When the grounding signal is in the first level state, the signal lamp in the sequential circuit is in an on state, and when the grounding signal is in the second level state, the signal lamp in the sequential circuit is in an off state.
5. The method according to claim 4, wherein After adjusting the duty cycle of the switch module, the method further includes: Generate a first pulse wave according to the state of the signal lamp. The first pulse wave is used to characterize the sequential change of the state of the signal lamp; Generate a second pulse wave according to the adjusted duty cycle of the switch module. The second pulse wave is used to characterize the sequential change of the adjusted duty cycle; Obtain a first voltage timing signal of the voltage input terminal. The first voltage timing signal is used to characterize the sequential change of the level state of the voltage input terminal; Obtain a second voltage timing signal of the voltage output terminal. The second voltage timing signal is used to characterize the sequential change of the level state of the voltage output terminal.
6. The method according to claim 1, wherein After adjusting the duty cycle of the switching module, the method further includes: Determining an adjusted resistance value of the resistance module according to the adjusted duty cycle of the switching module; Determining a signal cut-off frequency of a filter according to the adjusted resistance value, where the filter is a filter composed of the resistance module and the capacitance module; Determining a circuit gain of the signal conditioning unit according to the adjusted resistance value.
7. The method according to claim 1, characterized in that, During the process of adjusting the duty cycle of the switching module, the method further includes: Generating a first prompt message when the adjusted duty cycle is not within the target range, where the first prompt message includes an optoelectronic prompt message; Generating a second prompt message when the resistance value corresponding to the adjusted duty cycle is greater than or equal to a resistance value threshold, where the second prompt message includes an audible prompt message.
8. The method according to any one of claims 2 to 4, characterized in that The first level state is a high level state, the second level state is a low level state, and the mapping relationship is a linear relationship.
9. A sequential circuit, characterized in that, It includes a control unit and a signal conditioning unit. The signal conditioning unit is electrically connected to the control unit. The signal conditioning unit includes a resistance module, a capacitance module, and a switching module. A first end of the capacitance module is electrically connected to a voltage input terminal. A second end of the capacitance module is respectively electrically connected to a first end of the resistance module and a first end of the switching module. A second end of the resistance module and a second end of the switching module are both grounded. The first end of the switching module is connected to a voltage output terminal. The control unit is configured to execute the method according to any one of claims 1 to 8.
10. The sequential circuit according to claim 9, wherein The timing circuit further includes: A transmitting signal lamp unit electrically connected to the control unit; A receiving signal lamp unit having a first end and a second end. The first end of the receiving signal lamp unit is electrically connected to the signal conditioning unit, and the second end of the receiving signal lamp unit is electrically connected to the control unit.
11. A controller, characterized in that, It includes: One or more processors, a memory, and one or more programs, where the one or more programs are stored in the memory and are configured to be executed by the one or more processors. The one or more programs include the method for executing any one of claims 1 to 8.
Citation Information
Patent Citations
Touch display with switchable infrared illumination for touch position determination and methods thereof
CN102144199A