Screen touch chip and implementation method of large-screen touch chip
By designing a screen touch chip, using the I2C or QSPI interface to connect to the upper computer, collecting and processing analog signals of the scan screen, the problem of touch detection of super large capacitive screens in the existing technology is solved, and the user experience and data integrity are improved .
Patent Information
- Application Number
- CN202410913129.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-11-05
AI Technical Summary
The existing technology is difficult to achieve touch detection of ultra-large capacitive screens, and the user experience is poor.
Design a screen touch chip, which is connected to the upper computer through I2C or QSPI interface, uses a timing generator, ADC module, data processing module and FIFO unit to collect and process analog signals of the scanning screen, generate touch picture data, and use DVP Or QSPI interface output to realize touch detection of super large capacitance screen.
Through the above method, the detection of touch of the ultra-large capacitive screen is realized, the user experience is improved, and the data of multiple ADC modules can be effectively processed to ensure data integrity and resolution.
Smart Images

Figure CN118897633A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of chip technology, and in particular to a method for implementing a screen touch chip and a large-screen touch chip. Background Art
[0002] For the convenience of operation, people use touch screens instead of mice or keyboards. According to the different positioning principles of the screen surface, touch screen technology can be divided into two categories: acoustic pulse recognition (APR) technology, surface acoustic wave (SAW) technology, capacitive touch screen technology, and resistive touch screen technology, infrared / optical technology. Capacitive touch screen is a transparent special metal conductive material attached to the glass surface. When the finger touches the metal layer, the capacitance of the contact will change, causing the frequency of the oscillator connected to it to change. By measuring the frequency change, the touch position can be determined to obtain information. A computer ultra-large touch screen system provided by CN201710698857.9 is realized by using an image sensor (camera); and a spliced touch screen installation structure provided by CN202020087505.7 is just a method of splicing multiple large-screen touch screens together through structural design, thereby realizing the display and touch control of an ultra-large screen.
[0003] However, the above methods provided in the prior art are not easy to implement ultra-large capacitive screen touch detection. Summary of the invention
[0004] In view of this, an object of the present invention is to provide a method for implementing a screen touch chip and a large-screen touch chip.
[0005] In the first aspect, an embodiment of the present invention provides a screen touch chip, which reads and writes chip registers through an I2C interface, or receives a scan instruction sent by a host computer and scans based on the scan instruction, and outputs touch image data generated by scanning the screen through a DVP interface, or the chip reads and writes chip registers through a QSPI interface, or receives a scan instruction sent by a host computer and scans based on the scan instruction, and outputs touch image data generated by scanning the screen through a QSPI interface.
[0006] In combination with the first aspect, the screen touch chip also includes:
[0007] A timing generator is used to generate the timing required for the ADC module to work;
[0008] The ADC module is used to obtain the analog signal of the scanned screen and convert the analog signal into a digital signal according to the timing instruction. There are multiple ADC modules.
[0009] An ADC data processing module is used to receive digital signals input by multiple ADC modules and perform data processing according to timing instructions;
[0010] The FIFO unit is used to store processed digital signal data.
[0011] In combination with the first aspect, the screen touch chip also includes: a coordination processing module, which is used to start or shut down the timing generator, and the coordination processing module is also used to start or shut down the ADC data processing module according to the storage status of the FIFO unit.
[0012] In combination with the first aspect, the screen touch chip also includes a LUT lookup table, in which a one-to-one correspondence between multiple division formulas and multiple calculation results is stored.
[0013] In combination with the first aspect, the screen touch chip also includes:
[0014] The clock unit is used to generate the clock signal when the chip is working;
[0015] The reset unit is used to generate a reset signal when the chip is working.
[0016] In a second aspect, the present application provides a method for implementing a large-screen touch chip, which is applied to the screen touch chip as described above;
[0017] The timing generator generates the timing required for the ADC module to work;
[0018] Based on the timing, the ADC data processing module collects the data sent by multiple ADC modules one by one at the falling edge of the Hsync signal in the timing and stores them in the FIFO unit for acquisition by the DVP interface or the QSPI interface.
[0019] In combination with the second aspect, based on the timing, the ADC data processing module collects the data sent by multiple ADC modules one by one at the falling edge of the Hsync signal in the timing and stores them in the FIFO unit for the DVP interface or the QSPI interface to obtain the step, which also includes:
[0020] ADC data processing module, collecting differential data and ADC calibration data sent by multiple ADC simulations;
[0021] Calculate the difference between the differential data and the dummy calibration value;
[0022] The restored data is calculated based on the differential data and the ADC calibration data; wherein the value range of the restored data is (0,255).
[0023] In combination with the second aspect, the timing configuration parameters in the timing generator include a first group of timing configurations and a second group of timing configurations; the method further includes:
[0024] In auto-mode, get the full image mean of the current frame;
[0025] If the whole image average is greater than the preset first threshold, switch to the first group of timing configuration;
[0026] If the whole-image average is less than or equal to the preset first threshold, switch to the second set of timing configurations.
[0027] In accordance with the second aspect, the method further comprises:
[0028] In auto-mode, get the average of the top four data of the current frame;
[0029] If the average of the first four data of the whole image is greater than the preset second threshold and less than the preset third threshold, switch the gear of the counter;
[0030] If the average of the first four data of the whole image is less than the preset fourth threshold and less than the preset second threshold, change the brightness adjustment register to adjust the average of the whole image to between the preset fifth threshold and the preset sixth threshold;
[0031] Among them, the preset first threshold, the preset second threshold, the preset third threshold, the preset fourth threshold, the preset fifth threshold, and the preset sixth threshold decrease in sequence.
[0032] In combination with the second aspect, the host computer has a DVP interface, and is connected to the two screen touch chips via the DVP; the method also includes:
[0033] For each line of data, the screen touch chip configured as the host outputs the data first, and at the same time pulls DVPBus_Busy_Out high until a line of output is completed and then pulls DVPBus_Busy_Out low;
[0034] The screen touch chip configured as a slave outputs data, and DVPBus_Busy_Out is pulled high at the same time until a line of data is output, and then DVPBus_Busy_Out is pulled low.
[0035] If the 4502 / 4503 chip uses QSPI to obtain data, the processing is simpler because only the timing generator of the chip that serves as the master will work. The microcontroller only needs to read the FIFO data of the chip that serves as the slave first, and then read the FIFO data of the chip that serves as the master. In this way, only when the FIFO of the host is read empty and fifo_empty=1, the coordination processing module of the host will restart the timing generator to generate new data, otherwise the timing generator will be suspended.
[0036] In addition, it should be pointed out in advance that the chip provides two working modes, namely single scan mode and auto-mode automatic multiple scan mode (scanning at a set frequency: 30HZ, 50HZ...200HZ, HZ unit is times / second).
[0037] The embodiments of the present invention bring the following beneficial effects: the screen touch chip and screen detection method provided in the present application are connected to the host computer through the I2C interface or the QSPI interface so that the host computer can control the screen touch chip, and the host computer reads the screen touch data obtained by scanning through the DVP interface or the QSPI interface, which can realize the detection of ultra-large capacitive screen touch to improve the user experience.
[0038] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0039] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0041] Figure 1 A schematic diagram of the connection between a screen touch chip and a host computer provided in Embodiment 1 of the present invention;
[0042] Figure 2 A schematic diagram of another connection between a screen touch chip and a host computer provided in Embodiment 1 of the present invention;
[0043] Figure 3 A schematic diagram of communication connection between a screen touch chip and a host computer provided in Embodiment 1 of the present invention;
[0044] Figure 4 A schematic diagram of another communication connection between a screen touch chip and a host computer provided in Embodiment 1 of the present invention;
[0045] Figure 5 A schematic diagram of the working principle of the timing generator in the screen touch chip provided in Embodiment 1 of the present invention;
[0046] Figure 6 A flow chart of a method for implementing a large-screen touch chip provided in Embodiment 2 of the present invention;
[0047] Figure 7A flow chart of a method for implementing a large-screen touch chip provided in Embodiment 3 of the present invention;
[0048] Figure 8 This is a schematic diagram of the principle of the implementation method of the large-screen touch chip provided in Example 3 of the present invention. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0050] In order to facilitate the understanding of this embodiment, the technical terms designed in this application are briefly introduced below.
[0051] DVP (Digital Video Port) is the output interface of the traditional camera sensor. It adopts parallel output mode. The data bit width is 8bit, 10bit, 12bit, and 16bit. It is a CMOS level signal (focus on non-differential signal). The maximum PCLK rate is 96MHz.
[0052] PCLK (Pixel Clock) pixel clock, each clock corresponds to one pixel data.
[0053] HSYNC (Horizontal Synchronization), horizontal synchronization signal.
[0054] VSYNC (Vertical Synchronization), frame synchronization signal.
[0055] DATA: pixel data, video data. The specific bit width depends on whether the chip supports it. Only 8-bit bit width is supported here.
[0056] SCL, SDA: IIC is used to read and write chip registers and configure the chip.
[0057] QSPI is the abbreviation of Quad SPI, which means 6-wire SPI. Based on the SPI protocol, Motorola has enhanced its functions, added a queue transmission mechanism, and launched the queue serial peripheral interface protocol (i.e. QSPI protocol). Using this interface, users can transmit a transmission queue containing up to 4 bits of data at a time, greatly improving the transmission efficiency.
[0058] After introducing the technical terms involved in this application, the application scenarios and design concepts of the embodiments of this application are briefly introduced.
[0059] The above methods provided in the prior art are not easy to implement touch detection of ultra-large capacitive screens.
[0060] Based on this, an embodiment of the present application provides a method for implementing a screen touch chip and a large-screen touch chip.
[0061] Example 1
[0062] The present application provides a screen touch chip, which reads and writes registers through an I2C interface, or receives a scan instruction sent by a host computer and scans based on the scan instruction, and outputs touch image data generated by scanning the screen through a DVP interface, or the chip reads and writes registers through a QSPI interface, or receives a scan instruction sent by a host computer and scans based on the scan instruction, and outputs touch image data generated by scanning the screen through a QSPI interface.
[0063] The present invention includes two screen touch chips, one of which uses an I2C interface to read and write registers to control and / or obtain the operating status of the chip, and uses a DVP interface to obtain touch image data generated by the chip. The data is in frames, just like image data. The chip is named 4501 chip. Figure 1 Another screen touch chip is also provided, which uses the QSPI interface to read and write registers, and also uses the QSPI interface to obtain touch image data. The chip is named 4502 chip or 4503 chip, such as Figure 2 shown.
[0064] The screen touch chip provided by this application implements an I2C or QSPI slave interface. The I2C serial bus generally has two signal lines, one is a bidirectional data line SDA, and the other is a clock line SCL. All serial data SDA connected to the I2C bus device is connected to the SDA of the bus, and the clock line SCL of each device is connected to the SCL of the bus. The operation of the bus (data transmission) is controlled by the host.
[0065] The DVP (Digital Video Port) interface is a traditional camera sensor output interface. It uses parallel output. The data bit width is 8-bit, 10-bit, 12-bit, or 16-bit. It is a CMOS level signal (focusing on non-differential signals). The maximum PCLK rate is 96MHz. Figure 3 As shown, among them: XCLK, or MCLK, the clock output by the host computer (MCU or other controller) to drive the above-mentioned screen touch chip, may be absent and is not provided here.
[0066] QSPI (Quad SPI) means 6-wire SPI. Based on the SPI protocol, Motorola has enhanced its functions, added a queue transmission mechanism, and launched the queue serial peripheral interface protocol (i.e., QSPI protocol). Using this interface, users can transmit a transmission queue containing up to 4 bits of data at a time, greatly improving the transmission efficiency. In this application, the communication connection diagram between the 4502 / 4503 screen touch chip and the host computer is shown in the figure. Figure 4 As shown. Among them:
[0067] CLK (Clock) is used by the master device (i.e., the host computer) to provide the Clock to the slave device (i.e., the screen touch chip), thereby triggering the transmission of communication data.
[0068] CS: When QSPI is connected to multiple peripheral devices, the CS pin can be used to determine which peripheral device to communicate with the host.
[0069] IO0: For the host computer, when only IO0 is set as the data input and output interface, it is considered to be in 3-wire mode; if IO0 is used as a data output interface, it is called Single Write mode, and if it is used as a data input mode, it is called Single Read mode.
[0070] IO1: For the host, only IO0 is set as the data output interface, and IO1 is set as the data input mode, which is considered to be a 4-wire mode; if IO0 is used as a data output interface, it is called Single Write mode, and if it is used as a data input mode, it is called Single Read mode. If IO0 and IO1 are both used as data input interfaces, it is called DualRead mode.
[0071] IO2: For the host, when IO0, IO1, IO2, and IO3 are all used as data input mode, it is considered to be a 6-wire mode, called Quad Read mode.
[0072] IO3: For the host, when IO0, IO1, IO2, and IO3 are all used as data input modes, it is considered to be a 6-wire mode, which is called Quad Read mode. The clock and reset units generate the clock and reset signals for the chip to work. The register file module (i.e., FIFO unit) generates a series of corresponding control (write) registers required by the chip, as well as the status register for reading. The DVP / QSPI interface reads data from the FIFO unit and outputs it to the host computer (such as MCU or other controller modules) when appropriate.
[0073] Combined with the first aspect, Figure 1 , Figure 2 As shown, the screen touch chip also includes: a timing generator, an ADC module, an ADC data processing module and a FIFO unit.
[0074] The timing generator is used to generate the timing required for the ADC module to work.
[0075] The ADC module is used to obtain the analog signal of the scanned screen and convert the analog signal into a digital signal according to the timing instructions. There are multiple ADC modules.
[0076] The ADC data processing module is used to receive digital signals input from multiple ADC modules and perform data processing according to timing instructions.
[0077] The FIFO unit is used to store the processed digital signal.
[0078] The timing generator generates the timing required for the ADC module to work, such as Figure 5 As shown in the figure, the Hsync / Vsync / VTx timing signals are generated to the ADC module, and the ADC module will generate ADC data. At the same time, the ADC data processing module starts to collect the data sent by the N-channel ADC one by one at the falling edge of the Hsync signal, and stores them in the FIFO unit, so that the host connected to the chip can obtain the data stored in the FIFO unit through the DVP / QSPI interface.
[0079] In addition, the timing control signals Hsync / Vsync / VTx generated by the timing generator and the effective pulse width are all configurable, and can be configured to the desired value through the configuration register.
[0080] In combination with the first aspect, the screen touch chip also includes: a coordination processing module, which is used to start or shut down the timing generator, and the coordination processing module is also used to start or shut down the ADC data processing module according to the storage status of the FIFO unit.
[0081] In actual use, it is found that when the transmission speed of the DVP interface is lower than the data transmission speed of the ADC module, the data sent by the DVP interface will be incomplete, part of the data will be lost, and the data in the FIFO unit will overflow, which is not allowed. At this time, the coordination processing module will stop the timing generator from generating the working timing when there is still data in the FIFO unit that has not been cleared, so that the ADC module on the analog side stops working and meets the data transmission requirements by reducing the speed. This working mechanism is also applicable to our 4502 / 03 chip that uses QSPI to transmit data, which is achieved by using almost the same processing method. The specific workflow is roughly as follows: the VTx, Hsync, and Vsync signals of the timing generator are invalid when fifo_empty=0. When the FIFO unit is not cleared, the output is suspended: it maintains a low level of 0 for a long time, and when fifo_empty is pulled high=1 and is valid, it will be output again.
[0082] In addition, as an illustration, N ADC channels, 4501N = 142 at most, 4502N = 42 at most, 4503N = 64 at most. The maximum resolution of a single chip 4501 is 142x160, and two chips form a resolution of 284x160. A single chip 4502 is 42x48, and two chips form a resolution of 84x48. A single chip 4503 is 64x72, and two chips form a resolution of 128x72. 4502 and 4503 can also be cross-mixed to form a resolution of, for example, 96x72.
[0083] In combination with the first aspect, the chip further includes a LUT lookup table, in which a one-to-one correspondence between multiple division formulas and multiple calculation results is stored.
[0084] In this embodiment, the division a / b has only a few or a dozen fixed operations (for example, I am doing ADC clock division here, and the ADC clock has only 0 to 15 16 frequency scheme operations) and is implemented by a table lookup method. The LUT lookup table has fewer entries, which can reduce the amount of data calculation and improve data processing efficiency.
[0085] In combination with the first aspect, it also includes:
[0086] The clock unit is used to generate the clock signal when the chip is working;
[0087] The reset unit is used to generate a reset signal when the chip is working.
[0088] In addition, the screen touch chip provided by this application also implements the analog close function. For example, after the chip completes a scan and outputs a picture data, the ADC module will stop working when analog close=1 is triggered effectively. Except for the register read and write configuration module, all other modules of the digital module, such as the timing generator, ADC data processing, etc., will stop working. This achieves the purpose of saving power and reducing power consumption.
[0089] Example 2
[0090] In the second aspect, the present application provides a method for implementing a large-screen touch chip, combining Figure 6 As shown, the method is applied to the above-mentioned screen touch chip;
[0091] S110, the timing generator generates the timing required for the ADC module to work.
[0092] S120, based on the timing, the ADC data processing module collects the data sent by the multiple ADC modules one by one at the falling edge of the Hsync signal in the timing and stores them in the FIFO unit for acquisition by the DVP interface or the QSPI interface.
[0093] In this embodiment, a timing generator generates a timing instruction, and the ADC data processing module collects data one by one based on the timing instruction and stores the data in a FIFO unit, so that the host computer can acquire the data through a DVP interface or a QSPI interface.
[0094] Before step S110, the method further includes:
[0095] S010, read the storage status of the FIFO unit;
[0096] S020, determining whether the storage state is empty;
[0097] If yes, execute steps S110-S120; if no, execute step S030
[0098] S030, pausing the timing generator until the storage state of the FIFO unit is empty and then restarting the timing generator.
[0099] Since the storage capacity of the FIFO unit is a row of data scanned and obtained by the ADC module; if the storage status of the FIFO unit is not empty, it means that the data of the previous row of scans has not been completely read by the host computer. At this time, storing new scanned data is likely to cause data loss or confusion. Therefore, the timing generator is paused to suspend the acquisition of scanned data by the ADC data processing module. After the data of the previous row of scans is completely read by the host computer, the acquisition, storage, and host computer reading of the data of the next row of scans are started again.
[0100] In combination with the second aspect, step S120 further includes:
[0101] S121, the ADC data processing module collects differential data and ADC calibration data sent by multiple ADC simulations;
[0102] S122, calculating the difference between the differential data and the dummy calibration value;
[0103] S123, calculating restored data according to the differential data and the ADC calibration data; wherein the restored data has a value range of (0, 255).
[0104] In this embodiment, the ADC data processing module is used to collect N-channel ADC module data values sent by the analog module. In order to reduce data errors, the analog module converts the data into differential form. After receiving the data, the differential data needs to be calculated and restored to the original value.
[0105] The specific steps are as follows:
[0106] There will be a dummy row before each frame scan to generate ADC calibration data (ΔRX1~ΔRX142);
[0107] Then, the ADC differential data obtained by scanning each row is: (RX1-RX2) / (RX2-RX3) / (RX3-RX4) / … / (RX141-RX142) / (RX142), so it is necessary to calculate and restore the values of RX1 / RX2 / … / RX142. The calculation formula for restoration is as follows:
[0108] RX142,final=(RX142)-ΔRX142;
[0109] RX141,final=(RX141-RX142)-ΔRX141+RX142,final;
[0110] RX140,final=(RX140-RX141)-ΔRX140+RX141,final;
[0111] …
[0112] RX1,final=(RX1-RX2)-ΔRX1+RX2,final.
[0113] Among them, RXn,final is the restored data, (RXn-1-RXn) is the differential data sent by the ADC module. In addition, the ADC calibration data (ΔRX1~ΔRX142) and the ADC differential data: (RX1-RX2) / … / (RX141-RX142) / (RX142) can be positive or negative, but the calculated restored RX1 / RX2 / … / RX142 must be within the range of 0 to 255.
[0114] At the beginning of each line of data, the first VTx will send a dummy. At this time, the ADC module sends the ADC calibration value. The ADC calibration data (ΔRX1~ΔRX142) has configurable upper and lower limits. The upper limit is the positive number with the largest absolute value; the lower limit is the negative number with the largest absolute value. Before data differential restoration, the dummy calibration value must be subtracted first.
[0115] In combination with the second aspect, the timing configuration parameters in the timing generator include a first group of timing configurations and a second group of timing configurations; the method further includes:
[0116] In auto-mode, get the full image mean of the current frame.
[0117] If the whole-image average is greater than a preset first threshold, the first timing configuration is switched.
[0118] If the whole-image average is less than or equal to the preset first threshold, switch to the second group of timing configurations.
[0119] Specifically, there are two groups of timing configurations for Vsync (Vertical Synchronization, frame synchronization signal) / Hsync (Horizontal synchronization, line synchronization signal) / Vtx in the Timing Generator (excluding the counter duration). In auto-mode, if the image data of the current frame meets the trigger condition, the timing configuration is switched to the first group; if the image data of the current frame does not meet the trigger condition, the timing configuration is switched to the second group.
[0120] In conjunction with the second aspect, the method further includes:
[0121] S210, in auto-mode, obtaining the average of the first four data of the entire image of the current frame.
[0122] S220, if the average of the first four data of the entire image is greater than the preset second threshold and less than the preset third threshold, switch the gear of the counter.
[0123] S230, if the average of the first four data of the whole image is less than the preset fourth threshold and less than the preset second threshold, change the brightness adjustment register to adjust the average of the whole image to between the preset fifth threshold and the preset sixth threshold.
[0124] Among them, the preset first threshold, the second threshold, the preset third threshold, the preset fourth threshold, the preset fifth threshold, and the preset sixth threshold increase in sequence.
[0125] In auto-mode, the counter duration in Timing_Generator needs to be adjusted according to the average of the first four data of the entire image of the current frame. The counter sets four gears in the register (i.e., threshold 2-threshold 3, threshold 3-threshold 4, threshold 4-threshold 5, threshold 5-threshold 6). If the average of the first four data is in the first gear (i.e., between threshold 2 (register setting) and threshold 3 (register setting)), the gear of the counter is switched;
[0126] Determine whether the average of the first four data is less than threshold 4 (register setting). If so, and the average of the first four data is less than threshold 2, change the brightness adjustment register to adjust the average of the entire image data to between threshold 5 (register setting) and threshold 6 (register setting).
[0127] Among them, the average value of the entire image data and the average value of the first four data need to be stored in the register and not updated until the next frame calculation.
[0128] In addition, the embodiment of the present application also implements a method of converting division into a LUT lookup table, because the implementation of division by digital circuits consumes considerable resources, and the calculation is quite time-consuming, which will cause the digital circuit timing to not be satisfied and errors. According to the requirements here, the division a / b has only a few or a dozen fixed operations. For example, I am doing ADC clock division here, and the ADC clock has only 16 frequency schemes from 0 to 15, so it is very suitable for table lookup to implement, so the LUT lookup table entries used are only 16. Similarly, the above calculation of the average value of the four major data and the average value of the entire graph data can all be implemented using this method.
[0129] Example 3
[0130] In combination with the second aspect, the host computer has a DVP interface, which is connected to the two screen touch chips through DVP; Figure 7 As shown, the method also includes:
[0131] S310, for each row of data, the screen touch chip of the host is configured to output the data first, and at the same time, DVPBus_Busy_Out is pulled high, and DVPBus_Busy_Out is pulled low after the output is completed.
[0132] S320, the screen touch chip configured as a slave outputs data, and DVPBusy_Busy_Out is pulled high at the same time, until a row of data is output and then DVPBusy_Busy_Out is pulled low.
[0133] In this embodiment, in view of the fact that the current MCU microcontroller generally has only one DVP interface, the DVP interface in this application has two DVP data lines, which can realize the function of one DVP interface transmitting two DVP data. Furthermore, it can be realized that one MCU can be connected to two chips described in Example 1, and the resolution of the image data can be doubled, so that it can be connected to a larger display screen (such as a 100-inch ultra-large screen) for use. The specific implementation method is as follows:
[0134] refer to Figure 8 As shown, first of all, two chips form a larger resolution ultra-large screen application, and only the timing generator of the chip that serves as the host Master will work to generate the Hsync / Vsync / VTx timing signals. If the 4501 chip is composed of two chips sharing the DVP interface, the chip configured as the Master host can output data immediately and pull DVPBus_Busy_Out high at the same time. After the Master completes the output of a row of data, it pulls DVPBus_Busy_Out low, and then the chip configured as the Slave slave similarly pulls DVPBus_Busy_Out high, and pulls it low after a row of data is output... Repeat this process until all the image data is sent. In this way, two touch screen chips are combined together to form a touch screen chip with a larger resolution. This method can realize ultra-large screen touch screens such as 100-inch display screens.
[0135] If the screen touch chip uses the QSPI interface to obtain data, the processing is simpler because only the timing generator of the chip that serves as the host Master will work. The microcontroller only needs to read the data of the FIFO unit in the screen touch chip that serves as the slave, and then read the FIFO data of the chip that serves as the master. In this way, only when the FIFO unit of the host is read empty and fifo_empty=1, the coordination processing module of the host will restart the timing generator to generate new data, otherwise the timing generator will be suspended.
[0136] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
Claims
1. A screen touch chip, characterized in that: The chip reads and writes chip registers through an I2C interface, or receives a scan instruction sent by a host computer and scans based on the scan instruction, and outputs touch image data generated by scanning the screen through a DVP interface. Alternatively, the chip reads and writes chip registers through a QSPI interface, or receives a scan instruction sent by a host computer and scans based on the scan instruction, and outputs touch image data generated by scanning the screen through the QSPI interface.
2. The screen touch chip according to claim 1, characterized in that: The screen touch chip also includes: A timing generator is used to generate the timing instructions required for the ADC module to work; An ADC module, used for acquiring an analog signal of the scanned screen according to a timing instruction and converting the analog signal into a digital signal, wherein there are multiple ADC modules; An ADC data processing module, used for receiving digital signals input by a plurality of the ADC modules and performing data processing according to the timing instruction; FIFO unit, used to store processed digital signals.
3. The screen touch chip according to claim 2, characterized in that: The coordination processing module is used to start or shut down the timing generator, and the coordination processing module is also used to start or shut down the ADC data processing module according to the storage state of the FIFO unit.
4. The screen touch chip according to claim 1, characterized in that: The chip also includes a LUT lookup table, in which a one-to-one correspondence between a plurality of division formulas and a plurality of calculation results is stored.
5. The screen touch chip according to claim 1, characterized in that: Also includes: A clock unit, used to generate a clock signal when the chip is working; The reset unit is used to generate a reset signal when the chip is working.
6. A method for implementing a large-screen touch chip, characterized in that: The method is applied to the screen touch chip as described in any one of claims 1 to 5; The timing generator generates the timing required for the ADC module to work; Based on the timing, the ADC data processing module collects the data sent by multiple ADC modules one by one at the falling edge of the Hsync signal in the timing and stores them in the FIFO unit for acquisition by the DVP interface or the QSPI interface.
7. The method according to claim 6, characterized in that Based on the timing, the ADC data processing module collects the data sent by multiple ADC modules one by one at the falling edge of the Hsync signal in the timing and stores them in the FIFO unit for acquisition by the DVP interface or the QSPI interface, and also includes: ADC data processing module, collecting differential data and ADC calibration data sent by multiple ADC simulations; Calculate the difference between the differential data and the dummy calibration value; The restored data is calculated according to the differential data and the ADC calibration data; wherein the restored data has a value range of (0, 255).
8. The method according to claim 6, characterized in that The timing configuration parameters in the timing generator include a first group of timing configurations and a second group of timing configurations; the method further includes: In auto-mode, get the full image mean of the current frame; If the whole image average is greater than the preset first threshold, switch to the first group of timing configuration; If the whole-image average is less than or equal to the preset first threshold, switch to the second group of timing configurations.
9. The method according to claim 8, characterized in that The method further comprises: In auto-mode, get the average of the top four data of the current frame; If the average of the first four data of the whole image is greater than the preset second threshold value and less than the preset third threshold value, switch the gear of the counter; If the average of the first four data of the whole image is less than the preset fourth threshold value and less than the preset second threshold value, change the brightness adjustment register to adjust the average of the whole image to between the preset fifth threshold value and the preset sixth threshold value; Among them, the preset first threshold, the preset second threshold, the preset third threshold, the preset fourth threshold, the preset fifth threshold, and the preset sixth threshold decrease in sequence.
10. The method according to claim 6, characterized in that The host computer has a DVP interface, and is connected to the two screen touch chips through the DVP; the method further includes: For each row of data, the screen touch chip configured as the host outputs the data first, and at the same time pulls DVPBus_Busy_Out high, until the output is completed and then pulls DVPBus_Busy_Out low; The screen touch chip configured as a slave outputs data, and DVPBus_Busy_Out is pulled high at the same time until a row of data is output and then DVPBus_Busy_Out is pulled low.
Citation Information
Cited By
Single-chip microcomputer and distance measuring sensor
CN120602600A
