CN102023769A - Scanning device and scanning method for large-scale projected capacitive touch screen - Google Patents
Scanning device and scanning method for large-scale projected capacitive touch screen Download PDFInfo
- Publication number
- CN102023769A CN102023769A CN2009101954834A CN200910195483A CN102023769A CN 102023769 A CN102023769 A CN 102023769A CN 2009101954834 A CN2009101954834 A CN 2009101954834A CN 200910195483 A CN200910195483 A CN 200910195483A CN 102023769 A CN102023769 A CN 102023769A
- Authority
- CN
- China
- Prior art keywords
- axis
- chip
- slave
- sensors
- axis slave
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 16
- 238000004891 communication Methods 0.000 claims abstract description 7
- 230000001360 synchronised effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 241000218691 Cupressaceae Species 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 230000001427 coherent effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
Images
Landscapes
- Position Input By Displaying (AREA)
Abstract
Description
技术领域technical field
本发明涉及投射电容式触摸屏技术,尤其涉及大尺寸投射电容式触摸屏的扫描装置及扫描方法。The invention relates to projected capacitive touch screen technology, in particular to a scanning device and a scanning method for a large-scale projected capacitive touch screen.
背景技术Background technique
投射电容式触摸屏的使用十分广泛,投射电容式触摸屏的基本实现原理是在触摸屏上布置传感器,这些传感器分别用于探测纵向和横向区域,使用芯片来对传感器感知的信号进行处理,得知处于触摸屏的触摸操作。Projected capacitive touch screens are widely used. The basic implementation principle of projected capacitive touch screens is to arrange sensors on the touch screen. These sensors are used to detect vertical and horizontal areas, and chips are used to process the signals sensed by the sensors. touch operation.
常用的芯片是Cypress芯片的CSD模块(Capacitive Sensing using aSigma-Delta Modulator),该芯片可以对投射电容式触摸屏的传感器做电容扫描以及处理。Cypress芯片基本封装一般只有16管脚(pin)、32pin、56pin,单颗芯片能控制的最大尺寸是7英寸。于是,对于大尺寸(>7英寸)的投射电容式触摸屏来说,在控制上就存在一定的问题。如果想获得较高的解析度,使用的Sensor个数可能达到数百个,用一颗现有的芯片来处理是根本不行的。一种解决方案是重新设计具有更多管脚的芯片,来适应大尺寸的触摸屏。但是重新设计芯片所需要的时间和成本都十分巨大,制造的芯片自身价格也会十分昂贵,明显不利于大尺寸触摸屏的应用和推广。The commonly used chip is the CSD module (Capacitive Sensing using a Sigma-Delta Modulator) of the Cypress chip, which can perform capacitive scanning and processing on the sensor of the projected capacitive touch screen. The basic packaging of Cypress chips generally only has 16 pins (pin), 32pin, and 56pin, and the maximum size that can be controlled by a single chip is 7 inches. Therefore, for a projected capacitive touch screen with a large size (>7 inches), there are certain problems in control. If you want to obtain a higher resolution, the number of Sensors used may reach hundreds, and it is impossible to use an existing chip to process it. One solution is to redesign the chip with more pins to accommodate the large size of the touch screen. However, the time and cost required to redesign the chip are huge, and the price of the chip itself will be very expensive, which is obviously not conducive to the application and promotion of large-size touch screens.
于是,就需要一种新型的,适合于大尺寸投射电容式触摸屏的扫描装置及扫描方法。Therefore, there is a need for a novel scanning device and scanning method suitable for large-scale projected capacitive touch screens.
发明内容Contents of the invention
本发明旨在提供一种大尺寸投射电容式触摸屏的扫描装置和扫描方法,使用多个现有的芯片来分别对触摸屏上的一部分区域进行扫描,在将这些扫描的数据综合,实现利用现有芯片对大尺寸投射电容式触摸屏进行扫描的目的。The purpose of the present invention is to provide a scanning device and a scanning method for a large-scale projected capacitive touch screen. A plurality of existing chips are used to scan a part of the area on the touch screen. The purpose of the chip to scan the large-scale projected capacitive touch screen.
根据本发明的一方面,提出一种大尺寸投射电容式触摸屏的扫描装置,包括:According to one aspect of the present invention, a scanning device for a large-scale projected capacitive touch screen is proposed, including:
一组X轴从芯片,分别连接到投射电容式触摸屏的X轴上的传感器,其中,每一个X轴从芯片的管脚数小于X轴上的传感器的数量,X轴上的每一个传感器连接到一个X轴从芯片的一个管脚,不同的X轴从芯片的管脚连接的X轴上的不同传感器;A group of X-axis slave chips are respectively connected to the sensors on the X-axis of the projected capacitive touch screen, wherein the number of pins of each X-axis slave chip is less than the number of sensors on the X-axis, and each sensor on the X-axis is connected To one pin of the X-axis slave chip, different X-axis slave pins of the chip are connected to different sensors on the X-axis;
一组Y轴从芯片,分别连接到投射电容式触摸屏的Y轴上的传感器,其中,每一个Y轴从芯片的管脚数小于Y轴上的传感器的数量,Y轴上的每一个传感器连接到一个Y轴从芯片的一个管脚,不同的Y轴从芯片的管脚连接的Y轴上的不同传感器;A group of Y-axis slave chips are respectively connected to the sensors on the Y-axis of the projected capacitive touch screen, wherein the number of pins of each Y-axis slave chip is less than the number of sensors on the Y-axis, and each sensor on the Y-axis is connected to To one pin of the Y-axis slave chip, different Y-axis slave pins of the chip are connected to different sensors on the Y-axis;
主芯片,连接到一组X轴从芯片和一组Y轴从芯片,其中,主芯片的同步管脚连接到每一个X轴从芯片以及每一个Y轴从芯片的同步管脚,主芯片的一组中断管脚分别连接到每一个X轴从芯片以及每一个Y轴从芯片的中断管脚,主芯片的同步管脚产生下降沿同步信号,一组X轴从芯片和一组Y轴从芯片的同步管脚接收到主芯片同步管脚的下降沿同步信号,对其所连接的X轴或者Y轴上的传感器进行扫描,获得扫描数据,每一个X轴从芯片或者Y轴从芯片在完成自己的扫描之后,自身的中断管脚产生低信号,主芯片对应的中断管脚收到低信号,与该X轴从芯片或者Y轴从芯片进行数据通信,获得所述扫描数据,主芯片收到所有X轴从芯片以及Y轴从芯片的扫描数据后,将所述的扫描数据上报给控制计算机,主芯片的同步管脚产生下一个下降沿同步信号。The master chip is connected to a group of X-axis slave chips and a group of Y-axis slave chips, wherein the synchronization pin of the master chip is connected to the synchronization pins of each X-axis slave chip and each Y-axis slave chip, and the master chip's A group of interrupt pins are respectively connected to the interrupt pins of each X-axis slave chip and each Y-axis slave chip. The synchronization pin of the master chip generates a falling edge synchronization signal. A group of X-axis slave chips and a group of Y-axis slave chips The synchronization pin of the chip receives the falling edge synchronization signal of the synchronization pin of the main chip, and scans the sensor on the X-axis or Y-axis connected to it to obtain scanning data. Each X-axis slave chip or Y-axis slave chip is After completing its own scan, its own interrupt pin generates a low signal, and the interrupt pin corresponding to the master chip receives a low signal, and communicates with the X-axis slave chip or the Y-axis slave chip to obtain the scan data, and the master chip After receiving the scan data of all X-axis slave chips and Y-axis slave chips, report the scan data to the control computer, and the synchronization pin of the master chip generates the next falling edge synchronization signal.
根据一个实施例,投射电容式触摸屏的X轴上具有56个传感器X1-X56,Y轴上具有44个传感器Y1-Y44;该一组X轴从芯片包括第一X轴从芯片和第二X轴从芯片,其中的第一X轴从芯片连接到X轴上的传感器X1-X20,第二X轴从芯片连接到X轴上的传感器X21-X56;该一组Y轴从芯片包括第一Y轴从芯片和第二Y轴从芯片,其中的第一Y轴从芯片连接到Y轴上的传感器Y1-Y22,第二Y轴从芯片连接到Y轴上的传感器Y23-Y44。According to one embodiment, there are 56 sensors X1-X56 on the X-axis of the projected capacitive touch screen, and 44 sensors Y1-Y44 on the Y-axis; the set of X-axis slave chips includes a first X-axis slave chip and a second X-axis slave chip. Axis slave chips, where the first X-axis slave chip is connected to the sensors X1-X20 on the X-axis, and the second X-axis slave chip is connected to the sensors X21-X56 on the X-axis; this group of Y-axis slave chips includes the first The Y-axis slave chip and the second Y-axis slave chip, wherein the first Y-axis slave chip is connected to the sensors Y1-Y22 on the Y-axis, and the second Y-axis slave chip is connected to the sensors Y23-Y44 on the Y-axis.
第一X轴从芯片、Y轴从芯片和主芯片使用CY8C21434芯片;第二X轴从芯片使用CY8C24794芯片。The first X-axis slave chip, Y-axis slave chip and master chip use CY8C21434 chip; the second X-axis slave chip uses CY8C24794 chip.
根据本发明的另一方面,提出一种大尺寸投射电容式触摸屏的扫描方法,包括:According to another aspect of the present invention, a scanning method for a large-scale projected capacitive touch screen is proposed, including:
将一组X轴从芯片分别连接到投射电容式触摸屏的X轴上的传感器,其中,每一个X轴从芯片的管脚数小于X轴上的传感器的数量,X轴上的每一个传感器连接到一个X轴从芯片的一个管脚,不同的X轴从芯片的管脚连接的X轴上的不同传感器;Connect a group of X-axis slave chips to the sensors on the X-axis of the projected capacitive touch screen, wherein the number of pins of each X-axis slave chip is less than the number of sensors on the X-axis, and each sensor on the X-axis is connected To one pin of the X-axis slave chip, different X-axis slave pins of the chip are connected to different sensors on the X-axis;
将一组Y轴从芯片分别连接到投射电容式触摸屏的Y轴上的传感器,其中,每一个Y轴从芯片的管脚数小于Y轴上的传感器的数量,Y轴上的每一个传感器连接到一个Y轴从芯片的一个管脚,不同的Y轴从芯片的管脚连接的Y轴上的不同传感器;Connect a group of Y-axis slave chips to the sensors on the Y-axis of the projected capacitive touch screen, wherein the number of pins of each Y-axis slave chip is less than the number of sensors on the Y-axis, and each sensor on the Y-axis is connected To one pin of the Y-axis slave chip, different Y-axis slave pins of the chip are connected to different sensors on the Y-axis;
将主芯片连接到一组X轴从芯片和一组Y轴从芯片,其中,主芯片的同步管脚连接到每一个X轴从芯片以及每一个Y轴从芯片的同步管脚,主芯片的一组中断管脚分别连接到每一个X轴从芯片以及每一个Y轴从芯片的中断管脚;Connect the master chip to a group of X-axis slave chips and a group of Y-axis slave chips, wherein the synchronization pin of the master chip is connected to the synchronization pin of each X-axis slave chip and each Y-axis slave chip, and the synchronization pin of the master chip A group of interrupt pins are respectively connected to the interrupt pins of each X-axis slave chip and each Y-axis slave chip;
主芯片的同步管脚产生下降沿同步信号,一组X轴从芯片和一组Y轴从芯片的同步管脚接收到主芯片同步管脚的下降沿同步信号,对其所连接的X轴或者Y轴上的传感器进行扫描,获得扫描数据;The synchronization pin of the master chip generates a falling edge synchronization signal, and a group of X-axis slave chips and a group of Y-axis slave chips receive the falling edge synchronization signal of the synchronization pin of the master chip, and the connected X-axis or The sensor on the Y axis scans to obtain scanning data;
每一个X轴从芯片或者Y轴从芯片在完成自己的扫描之后,自身的中断管脚产生低信号,主芯片对应的中断管脚收到低信号,与该X轴从芯片或者Y轴从芯片进行数据通信,获得所述扫描数据;After each X-axis slave chip or Y-axis slave chip completes its own scan, its own interrupt pin generates a low signal, and the interrupt pin corresponding to the master chip receives a low signal, which is consistent with the X-axis slave chip or Y-axis slave chip. performing data communication to obtain the scan data;
主芯片收到所有X轴从芯片以及Y轴从芯片的扫描数据后,将扫描数据上报给控制计算机,主芯片的同步管脚产生下一个下降沿同步信号。After receiving the scanning data of all X-axis slave chips and Y-axis slave chips, the master chip reports the scan data to the control computer, and the synchronization pin of the master chip generates the next falling edge synchronization signal.
根据一个实施例,投射电容式触摸屏的X轴上具有56个传感器X1-X56,Y轴上具有44个传感器Y1-Y44;该一组X轴从芯片包括第一X轴从芯片和第二X轴从芯片,将一组X轴从芯片分别连接到投射电容式触摸屏的X轴上的传感器包括将第一X轴从芯片连接到X轴上的传感器X1-X20,将第二X轴从芯片连接到X轴上的传感器X21-X56;该一组Y轴从芯片包括第一Y轴从芯片和第二Y轴从芯片,将一组Y轴从芯片分别连接到投射电容式触摸屏的Y轴上的传感器包括将第一Y轴从芯片连接到Y轴上的传感器Y1-Y22,将第二Y轴从芯片连接到Y轴上的传感器Y23-Y44。According to one embodiment, there are 56 sensors X1-X56 on the X-axis of the projected capacitive touch screen, and 44 sensors Y1-Y44 on the Y-axis; the set of X-axis slave chips includes a first X-axis slave chip and a second X-axis slave chip. Axis slave chip, connect a group of X-axis slave chips to the sensors on the X-axis of the projected capacitive touch screen, including connecting the first X-axis slave chip to the sensors X1-X20 on the X-axis, connecting the second X-axis slave chip Sensors X21-X56 connected to the X-axis; the group of Y-axis slave chips includes a first Y-axis slave chip and a second Y-axis slave chip, and a group of Y-axis slave chips are respectively connected to the Y-axis of the projected capacitive touch screen The sensors on the board include sensors Y1-Y22 that connect the first Y-axis slave chip to the Y-axis, and sensors Y23-Y44 that connect the second Y-axis slave chip to the Y-axis.
第一X轴从芯片、Y轴从芯片和主芯片使用CY8C21434芯片;第二X轴从芯片使用CY8C24794芯片。The first X-axis slave chip, Y-axis slave chip and master chip use CY8C21434 chip; the second X-axis slave chip uses CY8C24794 chip.
采用本发明的技术方案,采用多颗现有的芯片控制对大尺寸投射电容式触摸屏的扫描控制,其中一颗为主芯片,其余多颗为从芯片:从芯片中的部分芯片用来控制X轴的传感器,另一部分用来控制Y轴的传感器。从芯片负责扫描传感器,主芯片则负责接收从芯片上报的扫描结果,并做出最终的数据处理。从芯片与主芯片间通过标准I2C接口以及中断管脚通讯,并且主芯片通过同步管脚对从芯片做同步控制,保证了所有的从芯片不会因为时序上的混乱而导致获得的数据有迟滞或者错位现象,保证了数据的准确性和及时性。Adopting the technical solution of the present invention, multiple existing chips are used to control the scanning control of the large-size projected capacitive touch screen, one of which is the master chip, and the rest are slave chips: some chips in the slave chips are used to control X Axis sensor, the other part is used to control the Y-axis sensor. The slave chip is responsible for scanning the sensor, and the master chip is responsible for receiving the scanning results reported by the slave chip and making the final data processing. The slave chip communicates with the master chip through the standard I2C interface and the interrupt pin, and the master chip performs synchronous control on the slave chip through the synchronization pin, which ensures that all the slave chips will not be delayed due to timing confusion. Or dislocation phenomenon, to ensure the accuracy and timeliness of the data.
附图说明Description of drawings
图1揭示了本发明的大尺寸投射电容式触摸屏的扫描装置的结构图;Fig. 1 discloses the structural diagram of the scanning device of the large-scale projected capacitive touch screen of the present invention;
图2揭示了本发明的大尺寸投射电容式触摸屏的扫描方法的流程图。FIG. 2 discloses a flow chart of the scanning method of the large-size projected capacitive touch screen of the present invention.
具体实施方式Detailed ways
本发明的大尺寸投射电容式触摸屏的扫描装置包括一组X轴从芯片、一组Y轴从芯片以及一主芯片。The scanning device of the large-scale projected capacitive touch screen of the present invention includes a set of X-axis slave chips, a set of Y-axis slave chips and a master chip.
一组X轴从芯片分别连接到投射电容式触摸屏的X轴上的传感器,其中每一个X轴从芯片的管脚数小于X轴上的传感器的数量,X轴上的每一个传感器连接到一个X轴从芯片的一个管脚,不同的X轴从芯片的管脚连接的X轴上的不同传感器。A group of X-axis slave chips are respectively connected to the sensors on the X-axis of the projected capacitive touch screen, wherein the number of pins of each X-axis slave chip is less than the number of sensors on the X-axis, and each sensor on the X-axis is connected to a The X axis is from one pin of the chip, and different X axes are connected to different sensors on the X axis from the pins of the chip.
一组Y轴从芯片分别连接到投射电容式触摸屏的Y轴上的传感器,其中每一个Y轴从芯片的管脚数小于Y轴上的传感器的数量,Y轴上的每一个传感器连接到一个Y轴从芯片的一个管脚,不同的Y轴从芯片的管脚连接的Y轴上的不同传感器。A group of Y-axis slave chips are respectively connected to the sensors on the Y-axis of the projected capacitive touch screen, wherein the number of pins of each Y-axis slave chip is less than the number of sensors on the Y-axis, and each sensor on the Y-axis is connected to a The Y axis is from one pin of the chip, and different Y axes are connected to different sensors on the Y axis from the pins of the chip.
主芯片连接到所述的一组X轴从芯片和一组Y轴从芯片,其中主芯片的同步管脚连接到每一个X轴从芯片以及每一个Y轴从芯片的同步管脚,主芯片的一组中断管脚分别连接到每一个X轴从芯片以及每一个Y轴从芯片的中断管脚,主芯片的同步管脚产生下降沿同步信号,一组X轴从芯片和一组Y轴从芯片的同步管脚接收到主芯片同步管脚的下降沿同步信号,对其所连接的X轴或者Y轴上的传感器进行扫描,获得扫描数据,每一个X轴从芯片或者Y轴从芯片在完成自己的扫描之后,自身的中断管脚产生低信号,主芯片对应的中断管脚收到低信号,与该X轴从芯片或者Y轴从芯片进行数据通信,获得扫描数据,主芯片收到所有X轴从芯片以及Y轴从芯片的扫描数据后,将扫描数据上报给控制计算机,主芯片的同步管脚产生下一个下降沿同步信号。The master chip is connected to a group of X-axis slave chips and a group of Y-axis slave chips, wherein the synchronization pin of the master chip is connected to the synchronization pins of each X-axis slave chip and each Y-axis slave chip, and the master chip A group of interrupt pins are respectively connected to the interrupt pins of each X-axis slave chip and each Y-axis slave chip, the synchronization pin of the master chip generates a falling edge synchronization signal, a group of X-axis slave chips and a group of Y-axis slave chips The synchronization pin of the slave chip receives the falling edge synchronization signal of the synchronization pin of the master chip, and scans the sensor on the X-axis or Y-axis connected to it to obtain scanning data. Each X-axis slave chip or Y-axis slave chip After completing its own scan, its own interrupt pin generates a low signal, and the interrupt pin corresponding to the main chip receives a low signal, and communicates with the X-axis slave chip or the Y-axis slave chip to obtain scanning data, and the main chip receives a low signal. After receiving the scan data of all X-axis slave chips and Y-axis slave chips, report the scan data to the control computer, and the synchronization pin of the master chip generates the next falling edge synchronization signal.
图1揭示了本发明的大尺寸投射电容式触摸屏的扫描装置的一个实施里的结构图。在该实施例中,大尺寸投射电容式触摸屏是一个17寸的投射电容式触摸屏40,该投射电容式触摸屏的X轴具有56个传感器X1-X56,Y轴具有44个传感器Y1-Y44。在该实施例中,一组X轴从芯片包括第一X轴从芯片10和第二X轴从芯片11,第一X轴从芯片10连接到X轴上的传感器X1-X20,第二X轴从芯片11连接到X轴上的传感器X21-X56。一组Y轴从芯片包括第一Y轴从芯片20和第二Y轴从芯片21,第一Y轴从芯片20连接到Y轴上的传感器Y1-Y22,第二Y轴从芯片21连接到Y轴上的传感器Y23-Y44。主芯片30连接到第一X轴从芯片10、第二X轴从芯片11、第一Y轴从芯片20、第二Y轴从芯片21。主芯片30的同步管脚连接到第一X轴从芯片10、第二X轴从芯片11、第一Y轴从芯片20、第二Y轴从芯片21的同步管脚,主芯片30的一组中断管脚分别连接到第一X轴从芯片10、第二X轴从芯片11、第一Y轴从芯片20、第二Y轴从芯片21的中断管脚。第一X轴从芯片10、第一Y轴从芯片20、第二Y轴从芯片21和主芯片30使用CY8C21434芯片,而第二X轴从芯片11使用CY8C24794芯片。FIG. 1 discloses a structural diagram of an implementation of a scanning device for a large-scale projected capacitive touch screen of the present invention. In this embodiment, the large-sized projected capacitive touch screen is a 17-inch projected capacitive touch screen 40, the projected capacitive touch screen has 56 sensors X1-X56 on the X axis, and 44 sensors Y1-Y44 on the Y axis. In this embodiment, a set of X-axis slave chips includes a first
图1所示的大尺寸投射电容式触摸屏的扫描装置的工作流程大致如下:The workflow of the scanning device of the large-size projected capacitive touch screen shown in Figure 1 is roughly as follows:
主芯片通过同步管脚对从芯片做同步控制:主芯片的同步管脚产生下降沿,当从芯片(包括第一X轴从芯片、第二X轴从芯片、第一Y轴从芯片、第二Y轴从芯片)侦测到主芯片的同步管脚有下降沿产生,从芯片同时开始扫描。这样保证了多颗从片不会因为时序上的混乱而导致获得的数据有迟滞或者错位现象,保证了数据的准确性和及时性。The main chip performs synchronous control on the slave chip through the synchronization pin: the synchronization pin of the main chip generates a falling edge, when the slave chip (including the first X-axis slave chip, the second X-axis slave chip, the first Y-axis slave chip, the second Two Y-axis slave chips) detect that the synchronization pin of the master chip has a falling edge, and the slave chips start scanning at the same time. This ensures that multiple slave chips will not cause hysteresis or misalignment of the data obtained due to timing confusion, ensuring the accuracy and timeliness of the data.
每颗从芯片对其负责的所有传感器都扫描一轮之后,对所获得的扫描结果做出处理,处理完毕,把自身的中断管脚拉低,通知主芯片“可以来读结果了”。After each slave chip scans all the sensors responsible for it for a round, it processes the obtained scanning results. After the processing is completed, it pulls its own interrupt pin low to notify the master chip that "it is time to read the results".
主芯片对应的中断管脚收到来自某一个从芯片的中断下降沿,就会通过I2C读取其上报的数据。当收到所有从芯片上报的本轮数据之后,主芯片做出最终的数据处理。主芯片与从芯片的数据通信通过I2C接口实现。The interrupt pin corresponding to the master chip receives the interrupt falling edge from a certain slave chip, and will read the data reported by it through I2C. After receiving all the current round of data reported by the slave chip, the master chip makes the final data processing. The data communication between the master chip and the slave chip is realized through the I2C interface.
主芯片通过UART接口向控制计算机发送最终结果,该最终结果就是主芯片对每一个从芯片的上报数据处理之后的结果。The main chip sends the final result to the control computer through the UART interface, and the final result is the result after the main chip processes the reported data of each slave chip.
主芯片完成一次向控制计算机的数据上报之后,会再次在同步管脚产生下降沿,通知所有从芯片开始下一轮扫描。After the master chip completes a data report to the control computer, it will generate a falling edge on the synchronization pin again to notify all slave chips to start the next round of scanning.
在一个实施例中,每一颗从芯片向主芯片送的数据格式如下:In one embodiment, the data format sent from each chip to the master chip is as follows:
Byte0表示触摸点的个数(0,1,2)Byte0 indicates the number of touch points (0, 1, 2)
Peak1表示如果有1个触摸点,这个值代表被触摸的传感器的编号。Peak1 means that if there is 1 touch point, this value represents the number of the touched sensor.
Peak2表示如果有2个触摸点,这个值代表另一条被触摸的传感器的编号。Peak2 means that if there are 2 touch points, this value represents the number of another touched sensor.
在一个实施例中,主芯片往控制计算机发送数据的格数如下:In one embodiment, the number of grids of data sent by the main chip to the control computer is as follows:
Byte0表示触摸点的个数(0,1,2)Byte0 indicates the number of touch points (0, 1, 2)
PeakX1、PeakX2、PeakY1、PeakY2代表X轴和Y轴上被触摸的传感器的编号。PeakX1, PeakX2, PeakY1, and PeakY2 represent the numbers of the touched sensors on the X-axis and Y-axis.
每颗从芯片扫描了各自负责的所有传感器之后,根据扫描结果以及传感器的特性,负责判断在本区域,是否有触摸动作发生,如果有触摸,必须判断是单指触摸还是双指触摸。然后计算出触摸点在本区域内的具体位置,并上报到主芯片。After each slave chip scans all the sensors it is responsible for, it is responsible for judging whether there is a touch action in the area according to the scanning results and the characteristics of the sensor. If there is a touch, it must be judged whether it is a single-finger touch or a two-finger touch. Then calculate the specific position of the touch point in this area, and report to the main chip.
主芯片根据每一颗从芯片上报的数据,做出汇总,并最终确认总共有几个触摸点,以及计算触摸点在整个触摸屏上的准确坐标,并通过UART将数据传输到控制计算机。如果是单指持续在触摸屏上移动,主芯片还对连贯的坐标做出平滑修正,使控制计算机得到的坐标数据能连出一条平滑的曲线。The main chip makes a summary based on the data reported by each slave chip, and finally confirms that there are a total of several touch points, and calculates the exact coordinates of the touch points on the entire touch screen, and transmits the data to the control computer through UART. If a single finger continues to move on the touch screen, the main chip also makes smooth corrections to the coherent coordinates, so that the coordinate data obtained by the control computer can be connected to a smooth curve.
在需要同时扫描100根传感器的情况下,这样的数据格式,能够使I2C通讯读取的数据最少,UART输出到控制计算机的数据也最少,极大的节约了各环节耗费的时间,保证了高达60fps的报点率。如果报点率低于40fps,手写效果将会很差,容易发生断线、折线、跳线以及线条不平滑等问题,无法用于电脑显示器这种需要高分辨率手写功能的仪器上做触摸设备。In the case that 100 sensors need to be scanned at the same time, such a data format can minimize the data read by I2C communication and the data output from UART to the control computer, which greatly saves the time spent in each link and ensures up to 60fps reporting rate. If the reporting rate is lower than 40fps, the handwriting effect will be very poor, and problems such as broken lines, broken lines, jumping lines, and uneven lines will easily occur. It cannot be used as a touch device on an instrument that requires high-resolution handwriting functions such as computer monitors. .
参考图2所示,本发明还揭示了一种大尺寸投射电容式触摸屏的扫描方法,包括下述的步骤:Referring to Fig. 2, the present invention also discloses a scanning method of a large-scale projected capacitive touch screen, including the following steps:
20.将一组X轴从芯片分别连接到投射电容式触摸屏的X轴上的传感器,其中,每一个X轴从芯片的管脚数小于X轴上的传感器的数量,X轴上的每一个传感器连接到一个X轴从芯片的一个管脚,不同的X轴从芯片的管脚连接的X轴上的不同传感器;20. Connect a group of X-axis slave chips to the sensors on the X-axis of the projected capacitive touch screen, wherein the number of pins of each X-axis slave chip is less than the number of sensors on the X-axis, and each pin on the X-axis The sensor is connected to one pin of the X-axis slave chip, and different sensors on the X-axis are connected to different X-axis slave chip pins;
21.将一组Y轴从芯片分别连接到投射电容式触摸屏的Y轴上的传感器,其中,每一个Y轴从芯片的管脚数小于Y轴上的传感器的数量,Y轴上的每一个传感器连接到一个Y轴从芯片的一个管脚,不同的Y轴从芯片的管脚连接的Y轴上的不同传感器;21. Connect a group of Y-axis slave chips to the sensors on the Y-axis of the projected capacitive touch screen, wherein the number of pins of each Y-axis slave chip is less than the number of sensors on the Y-axis, and each The sensor is connected to one pin of a Y-axis slave chip, and different Y-axis slave chip pins are connected to different sensors on the Y-axis;
22.将主芯片连接到一组X轴从芯片和一组Y轴从芯片,其中,主芯片的同步管脚连接到每一个X轴从芯片以及每一个Y轴从芯片的同步管脚,主芯片的一组中断管脚分别连接到每一个X轴从芯片以及每一个Y轴从芯片的中断管脚;22. Connect the master chip to a group of X-axis slave chips and a group of Y-axis slave chips, wherein the synchronization pin of the master chip is connected to the synchronization pin of each X-axis slave chip and each Y-axis slave chip, the master A group of interrupt pins of the chip are respectively connected to the interrupt pins of each X-axis slave chip and each Y-axis slave chip;
23.主芯片的同步管脚产生下降沿同步信号,一组X轴从芯片和一组Y轴从芯片的同步管脚接收到主芯片同步管脚的下降沿同步信号,对其所连接的X轴或者Y轴上的传感器进行扫描,获得扫描数据;23. The synchronization pin of the main chip generates a falling edge synchronization signal, and a group of X-axis slave chips and a group of Y-axis slave chip synchronization pins receive the falling edge synchronization signal of the synchronization pin of the main chip. Scan the sensor on the axis or Y axis to obtain scanning data;
24.每一个X轴从芯片或者Y轴从芯片在完成自己的扫描之后,自身的中断管脚产生低信号,主芯片对应的中断管脚收到低信号,与该X轴从芯片或者Y轴从芯片进行数据通信,获得所述扫描数据;24. After each X-axis slave chip or Y-axis slave chip completes its own scan, its own interrupt pin generates a low signal, and the interrupt pin corresponding to the main chip receives a low signal, which is consistent with the X-axis slave chip or Y-axis performing data communication from the chip to obtain the scan data;
25.主芯片收到所有X轴从芯片以及Y轴从芯片的扫描数据后,将扫描数据上报给控制计算机,主芯片的同步管脚产生下一个下降沿同步信号。25. After the main chip receives the scanning data of all X-axis slave chips and Y-axis slave chips, it reports the scanning data to the control computer, and the synchronization pin of the main chip generates the next falling edge synchronization signal.
参考图1所示的实施例的结构图,本发明的一个实现中,投射电容式触摸屏的X轴上具有56个传感器X1-X56,Y轴上具有44个传感器Y1-Y44;Referring to the structural diagram of the embodiment shown in FIG. 1, in an implementation of the present invention, there are 56 sensors X1-X56 on the X-axis of the projected capacitive touch screen, and 44 sensors Y1-Y44 on the Y-axis;
一组X轴从芯片包括第一X轴从芯片和第二X轴从芯片,将一组X轴从芯片分别连接到投射电容式触摸屏的X轴上的传感器包括将第一X轴从芯片连接到X轴上的传感器X1-X20,将第二X轴从芯片连接到X轴上的传感器X21-X56;一组Y轴从芯片包括第一Y轴从芯片和第二Y轴从芯片,将一组Y轴从芯片分别连接到投射电容式触摸屏的Y轴上的传感器包括将第一Y轴从芯片连接到Y轴上的传感器Y1-Y22,将第二Y轴从芯片连接到Y轴上的传感器Y23-Y44。A group of X-axis slave chips includes a first X-axis slave chip and a second X-axis slave chip, and connecting a group of X-axis slave chips to the sensors on the X-axis of the projected capacitive touch screen includes connecting the first X-axis slave chip To the sensors X1-X20 on the X-axis, connect the second X-axis slave chip to the sensors X21-X56 on the X-axis; a set of Y-axis slave chips includes the first Y-axis slave chip and the second Y-axis slave chip, connect the A group of Y-axis slave chips are respectively connected to the Y-axis sensors of the projected capacitive touch screen, including sensors Y1-Y22 connected to the first Y-axis slave chip to the Y-axis, and the second Y-axis slave chip is connected to the Y-axis The sensors Y23-Y44.
在一个实施例中,第一X轴从芯片、Y轴从芯片和主芯片使用CY8C21434芯片;第二X轴从芯片使用CY8C24794芯片。In one embodiment, the first X-axis slave chip, the Y-axis slave chip and the master chip use a CY8C21434 chip; the second X-axis slave chip uses a CY8C24794 chip.
图2所揭示的方法的细节描述与图1所揭示的装置相一致,此处不再重复。The detailed description of the method disclosed in FIG. 2 is consistent with the device disclosed in FIG. 1 , and will not be repeated here.
采用本发明的技术方案,采用多颗现有的芯片控制对大尺寸投射电容式触摸屏的扫描控制,其中一颗为主芯片,其余多颗为从芯片:从芯片中的部分芯片用来控制X轴的传感器,另一部分用来控制Y轴的传感器。从芯片负责扫描传感器,主芯片则负责接收从芯片上报的扫描结果,并做出最终的数据处理。从芯片与主芯片间通过标准I2C接口以及中断管脚通讯,并且主芯片通过同步管脚对从芯片做同步控制,保证了所有的从芯片不会因为时序上的混乱而导致获得的数据有迟滞或者错位现象,保证了数据的准确性和及时性。Adopting the technical solution of the present invention, multiple existing chips are used to control the scanning control of the large-size projected capacitive touch screen, one of which is the master chip, and the rest are slave chips: some chips in the slave chips are used to control X Axis sensor, the other part is used to control the Y-axis sensor. The slave chip is responsible for scanning the sensor, and the master chip is responsible for receiving the scanning results reported by the slave chip and making the final data processing. The slave chip communicates with the master chip through the standard I2C interface and the interrupt pin, and the master chip performs synchronous control on the slave chip through the synchronization pin, which ensures that all the slave chips will not be delayed due to timing confusion. Or dislocation phenomenon, to ensure the accuracy and timeliness of the data.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101954834A CN102023769B (en) | 2009-09-10 | 2009-09-10 | Scanning device and scanning method for large-size projected capacitive touch screen |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101954834A CN102023769B (en) | 2009-09-10 | 2009-09-10 | Scanning device and scanning method for large-size projected capacitive touch screen |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102023769A true CN102023769A (en) | 2011-04-20 |
CN102023769B CN102023769B (en) | 2012-10-31 |
Family
ID=43865123
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009101954834A Active CN102023769B (en) | 2009-09-10 | 2009-09-10 | Scanning device and scanning method for large-size projected capacitive touch screen |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102023769B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105353928A (en) * | 2015-09-28 | 2016-02-24 | 深圳贝特莱电子科技有限公司 | Large-sized touch screen based scanning method and system |
CN109752618A (en) * | 2019-03-22 | 2019-05-14 | 敦泰电子有限公司 | A kind of combination of touch screen detection chip and terminal device |
CN113970987A (en) * | 2021-10-18 | 2022-01-25 | 中航华东光电有限公司 | Multi-chip cascaded capacitive touch screen drive system and method |
CN118012293A (en) * | 2024-04-08 | 2024-05-10 | 上海海栎创科技股份有限公司 | Multi-touch chip driving and sensing synchronization method and system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101271372B (en) * | 2008-05-06 | 2010-10-13 | 党韧 | Multi-point touch panel |
CN101408826B (en) * | 2008-11-17 | 2010-07-07 | 友达光电股份有限公司 | Sensing device of capacitive touch panel |
-
2009
- 2009-09-10 CN CN2009101954834A patent/CN102023769B/en active Active
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105353928A (en) * | 2015-09-28 | 2016-02-24 | 深圳贝特莱电子科技有限公司 | Large-sized touch screen based scanning method and system |
CN109752618A (en) * | 2019-03-22 | 2019-05-14 | 敦泰电子有限公司 | A kind of combination of touch screen detection chip and terminal device |
US11789562B2 (en) | 2019-03-22 | 2023-10-17 | Focaltech Electronics, Ltd. | Touch screen detection chip combination and terminal device |
CN113970987A (en) * | 2021-10-18 | 2022-01-25 | 中航华东光电有限公司 | Multi-chip cascaded capacitive touch screen drive system and method |
CN118012293A (en) * | 2024-04-08 | 2024-05-10 | 上海海栎创科技股份有限公司 | Multi-touch chip driving and sensing synchronization method and system |
Also Published As
Publication number | Publication date |
---|---|
CN102023769B (en) | 2012-10-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102027438B (en) | Multi-touch detection panel with disambiguation of touch coordinates | |
CN103439677A (en) | Method and system for detecting numeration table meter | |
CN102023769B (en) | Scanning device and scanning method for large-size projected capacitive touch screen | |
CN102866317B (en) | Method and system for quick test of mobile terminal capacitive touch screen | |
CN103076888B (en) | A kind of method that USB keyboard calls OSD switching channels in KVM equipment and the equipment | |
JP2012203643A (en) | Display object management device and display object management program | |
CN102411487A (en) | Desktop control method and device | |
US20240427449A1 (en) | Method and device for deriving pen position and reporting pen position to host computer | |
US20110050614A1 (en) | Object positioning for an x-y projected capacitive touch panel | |
CN102402348A (en) | Light-sensing touch sensing system, device and touch sensing method thereof | |
CN210222725U (en) | Touch screen | |
US8948514B2 (en) | Electronic device and method for processing handwritten document | |
CN101882043A (en) | Method for improving touch precision of edge of capacitance type touch screen | |
KR101986660B1 (en) | Device for curved display with touch sensor | |
CN119417882A (en) | Method and device for extracting center line of quasi-cylindrical body using point cloud | |
TWI475433B (en) | Touch system for increasing a report rate and method for increasing a report rate of a touch system | |
CN204595818U (en) | Projection terminal | |
CN101477419B (en) | Touch positioning method and apparatus | |
US20170371460A1 (en) | Touch signal scanning method | |
CN114816102A (en) | Touch signal processing method and related touch device | |
CN102253756B (en) | Light source and mounting method thereof, touch screen, touch system and display | |
CN101936725B (en) | Optical positioning device and positioning method thereof | |
CN103677430B (en) | Touch equipment | |
KR102016572B1 (en) | Touch sensing system | |
CN104238797A (en) | Multi-touch system and multi-touch signal processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 330096 No. 1699, Jingdong Avenue, hi tech Development Zone, Jiangxi, Nanchang Patentee after: Jiangxi Lianchuang Electronic Co., Ltd. Address before: 330096 No. 1699, Jingdong Avenue, hi tech Development Zone, Jiangxi, Nanchang Patentee before: Jiangxi Lianchuang Electronic Co., Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20110420 Assignee: Jiangxi LIAN (WAN) Electronics Co., Ltd. Assignor: Jiangxi Lianchuang Electronic Co., Ltd. Contract record no.: 2014360000238 Denomination of invention: Scanning device and scanning method of large-size projective-capacitance touch screen Granted publication date: 20121031 License type: Exclusive License Record date: 20141124 |
|
LICC | Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model | ||
CP03 | Change of name, title or address |
Address after: 330096 Nanchang high tech Zone, Jiangxi, Jingdong Avenue, No. 1699 Patentee after: Jiangxi Lianchuang Electronic Co., Ltd. Address before: 330096 No. 1699, Jingdong Avenue, hi tech Development Zone, Jiangxi, Nanchang Patentee before: Jiangxi Lianchuang Electronic Co., Ltd. |
|
CP03 | Change of name, title or address |