1. Field of the Invention
The present invention relates to a method for a touch panel to generate a touch signal, especially relating to a method for a touch panel to filter noise generated when a large area of the touch panel is pressed.
2. Description of the Prior Art
Liquid crystal displays (LCDs) are widely used nowadays for having slim shapes, low power dissipation and low radiation. LCDs gradually replaced traditional CRT (cathode ray tube) monitors and are widely applied on mobile electronic devices such as notebooks and PDAs (personal digital assistants). Further, using LCDs as input interfaces to perform sensing of touch inputs is popular. Displays having touch sensing functionality are applied on more and more electronic devices as input interfaces.
Touch panels are also applied on cell phones, tablets and personal computers to increase the flexibility of operation. Moreover, after using touch panels as input interfaces, keyboards and mouse devices are no longer needed, thus saving the space to configure the keyboards and mouse devices.
Touch panels can be classified as resistive type and capacitive type touch panels. Comparing with resistive type touch panels, capacitive type touch panels have advantages of sensing multiple touch inputs, thus gradually replacing resistive type touch panels. However, when a user presses a large area of a capacitive type touch panel, some partitions near the pressed area may sense capacitance due to the noise generated from the pressed area, though those partitions are not actually pressed. After capacitance is sensed on those partitions, the touch panel will judge those partitions as being pressed, and generate touch input commands accordingly. Thus, prior art capacitive type touch panels easily incorrectly judge the press condition of panels.
An embodiment of the present invention provides a method for a touch panel to generate touch signals. The touch panel includes a plurality of columns of sensing partitions, a plurality of driving lines, a plurality of sensing lines and a memory. The method includes sequentially inputting driving signals to the plurality of driving lines, reading a plurality of first voltage values of one of the plurality columns of sensing partitions through one of the plurality of sensing lines, converting the plurality of first voltage values into a plurality of first digital values, calculating a first mean of the first digital values, and storing the coordinate of at least one first digital value larger than the first mean for a predetermined value in the memory.
The embodiments of the present invention are capable of filtering the touch signals belonging to noise generated due to a large area being pressed through the sensing lines sequentially scanning each column of sensing partitions to detect the voltage value of the columns of sensing partitions, and storing the coordinates of the substantially touched sensing partitions in the memory, and generating touch signals accordingly. Therefore, when performing large area pressing to the touch panel of the present invention, the touch panel will not misjudge the area not being pressed near the pressed area as being pressed, thus improving the accuracy of operation.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Some phrases are referring to specific elements in the present specification and claims, please notice that the manufacturer might use different terms to refer to the same elements. However, the definition between elements is based on their functions instead of their names. Further, in the present specification and claims, the term “comprising” is open type and should not be viewed as the term “consisted of.” Besides, the term “electrically coupled” can be referring to either direct connection or indirect connection between elements.
Embodiments of the touch panels of the present invention are provided as follows. However, the claimed scope of the present invention is not limited by the provided embodiments.
Please refer to
Please refer to
Step 201: start;
Step 202: sequentially input driving signals to M driving lines 10;
Step 204: read M voltage values of each column of 1 to N columns of sensing partitions 30 through 1 to N sensing lines 20;
Step 206: convert the M voltage values into M digital values;
Step 208: average M digital values of each column of sensing partitions 30 to calculate a mean of M digital values;
Step 210: store the coordinate of at least one digital value of the M digital values of each column of sensing partitions 30 larger than the calculated mean for a predetermined value or a threshold in the memory 40;
Step 212: generate touch signals according to the digital values of each column of sensing partitions 30 stored in the memory 40;
Step 214: end.
In the steps 202 and 204, when inputting the driving signals to a first row driving line 10, the N sensing lines 20 will correspondingly read the voltage value of a first row sensing partition 32 of the N column of sensing partitions 30, and then when inputting the driving signals to a second row driving line 10, the N sensing lines 20 will correspondingly read the voltage value of a second row sensing partition 32 of the N column of sensing partitions 30, and the rest may be deduced by analogy. Thus, when inputting the driving signals to a last row driving line 10, the N sensing lines 20 will correspondingly read the voltage values of a last row sensing partition 32 of the N column of sensing partitions 30, and after sequentially inputting driving signals to M driving lines 10, all the sensing partitions 32 of each column of sensing partitions 30 are read. That is, the sensing partitions 32 of the entire touch panel 100 are read. The M voltage values corresponding to each column of sensing partitions 30 are converted into M digital values in Step 206, and the M digital values are averaged to generate a mean of M digital values as shown in Formula (I):
In Formula (I), Di denotes the ith digital value corresponding to a column of sensing partition of the N columns of sensing partitions 30, and Daverage denotes the mean of digital values corresponding to a column of sensing partition of the N columns of sensing partitions 30.
In Step 210, the digital values of the M sensing partitions 32 in each column of the sensing partitions 30 are respectively compared with the mean of digital values of the column of sensing partitions 30, to store the coordinate of at least one digital value of the M digital values of each column of sensing partitions 30 larger than the calculated mean for a predetermined value or a threshold in the memory 40, thus the coordinates stored in the memory 40 will be determined as the coordinates of the touched sensing partitions 32. After that, performing Steps 202 to 212 again to sense the following coordinates of the sensing partitions 32 of the touch panel 100. Besides, the touch panel 100 can further store the difference between the coordinate of at least one digital value of the M digital values of each column of sensing partitions 30 larger than the calculated mean for a predetermined value and the mean of digital values in the memory 40.
Moreover, after performing Steps 201 to 214 to the current frame, performs Steps 201 to 214 again to the next frame. For example, driving signals are sequentially inputted to M driving lines 10 again, and then M voltage values of each column of 1 to N columns of sensing partitions 30 through 1 to N sensing lines 20 are read, the rest may be deduced by analogy and will not further be illustrated.
Please refer to
In general, after performing touch input to the touch panel, the touch panel will generate non-directly-touched signals corresponding to some parts of the touch panel not being touched, and those non-directly-touched signals can be viewed as noise. Though the non-directly-touched signals are smaller than the touch signals corresponding to some parts of the touch panel being substantially touched, the signal strengths of the non-directly-touched signals are still large enough to be sensed by the touch panel and to be misjudged as are some parts of the touch panel are directly touched. Thus prior art touch panels easily misjudge the touch condition. On the contrary, in the embodiments of the present invention, through comparing the digital value of each sensing partition in each column of sensing partitions with the mean of digital values of each column of sensing partitions and with the predetermined value, the touch signals belonging to non-directly-touched signals in the touch panel 100 can be filtered. Thus, when performing touch input to the touch panel 100, touch signals will be generated only according to the substantially touched parts of the touch panel 100.
In view of above, the embodiments of the present invention are capable of filtering the touch signals belonging to noise generated due to large area pressing through the sensing lines 20 sequentially scanning each column of sensing partitions 30 to detect the voltage values of the columns of sensing partitions 30, and storing the coordinate of the substantially touched sensing partitions 32 in the memory 40, and generating touch signals accordingly. Therefore, when performing large area pressing to the touch panel 100 of the present invention, the touch panel 100 will not misjudge the press condition of the area not being pressed near the pressed area as being pressed, thus improving the accuracy of operation.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
101115028 | Apr 2012 | TW | national |