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-axis is from chip, be connected respectively to the sensor on the X-axis of projected capacitive touch screen, wherein, each X-axis is from the number of pins of the chip quantity less than the sensor on the X-axis, each sensor on the X-axis is connected to the pin of an X-axis from chip, the different sensors on the X-axis that different X-axis connects from the pin of chip;
One group of Y-axis is from chip, be connected respectively to the sensor on the Y-axis of projected capacitive touch screen, wherein, each Y-axis is from the number of pins of the chip quantity less than the sensor on the Y-axis, each sensor on the Y-axis is connected to the pin of a Y-axis from chip, the different sensors on the Y-axis that different Y-axis connects from the pin of chip;
Master chip, be connected to one group of X-axis from chip and one group of Y-axis from chip, wherein, the synchronous pin of master chip is connected to the synchronous pin of each X-axis from chip and each Y-axis from chip, one group of interrupt pin of master chip is connected respectively to the interrupt pin of each X-axis from chip and each Y-axis from chip, the synchronous pin of master chip produces the negative edge synchronizing signal, one group of X-axis 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-axis, X-axis that it connected or the sensor on the Y-axis are scanned, obtain scan-data, each X-axis from chip or Y-axis from chip after the scanning of finishing oneself, the interrupt pin of self produces low signal, the interrupt pin of master chip correspondence is received low signal, carry out data communication from chip or Y-axis from chip with this X-axis, obtain described scan-data, master chip receive all X-axis from chip and Y-axis behind the scan-data of chip, described scan-data is reported control computer, and 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-axis of projected capacitive touch screen, have 44 sensor Y1-Y44 on the Y-axis; This group of X-axis from chip comprise first X-axis from chip and second X-axis from chip, first X-axis wherein is connected to sensors X 1-X20 on the X-axis from chip, second X-axis is connected to sensors X 21-X56 on the X-axis from chip; This group of Y-axis from chip comprise first Y-axis from chip and second Y-axis from chip, first Y-axis wherein is connected to sensor Y1-Y22 on the Y-axis from chip, second Y-axis is connected to sensor Y23-Y44 on the Y-axis from chip.
First X-axis is used the CY8C21434 chip from chip, Y-axis from chip and master chip; Second X-axis is used 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-axis is connected respectively to the sensor on the X-axis of projected capacitive touch screen from chip, wherein, each X-axis is from the number of pins of the chip quantity less than the sensor on the X-axis, each sensor on the X-axis is connected to the pin of an X-axis from chip, the different sensors on the X-axis that different X-axis connects from the pin of chip;
One group of Y-axis is connected respectively to the sensor on the Y-axis of projected capacitive touch screen from chip, wherein, each Y-axis is from the number of pins of the chip quantity less than the sensor on the Y-axis, each sensor on the Y-axis is connected to the pin of a Y-axis from chip, the different sensors on the Y-axis that different Y-axis connects from the pin of chip;
With master chip be connected to one group of X-axis from chip and one group of Y-axis from chip, wherein, the synchronous pin of master chip is connected to the synchronous pin of each X-axis from chip and each Y-axis from chip, and one group of interrupt pin of master chip is connected respectively to the interrupt pin of each X-axis from chip and each Y-axis from chip;
The synchronous pin of master chip produces the negative edge synchronizing signal, one group of X-axis 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-axis, X-axis that it connected or the sensor on the Y-axis are scanned, obtain scan-data;
Each X-axis from chip or Y-axis from chip after the scanning of finishing oneself, the interrupt pin of self produces low signal, the interrupt pin of master chip correspondence is received low signal, carries out data communication from chip or Y-axis from chip with this X-axis, obtains described scan-data;
Master chip receive all X-axis from chip and Y-axis 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-axis of projected capacitive touch screen, have 44 sensor Y1-Y44 on the Y-axis; This group of X-axis from chip comprise first X-axis from chip and second X-axis from chip, one group of X-axis is connected respectively to sensor on the X-axis of projected capacitive touch screen from chip and comprises first X-axis is connected to sensors X 1-X20 on the X-axis from chip, second X-axis is connected to sensors X 21-X56 on the X-axis from chip; This group of Y-axis from chip comprise first Y-axis from chip and second Y-axis from chip, one group of Y-axis is connected respectively to sensor on the Y-axis of projected capacitive touch screen from chip and comprises first Y-axis is connected to sensor Y1-Y22 on the Y-axis from chip, second Y-axis is connected to sensor Y23-Y44 on the Y-axis from chip.
First X-axis is used the CY8C21434 chip from chip, Y-axis from chip and master chip; Second X-axis is used 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-axis, and another part is used for controlling the sensor of Y-axis.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 by synchronous pin to doing synchro control from chip, guaranteed that all data that can not cause obtaining because of the confusion on the sequential from chip have sluggishness 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-axis from chip, one group of Y-axis from a chip and a master chip.
One group of X-axis is connected respectively to the sensor on the X-axis of projected capacitive touch screen from chip, wherein each X-axis is from the number of pins of the chip quantity less than the sensor on the X-axis, each sensor on the X-axis is connected to the pin of an X-axis from chip, the different sensors on the X-axis that different X-axis connects from the pin of chip.
One group of Y-axis is connected respectively to the sensor on the Y-axis of projected capacitive touch screen from chip, wherein each Y-axis is from the number of pins of the chip quantity less than the sensor on the Y-axis, each sensor on the Y-axis is connected to the pin of a Y-axis from chip, the different sensors on the Y-axis that different Y-axis connects from the pin of chip.
Master chip be connected to described one group of X-axis from chip and one group of Y-axis from chip, wherein the synchronous pin of master chip is connected to the synchronous pin of each X-axis from chip and each Y-axis from chip, one group of interrupt pin of master chip is connected respectively to the interrupt pin of each X-axis from chip and each Y-axis from chip, the synchronous pin of master chip produces the negative edge synchronizing signal, one group of X-axis 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-axis, X-axis that it connected or the sensor on the Y-axis are scanned, obtain scan-data, each X-axis from chip or Y-axis from chip after the scanning of finishing oneself, the interrupt pin of self produces low signal, the interrupt pin of master chip correspondence is received low signal, carry out data communication from chip or Y-axis from chip with this X-axis, obtain scan-data, master chip receive all X-axis from chip and Y-axis 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-axis of this projected capacitive touch screen has 56 sensors X 1-X56, and Y-axis has 44 sensor Y1-Y44.In this embodiment, one group of X-axis comprises that from chip first X-axis is connected to sensors X 1-X20 on the X-axis from chip 10 and second X-axis from chip 11, the first X-axis from chip 10, and second X-axis is connected to sensors X 21-X56 on the X-axis from chip 11.One group of Y-axis comprises that from chip first Y-axis is connected to sensor Y1-Y22 on the Y-axis from chip 20 and second Y-axis from chip 21, the first Y-axis from chip 20, and second Y-axis is connected to sensor Y23-Y44 on the Y-axis from chip 21.Master chip 30 be connected to first X-axis from chip 10, second X-axis from chip 11, first Y-axis from chip 20, second Y-axis from chip 21.The synchronous pin of master chip 30 be connected to first X-axis from chip 10, second X-axis from chip 11, the synchronous pin of first Y-axis from chip 20, second Y-axis from chip 21, one group of interrupt pin of master chip 30 be connected respectively to first X-axis from chip 10, second X-axis from chip 11, the interrupt pin of first Y-axis from chip 20, second Y-axis from chip 21.First X-axis is used CY8C21434 chip from chip 20, second Y-axis from chip 21 and master chip 30 from chip 10, first Y-axis, and second X-axis is used the CY8C24794 chip from chip 11.
The workflow of the scanister of large scale projected capacitive touch screen shown in Figure 1 is roughly as follows:
Master chip by synchronous pin to doing synchro control from chip: the synchronous pin of master chip produces negative edge, when from chip (comprise first X-axis from chip, second X-axis from chip, first Y-axis from chip, second Y-axis 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 sluggishness 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, the interrupt pin of self is dragged down, the notice master chip " can have been read the result ".
The interrupt pin of master chip correspondence is received from some interruption negative edges from chip, will be read the data that it reports by I2C.After receiving the epicycle data that all report from chip, master chip is made final data and is handled.Master chip with realize by the I2C interface from the data communication of chip.
Master chip sends net result by 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.
Master chip is finished once after the data of control computer report, and can be once more produces negative edge at pin synchronously, notify all to begin next round scanning from chip.
In one embodiment, each is as follows 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 represents the number (0,1,2) of touch point
Peak1 represents if 1 touch point is arranged, the number of sensor that this value representative is touched.
Peak2 represents that this value is represented another number of sensor that is touched if 2 touch points are arranged.
In one embodiment, master chip is as follows toward the lattice number that control computer sends data:
Byte0 represents the number (0,1,2) of touch point
PeakX1, PeakX2, PeakY1, PeakY2 represent the number of sensor that is touched on X-axis and the Y-axis.
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 finally confirms total total several touch points, and calculates the accurate coordinate of touch point on whole touch screen, and by 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, saved each link consumed time greatly, guaranteed newspaper point rate up to 60fps.Be lower than 40fps as 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-axis is connected respectively to the sensor on the X-axis of projected capacitive touch screen from chip, wherein, each X-axis is from the number of pins of the chip quantity less than the sensor on the X-axis, each sensor on the X-axis is connected to the pin of an X-axis from chip, the different sensors on the X-axis that different X-axis connects from the pin of chip;
21. one group of Y-axis is connected respectively to the sensor on the Y-axis of projected capacitive touch screen from chip, wherein, each Y-axis is from the number of pins of the chip quantity less than the sensor on the Y-axis, each sensor on the Y-axis is connected to the pin of a Y-axis from chip, the different sensors on the Y-axis that different Y-axis connects from the pin of chip;
22. with master chip be connected to one group of X-axis from chip and one group of Y-axis from chip, wherein, the synchronous pin of master chip is connected to the synchronous pin of each X-axis from chip and each Y-axis from chip, and one group of interrupt pin of master chip is connected respectively to the interrupt pin of each X-axis from chip and each Y-axis from chip;
23. the synchronous pin of master chip produces the negative edge synchronizing signal, one group of X-axis 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-axis, X-axis that it connected or the sensor on the Y-axis are scanned, obtain scan-data;
24. each X-axis from chip or Y-axis from chip after the scanning of finishing oneself, the interrupt pin of self produces low signal, the interrupt pin of master chip correspondence is received low signal, carries out data communication from chip or Y-axis from chip with this X-axis, obtains described scan-data;
25. master chip receive all X-axis from chip and Y-axis 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-axis of projected capacitive touch screen, have 44 sensor Y1-Y44 on the Y-axis;
One group of X-axis from chip comprise first X-axis from chip and second X-axis from chip, one group of X-axis is connected respectively to sensor on the X-axis of projected capacitive touch screen from chip and comprises first X-axis is connected to sensors X 1-X20 on the X-axis from chip, second X-axis is connected to sensors X 21-X56 on the X-axis from chip; One group of Y-axis from chip comprise first Y-axis from chip and second Y-axis from chip, one group of Y-axis is connected respectively to sensor on the Y-axis of projected capacitive touch screen from chip and comprises first Y-axis is connected to sensor Y1-Y22 on the Y-axis from chip, second Y-axis is connected to sensor Y23-Y44 on the Y-axis from chip.
In one embodiment, first X-axis is used the CY8C21434 chip from chip, Y-axis from chip and master chip; Second X-axis is used 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 herein.
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-axis, and another part is used for controlling the sensor of Y-axis.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 by synchronous pin to doing synchro control from chip, guaranteed that all data that can not cause obtaining because of the confusion on the sequential from chip have sluggishness or inconsistent phenomenon, have guaranteed the accuracy and the promptness of data.