Summary of the invention
The present invention aims to provide a kind of scanister and scan method of large scale projected capacitive touch screen; Use a plurality of existing chip to come respectively a part of zone on the touch-screen to be scanned; At aggregation of data, realize the purpose of utilizing existing chip that the large scale projected capacitive touch screen is scanned with these scannings.
According to an aspect of the present invention, propose a kind of scanister of large scale projected capacitive touch screen, comprising:
One group of X axle is from chip; Be connected respectively to the sensor on the X axle of projected capacitive touch screen; Wherein, Each X axle is from the number of pins of the chip quantity less than the sensor on the X axle, and each sensor on the X axle is connected to the pin of an X axle from chip, and different X axles connects different sensor on the X axle from the pin of chip;
One group of Y axle is from chip; Be connected respectively to the sensor on the Y axle of projected capacitive touch screen; Wherein, Each Y axle is from the number of pins of the chip quantity less than the sensor on the Y axle, and each sensor on the Y axle is connected to the pin of a Y axle from chip, and different Y axles connects different sensor on the Y axle from the pin of chip;
Master chip, be connected to one group of X axle from chip and one group of Y axle from chip, wherein; The synchronous pin of master chip is connected to the synchronous pin of each X axle from chip and each Y axle from chip, and one group of interrupt pin of master chip is connected respectively to each X axle from chip, and another group interrupt pin of master chip is connected respectively to the interrupt pin of each Y axle from chip; The synchronous pin of master chip produces the negative edge synchronizing signal; One group of X axle receives the negative edge synchronizing signal of the synchronous pin of master chip from chip and one group of Y axle from the synchronous pin of chip, X axle that it connected or the sensor on the Y axle are scanned, and obtains scan-data; Each X axle from chip or Y axle from chip after the scanning of accomplishing oneself; The interrupt pin of self produces low signal, and the interrupt pin that master chip is corresponding is received low signal, carries out data communication from chip or Y axle from chip with this X axle; Obtain said scan-data; Master chip receive all X axles from chip and Y axle behind the scan-data of chip, described scan-data is reported control computer, the synchronous pin of master chip produces next negative edge synchronizing signal.
According to an embodiment, have 56 sensors X 1-X56 on the X axle of projected capacitive touch screen, have 44 sensor Y1-Y44 on the Y axle; This group of X axle from chip comprise an X axle from chip and the 2nd X axle from chip, an X axle wherein is connected to the sensors X 1-X20 on the X axle from chip, the 2nd X axle is connected to the sensors X 21-X56 on the X axle from chip; This group of Y axle from chip comprise a Y axle from chip and the 2nd Y axle from chip, a Y axle wherein is connected to the sensor Y1-Y22 on the Y axle from chip, the 2nd Y axle is connected to the sensor Y23-Y44 on the Y axle from chip.
The one X axle uses the CY8C21434 chip from chip, Y axle from chip and master chip; The 2nd X axle uses the CY8C24794 chip from chip.
According to a further aspect in the invention, propose a kind of scan method of large scale projected capacitive touch screen, comprising:
One group of X axle is connected respectively to the sensor on the X axle of projected capacitive touch screen from chip; Wherein, Each X axle is from the number of pins of the chip quantity less than the sensor on the X axle; Each sensor on the X axle is connected to the pin of an X axle from chip, and different X axles connects different sensor on the X axle from the pin of chip;
One group of Y axle is connected respectively to the sensor on the Y axle of projected capacitive touch screen from chip; Wherein, Each Y axle is from the number of pins of the chip quantity less than the sensor on the Y axle; Each sensor on the Y axle is connected to the pin of a Y axle from chip, and different Y axles connects different sensor on the Y axle from the pin of chip;
With master chip be connected to one group of X axle from chip and one group of Y axle from chip; Wherein, The synchronous pin of master chip is connected to each X axle from chip; Another group interrupt pin of master chip is connected respectively to the synchronous pin of each Y axle from chip, and one group of interrupt pin of master chip is connected respectively to the interrupt pin of each X axle from chip and each Y axle from chip;
The synchronous pin of master chip produces the negative edge synchronizing signal; One group of X axle receives the negative edge synchronizing signal of the synchronous pin of master chip from the synchronous pin of chip from chip and one group of Y axle; X axle that it connected or the sensor on the Y axle are scanned, obtain scan-data;
Each X axle from chip or Y axle from chip after the scanning of accomplishing oneself; The interrupt pin of self produces low signal; The interrupt pin that master chip is corresponding is received low signal, carries out data communication from chip or Y axle from chip with this X axle, obtains said scan-data;
Master chip receive all X axles from chip and Y axle behind the scan-data of chip, scan-data is reported control computer, the synchronous pin of master chip produces next negative edge synchronizing signal.
According to an embodiment, have 56 sensors X 1-X56 on the X axle of projected capacitive touch screen, have 44 sensor Y1-Y44 on the Y axle; This group of X axle from chip comprise an X axle from chip and the 2nd X axle from chip; One group of X axle is connected respectively to sensor on the X axle of projected capacitive touch screen from chip and comprises an X axle is connected to the sensors X 1-X20 on the X axle from chip, the 2nd X axle is connected to the sensors X 21-X56 on the X axle from chip; This group of Y axle from chip comprise a Y axle from chip and the 2nd Y axle from chip; One group of Y axle is connected respectively to sensor on the Y axle of projected capacitive touch screen from chip and comprises a Y axle is connected to the sensor Y1-Y22 on the Y axle from chip, the 2nd Y axle is connected to the sensor Y23-Y44 on the Y axle from chip.
The one X axle uses the CY8C21434 chip from chip, Y axle from chip and master chip; The 2nd X axle uses the CY8C24794 chip from chip.
Adopt technical scheme of the present invention; Adopt the scan control of many existing chip controls to the large scale projected capacitive touch screen; Wherein one is master chip; All the other many are from chip: the segment chip from chip is used for controlling the sensor of X axle, and another part is used for controlling the sensor of Y axle.Be responsible for scanning sensor from chip, master chip then is responsible for receiving the scanning result that reports from chip, and makes final data and handle.From passing through standard I 2C interface and interrupt pin communication between chip and master chip; And master chip through synchronous pin to doing synchro control from chip; Guaranteed that all data that can not cause because of the confusion on the sequential obtaining from chip have sluggish or inconsistent phenomenon, have guaranteed the accuracy and the promptness of data.
Embodiment
The scanister of large scale projected capacitive touch screen of the present invention comprise one group of X axle from chip, one group of Y axle from a chip and a master chip.
One group of X axle is connected respectively to the sensor on the X axle of projected capacitive touch screen from chip; Wherein each X axle is from the number of pins of the chip quantity less than the sensor on the X axle; Each sensor on the X axle is connected to the pin of an X axle from chip, the different sensors on the X axle that different X axles connects from the pin of chip.
One group of Y axle is connected respectively to the sensor on the Y axle of projected capacitive touch screen from chip; Wherein each Y axle is from the number of pins of the chip quantity less than the sensor on the Y axle; Each sensor on the Y axle is connected to the pin of a Y axle from chip, the different sensors on the Y axle that different Y axles connects from the pin of chip.
Master chip be connected to described one group of X axle from chip and one group of Y axle from chip; Wherein the synchronous pin of master chip is connected to the synchronous pin of each X axle from chip and each Y axle from chip; One group of interrupt pin of master chip is connected respectively to the interrupt pin of each X axle from chip and each Y axle from chip, and the synchronous pin of master chip produces the negative edge synchronizing signal, and one group of X axle receives the negative edge synchronizing signal of the synchronous pin of master chip from the synchronous pin of chip from chip and one group of Y axle; X axle that it connected or the sensor on the Y axle are scanned; Obtain scan-data, each X axle from chip or Y axle from chip after accomplishing own scanning, the interrupt pin of self generation low signal; The interrupt pin that master chip is corresponding is received low signal; Carry out data communication from chip or Y axle from chip with this X axle, obtain scan-data, master chip receive all X axles from chip and Y axle behind the scan-data of chip; Scan-data is reported control computer, and the synchronous pin of master chip produces next negative edge synchronizing signal.
Fig. 1 has disclosed the structural drawing in the enforcement of scanister of large scale projected capacitive touch screen of the present invention.In this embodiment, the large scale projected capacitive touch screen is one 17 cun a projected capacitive touch screen 40, and the X axle of this projected capacitive touch screen has 56 sensors X 1-X56, and the Y axle has 44 sensor Y1-Y44.In this embodiment, one group of X axle comprises that from chip an X axle is connected to sensors X 1-X20 X axle on from chip 11, the one X axles from chip 10 from chip 10 and the 2nd X axle, and the 2nd X axle is connected to the sensors X 21-X56 on the X axle from chip 11.One group of Y axle comprises that from chip a Y axle is connected to sensor Y1-Y22 Y axle on from chip 21, the one Y axles from chip 20 from chip 20 and the 2nd Y axle, and the 2nd Y axle is connected to the sensor Y23-Y44 on the Y axle from chip 21.Master chip 30 be connected to an X axle from chip 10, the 2nd X axle from chip 11, a Y axle from chip 20, the 2nd Y axle from chip 21.The synchronous pin of master chip 30 be connected to an X axle from chip 10, the 2nd X axle from chip 11, the synchronous pin of a Y axle from chip 20, the 2nd Y axle from chip 21, one group of interrupt pin of master chip 30 be connected respectively to an X axle from chip 10, the 2nd X axle from chip 11, the interrupt pin of a Y axle from chip 20, the 2nd Y axle from chip 21.The one X axle uses CY8C21434 chip from chip 20, the 2nd Y axle from chip 21 and master chip 30 from chip 10, a Y axle, and the 2nd X axle uses the CY8C24794 chip from chip 11.
The workflow of the scanister of large scale projected capacitive touch screen shown in Figure 1 is roughly following:
Master chip through synchronous pin to doing synchro control from chip: the synchronous pin of master chip produces negative edge; When from chip (comprise an X axle from chip, the 2nd X axle from chip, a Y axle from chip, the 2nd Y axle from chip) the synchronous pin that detects master chip has negative edge to produce, and begins scanning simultaneously from chip.Guaranteed that so many data that can not cause obtaining because of the confusion on the sequential from sheet have sluggish or inconsistent phenomenon, have guaranteed the accuracy and the promptness of data.
Every from chip to its all the sensors of being responsible for all scan one take turns after, the scanning result that is obtained is handled it, dispose, drag down the interrupt pin of self, the notice master chip " can have been read the result ".
The interrupt pin that master chip is corresponding is received from some interruption negative edges from chip, will read the data that it reports through I2C.After receiving the epicycle data that all report from chip, master chip is made final data and is handled.Master chip with realize through the I2C interface from the data communication of chip.
Master chip sends net result through the UART interface to control computer, and this net result is exactly that master chip is to each result after the reported data of chip is handled.
The master chip completion once after the data of control computer report, can notify all to begin next round scanning from chip once more at the negative edge of pin generation synchronously.
In one embodiment, each is following to the data layout that master chip send from chip:
Byte0 |
Byte1 |
Byte2 |
Byte3 |
Byte4 |
=0 |
0xFF |
0xFF |
0xFF |
0xFF |
=1 |
Peak1 |
0xFF |
The coordinate high byte |
The coordinate low byte |
=2 |
Peak1 |
Peak2 |
0xFF |
0xFF |
Byte0 representes the number (0,1,2) of touch point
Peak1 representes if 1 touch point is arranged, the number of sensor that this value representative is touched.
Peak2 representes that this value is represented another number of sensor that is touched if 2 touch points are arranged.
In one embodiment, master chip is following toward the lattice number of control computer transmission data:
Byte0 representes the number (0,1,2) of touch point
PeakX1, PeakX2, PeakY1, PeakY2 represent the number of sensor that is touched on X axle and the Y axle.
Every from chip scanning after all the sensors of being responsible for separately, according to the characteristic of scanning result and sensor, be responsible for judging whether have touch action to take place in the one's respective area, if touch is arranged, must judge it is singly to refer to touch or two finger touch.Calculate the particular location of touch point in the one's respective area then, and be reported to master chip.
Master chip, is made and being gathered from the data that chip reports according to each, and the total total several touch points of final affirmation, and calculates the accurate coordinate of touch point on whole touch screen, and through UART data transmission is arrived control computer.If singly referring to continue moves on touch-screen, master chip is also made level and smooth correction to the coordinate that links up, and the coordinate data that control computer is obtained can connect a level and smooth curve.
Scan simultaneously at needs under the situation of 100 sensors; Such data layout, the minimum data that the I2C communication is read, it is also minimum that UART outputs to the data of control computer; Practiced thrift each link consumed time greatly, guaranteed newspaper point rate up to 60fps.Be lower than 40fps like retribution point rate, hand-written effect will be very poor, breaks easily, problem such as broken line, wire jumper and lines are unsmooth, can't be used for doing touch apparatus on this instrument that needs the high resolving power handwriting functions of computer monitor.
With reference to shown in Figure 2, the present invention has also disclosed a kind of scan method of large scale projected capacitive touch screen, comprises following step:
20. one group of X axle is connected respectively to the sensor on the X axle of projected capacitive touch screen from chip; Wherein, Each X axle is from the number of pins of the chip quantity less than the sensor on the X axle; Each sensor on the X axle is connected to the pin of an X axle from chip, the different sensors on the X axle that different X axles connects from the pin of chip;
21. one group of Y axle is connected respectively to the sensor on the Y axle of projected capacitive touch screen from chip; Wherein, Each Y axle is from the number of pins of the chip quantity less than the sensor on the Y axle; Each sensor on the Y axle is connected to the pin of a Y axle from chip, the different sensors on the Y axle that different Y axles connects from the pin of chip;
22. with master chip be connected to one group of X axle from chip and one group of Y axle from chip; Wherein, The synchronous pin of master chip is connected to the synchronous pin of each X axle from chip and each Y axle from chip, and one group of interrupt pin of master chip is connected respectively to the interrupt pin of each X axle from chip and each Y axle from chip;
23. the synchronous pin of master chip produces the negative edge synchronizing signal; One group of X axle receives the negative edge synchronizing signal of the synchronous pin of master chip from the synchronous pin of chip from chip and one group of Y axle; X axle that it connected or the sensor on the Y axle are scanned, obtain scan-data;
24. each X axle from chip or Y axle from chip after the scanning of accomplishing oneself; The interrupt pin of self produces low signal; The interrupt pin that master chip is corresponding is received low signal, carries out data communication from chip or Y axle from chip with this X axle, obtains said scan-data;
25. master chip receive all X axles from chip and Y axle behind the scan-data of chip, scan-data is reported control computer, the synchronous pin of master chip produces next negative edge synchronizing signal.
Structural drawing with reference to embodiment shown in Figure 1 in the realization of the present invention, has 56 sensors X 1-X56 on the X axle of projected capacitive touch screen, have 44 sensor Y1-Y44 on the Y axle;
One group of X axle from chip comprise an X axle from chip and the 2nd X axle from chip; One group of X axle is connected respectively to sensor on the X axle of projected capacitive touch screen from chip and comprises an X axle is connected to the sensors X 1-X20 on the X axle from chip, the 2nd X axle is connected to the sensors X 21-X56 on the X axle from chip; One group of Y axle from chip comprise a Y axle from chip and the 2nd Y axle from chip; One group of Y axle is connected respectively to sensor on the Y axle of projected capacitive touch screen from chip and comprises a Y axle is connected to the sensor Y1-Y22 on the Y axle from chip, the 2nd Y axle is connected to the sensor Y23-Y44 on the Y axle from chip.
In one embodiment, an X axle uses the CY8C21434 chip from chip, Y axle from chip and master chip; The 2nd X axle uses the CY8C24794 chip from chip.
It is consistent that the details of the method that Fig. 2 disclosed is described the device that is disclosed with Fig. 1, no longer repeats here.
Adopt technical scheme of the present invention; Adopt the scan control of many existing chip controls to the large scale projected capacitive touch screen; Wherein one is master chip; All the other many are from chip: the segment chip from chip is used for controlling the sensor of X axle, and another part is used for controlling the sensor of Y axle.Be responsible for scanning sensor from chip, master chip then is responsible for receiving the scanning result that reports from chip, and makes final data and handle.From passing through standard I 2C interface and interrupt pin communication between chip and master chip; And master chip through synchronous pin to doing synchro control from chip; Guaranteed that all data that can not cause because of the confusion on the sequential obtaining from chip have sluggish or inconsistent phenomenon, have guaranteed the accuracy and the promptness of data.