Background technology
Touch screen (Touch panel) is also called touch panel, is a kind of vicarious liquid crystal indicator.When the most tactile
Head, finger tip etc. are when the position that touch screen shows a certain prompting figure presses touch screen, and touch screen can sense generation
The touch point pressed, and substitute various mechanical operations with the position, touch point sensed or change in location trend.
Resistive touch screen is a kind of more conventional touch screen.Resistive touch screen generally has the indium of two homogeneous conductive
Tin-oxide (ITO) semiconductor layer, also referred to as resistive film, utilize medium to isolate between two ITO and support.Two ITO layer are divided
Other to being applied to represent X-direction coordinate and the Y-direction coordinate of position, touch point, therefore two ITO layer are called again X-plane and Y
Plane.
After touching, X-plane contacts in touch point with Y plane.Now, i.e. can detect that based on electric resistance partial pressure principle
The X-direction coordinate of touch point and the position of Y-direction coordinate, i.e. touch point.
Fig. 1 is resistive touch screen equivalent-circuit model and Cleaning Principle block diagram, and wherein Rx1, Rx2 are that X-plane is touched
The separate two sections of resistance of point, Ry1, Ry2 are the separate two sections of resistance of Y plane touched point, and Rtouch is two plane contact
Contact resistance, Rcontx, Rconty are the lead resistance at two ITO layer edges.XP, XN are two leading-out terminals of X-plane,
YP, YN are two leading-out terminals of Y plane.The position coordinates magnitude of voltage of the both direction that foundation electric resistance partial pressure principle obtains is:
Therefore, it can, according to voltage divider principle, determine touch point by the position coordinates magnitude of voltage of detection X-direction and Y-direction
Position.
But in portable product, man-machine interface is in addition to touch screen, it is necessary to retain a number of button, in case
The special applications such as switching on and shutting down.The mode realizing button at present has following several:
1) capacitance type touch key
Capacitance type touch key is relatively costly, and needs corresponding drive integrated circult IC, extensively should therefore be unsuitable for
With.
2) realize with logic change or the analog voltage of resistance with switch Series detectors voltage
Specifically, integrated circuit pin and the switch being connected with pin and resistance can be increased, by detection pin
Voltage determines whether switch is pressed, if a corresponding switch of pin, then detects the logic change of voltage;If one
The corresponding multiple switches of pin, when different switches is pressed, corresponding different analog voltage, then detect analog voltage.
Resistance is relatively low due to cost with the implementation method of the logic change of switch Series detectors voltage or analog voltage,
Mid and low-end products are used widely.But this mode needs independent integrated circuit pin ICpin, the hardware therefore taken
Resource is the most.If be pressed it addition, detect some button by detection analog voltage, need a detection simulation
The analog-digital converter ADC of voltage.
3) resistive touch button
Fig. 2 is a kind of prior art resistive touch based on touch screen Cleaning Principle button schematic diagram.By two-layer ito film
On extraction electrode extend and form button electrode, the insulating barrier between two-layer ito film digs on the position of corresponding button electrode
Sky, the two-layer ito film conducting when respective keys is pressed, judge it is which button is pressed according to the logical value of voltage.
Use which to realize button to have the disadvantage that: need touch screen is carried out structural change;Support by bond number
Measure limited;If with touch screen multiplexing, it is impossible to distinguish and press four angles of touch screen or press button.
4) resistive touch screen and button multiplexing
Fig. 3 is the theory diagram of a kind of traditional resistive touch screen and button multiplexing.XN and YN terminal at touch screen
On connected two buttons resistance Rk1, Rk2, and be attached in mode shown in Fig. 3 by two switches.This technology utilizes to be touched
The dynamic range distribution differentiation touching screen detection IC is pressed touch screen or presses button.But this technology has following two
Shortcoming: touch screen accuracy of detection reduces, declines the rejection ability of the interference of LCD;The nominal resistance of two planes of touch screen is such as
Fruit changes greatly, it may appear that the problem that touch screen correction was lost efficacy.
Detailed description of the invention
The resistive touch screen with embodiment, the present invention provided below in conjunction with the accompanying drawings and button multiplexing circuit and detection side
Method illustrates in greater detail.
The embodiment of the present invention provides a kind of resistive touch screen and button multiplexing circuit, including the two-layer utilizing medium to isolate
Resistive film, resistive film can use the indium tin oxide ITO semiconductor layer of homogeneous conductive, and wherein one layer of resistive film is in X-direction
One end with a lead resistance respectively, two edges is connected, and therefore this resistive film plane is referred to as X-plane;Another layer of resistive film exists
One end with a lead resistance respectively, two edges of Y-direction is connected, and therefore this resistive film plane is referred to as Y plane, Mei Geyin
The other end of line resistance connects a lead terminal, and this circuit also includes:
It is connected at least one key circuit between a lead terminal of X-direction and a lead terminal of Y-direction,
Described key circuit includes resistance and the switch being connected in series;
Testing circuit, for applying voltage, by the two of Y-direction lead terminals on two lead terminals of X-direction
Determine coordinate voltage value V of X-directionsenx, two lead terminals in the Y direction apply voltage, by the two of X-direction lead-in wires
Terminal determines coordinate voltage value V of Y-directionseny, according to VsenxAnd VsenyDetermine position on resistive film, the touch point or determine and be
No press switch.
Above-mentioned X-direction and Y-direction are two mutually perpendicular directions, horizontally and vertically two sides of concrete corresponding touch screen
To.
If Fig. 4 is the equivalent circuit that embodiment of the present invention resistive touch screen is corresponding with button multiplexing circuit, figure does not shows
Going out the testing circuit being connected with four lead terminals, wherein, Rx1+Rx2 is the equivalent resistance of the resistive film of X-plane, Rx1, Rx2
For the separate two sections of resistance of X-plane touched point, Ry1+Ry2 is the equivalent resistance of the resistive film of Y plane, and Ry1, Ry2 are Y plane
The separate two sections of resistance of touched point, Rtouch is contact resistance during two plane contact, and Rcontx is that resistive film is in X-direction
The lead resistance that connects of two edges, Rconty is the lead resistance that resistive film two edges in the Y direction connect.XP、XN
Two leading-out terminals being connected with lead resistance Rcontx for X-plane, YP, YN are that Y plane is connected with lead resistance Rconty
Two leading-out terminals.
In the embodiment of the present invention, it is connected between a lead terminal XP and a lead terminal YP of Y-direction of X-direction
Have at least one key circuit, then testing circuit applies voltage on XP, XN, may determine that X by the voltage of detection YP, YN end
Coordinate voltage value V in directionsenx, YP, YN apply voltage, be may determine that the seat of Y-direction by the voltage of detection XP, XN end
Mark magnitude of voltage Vseny, according to VsenxAnd VsenyDetermine position on resistive film, the touch point or determine whether to press switch.
The embodiment of the present invention is given below according to VsenxAnd Vseny, it may be determined that position or true on resistive film, the touch point
The fixed Cleaning Principle whether pressing switch.
If user presses after touch screen i.e. presses on resistive film, X-direction, Y-direction lead terminal on timesharing execute
The voltage V addedref, according to X-direction and the same formula of the coordinate voltage value (1) of Y-direction of the detection of electric resistance partial pressure principle:
RcontxFor the resistance of lead resistance Rcontx of X-direction, RcontyFor the resistance of lead resistance Rconty of Y-direction,
Rx1For the resistance of Rx1, Rx2For the resistance of Rx2, Ry1For the resistance of Ry1, Ry2Resistance for Ry2.
Understanding, when pressing four corners of touch screen, touch point is at the maximum coordinates magnitude of voltage V1 of the X-direction of resistive film
With the maximum coordinates magnitude of voltage V2 of Y-direction it is:
Also according to electric resistance partial pressure principle, determine coordinate voltage value V of X-direction when either switch is pressedsenx,kWith Y side
To coordinate voltage value Vseny,k, with reference to Fig. 5 a and Fig. 5 b, after the switch of the arbitrary key circuit pressed between XP and YP, X side
To coordinate voltage value Vsenx,kCoordinate voltage value V with Y-directionseny,kFor:
Contrast (2) formula with (3) formula it can be seen that the coordinate voltage of X, Y both direction after pressing the switch that button is corresponding
Value is equal to reference source voltage, and after pressing touch screen, the maximum of the coordinate voltage value of X, Y both direction is necessarily less than
Reference source voltage.The difference of the two is respectively as follows:
It is to say, button presses the coordinate voltage value of collection necessarily more than pressing the maximum seat that touch screen gathers in theory
Mark magnitude of voltage, may determine that according to this difference and presses button or press touch screen.
Preferably, the embodiment of the present invention predefines the touch point maximum coordinates magnitude of voltage V1 in the X-direction of resistive film
With the maximum coordinates magnitude of voltage V2 of Y-direction, and coordinate voltage value V of X-direction when the switch of arbitrary key circuit is pressedsenx,k
Coordinate voltage value V with Y-directionseny,k;
Then testing circuit is specifically for determining VsenxMore than V1 and and Vsenx,kDifference in set point, VsenyMore than V2
And and Vseny,kDifference in set point time, determine that switch is pressed;Otherwise determine that resistive film is touched, and according to Vsenx
And VsenyDetermine position on resistive film, the touch point, specifically can determine position on resistive film, the touch point according to existing mode
Putting, I will not elaborate.
According in the preferred embodiments of the present invention, key circuit is multiple, and in multiple key circuits, the resistance of resistance is the most not
Identical, the equivalent resistance that current two-layer resistive film is corresponding respectively is the same order of magnitude, it is preferable that the resistance of resistance in key circuit
The value equivalent resistance the most corresponding with two-layer resistive film is the same order of magnitude, so can more accurately distinguish between button and still touch
Touch screen to be pressed.
According to above-mentioned principle, it may be determined that be that touch screen is pressed or the switch that button is corresponding is pressed, be judged as
After button is pressed, in the case of having multiple key circuit parallel connection, need to confirm that the switch which button is corresponding is pressed, this
The bright embodiment following either type of employing:
1), after testing circuit is further used for determining and presses switch, lead terminal and the Y of key circuit it are not connected with in X-direction
Direction connects applying voltage on the lead terminal of key circuit, by the magnitude of voltage V of the two of X-direction lead terminalssenz1,kReally
The fixed switch pressed;
As shown in Figure 5 c, voltage drive is added between YP and XN, if switch k1 is pressed, permissible according to electric resistance partial pressure principle
Obtain the voltage V at XP and XN two endssenz1,k1:
Visible, when different switches is pressed, the resistance of the resistance owing to being connected is different, therefore, detects
Vsenz1,kDifference, may thereby determine which switch is pressed.
In view of the fluctuation of touch screen X-plane resistance, different key sampled voltage interval will be caused uncertain, can detect
Touch screen X-plane resistance, recycles the analog voltage that the resistance correcting key of this resistance gathers.
Preferably, it may be predetermined that the lead terminal being not connected with key circuit in X-direction is connected key circuit with Y-direction
Lead terminal on apply voltage, when the switch in each key circuit is depressed, this switch corresponding nominal detection magnitude of voltage;
After the most described testing circuit determines and presses switch, according to Vsenz1,kDetect with each nominal corresponding to switch magnitude of voltage determine by
Under switch.
2), after testing circuit testing circuit is further used for determining and presses switch, the lead-in wire of key circuit is connected in X-direction
Terminal and Y-direction are not connected with on the lead terminal of key circuit applying voltage, by the magnitude of voltage of the two of Y-direction lead terminals
Vsenz2,kDetermine pressed switch.
Predefine and connect lead terminal and the Y-direction of key circuit in X-direction and be not connected with the lead terminal of key circuit
Upper applying voltage, when the switch in each key circuit is depressed, the nominal detection magnitude of voltage that this switch is corresponding;The most described detection
After circuit determines and presses switch, according to Vsenz2,kThe nominal detection magnitude of voltage corresponding with each switch determines pressed switch.
Ibid, I will not elaborate for concrete principle.
If there is resistive touch screen in the product, it drives and inherently contains an ADC inside IC, the most just expects
Resistive touch screen could detect with button simultaneously, and the two is independent of each other.
Outside the resistive touch screen that the embodiment of the present invention provides is with button multiplexing circuit, with traditional resistive touch screen
The difference enclosing circuit connecting is to have bridged N number of resistance and N number of switch between the lead terminal of two planes of touch screen, the most right
Answer different buttons.Owing to button is to be connected across between two planes of XY, for touch action detection logic circuit, press
Button with press touch screen equivalence, therefore have only to the printed circuit of existing resistive touch screen is modified, it is not necessary to
Increase circuit pin, save hardware resource;Utilize traditional touch screen testing circuit, use the new testing mechanism can simultaneously
Support touch screen and button detection, there is higher accuracy of detection and stronger capacity of resisting disturbance.
Above-described embodiment gives between XP, XN the situation of key circuit in parallel, in like manner, button is connected across XN, YN and
Other combined situation are without departure from the protection domain of this technology.
An ADC, testing circuit is inherently contained inside the drive circuit IC of resistive touch screen of the present invention
The voltage gathered is analog voltage, is input in this adc circuit carry out analog digital conversion, it is not necessary to be additionally provided adc circuit.
The embodiment of the present invention additionally provides a kind of method that resistive touch screen and button multiplexing circuit carry out detecting, this electricity
Road includes: utilizing two-layer resistive film, testing circuit that medium isolates, wherein one layer of resistive film is at two edges of X-direction respectively
It is connected with one end of a lead resistance;Another layer of resistive film two edges in the Y direction respectively with the one of a lead resistance
End connects, and the other end of each lead resistance connects a lead terminal, and this circuit also includes the lead-in wire being connected to X-direction
At least one key circuit between terminal and a lead terminal of Y-direction, described key circuit includes the electricity being connected in series
Resistance and switch, the method includes:
Testing circuit applies voltage on two lead terminals of X-direction, determines X by the two of Y-direction lead terminals
Coordinate voltage value V in directionsenx;
Apply voltage on testing circuit two lead terminals in the Y direction, determine Y by the two of X-direction lead terminals
Coordinate voltage value V in directionseny;
Testing circuit is according to VsenxAnd VsenyDetermine position on resistive film, the touch point or determine whether to press switch.
Preferably, described key circuit is multiple, and in multiple key circuits, the resistance of resistance is different, and the method enters one
Step includes:
After described testing circuit determines and presses switch, the lead terminal being not connected with key circuit in X-direction is connected with Y-direction
Voltage is applied, by the magnitude of voltage V of the two of X-direction lead terminals on the lead terminal of key circuitsenz1,kDetermine and pressed
Switch;Or
After described testing circuit testing circuit determines and presses switch, connect lead terminal and the Y side of key circuit in X-direction
Voltage is applied, by the magnitude of voltage V of the two of Y-direction lead terminals on the lead terminal be not connected with key circuitsenz2,kReally
The fixed switch pressed.
Preferably, predetermined touch point is sat at the maximum coordinates magnitude of voltage V1 of the X-direction of resistive film and the maximum of Y-direction
Mark magnitude of voltage V2, and coordinate voltage value V of X-direction when either switch is pressedsenx,kCoordinate voltage value V with Y-directionseny,k;
Then testing circuit is according to VsenxAnd VsenyDetermine position on resistive film, the touch point or determine whether to press switch,
Specifically include:
Determine VsenxMore than V1 and and Vsenx,kDifference in set point, VsenyMore than V2 and and Vseny,kDifference exist
Time in set point, determine that switch is pressed;
Otherwise determine that resistive film is touched, and according to VsenxAnd VsenyDetermine position on resistive film, the touch point.
Preferably, predefine and be not connected with the lead terminal of key circuit in X-direction and be connected drawing of key circuit with Y-direction
Voltage is applied in line terminals, when the switch in each key circuit is depressed, the nominal detection magnitude of voltage that this switch is corresponding;
After the most described testing circuit determines and presses switch, according to Vsenz1,kThe nominal detection magnitude of voltage corresponding with each switch
Determine pressed switch;Or
Predefine and connect lead terminal and the Y-direction of key circuit in X-direction and be not connected with the lead terminal of key circuit
Upper applying voltage, when the switch in each key circuit is depressed, the nominal detection magnitude of voltage that this switch is corresponding;
After the most described testing circuit determines and presses switch, according to Vsenz2,kThe nominal detection magnitude of voltage corresponding with each switch
Determine pressed switch.
Preferably, predefine and be not connected with the lead terminal of key circuit in X-direction and be connected drawing of key circuit with Y-direction
Voltage is applied in line terminals, when the switch in each key circuit is depressed, the nominal detection magnitude of voltage that this switch is corresponding, specifically
Including:
Determine that being not connected with the lead terminal of key circuit in X-direction is connected on the lead terminal of key circuit with Y-direction and executes
Making alive, nominal detection magnitude of voltage corresponding when being pressed for the switch k1 in arbitrary key circuit:
Such that it is able to release:
Then determine that nominal detection magnitude of voltage corresponding when being pressed for the switch kn in other key circuits is:
Wherein, RcontxFor the resistance of the lead resistance of X-direction, Rx1+Rx2For the resistive film at X-direction connecting lead wire resistance
Equivalent resistance, VrefIt is connected the lead terminal of key circuit with Y-direction for being not connected with the lead terminal of key circuit in X-direction
The voltage of upper applying;
Predefine and connect lead terminal and the Y-direction of key circuit in X-direction and be not connected with the lead terminal of key circuit
Upper applying voltage, when the switch in each key circuit is depressed, the nominal detection magnitude of voltage that this switch is corresponding, specifically include:
Determine that the lead terminal at X-direction connection key circuit is not connected with on the lead terminal of key circuit executing with Y-direction
Making alive, nominal detection magnitude of voltage corresponding when being pressed for the switch k1 in arbitrary key circuit:
Such that it is able to release:
Then determine that nominal detection magnitude of voltage corresponding when being pressed for the switch kn in other key circuits is:
Wherein, RcontyFor the resistance of the lead resistance of Y-direction, Ry1+Ry2Resistive film for connecting lead wire resistance in the Y direction
Equivalent resistance, VrefLead terminal and Y-direction for connecting key circuit in X-direction is not connected with the lead terminal of key circuit
The voltage of upper applying;
Rk1The resistance of the resistance for being connected with switch k1, RknThe resistance of the resistance for being connected with switch kn.
User press touch screen and by key assignments for several times after, correctly detect user's touch location on the touchscreen and
Detecting that total degree that user pushes button is accuracy of detection with the ratio of set point number, preferable accuracy of detection is 100%.Excellent
Selection of land, can set a ratio, if detection is established a capital higher than this setting ratio, then it is assumed that reach to set requirement, in detection essence
When degree not up to sets ratio, not up to requirement is described, then can increase the lead resistance of X-direction and the lead resistance of Y-direction
Resistance value.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention
God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof
Within, then the present invention is also intended to comprise these change and modification.