Touch control equipment and control method thereof
1. A touch device, comprising:
the touch control sensing unit is used for sensing a touch control event of a touch control pen, and is provided with a first control mode and a second control mode;
a processing unit;
an embedded controller coupled to the processing unit;
a digital controller, coupled to the touch sensing unit, the embedded controller and the processing unit, for receiving a general input/output signal of the embedded controller, wherein when the general input/output signal is a first value, the digital controller reports the first operation mode to the processing unit; and when the general input/output signal is a second value, the digital controller reports the second control mode to the processing unit.
2. The touch device of claim 1, wherein the digital controller further receives a touch signal from the touch sensing unit and outputs position information corresponding to the touch signal to the processing unit; when the general input/output signal is the first value, the processing unit executes the touch operation of the first control mode according to the position information; and when the general input/output signal is the second value, the processing unit executes the touch operation of the second control mode according to the position information.
3. The touch device as recited in claim 1, wherein the embedded controller receives a switching signal from the processing unit and generates the general purpose input/output signal according to the switching signal.
4. The touch device of claim 1, wherein when the touch sensing unit senses the touch event, the touch sensing unit generates a touch signal representing the touch event, and the digital controller further outputs position information corresponding to the touch signal to the processing unit, wherein the frequency of the touch signal is one of a first frequency and a second frequency; when the frequency of the touch signal is the first frequency, the processing unit executes the touch operation of the first control mode according to the position information; when the frequency of the touch signal is the second frequency and the general input/output signal is the first value, the processing unit executes the right key function of the second control mode according to the position information; and when the frequency of the touch signal is the second frequency and the general input/output signal is the second value, the processing unit executes the erasing function of the second control mode according to the position information.
5. A control method of a touch device is characterized by comprising the following steps:
the digital controller receives a general input/output signal;
when the general input/output signal is a first value, the digital controller reports a first control mode of a touch sensing unit to a processing unit;
when the general input/output signal is a second value, the digital controller reports the touch sensing unit as a second control mode to the processing unit.
6. The method for controlling a touch device according to claim 5, further comprising:
the digital controller receives a touch signal from the touch sensing unit and outputs position information corresponding to the touch signal, wherein the touch signal represents a touch event of a touch pen;
when the general input/output signal is the first value, the processing unit executes the touch operation of the first control mode according to the position information; and
when the general input/output signal is the second value, the processing unit executes the touch operation of the second operation mode according to the position information.
7. The method for controlling a touch device according to claim 5, further comprising:
the embedded controller receives a switching signal;
the embedded controller sets the value of the general input/output signal according to the switching signal.
8. The method for controlling a touch device according to claim 5, further comprising:
the digital controller receives a touch signal from the touch sensing unit and outputs position information corresponding to the touch signal, wherein the touch signal represents a touch event of a stylus, and the frequency of the touch signal is one of a first frequency and a second frequency;
when the frequency of the touch signal is the first frequency, the processing unit executes the touch operation of the first control mode according to the position information;
when the frequency of the touch signal is the second frequency and the general input/output signal is the first value, the processing unit executes the right key function of the second control mode according to the position information;
when the frequency of the touch signal is the second frequency and the general input/output signal is the second value, the processing unit executes the erasing function of the second control mode according to the position information.
Background
General touch devices can be classified into Resistive (Resistive), Capacitive (Capacitive), Optical (Optical), ElectroMagnetic (ElectroMagnetic), and Acoustic (Acoustic). The ElectroMagnetic (ElectroMagnetic) technology is mainly applied to drawing board (digitor) products, the action of the ElectroMagnetic pen is judged by utilizing the magnetic field change generated by the ElectroMagnetic pen and induction lines under the board when the ElectroMagnetic pen is operated, the resolution is high, the reaction speed is high, and the ElectroMagnetic (ElectroMagnetic) technology can also be applied to a screen panel and can be used for directly writing on a screen. In addition, the control function of the electromagnetic pen is richer than that of other touch technologies, and other technologies can only detect pressing (or simulate pressing of a left button of a mouse) and cannot detect approaching. The electromagnetic pen can add a button as a function key (simulating the right button of the mouse and a function menu) to detect the pen pressure and the pen inclination angle (simulating the thickness of the pen mark), and when the pen approaches the screen, the function of short-distance sensing (simulating the cursor movement of the mouse) can display the prompt message when the cursor of the ordinary computer stops in the function menu.
Touch devices are often operated with a finger or a stylus for input. Generally, the electromagnetic touch device receives the touch frequency of the pen point of the electromagnetic touch pen to achieve the left-key function of writing, drawing or clicking and the cursor control function of the mouse. If the touch control device needs to execute other functions such as an eraser or a right mouse button, the electromagnetic touch pen must transmit another touch frequency to enable the electromagnetic touch control device to achieve the functions such as erasing or right button according to the other touch frequency.
However, if the stylus pen is to transmit another touch frequency, the stylus pen must be added with corresponding hardware, such as adding a coil at the other end (tail) of the stylus pen. Therefore, not only the manufacturing cost of the stylus is increased and the selling price is relatively increased, but also the weight and the volume of the stylus are increased, which is not in line with the expectation of users for light, thin, short and small electronic products.
Disclosure of Invention
Embodiments of the present invention provide a touch device and a control method thereof, which can further improve the multi-element performance of touch without modifying hardware of a stylus.
In a first aspect, an embodiment of the present invention provides a touch device, where the touch device includes: the touch control system comprises a touch control sensing unit, a processing unit, an embedded controller and a digital controller. The touch sensing unit has a first operation mode and a second operation mode, and senses a touch event of the stylus. The embedded controller is coupled to the processing unit. The digital controller is coupled with the touch sensing unit, the embedded controller and the processing unit and receives a general input/output signal of the embedded controller. When the general input/output signal is a first value, the digital controller reports a first control mode to the processing unit. When the general input/output signal is a second value, the digital controller reports a second control mode to the processing unit.
Optionally, the digital controller further receives a touch signal from the touch sensing unit, and outputs position information corresponding to the touch signal to the processing unit; when the general input/output signal is the first value, the processing unit executes the touch operation of the first control mode according to the position information; and when the general input/output signal is the second value, the processing unit executes the touch operation of the second control mode according to the position information.
Optionally, the embedded controller receives a switching signal from the processing unit and generates the general-purpose input/output signal according to the switching signal.
Optionally, when the touch sensing unit senses the touch event, the touch sensing unit generates a touch signal representing the touch event, and the digital controller further outputs position information corresponding to the touch signal to the processing unit, wherein the frequency of the touch signal is one of a first frequency and a second frequency; when the frequency of the touch signal is the first frequency, the processing unit executes the touch operation of the first control mode according to the position information; when the frequency of the touch signal is the second frequency and the general input/output signal is the first value, the processing unit executes the right key function of the second control mode according to the position information; and when the frequency of the touch signal is the second frequency and the general input/output signal is the second value, the processing unit executes the erasing function of the second control mode according to the position information.
In a second aspect, an embodiment of the present invention further provides a method for controlling a touch device, where the method for controlling a touch device includes: the digital controller receives the general input/output signal, reports the touch sensing unit as a first control mode to the processing unit when the general input/output signal is a first value, and reports the touch sensing unit as a second control mode to the processing unit when the general input/output signal is a second value.
Optionally, the method further includes: the digital controller receives a touch signal from the touch sensing unit and outputs position information corresponding to the touch signal, wherein the touch signal represents a touch event of a touch pen; when the general input/output signal is the first value, the processing unit executes the touch operation of the first control mode according to the position information; and when the general input/output signal is the second value, the processing unit executes the touch operation of the second control mode according to the position information.
Optionally, the method further includes: the embedded controller receives a switching signal; the embedded controller sets the value of the general input/output signal according to the switching signal.
Optionally, the method further includes: the digital controller receives a touch signal from the touch sensing unit and outputs position information corresponding to the touch signal, wherein the touch signal represents a touch event of a stylus, and the frequency of the touch signal is one of a first frequency and a second frequency; when the frequency of the touch signal is the first frequency, the processing unit executes the touch operation of the first control mode according to the position information; when the frequency of the touch signal is the second frequency and the general input/output signal is the first value, the processing unit executes the right key function of the second control mode according to the position information; when the frequency of the touch signal is the second frequency and the general input/output signal is the second value, the processing unit executes the erasing function of the second control mode according to the position information.
In summary, in the touch device and the control method thereof provided by the embodiments of the invention, the touch signal corresponds to different operation modes to improve the versatility of the stylus without additionally increasing the coil design of the stylus. In addition, in the touch device and the control method thereof provided by the embodiment of the invention, a user can switch the operation mode according to requirements, so that the same touch signal can execute different operation functions in the touch device. In addition, in the touch device and the control method thereof provided by the embodiment of the invention, the functions of the cursor and the left key of the touch pen are still maintained no matter the touch device is in the first operation mode or the second operation mode, so that the best operation feeling of a user is improved. In addition, the touch device and the control method thereof provided by the embodiment of the invention are suitable for being used with a touch pen, so that multiple touch functions can be executed by matching with a single contact end of the touch pen in any operation mode.
Drawings
Fig. 1 is a schematic diagram of a touch device and a touch pen according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a touch device according to an embodiment of the present invention;
fig. 3 is a flowchart of a control method of a touch device according to an embodiment of the present invention;
fig. 4 is a flowchart of another control method for a touch device according to an embodiment of the present invention;
fig. 5 is a flowchart of another control method for a touch device according to an embodiment of the present invention;
fig. 6 is a flowchart of another control method for a touch device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a schematic diagram of a touch device and a touch pen according to an embodiment of the present invention. Fig. 2 is a schematic structural diagram of a touch device according to an embodiment of the present invention. Referring to fig. 1 and 2, the touch device 20 includes a touch sensing unit 21, a digital controller 22, an embedded controller 23, and a processing unit 24. The touch sensing unit 21 has a first operation mode and a second operation mode. The embedded controller 23 is coupled to the processing unit 24. The digital controller 22 is coupled to the touch sensing unit 21, the processing unit 24 and the embedded controller 23. The touch sensing unit 21 is used for detecting a touch event of the stylus 10. The digital controller interface 22 receives General Purpose Input/Output (GPIO) signals of the embedded controller 23 and touch signals of the touch sensing unit 21. When the general purpose input/output signal is a first value, the digital controller 22 reports the first operation mode to the processing unit 24. When the general purpose input/output signal is at the second value, the digital controller 22 reports the second manipulation mode to the processing unit 24.
Specifically, the touch device 20 is electromagnetic, and the touch pen 10 is also electromagnetic accordingly. In the present embodiment, the touch device 20 is an ElectroMagnetic (ElectroMagnetic) touch device, and the stylus 10 is an ElectroMagnetic stylus, wherein the frequency detected by the touch sensing unit 21 of the touch device 20 can be changed by pressing the button 12 disposed on the body of the stylus 10.
Continuing with fig. 1 and 2. The touch sensing unit 21 has a first operation mode and a second operation mode. When the general purpose input/output signal received by the digital controller 22 is the first value, the digital controller 22 reports the first manipulation mode to the processing unit 24. When the general purpose input/output signal received by digital controller 22 is a second value, digital controller 22 reports a second manipulation mode to processing unit 24. Here, the processing unit 24 processes the received touch signal according to one of the first manipulation mode and the second manipulation mode.
Illustratively, the processing unit 24 or the embedded controller 23 may be implemented by one or more processing elements. The Processing elements may be soc (system on a chip) chips, Central Processing Units (CPUs), Microcontrollers (MCUs), or the like, but the present invention is not limited thereto. Optionally, the general purpose input/output signal is an analog signal. For example, the first value of the general purpose input/output signal is low or high, and the second value of the general purpose input/output signal is high or low. Optionally, the general purpose input/output signal is a digital signal. For example, the digital controller 22 receives a digital signal of the general purpose input/output signal sent by the embedded controller 23, when the value of the general purpose input/output signal is logic 0, the digital controller 22 reports a first manipulation mode to the processing unit 24, and the processing unit 24 executes a subsequent received touch signal according to the first manipulation mode. When the value of the general purpose input/output signal is logic 1, the digital controller 22 reports the second operation mode to the processing unit 24, and the processing unit 24 executes the subsequent received touch signal according to the second operation mode.
Optionally, the embedded controller 23 receives a switching signal from the processing unit 24 and generates a general-purpose input/output signal according to the switching signal.
Specifically, the embedded controller 23 may receive the switching signal transmitted from the processing unit 24 and generate the general-purpose input/output signal according to the switching signal. With continued reference to fig. 2, optionally, an application program (/ or APP)242 is included in the processing unit 24, the application program 242 sends a switch signal, and the embedded controller 23 determines whether the general purpose input/output signal is the first value or the second value according to the switch signal. Optionally, the touch sensing unit 21 detects a switching event of the stylus pen 10, and the application 242 receives a signal of the switching event to send a switching signal. For example, with reference to fig. 2, when the stylus 10 continuously touches the touch sensing unit 21 three times to trigger the switching event, the signal of the switching event is transmitted to the operating system 241 through the digital controller 22 and then converted into the switching signal through the application 242, so as to change the general purpose input/output signal from the first value to the second value. For example, when the stylus 10 touches a specific position of the touch sensing unit 21, the switching event is triggered to change the general purpose input/output signal from the first value to the second value. For example, in the case where the stylus pen 10 touches the touch sensing unit 21, the button 12 is continuously pressed three times to trigger a switching event.
Continuing with fig. 1 and 2. The processing unit 24 includes an Operating System 241 (OS). Optionally, the operating system 241 receives signals from the digital controller 22. Illustratively, digital controller 22 communicates signals to operating system 241 through a USB signal channel.
Alternatively, a touch event is considered to occur when the stylus 10 is in contact with the touch sensing unit 21. That is, when the touch sensing unit 21 senses a touch event of the stylus 10, the touch sensing unit 21 generates a touch signal representing the touch event. Here, the touch signal may include at least one of position information, click information, touch frequency information, path information, and the like.
Optionally, the digital controller 22 further receives the touch signal from the touch sensing unit 21 and outputs position information corresponding to the touch signal to the processing unit 24. In some embodiments, when the general purpose input/output signal is the second value, the processing unit performs the touch operation of the second manipulation mode according to the position information, and when the general purpose input/output signal is the first value, the processing unit 24 performs the touch operation of the first manipulation mode according to the position information.
In some embodiments, the first manipulation mode is a left key function for executing a cursor and a left key function, and the second manipulation mode is an erase function or one of other touch functions. For example, in the first operation mode, the operating system 241 of the processing unit 24 regards the touch signal as a stroke command, and the processing unit 24 performs displaying of the stroke path according to the position information. In the second operation mode, the operating system 241 regards the touch signal as an erase command, and the processing unit 24 performs an erase function according to the position information, i.e. the display content of the position indicated by the position information is cleared.
In some embodiments, the first manipulation mode is a left key function for performing cursor and left key functions, and the second manipulation mode is a right key function for performing one of other touch functions. That is, in the first manipulation mode, the operating system 241 regards the touch signal as a left key command, and in the second manipulation mode, the operating system 241 regards the touch signal as a right key command. For example, in the first manipulation mode, the operating system 241 executes the application program touched by the stylus pen 10, and in the second manipulation mode, the operating system 241 opens the setting window of the application program touched by the stylus pen 10.
As can be seen from the above description, in the case that the stylus 10 only provides a touch event with a single contact end (for example, the stylus 10 touches the sensing unit 21 once lightly), the touch device 20 can determine that the command issued by the user is a left key command or a right key command according to the touch event and the general-purpose input/output signal. That is, even if the stylus 10 only provides a touch event with a frequency, two different commands can be issued accordingly to perform a plurality of touch functions.
Optionally, when the touch sensing unit 21 senses the touch event, the touch sensing unit 21 generates a touch signal representing the touch event, and the digital controller 22 further outputs position information corresponding to the touch signal to the processing unit 24, wherein the frequency of the touch signal is one of a first frequency and a second frequency; when the frequency of the touch signal is the first frequency, the processing unit 24 executes the touch operation in the first operation mode according to the position information; when the frequency of the touch signal is the second frequency and the general input/output signal is the first value, the processing unit 24 executes the right key function of the second manipulation mode according to the position information; and wherein when the frequency of the touch signal is the second frequency and the general purpose input/output signal is the second value, the processing unit 24 executes the erasing function of the second manipulation mode according to the position information.
In some embodiments, the digital controller 22 further outputs position information corresponding to the touch signal to the processing unit 24, and the frequency of the touch signal is one of the first frequency and the second frequency. Herein, the frequency of the touch signal refers to a frequency received between the stylus pen 10 and the touch sensing unit 21 due to electromagnetic sensing. For example, if the frequency received by the stylus 10 directly contacting the touch sensing unit 21 is a first frequency, the frequency received by the stylus 10 contacting the touch sensing unit 21 while pressing the button 12 is a second frequency.
In some embodiments, when the frequency of the touch signal is the first frequency, the processing unit 24 executes the touch operation in the first manipulation mode according to the position information. When the frequency of the touch signal is the second frequency and the general purpose input/output signal is the first value, the processing unit 24 executes the touch operation of the first operation mode according to the position information. When the frequency of the touch signal is a second frequency and the general input/output signal is a second value, the processing unit executes the touch operation of the second operation mode according to the position information. The following table lists the general input/output signals, the frequency of the touch signals, the types of the operation modes, and the corresponding functions, respectively, for a clearer representation.
Table one:
general purpose input/output signal
Frequency of touch signal
Kind of control mode
Corresponding function
First value
First frequency
A first operation mode
First function
First value
Second frequency
A first operation mode
Second function
Second value
First frequency
Second operation mode
First function
Second value
Second frequency
Second operation mode
Fourth function
As can be seen from the above table one, when the frequency of the touch signal is two, the first function corresponds to the first frequency maintained by the stylus 10. For example, the first function is a left key function, the second function is a right key function, and the fourth function is an erase function. In other words, the basic cursor and left key functions of the stylus pen 10 are maintained in either the first or second manipulation modes. In this embodiment, if the digital controller 22 originally does not receive the general purpose input/output signal of the embedded controller 23, and switches the frequency detected by the touch sensing unit 21 in the touch device 20 between the first frequency and the second frequency only by pressing the button 12, the button 12 can only be used for switching the function of the left key or the right key of the stylus pen 10, but if the digital controller 22 receives the switching between the first value and the second value of the general purpose input/output signal of the embedded controller 23 in addition to the first frequency or the second frequency detected by the touch sensing unit 21, the corresponding function of the button 12 can be further increased, so that when the button 12 is not pressed and the first frequency is detected, no matter the general purpose input/output signal is the first value or the second value, the left key function is corresponded, and when the button 12 is pressed and the second frequency is detected, the general purpose input/output signal is considered to be a first value or a second value corresponding to the right key function or the erase function, respectively, wherein the operation mode type is used for reflecting the general purpose input/output signal, the first operation mode corresponds to the first value, and the second operation mode corresponds to the second value.
In other embodiments, in the first or second operation mode, the first frequency and the second frequency respectively perform different functions. For example, the following table two lists the general input/output signals, the frequency of the touch signals, the types of the operation modes and the corresponding functions respectively for a clearer expression.
Table two:
general purpose input/output signal
Frequency of touch signal
Kind of control mode
Corresponding function
First value
First frequency
A first operation mode
First function
First value
Second oneFrequency of
A first operation mode
Second function
Second value
First frequency
Second operation mode
Third function
Second value
Second frequency
Second operation mode
Fourth function
As can be seen from the above table two, in the case that there are two frequencies of the touch signal, the stylus 10 can generate four different functions corresponding to the touch device 20. For example, the first function is a left key function, the second function is a right key function, the third function is a scroll wheel function, and the fourth function is an erase function. In other words, if there are three frequencies of the touch signal, the stylus 10 can generate six different functions corresponding to the touch device 20.
In general, the tip of the stylus has a writing function, the tail of the stylus is additionally provided with another coil to generate another frequency to perform an erasing function, and the button on the body of the stylus is used to perform a right key function. Referring to fig. 1, in the above embodiment, the stylus pen 10 does not need to add another coil at the tail, and as long as the button 12 on the pen body is provided, the right key function and the erasing function can be simultaneously achieved through the button 12. This reduces the number of hardware components on the stylus 10, but achieves the same effect.
In summary, in the touch device and the control method thereof provided by the embodiments of the invention, the touch signal corresponds to different operation modes to improve the versatility of the stylus without adding extra coil design of the stylus. In addition, in the touch device and the control method thereof provided by an embodiment of the invention, a user can switch the operation mode according to a requirement, so that the same touch signal can execute different operation functions in the touch device. In addition, in the touch device and the control method thereof according to an embodiment of the present invention, the functions of the cursor and the left key of the stylus are maintained no matter the touch device is in the first manipulation mode or the second manipulation mode, so as to improve the best operation experience of the user. In addition, the touch device and the control method thereof provided by the embodiment of the invention are suitable for being used with a touch pen, so that multiple touch functions can be executed by matching with a single contact end of the touch pen in any operation mode.
An embodiment of the present invention further provides a control method for a touch device, where the control method for a touch device provided in the embodiment of the present invention can be executed by the touch device described in any of the above technical solutions, and fig. 3 is a flowchart of the control method for a touch device provided in the embodiment of the present invention. Referring to fig. 3, the method includes:
s10, the digital controller receives the general purpose input/output signal.
S11, the digital controller determines whether the general purpose input/output signal is the first value or the second value. When the general purpose input/output signal is the first value, go to step S12; when the general-purpose input/output signal is the second value, step S13 is performed.
S12, the digital controller reports the touch sensing unit as the first operation mode to the processing unit.
S13, the digital controller reports the touch sensing unit as the second operation mode to the processing unit. Specifically, referring to fig. 2 to 3, the embedded controller 23 may output a general-purpose input/output signal. The digital controller 22 receives the general purpose input/output signal and determines that the general purpose input/output signal is the first value or the second value, and when the general purpose input/output signal is the first value, the digital controller 22 reports the touch sensing unit 21 as the first operation mode to the processing unit 24 (i.e., step S12 in fig. 3 is executed). When the general purpose input/output signal is a second value, the digital controller 22 reports the touch sensing unit 21 as the second operation mode to the processing unit 24 (i.e. step S13 in fig. 3 is executed).
Fig. 4 is a flowchart of another control method for a touch device according to an embodiment of the present invention. Referring to fig. 4, the method includes:
s20, the digital controller receives the general purpose input/output signal.
S21, the digital controller receives the touch signal from the touch sensing unit and outputs position information corresponding to the touch signal, wherein the touch signal represents a touch event of the stylus.
S22, the digital controller determines whether the general purpose input/output signal is the first value or the second value. When the general purpose input/output signal is the first value, performing steps S23 to S24; when the general purpose input/output signal is the second value, steps S25 through S26 are performed.
S23, the digital controller reports the touch sensing unit as the first operation mode to the processing unit.
S24, the processing unit executes a touch operation in the first manipulation mode according to the position information.
S25, the digital controller reports the touch sensing unit as the second operation mode to the processing unit.
S26, the processing unit executes the touch operation in the second manipulation mode according to the position information.
Specifically, the digital controller 22 receives the touch signal from the touch sensing unit 21 and outputs the position information corresponding to the touch signal (i.e. performs step S21 in fig. 4). Here, the touch signal represents a touch event of the stylus 10, wherein the touch event is, for example, a touch time. Next, digital controller 22 determines whether the general-purpose input/output signal is the first value or the second value. When the general purpose input/output signal is the first value, the digital controller 22 reports the touch sensing unit 21 as the first manipulation mode to the processing unit 24 (i.e. performs step S23 in fig. 4), and the processing unit 24 performs the touch operation in the first manipulation mode according to the position information (i.e. performs step S24 in fig. 4). When the general purpose input/output signal is a second value, the digital controller 22 reports the touch sensing unit 21 as the second operation mode to the processing unit 24 (i.e., performs step S25 in fig. 4), and the processing unit 24 performs the touch operation of the second operation mode according to the position information (i.e., performs step S26 in fig. 4).
Fig. 5 is a flowchart of another control method for a touch device according to an embodiment of the present invention. Referring to fig. 5, the method includes:
and S30, the embedded controller receives the switching signal.
S31, the embedded controller sets the value of the general purpose input/output signal according to the switching signal.
S32, the digital controller receives the general purpose input/output signal.
S33, the digital controller determines whether the general purpose input/output signal is the first value or the second value. When the general purpose input/output signal is the first value, go to step S34; when the general-purpose input/output signal is the second value, step S15 is performed.
S34, the digital controller reports the touch sensing unit as the first operation mode to the processing unit.
S35, the digital controller reports the touch sensing unit as the second operation mode to the processing unit.
Specifically, the embedded controller 23 receives the switching signal (i.e., performs step S30 in fig. 5), and sets the value of the general purpose input/output signal according to the switching signal (i.e., performs step S31 in fig. 5).
Optionally, the control method of the touch device further includes: the digital controller receives a touch signal from the touch sensing unit and outputs position information corresponding to the touch signal, wherein the touch signal represents a touch event of a stylus, and the frequency of the touch signal is one of a first frequency and a second frequency; when the frequency of the touch signal is a first frequency, the processing unit executes touch operation in a first control mode according to the position information;
when the frequency of the touch signal is a second frequency and the general input/output signal is a first value, the processing unit executes a right key function of a second control mode according to the position information; when the frequency of the touch signal is a second frequency and the general input/output signal is a second value, the processing unit executes an erasing function of the second control mode according to the position information.
Fig. 6 is a flowchart of another control method for a touch device according to an embodiment of the present invention. Referring to fig. 6, the method includes:
s40, the digital controller receives the general purpose input/output signal.
S41, the digital controller receives the touch signal from the touch sensing unit and outputs position information corresponding to the touch signal, wherein the touch signal represents a touch event of the stylus.
S42, the digital controller determines whether the general purpose input/output signal is the first value or the second value.
S43, the digital controller determines whether the frequency of the touch signal is the first frequency or the second frequency. When the frequency of the touch signal is the first frequency, performing step S45; when the frequency of the touch signal is the second frequency, step S44 is executed.
S44, the processing unit executes the touch operation in the second manipulation mode according to the position information.
S45, the processing unit executes a touch operation in the first manipulation mode according to the position information.
Specifically, the touch sensing unit 21 receives the touch signal and outputs the position information corresponding to the touch signal (i.e. step 41 in fig. 6 is executed). Here, the touch signal represents a touch event of the stylus pen 10, and the frequency of the touch signal is one of a first frequency and a second frequency. Next, the digital controller 22 determines that the general-purpose input/output signal is the first value or the second value, and determines that the frequency of the touch signal is the first frequency or the second frequency. When the frequency of the touch signal is the first frequency, the processing unit 24 performs the touch operation in the first manipulation mode according to the position information (i.e., performs step 45 in fig. 6). That is, regardless of whether the general-purpose input/output signal is the first value or the second value, the step S45 is executed as long as the frequency of the touch signal is the first frequency.
Referring to fig. 6, when the frequency of the touch signal is the second frequency, the processing unit 24 executes the touch operation of the second manipulation mode according to the position information (i.e., executes step 44 in fig. 6). That is, no matter whether the gpio signal is the first value or the second value, the step S44 is executed as long as the frequency of the touch signal is the second frequency, and the touch operation in the second manipulation mode can correspond to the right key function or the erase function according to whether the gpio signal is the first value or the second value.
In some embodiments, the first manipulation mode is a left key function, and the second manipulation mode is an erase function. In some embodiments, the first manipulation mode is a left key function, and the second manipulation mode is a right key function.
The control method of the touch device provided by the embodiment of the invention and the touch device provided by the embodiment of the invention belong to the same inventive concept and can achieve the same technical effect, and repeated contents are not repeated here.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:显示装置及其屏幕传感模块