Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, detect by the inductor in the capacitance touch screen being carried out self-capacitance, obtain the coarse positioning result, carrying out mutual capacitance according to the coarse positioning result detects, obtain the fine positioning result, the result determines touch point position according to fine positioning, has realized accurately locating fast of a plurality of touch points.
Fig. 3 is the process flow diagram of the touch point localization process that provides of the embodiment of the invention.
In step S301, the inductor in the capacitance touch screen is carried out self-capacitance detect, obtain the coarse positioning result.
In embodiments of the present invention, the inductor in the capacitance touch screen comprises capable inductor and row inductor, and the capable inductor of capacitance touch screen and the intersection point of row inductor have constituted all touch sensible points.
Step S301 specifically comprises: when each the row inductor in the capacitance touch screen is applied when excitation, detect the influence value of row inductor, if the influence value of row inductor greater than preset value, the behavior coarse positioning of row inductor correspondence is capable;
Step S301 specifically also comprises: when each the row inductor to capacitance touch screen applies when excitation, detect the influence value of row inductor, if the influence value of row inductor greater than preset value, row inductor correspondence classify the coarse positioning row as.
In step S302, carry out mutual capacitance according to the coarse positioning result and detect, obtain the fine positioning result.
In first embodiment of the invention, the realization of step S302 is to carry out mutual capacitance according to capable all the row inductors to capacitance touch screen of the coarse positioning that obtains among the step S301 to detect, obtain the fine positioning result, be specially: the capable inductor to the capable correspondence of each coarse positioning applies excitation, detect the influence value of all row inductors of capacitance touch screen, when the influence value of row inductor during greater than preset value, row inductor correspondence classify the fine positioning row as, coarse positioning behavior fine positioning is capable.
In second embodiment of the invention, step S302 carries out the mutual capacitance detection according to all row inductors that the coarse positioning that step S301 obtains is listed as capacitance touch screen, obtain the fine positioning result, be specially: the corresponding row inductor of each coarse positioning row is applied excitation, detect the influence value of all row inductors of capacitance touch screen, when the influence value of row inductor during greater than preset value, the behavior fine positioning of row inductor correspondence is capable, and it is capable that coarse positioning is classified fine positioning as.
In third embodiment of the invention, the realization of step S302 is capable and coarse positioning row according to the coarse positioning that obtains among the step S301, the corresponding row inductor of coarse positioning row is carried out mutual capacitance to be detected, obtain the fine positioning result, be specially: the capable inductor to the capable correspondence of each coarse positioning applies excitation, detects the influence value of the corresponding row inductor of all coarse positionings row, when the influence value of the corresponding row inductor of coarse positioning row during greater than preset value, coarse positioning is classified the fine positioning row as, and coarse positioning behavior fine positioning is capable.
In fourth embodiment of the invention, the realization of step S302 is capable and coarse positioning row according to the coarse positioning that obtains among the step S301, row inductor to the capable correspondence of coarse positioning carries out the mutual capacitance detection, obtain the fine positioning result, be specially: the corresponding row inductor of each coarse positioning row is applied excitation, detect the influence value of the capable inductor of the capable correspondence of all coarse positionings, when the influence value of the capable inductor of the capable correspondence of coarse positioning during greater than preset value, coarse positioning behavior fine positioning is capable, and coarse positioning is classified the fine positioning row as.
In step S303, the result determines touch point position according to fine positioning.
Step S303 is a touch point position with fine positioning intersection point corresponding positions on capacitance touch screen capable and the fine positioning row that step S302 obtains.
When realizing the location of a plurality of touch points, the size of supposing the projection capacitance plate is 8*8, positioning result according to first, second and third touch point that obtains with four embodiment location of the present invention is identical, if the touch point number is 5, be distributed in 3 row, 3 row, for the first embodiment of the invention and second embodiment, complexity is 8+3*8=32, for third embodiment of the invention and the 4th embodiment, complexity is 8+8+3*3=25; If the touch point number is 5, be distributed in two row, three row, for first embodiment of the invention, complexity is 8+2*8=24, for second embodiment of the invention, complexity is 8+3*8=32, and for third embodiment of the invention and the 4th embodiment, complexity is 8+8+2*3=22, as from the foregoing, the complexity of third embodiment of the invention and the 4th embodiment is lower than the first embodiment of the invention and second embodiment, in concrete the application, is more excellent embodiment.
In embodiments of the present invention, influence value is specially the changing value of inductor capacitance before and after being touched, and capacitance obtains by the relaxor method.
Fig. 4 is the synoptic diagram of the location, a plurality of touch points that provides of example of the present invention.
Capable inductor and row inductor to capacitance plate carry out the self-capacitance detection respectively, and the detected signal of control circuit is shown in x and y direction upper curve.Can see, curve on the y direction, corresponding first, third and fourth row, a peak value is arranged respectively, curve on the x direction, corresponding second, the the 4th and the 5th row have a peak value respectively, in other words, row (1), row (3), row (4) is that coarse positioning is capable, column (2), column (4), column (5) is the coarse positioning row, 9 nodes capable to coarse positioning then and coarse positioning row correspondence carry out mutual capacitance and detect, final determine that among 9 nodes 4 as the touch point, obtain 4 inductors of being expert in the touch point and row position of inductor, shown in black round dot among Fig. 4.
Fig. 5 is the process flow diagram of the touch point localization process that provides of example of the present invention.
In this example of the present invention, capacitance plate comprises m capable inductor, a n row inductor.I, j, m, n, M, N, S are integer, the minimum unit of horizontal ordinate is 1.Wherein, R, Y, C, X, A, T represents array.
In step S501, the controller initialization makes i=0, j=0;
In step S502, the capable inductor of i is applied excitation successively, store the capacitance of the capable inductor that detects into array R[i], and make i=i+1;
In step S503, whether judge i greater than m, i.e. whether line scanning is finished, and is execution in step S504 then, otherwise execution in step S502;
In step S504, judge R[m] in whether have element to surpass threshold value, be execution in step S505 then, otherwise execution in step S517;
In step S505, the ordinate of capable inductor correspondence of preserving this element correspondence is to Y[M];
In step S506, n row inductor applied excitation successively, store the capacitance of the row inductor that detects into array C[j], and make j=j+1;
In step S507, whether judge j greater than n, i.e. whether column scan is finished, and is execution in step S508 then, otherwise execution in step S506;
In step S508, judge C[n] whether there is element to surpass threshold value, be execution in step S509 then, otherwise execution in step S514;
In step S509, the horizontal ordinate of row inductor correspondence of preserving this element correspondence is to X[N], and make i=0, j=0;
In step S510, whether judge i greater than M, be execution in step S515 then, otherwise execution in step S511;
In step S511, to Y[i] corresponding capable inductor applies excitation successively;
In step S512, detect X[j] capacitance of corresponding row inductor, store the capacitance that detects among the A (Y[i], X[j]) into, and make j=j+1;
In step S513, whether judge j greater than N, i.e. whether column scan is finished, and is execution in step S514 then, otherwise execution in step S512;
In step S514, make i=i+1, j=0;
In step S515, judge array A[M] whether there is element to surpass threshold value in [N], be execution in step S516 then, otherwise execution in step S517;
In step S516, preserve the ordinate of this element correspondence and horizontal ordinate to T[s] [2];
In step S517, finish the location, touch point.
Wherein, step S501~S509 carries out mutual capacitance and detects, finish location just, step S509~S516 utilizes mutual capacitance to detect and finishes fine positioning, step S517 determines concrete touch point coordinate, in addition, and in step S513, the coordinate figure of preserving also can be saved in array T[s] in [2], be the position of effective touch.
The projection capacitance plate capable for m, that n is listed as, when realizing multiple point touching, the complexity of existing mutual capacitance method is m*n, the complexity of the embodiment of the invention is m+n+M*N.With Fig. 4 is example, and existing mutual capacitance algorithm complex is 8*8=64, and the complexity of the embodiment of the invention is 8+8+3*3=25.If touch-screen resolution is very high, the complexity of the embodiment of the invention can be lower than existing mutual capacitance method complexity, and " terrible point " phenomenon of having avoided the self-capacitance method to occur.
Fig. 6 is the process flow diagram of the touch point positioning system that provides of the embodiment of the invention, for convenience of explanation, only show the part relevant with the embodiment of the invention, this system is built in the unit that software unit, hardware cell or the software and hardware of display terminal or portable terminal or other-end equipment combine.
In embodiments of the present invention, the touch point positioning system mainly comprises coarse positioning unit 61, fine positioning unit 62 and touch point positioning unit 63.
Inductor in the 61 pairs of capacitance touch screens in coarse positioning unit carries out self-capacitance and detects, obtain the coarse positioning result, the coarse positioning result that fine positioning unit 62 obtains according to coarse positioning unit 61 carries out mutual capacitance and detects, obtain the fine positioning result, touch point positioning unit 63 is determined touch point position according to the fine positioning result that fine positioning unit 62 obtains.
Wherein, the coarse positioning unit comprises:
First stimulating module is used for all the row inductors or the row inductor of capacitance touch screen are applied excitation respectively,
Row coarse positioning module is used for detecting the influence value of row inductor when first stimulating module applies excitation to each row inductor, and when the influence value of row inductor during greater than preset value, the behavior coarse positioning of inductor correspondence of going is capable;
Row coarse positioning module is used for when first stimulating module each row inductor being applied when excitation, detects the influence value of row inductor, when the influence value of row inductor during greater than preset value, row inductor correspondence classify the coarse positioning row as.
As preferred embodiment of the present invention, the fine positioning unit comprises:
Second stimulating module, the capable inductor that is used for the capable correspondence of all coarse positionings that row coarse positioning module is obtained applies excitation respectively;
The second fine positioning module, be used for when second stimulating module applies excitation to the capable inductor of the capable correspondence of each coarse positioning, the influence value of the row inductor that all coarse positionings row that detection row coarse positioning module is obtained are corresponding, when the influence value of the corresponding row inductor of coarse positioning row during greater than preset value, coarse positioning is classified the fine positioning row as, and coarse positioning behavior fine positioning is capable.
As another preferred embodiment of the present invention, the fine positioning unit comprises:
The 3rd stimulating module, the corresponding row inductor of all coarse positioning row that is used for row coarse positioning module is obtained applies excitation respectively;
The 3rd fine positioning module, be used for when the 3rd stimulating module applies excitation to the corresponding row inductor of each coarse positioning row, the influence value of the capable inductor of the capable correspondence of all coarse positionings that detection row coarse positioning module is obtained, when the influence value of the capable inductor of the capable correspondence of coarse positioning during greater than preset value, coarse positioning behavior fine positioning is capable, and coarse positioning is classified the fine positioning row as.
In embodiments of the present invention, influence value is specially the changing value of inductor capacitance before and after being touched, and capacitance obtains by the relaxor method.
System architecture about other non-preferred embodiments of the present invention is no longer enumerated, and its specific implementation does not repeat them here as mentioned above.
In embodiments of the present invention, detect by the inductor in the capacitance touch screen being carried out self-capacitance, obtain the coarse positioning result, carrying out mutual capacitance according to the coarse positioning result detects, obtain the fine positioning result, the result determines touch point position according to fine positioning, has realized accurately locating fast of a plurality of touch points.The present invention adopts overall self-capacitance method to detect the mode that combines with local mutual capacitance method detection, and the location of having realized multiple point touching efficiently solves the problem of " terrible point ".Simultaneously, on algorithm complex, compare with existing mutual capacitance method detection, time complexity is low.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.