CN116382514A - SPI data transmission method, touch detection circuit and touch display device - Google Patents

SPI data transmission method, touch detection circuit and touch display device Download PDF

Info

Publication number
CN116382514A
CN116382514A CN202310282733.8A CN202310282733A CN116382514A CN 116382514 A CN116382514 A CN 116382514A CN 202310282733 A CN202310282733 A CN 202310282733A CN 116382514 A CN116382514 A CN 116382514A
Authority
CN
China
Prior art keywords
data
instruction
read
target
touch detection
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.)
Pending
Application number
CN202310282733.8A
Other languages
Chinese (zh)
Inventor
王浩
康世振
卢泽华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Eswin Computing Technology Co Ltd
Original Assignee
Beijing Eswin Computing Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Eswin Computing Technology Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202310282733.8A priority Critical patent/CN116382514A/en
Publication of CN116382514A publication Critical patent/CN116382514A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a SPI data transmission method, a touch detection circuit and touch display equipment. After receiving the SPI data transmitted by the main control circuit, the touch control detection circuit can determine an instruction indicated by the target data based on a matching result of the target data and the instruction key words in the SPI data. If the command is a write command, the touch detection circuit can store the received SPI data so as to realize the writing of the data. If the instruction is a read instruction, the touch detection circuit can transmit the stored data to the main control circuit for the main control circuit to read. Because the touch detection circuit can match the received SPI data with the command key words so as to realize the writing or reading of the data, the touch detection circuit can still normally communicate with the main control circuit through the SPI bus even though the main control circuit and the touch detection circuit are not a matched main machine and a slave machine before delivery.

Description

SPI data transmission method, touch detection circuit and touch display device
Technical Field
The application relates to the technical field of touch display, in particular to an SPI data transmission method, a touch detection circuit and touch display equipment.
Background
Touch display devices (e.g., smartphones) typically include a processor, a touch display driver integration (touch and display driver integrated, TDDI) chip, and a touch screen. The TDDI chip not only can receive display data transmitted by the processor to drive the touch screen to display an image, but also can report the detected touch detection data to the processor when detecting a click operation of a target object (such as a finger) on the touch screen, so that the processor can respond to the click operation and execute a corresponding processing operation.
In the related art, a communication connection between the processor and the TDDI chip may be established through a serial peripheral interface (serial peripheral interface, SPI) bus. When the touch screen fails, a user needs to replace the TDDI chip while replacing the touch screen. And when the user changes the TDDI chip, the user needs to select the TDDI chip with the same model as the original TDDI chip, so that the SPI of the changed TDDI chip can be matched with the SPI of the processor.
However, since the current TDDI chip has a plurality of models, it is difficult to accurately select a chip having the same model as the original TDDI chip when replacing the TDDI chip. It is therefore necessary to develop a transmission method of SPI data that can adapt to TDDI chips of different types, so that the replaced TDDI chip can communicate with the processor normally through the SPI bus.
Disclosure of Invention
The application provides a transmission method of SPI data, a touch detection circuit and touch display equipment, which can solve the problem that a TDDI chip in the related art cannot normally communicate with a processor through an SPI bus. The technical scheme is as follows:
on the one hand, a transmission method of SPI data is provided, which is characterized in that the transmission method is applied to a touch detection circuit in touch display equipment; the touch detection circuit is connected with a main control circuit in the touch display device through an SPI bus, wherein the SPI bus comprises a host output slave input (master out slave in, MOSI) bus and a host input slave output (master in slave out, MISO) bus; the method comprises the following steps:
receiving SPI data transmitted by the master control circuit from the MOSI bus;
determining an instruction indicated by target data based on a matching result of the target data and an instruction keyword in the SPI data, wherein the instruction comprises a write instruction or a read instruction;
if the instruction indicated by the target data is the write instruction, storing the received SPI data;
and if the instruction indicated by the target data is the read instruction, transmitting the stored data to the main control circuit through the MISO bus for reading by the main control circuit.
Optionally, the instruction key includes at least one read instruction key, and the determining, based on a matching result of target data and the instruction key in the SPI data, the instruction indicated by the target data includes:
if the target data in the SPI data is matched with one read command keyword in the at least one read command keyword, determining that the command indicated by the target data is the read command;
and if the target data in the SPI data is not matched with the at least one read command keyword, determining that the command indicated by the target data is the write command.
Optionally, at least one first keyword group is stored in the touch detection circuit, and each first keyword group includes a read instruction keyword, a data amount of data to be read corresponding to the read instruction keyword, and a start read address of the data to be read; if the instruction indicated by the target data is the read instruction, transmitting the stored data to the master control circuit through the MISO bus, including:
if the instruction indicated by the target data is the read instruction, determining a first target keyword group from the at least one first keyword group, wherein the target data is matched with the read instruction keywords in the first target keyword group;
Acquiring a target initial reading address and a first target data volume in the first target keyword group;
and reading the data of the first target data volume by taking the target initial reading address as an initial address, and transmitting the read data to the main control circuit through the MISO bus.
Optionally, the touch detection circuit includes a memory, and at least one read register corresponding to the at least one first keyword group one-to-one, and the method further includes:
initiating a direct memory access (direct memory access, DMA) read state;
transmitting data in a read register corresponding to the first target key word group to the MISO bus for reading by the main control circuit in the starting process of the DMA read state;
the reading the data of the first target data amount by taking the target initial reading address as an initial address, and transmitting the read data to the main control circuit through the MISO bus, including:
after the starting of the DMA reading state is determined, reading the data of the first target data volume from the memory by taking the target initial reading address as the initial address in a DMA reading mode, and transmitting the read data to the main control circuit through the MISO bus.
Optionally, the instruction key includes at least one write instruction key, and the determining, based on a matching result of target data and the instruction key in the SPI data, the instruction indicated by the target data includes:
if the target data in the SPI data is matched with one write instruction keyword in the at least one write instruction keyword, determining that the instruction indicated by the target data is the write instruction;
and if the target data in the SPI data is not matched with the at least one write instruction keyword, determining that the instruction indicated by the target data is the read instruction.
Optionally, at least one second keyword group is stored in the touch detection circuit, each second keyword group includes a write instruction keyword, a data amount of data to be written corresponding to the write instruction keyword, and a start write address of the data to be written; and if the instruction indicated by the target data is the write instruction, storing the received SPI data, including:
if the instruction indicated by the target data is the write instruction, determining a second target keyword group from the at least one second keyword group, wherein the target data is matched with the write instruction keywords in the second target keyword group;
Acquiring a target initial write address and a second target data volume in the second target keyword group;
and writing the second target number of data in the received SPI data into a storage position indicated by the target initial writing address.
Optionally, the touch detection circuit includes a memory, and at least one write register corresponding to the at least one second keyword group, and the method further includes:
starting a DMA writing state, and writing SPI data received in the starting process of the DMA writing state into a writing register corresponding to the second target keyword group;
the writing the second target amount of data in the received SPI data to the storage location indicated by the target starting write address includes:
after the starting of the DMA writing state is determined, the received SPI data of the second target data quantity is stored to a storage position indicated by the target initial writing address in the memory in a DMA writing mode.
Optionally, the instruction keywords include at least one write instruction keyword and at least one read instruction keyword; the determining the instruction indicated by the target data based on the matching result of the target data and the instruction keyword in the SPI data comprises the following steps:
If the target data in the SPI data is matched with one read command keyword in the at least one read command keyword, determining that the command indicated by the target data is the read command;
and if the target data in the SPI data is matched with one write instruction keyword in the at least one write instruction keyword, determining that the instruction indicated by the target data is the write instruction.
Optionally, the touch detection circuit further includes a processor, and the method further includes:
after the SPI data transmission is determined to be completed, an interrupt instruction is generated, and the interrupt instruction is used for indicating the processor to analyze the stored SPI data when the instruction indicated by the target data is determined to be the write instruction, so as to execute control operation for the touch screen.
In another aspect, a touch detection circuit is provided, the touch detection circuit including: an interface circuit and a memory; the interface circuit is connected with a main control circuit in the touch display device through an SPI bus, wherein the SPI bus comprises an MOSI bus and a MISO bus; the interface circuit is used for:
receiving SPI data transmitted by the master control circuit from the MOSI bus;
Determining an instruction indicated by target data based on a matching result of the target data and an instruction keyword in the SPI data, wherein the instruction comprises a write instruction or a read instruction;
if the instruction indicated by the target data is the write instruction, storing the received SPI data into the memory;
and if the instruction indicated by the target data is the read instruction, transmitting the data stored in the memory to the main control circuit through the MISO bus for reading by the main control circuit.
In still another aspect, a touch display device is provided, including: the main control circuit, the touch control module and the touch control detection circuit are described in the above aspects;
the master control circuit is connected with the touch detection circuit through an SPI bus, the SPI bus comprises an MOSI bus and a MISO bus, and the master control circuit is used for transmitting SPI data to the touch detection circuit through the MOSI bus and reading touch detection data transmitted by the touch detection circuit through the MISO bus;
the touch module is connected with the touch detection circuit and is used for collecting touch signals and transmitting the touch signals to the touch detection circuit so as to enable the touch detection circuit to perform touch detection to obtain touch detection data.
Optionally, the master control circuit comprises a micro control unit (micro control unit, MCU) and the touch detection circuit comprises a TDDI chip.
The beneficial effects that this application provided technical scheme brought include at least:
the application provides a transmission method of SPI data, a touch detection circuit and touch display equipment, wherein the touch detection circuit can determine an instruction indicated by target data based on a matching result of the target data and an instruction keyword in the SPI data after receiving the SPI data transmitted by a main control circuit. If the command is a write command, the touch detection circuit can store the received SPI data so as to realize the writing of the data. If the instruction is a read instruction, the touch detection circuit can transmit the stored data to the main control circuit for the main control circuit to read. Because the touch detection circuit can match the received SPI data with the command key words so as to realize the writing or reading of the data, the touch detection circuit can still normally communicate with the main control circuit through the SPI bus even though the main control circuit and the touch detection circuit are not a matched main machine and a slave machine before delivery.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a touch display according to an embodiment of the present application;
FIG. 2 is a waveform diagram of an SPI signal provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of a touch detection circuit according to an embodiment of the present application;
fig. 4 is a flowchart of a method for transmitting SPI data according to an embodiment of the present application;
fig. 5 is a flowchart of another method for transmitting SPI data according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a touch detection circuit for reading SPI data according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an interface circuit according to an embodiment of the present application;
fig. 8 is a flowchart of another method for transmitting SPI data according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram of writing SPI data by the touch detection circuit according to the embodiment of the present application;
FIG. 10 is a schematic diagram of another interface circuit according to an embodiment of the present disclosure;
fig. 11 is a flowchart of another method for transmitting SPI data according to an embodiment of the present disclosure.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a touch display device according to an embodiment of the present application, and referring to fig. 1, the touch display device includes: the touch detection circuit 10, the touch module 20, and the master control circuit 30. The touch module 20 may include a plurality of touch sensors (not shown in fig. 1) arranged in an array.
As shown in fig. 1, the touch module 20 is connected to the touch detection circuit 10, and the touch module 20 is configured to collect a touch signal and transmit the touch signal to the touch detection circuit 10, so that the touch detection circuit 10 performs touch detection to obtain touch detection data. The master control circuit 30 is connected to the touch detection circuit 10 through an SPI bus, the SPI bus includes a MOSI bus and a MISO bus, and the master control circuit 30 is configured to transmit SPI data to the touch detection circuit 10 through the MOSI bus, and read touch detection data transmitted by the touch detection circuit 10 through the MISO bus.
In this embodiment, when the touch display device performs touch detection, the plurality of touch sensors in the touch module 20 can collect touch signals and transmit the collected touch signals to the touch detection circuit 10. The touch detection circuit 10 is capable of detecting whether there is a touch operation (e.g., a click operation) for the touch display device based on the collected touch signals of the plurality of touch sensors, and determining a touch position of the touch operation when the touch operation is detected. The touch detection circuit 10 can report the detected touch position as touch detection data to the main control circuit 30 for the main control circuit 30 to perform touch response.
Referring to fig. 1, the SPI bus may further include: serial Clock (SCK) bus and Chip Select (CS) bus. When the master circuit 30 communicates with the touch detection circuit 10 through the SPI bus, the master circuit 30 may be referred to as a master (host), and the touch detection circuit 10 may be referred to as a slave (slave).
The master circuit 30 may establish communication connection with a plurality of slaves through an SPI bus. The master control circuit 30 can realize chip selection of the slave machine to be accessed by the master control circuit 30 through the CS bus, and the selected slave machine is the slave machine which the master control circuit 30 needs to communicate currently. For example, referring to fig. 1 and 2, the main control circuit 30 may transmit the active level chip select signal cs_n to the touch detection circuit 10 through the CS bus to implement chip selection of the touch detection circuit 10. The active level of the chip select signal cs_n may be a low level with respect to the inactive level.
Also, the master circuit 30 may transmit a clock signal (i.e., SCK signal shown in fig. 2) to the touch detection circuit 10 through the SCK bus to realize control of SPI data transmission enable (i.e., whether to transmit SPI data) and control of a transmission rate. For example, referring to fig. 2, when the master circuit 30 outputs the SCK signal to the touch detection circuit 10, the master circuit 10 also transmits the SPI data to the touch detection circuit 10 through the MOSI bus, and receives the SPI data returned by the touch detection circuit 10 through the MISO bus. When the master control circuit 30 stops outputting the SCK signal to the touch detection circuit 10, the master control circuit 30 also stops outputting the SPI data to the touch detection circuit. Thereby, control of SPI data transmission enable can be achieved.
In this embodiment, the touch detection circuit 10 and the touch module 20 may be integrally disposed in a touch panel of the touch display device. The touch panel may be a liquid crystal display (liquid crystal display, LCD) panel, or may be an organic light-emitting diode (OLED) panel or other types of panels.
In the LCD touch panel, both the touch module 20 and the display module of the touch display device are printed on the glass substrate. The touch module can be arranged On the LCD panel In two modes, namely In-cell and On-cell. In-cell refers to a method of embedding the touch module 20 into a plurality of display pixels included In the display module. On-cell refers to a method of embedding the touch module 20 between a color filter substrate and a polarizer in an LCD panel. A driving circuit (e.g., TDDI chip) for driving the touch module 20 and the display module to operate is provided in the LCD panel. The driving circuit not only can receive the display data transmitted by the main control circuit 30 to drive the display module to display an image, but also can perform touch detection based on the touch signal collected by the touch module 20, and report the touch detection result, for example, the coordinate position of the detected touch point (i.e. touch point) to the main control circuit 30. Alternatively, the driving circuit may report the coordinate positions of the plurality of touch points to the main control circuit 30 at the same time.
In the OLED panel, the display module and the touch module 20 are driven and controlled by different driving circuits due to the limitation of the manufacturing process. The driving circuit for driving the touch module 20 may be disposed on the OLED panel in such a manner that a chip is directly bonded to a glass (COG).
Alternatively, the touch display device may be any product or component having a touch display function, such as a Virtual Reality (VR) device, a liquid crystal display device, a mobile phone, a tablet computer, a television, or a navigator. The main control circuit 30 may include an MCU, and the touch detection circuit 10 may include a TDDI chip.
In the related art, the touch detection circuit 10 and the master control circuit 30 may communicate through an SPI bus or an inter-integrated circuit (I2C) bus. In the touch display device, the communication rate of the I2C bus may be 400 kilobits/second (Kbit/s), and the communication rate of the SPI bus may be 20 megabits/second (Mbit/s). Since the current touch display devices require that the frequency of reporting the touch detection result to the main control circuit 30 by the touch detection circuit 10 is high, most of the touch display devices use an SPI bus to realize communication between the touch detection circuit 10 and the main control circuit 30. The frequency at which the touch detection circuit 10 reports the touch detection result to the main control circuit 30 may also be referred to as a touch report rate of the touch display device.
In addition, in touch display devices manufactured by different manufacturers, the protocol commands between the main control circuit 30 and the touch detection circuit 10 are not the same. For example, the command for the master control circuit 30 to read the coordinates of the touch point from the touch detection circuit 10, the command for the master control circuit 30 to control the touch detection circuit 10 to enter the low power mode (i.e., to turn off the screen) and the like are different from each other. Under normal conditions that the touch screen is not in fault, the main control circuit 30 can send the protocol command to the touch detection circuit 10 through the SPI bus or the IIC bus, and the touch detection circuit 10 can directly perform corresponding read-write operations based on the received protocol command without saving the protocol command.
If the touch screen fails to be maintained and the type of the touch detection circuit 10 after maintenance is different from the type of the touch detection circuit 10 before maintenance, a maintenance person needs to configure the working parameters of the touch detection circuit 10 after replacement, so that the touch detection circuit 10 stores the protocol command after receiving the protocol command, and then analyzes the stored protocol command into a command which can be executed by the touch detection circuit 10. Therefore, the touch detection circuit 10 cannot timely respond to the protocol command transmitted by the main control circuit 30, so that the efficiency of transmitting the SPI data between the main control circuit 10 and the touch detection circuit 10 is low.
Fig. 3 is a schematic structural diagram of a touch detection circuit according to an embodiment of the present application, which is applied to a touch display device, for example, the touch display device shown in fig. 1. Referring to fig. 3, the touch detection circuit 10 includes: interface circuit 110 and memory 120. The interface circuit 110 may be connected to an interface circuit (not shown in fig. 3) in the master circuit 30 via an SPI bus. The interface circuit 110 in the touch detection circuit 10 may be referred to as an SPI slave station, and the interface circuit in the master circuit 30 may be referred to as an SPI master station.
When the master circuit 30 writes SPI data to the memory 120 in the touch detection circuit 10, the master circuit 30 can transmit SPI data to the interface circuit 110 through the MOSI bus. The interface circuit 110 may in turn transmit the received SPI data to the memory 120 for storage by the memory 120. When the master control circuit 30 needs to read the SPI data stored in the memory 120, the interface circuit 110 can obtain the data to be read from the memory 120, and transmit the data to be read to the master control circuit 30 through the MISO bus for the master control circuit 30 to read.
Optionally, as shown in fig. 3, the touch detection circuit 10 may further include: a processor 130 and a bus 140 for connecting the interface circuit 110 and the memory 120. The bus 140 may also be used to connect the interface circuit 110 and the processor 130. The processor 130 can read SPI data written to the memory 120 and perform a corresponding operation based on the read data. The processor 130 may be a central processing unit (central processing unit, CPU).
For example, the master circuit 30 may write status data of the touch screen to the memory 120 in the touch detection circuit 10 through the MOSI bus. The processor 130 may then control the display state of the touch screen based on the state data. For example, the processor 130 may control the touch screen to turn off based on the written state data to cause the touch screen to enter a low power consumption state.
Fig. 4 is a flowchart of a transmission method of SPI data provided in the embodiment of the present application, and the method can be applied to a touch detection circuit in a touch display device, for example, the touch detection circuit 10 shown in fig. 1 or fig. 3. Referring to fig. 1, touch detection circuit 10 is connected to a master circuit 30 in a touch display device via an SPI bus, which includes a MOSI bus, and a MISO bus. Referring to fig. 4, the method includes:
step 101, receiving SPI data transmitted by a master control circuit from a MOSI bus.
In the embodiment of the present application, the master control circuit 30 can first transmit SPI data to the touch detection circuit 10 through the MOSI bus when writing data into the touch detection circuit 10 or reading data from the touch detection circuit 10. Thus, the touch detection circuit 10 can receive the SPI data.
Step 102, determining an instruction indicated by the target data based on a matching result of the target data and the instruction key words in the SPI data.
In this embodiment of the present application, after receiving the SPI data, the touch detection circuit 10 can match the target data in the SPI data with the command key words stored in the touch detection circuit 10, and determine the command indicated by the target data based on the matching result. Wherein the instruction indicated by the target data may comprise a write instruction or a read instruction. The target data may be data of a target data amount received by the touch detection circuit 10 from the start reception time. The starting time may be a starting time when the touch detection circuit 10 starts to receive the SPI data after being powered on, or the starting time may be a starting time when the touch detection circuit 10 starts to receive the SPI data through the MOSI bus again after completing one time of SPI data transmission (for example, after the interface circuit 110 sends an interrupt command to the processor 130). The target data amount may be a fixed value set in advance. Wherein the minimum value of the target data amount may be 1 byte. For example, in the SPI data received by the touch detection circuit 10, the target data may include the first 3 bytes of data in the SPI data.
The command key may be a key that is preconfigured and stored in the touch detection circuit 10. The instruction key may include at least one read instruction key, and/or at least one write instruction key. If the target data matches the read command key of the command key, the touch detection circuit 10 may determine that the command indicated by the target data is a read command. If the target data matches the write command key of the command key, the touch detection circuit 10 can determine the command indicated by the target data as the write command
It can be understood that the SPI data transmitted by the master control circuit 30 to the touch detection circuit 10 all carry target data capable of indicating a read command or a write command. Therefore, the touch detection circuit 10 can determine the instruction indicated by the target number based on the matching result of the target data and the instruction key in the SPI data.
Step 103, if the command indicated by the target data is a write command, storing the received SPI data.
In the above step 102, if the touch detection circuit 10 determines that the command indicated by the target data is a write command based on the matching result of the target data and the command key, the SPI data received through the MOSI bus can be stored as the data to be written. For example, touch detection circuit 10 may store the received SPI data to memory 120.
It will be appreciated that when the master circuit 30 writes data to the touch detection circuit 10, the SPI data it transmits to the touch detection circuit 10 via the MOSI bus may include target data and data to be written. After determining that the command indicated by the target data in the received SPI data is a write command, the touch detection circuit 10 may store the received SPI data as data to be written, so as to implement writing of the data.
Step 104, if the instruction indicated by the target data is a read instruction, the stored data is transmitted to the master control circuit through the MISO bus for being read by the master control circuit.
In the embodiment of the present application, the touch detection circuit 10 stores data (e.g. touch detection data) for the main control circuit 30 to read in advance. In the above step 102, if the touch detection circuit 10 determines that the command indicated by the target data is a read command based on the matching result of the target data and the command key, the data stored in advance can be used as the data to be read and transmitted to the main control circuit 30 through the MISO bus. The main control circuit 30 can further read the received data and execute corresponding operations.
It can be appreciated that, in the method for transmitting SPI data provided in the embodiment of the present application, the touch detection circuit 10 can match target data in the SPI data received by the touch detection circuit with a pre-stored command key, and execute a corresponding write operation or read operation when determining a command indicated by the target data based on a matching result. Thus, even if the master control circuit 30 and the touch detection circuit 10 are not the master and slave that match before shipment, the touch detection circuit 10 can normally communicate with the master control circuit 30 through the SPI bus. In addition, the touch detection circuit 10 may detect the command indicated by the target data in the SPI data at the start time of receiving the SPI data, and perform the write operation or the read operation based on the detection result. Therefore, the touch detection circuit 10 can timely respond to the instruction transmitted by the main control circuit, and the transmission efficiency of SPI data is improved.
In summary, the embodiment of the application provides a method for transmitting SPI data, which is applied to a touch detection circuit. After receiving the SPI data transmitted by the main control circuit, the touch control detection circuit can determine an instruction indicated by the target data based on a matching result of the target data and the instruction key words in the SPI data. If the command is a write command, the touch detection circuit can store the received SPI data so as to realize the writing of the data. If the instruction is a read instruction, the touch detection circuit can transmit the stored data to the main control circuit for the main control circuit to read. Because the touch detection circuit can match the received SPI data with the command key words so as to realize the writing or reading of the data, the touch detection circuit can still normally communicate with the main control circuit through the SPI bus even though the main control circuit and the touch detection circuit are not a matched main machine and a slave machine before delivery.
Optionally, the command key stored in the touch detection circuit 10 may include at least one read command key, and/or at least one write command key.
As a first possible implementation, the instruction key may include at least one read instruction key. In the first implementation manner, referring to fig. 5, the method for transmitting SPI data may include:
Step 201, receiving SPI data transmitted by a master control circuit from a MOSI bus.
In the embodiment of the present application, the master control circuit 30 can first transmit SPI data to the touch detection circuit 10 through the MOSI bus when writing data into the touch detection circuit 10 or reading data from the touch detection circuit 10. Thus, the touch detection circuit 10 can receive the SPI data.
Step 202, detecting whether target data in the SPI data is matched with one read command keyword in the at least one read command keyword.
In this embodiment of the present application, after receiving the SPI data, the touch detection circuit 10 can match the target data in the SPI data with at least one read command keyword, and determine the command indicated by the target data based on the matching result. In this first implementation, if the touch detection circuit 10 detects that the target data in the SPI data matches one of the at least one read command key, the following step 203 may be performed. If the touch detection circuit 10 detects that the target data in the SPI data does not match with at least one read command keyword, the following step 208 may be performed.
Wherein the instruction indicated by the target data may comprise a write instruction or a read instruction. The matching of the target data and the read command keyword may mean that the target data and the read command keyword have a certain correspondence, or that the target data and the read command keyword are identical.
It is understood that the target data may be data of a target data amount received from the initial receiving time when the touch detection circuit 10 receives the SPI data. The target data amount may be a fixed value set in advance. For example, referring to fig. 6, in the SPI data received by the touch detection circuit 10 through the MOSI bus, the target data may include the data {78, 00, 04} of the first 3 bytes in the SPI data.
The read command keyword may be a keyword that is preconfigured and stored in advance in the touch detection circuit 10. It will be appreciated that, among the SPI data received by the touch detection circuit 10 via the MOSI bus, the SPI data carrying the write command is transmitted more frequently than the SPI data carrying the read command. Therefore, the command keywords may be configured as read command keywords, so as to reduce the number of command keywords set in the touch detection circuit 10. The number of read command keywords included in the command keywords may be determined based on the type of read command indicated by the target data in the SPI data transmitted from the main control circuit 30 to the touch detection circuit 10.
Optionally, at least one first keyword group may be stored in the touch detection circuit 10, where each first keyword group includes a read command keyword, a data amount of the data to be read corresponding to the read command keyword, and a start read address of the data to be read. Wherein the read instruction keywords included in the different first keyword groups are different. The touch detection circuit 10 may match the target data with the read command keywords included in the at least one first keyword group one by one when detecting the command indicated by the target data.
Step 203, determining that the instruction indicated by the target data is a read instruction, and determining a first target keyword group from at least one first keyword group.
In the above step 202, if the touch detection circuit 10 detects that the target data in the SPI data matches the read command key in the first key group, it may determine that the command indicated by the target data is a read command, and may determine the first key group as the first target key group corresponding to the target data. The read command may be used to instruct the touch detection circuit 10 to transmit data to the master control circuit 10 for the master control circuit 30 to read.
By way of example, the at least one first keyword group may include a first keyword group 1, a first keyword group 2, and a first keyword group 3. The first keyword group 1 comprises a read instruction keyword1, the first keyword group 2 comprises a read instruction keyword2, and the first keyword group 3 comprises a read instruction keyword3. If the touch detection circuit 10 determines that the target data {78, 00, 04} matches the read command keyword1 in the first keyword group 1, it may determine that the command indicated by the target data is a read command, and determine the first keyword group 1 as the first target keyword group.
As shown in fig. 3, the touch detection circuit 10 may include a memory 120, and the memory 120 may store data to be read by the main control circuit 30. The starting read address of the data to be read may refer to a starting memory address of the data to be read in the memory 120.
Alternatively, referring to fig. 7, the interface circuit 110 in the touch detection circuit 10 may include at least one first register group corresponding to at least one first key group one by one. The data included in each first key group may be stored in a corresponding one of the first register groups. Wherein each first register set may comprise a plurality of sub-read registers. For example, each first register set may include a first sub-read register read_key for storing a read instruction key, a second sub-read register read_number for storing a data amount of data to be read corresponding to the read instruction key, and a third sub-read register read_address for storing a start read address of the data to be read.
It will be appreciated that after power up, the master circuit 30 may configure the value of each sub-read register in the at least one first register set. Thereby, a configuration of the read parameters of the at least one read instruction may be achieved. The read parameters of the read instruction may include a read instruction key to which the read instruction matches, a data amount of data to be read by the read instruction, and a start read address of the data to be read by the read instruction.
Step 204, obtaining a target initial read address and a first target data volume in the first target keyword group.
After determining the first target keyword group from the at least one first keyword group, the touch detection circuit 10 may determine the start read address of the data to be read included in the first target keyword group as the target start read address of the data to be read by the read instruction indicated by the target data. The touch detection circuit 10 may further determine the data amount of the data to be read included in the first target keyword group as the first target data amount corresponding to the data to be read by the read instruction. Wherein the first target data amount may be in bytes. For example, the amount of data to be read by a read instruction may be 8 bytes.
It can be appreciated that, since the touch detection circuit 10 determines the first target keyword group corresponding to the target data, the target start read address and the first target data amount corresponding to the read command indicated by the target data can be determined, the touch detection circuit 10 can conveniently and rapidly acquire the data to be read from the memory 120.
Step 205, initiate DMA read status.
In the embodiment of the present application, the interface circuit 110 in the touch detection circuit 10 may carry the data in the memory 120 by using a DMA method. The data transfer refers to transferring data in the memory 120 to the interface circuit 110 or transferring data received by the interface circuit 110 to the memory 120. The DMA may operate in a manner that includes DMA read and DMA write. After determining that the instruction indicated by the target data is a read instruction, the touch detection circuit 10 may start the DMA read state to carry the data in the memory 120 to the interface circuit 110 as the data to be read.
Step 206, in the starting process of the DMA read state, transmitting the data in the read register corresponding to the first target key word group to the MISO bus for the master control circuit to read.
In this embodiment, referring to fig. 7, the touch detection circuit 10 may further include at least one read register corresponding to at least one first keyword group one-to-one. The read register stores data corresponding to a read command, that is, a part of data to be read. It will be appreciated that the initiation of the DMA read state requires a certain period of time and that the touch detection circuit 10 is required to return data to the master circuit 30 via the MISO bus while receiving data via the MOSI bus. Therefore, during the starting process of the DMA read state, the touch detection circuit 10 can first transmit the data in the read register corresponding to the first target key word group to the MISO bus for the master control circuit 30 to read. Thus, it can be ensured that the touch detection circuit 10 can timely return data to the main control circuit 10, and further that the touch detection circuit 10 can be matched with the main control circuit 30 with any transmission speed. The register value of the read_reserved (i.e., the stored data to be read) may also be configured by the master circuit 30 after power up.
For example, referring to fig. 6 and 7, the touch detection circuit 10 may initiate the DMA read state when determining that the instruction indicated by the target data {78, 00, 04} is a read instruction and determining that the first target key group corresponding to the target data is the first key group 1. The data of the first key group 1 may be stored in the first register group 1. In the process of starting the DMA read state, the touch detection circuit 10 may first transfer the data { FF,0a, f5, 12, 20} stored in the read_reserved1 of the first register set 1 as return data to the MISO bus.
Alternatively, during the initiation of the DMA read state, the touch detection circuit 10 may return data in the read_reserved of the read register that can match the SPI data it receives to the MISO bus when returning data to the master circuit 30 via the MISO bus. Since the touch detection circuit 10 receives the SPI data transmitted by the MOSI bus according to the bytes, after the touch detection circuit 10 receives the SPI data of one byte, the touch detection circuit 10 can select the data matching the data of the byte from the data stored in the read_reserved, and return the data to the MISO bus.
The data matching with a certain byte of the SPI data in the data stored in the read_reserved may mean that a certain corresponding relationship exists between a certain data and a certain byte of the SPI data in the data stored in the read_reserved, or that a certain data is the same as a certain byte of the SPI data in the data stored in the read_reserved.
If the touch detection circuit 10 does not select the data matching the SPI data of a certain byte in the read_reserved, a preset default value (e.g., 00 or FF) may be transmitted as the return data to the MISO bus.
For example, referring to fig. 6, as for the target data {78, 00, 04}, among the data stored in the read register read_reserved1, there is no data matching the data "78" and the data "00", and there is the data "0A" matching the data "04", so the touch detection circuit 10 can transmit the data { FF,0A } as return data to the MISO bus.
Step 207, after determining that the DMA read status is started, reading data of the first target data amount from the memory by using the target start read address as the start address in a DMA read mode, and transmitting the read data to the master control circuit through the MISO bus for the master control circuit to read.
In this embodiment of the present application, after determining that the DMA read state is started, the touch detection circuit 10 may stop transmitting the data in the read register corresponding to the first target key word set as the return data to the MISO bus, and transmit the data read from the memory 120 as the return data to the MISO bus by way of DMA read, so as to be read by the master control circuit 30. It follows that the data received by the master circuit 30 via the MISO bus is partly derived from the read register and partly derived from the memory 120. The data returned by DMA reading may also be referred to as DMA data. It will be appreciated that if the value of the first target data amount corresponding to the read instruction is smaller, the data read by the master circuit 10 may only originate from the read register.
For example, referring to fig. 6, after determining that the DMA read state is enabled, the touch detection circuit 10 may return the data {02, D0, 06, 40,0e,0a,00, 01, 01} stored in the memory 120 as return data to the MISO bus for reading by the main control circuit 30.
Referring to fig. 7, an array corresponding to at least one read instruction key one-to-one may be included in the memory 120. The touch detection circuit 10 reads the data of the first target data amount from the memory with the target start read address as the start address, and may be the data stored in the array corresponding to the read command keyword. When the touch detection circuit 10 reads data from the memory 120 by DMA reading, an array storing data to be read may be determined based on a predetermined target start read address, and then data of the first target data amount may be read from the array. The read data may then be returned to the MISO bus as return data for reading by the master circuit 30.
For example, referring to fig. 7, if the read command key matched with the target data is keyword1, the touch detection circuit 10 may determine an array 1 corresponding to the keyword1 from the memory 120 based on a predetermined target start read address, and read the data of the first target data amount from the array 1. The fetched data may then be returned to the MISO bus as return data for reading by the master circuit 30.
Step 208, determining the instruction indicated by the target data as a write instruction.
In the above step 202, if the touch detection circuit 10 detects that the target data in the SPI data does not match with at least one read command keyword, it may determine that the command indicated by the target data is a write command. The write command may be used to instruct the touch detection circuit 10 to store the SPI data received by the touch detection circuit, so as to implement writing of the data.
Step 209, store the received SPI data.
In this embodiment of the present application, after determining that the instruction indicated by the target data is a write instruction, the touch detection circuit 10 may store the SPI data received by the touch detection circuit through the MOSI bus as the data to be written, so as to implement writing of the data.
Optionally, referring to fig. 7, the touch detection circuit 10 may further include a write register set. The write register set may include a first sub write register write_number for storing a data amount of data to be written, a second sub write register write_address for storing a start storage address of the data to be written, and a third sub write register write_reserved for storing the data to be written.
The touch detection circuit 10 may start the DMA write state after determining that the instruction indicated by the target data is a write instruction. Since a certain period of time is required to start the DMA write state, the touch detection circuit 10 may store the data received during the process of starting the DMA write state to the register write_reserved. After determining that the DMA writing state is started, the touch detection circuit 10 may determine the initial writing address of the data to be written based on the register value of the first sub-writing register write_address in the writing register set, and determine the data amount of the data to be written theoretically (hereinafter simply referred to as the target writing data amount) based on the register value of the second sub-writing register write_address. Based on this, the touch detection circuit 10 may write the received data of the target write data amount to the storage location indicated by the start write address in the memory 120 by way of DMA writing.
Alternatively, as shown in FIG. 7, the memory 120 may include a write array corresponding to a write register set. The touch detection circuit 10 may write the data received by the DMA write mode into the write array in the memory 120.
It will be appreciated that the register values of the first sub-write register write_address and the second sub-write register write_number are fixed, so that the start write address of the data to be written in the memory 120 received by the touch detection circuit 10 at different times is the same, and the target write data amount of the data to be written received by the touch detection circuit 10 at different times is theoretically the same. However, the write command indicated by the target data in the SPI data received by the touch detection circuit 10 may be different, that is, the amount of data actually written into the memory 120 is different. Accordingly, when configuring the register value of the second write_number, the master circuit 30 may configure the register value of the second write_number based on the maximum data amount of the data to be written that can be transmitted by the master circuit 30 in the process of transmitting the SPI data. The open duration of the DMA write state may be positively correlated with the register value of the second sub write register write_number.
Based on this, after the touch detection circuit 10 completes the data writing by the DMA writing, the DMA writing state may still be in an on state (i.e., still in a state of waiting for data). Thus, it is ensured that the touch detection circuit 10 can write data of different data amounts into the memory 120 based on one fixed register value.
After the opening duration of the DMA writing state reaches the preset duration, the touch detection circuit 10 may switch from the DMA writing state to the normal state. The normal state refers to a state in which data is not interacted between the interface circuit 110 and the memory 120. This switching process may also be referred to as a process of clearing DMA data.
Step 210, generating an interrupt instruction after determining that the SPI data transmission is completed.
In the embodiment of the present application, after the touch detection circuit 10 determines that the received SPI data is stored, or the stored data is transmitted to the master control circuit 30 through the MISO bus, it may determine that the transmission of the SPI data is completed. Based on this, the touch detection circuit 10 may generate an interrupt instruction. The interrupt instruction may be generated by the interface circuit 110 in the touch detection circuit 10. The interrupt instruction is used for indicating the processor 130 in the touch detection circuit 10 to parse the stored SPI data to execute the target operation when determining that the instruction indicated by the target data is a write instruction. The target operation may include a control operation for the touch screen.
Optionally, the interface circuit 110 may further include a status register capable of indicating an SPI data transmission status. The SPI data transfer state may include a data write state and a data read state. After receiving the interrupt instruction, the processor 130 can determine a transmission state when the interface circuit 110 transmits the SPI data by reading the register value of the status register. If the processor 130 determines that the transmission status of the interface circuit 110 is the write status, it can read the data in the write register and the memory 120.
Further, since the main control circuit 30 reads data (e.g., touch detection data) in the touch detection circuit 10 frame by frame, if the processor 130 determines that the transmission state of the interface circuit 110 when transmitting the SPI is the read state, the length of the data read by the main control circuit 30 can be determined based on the register value of the status register. Therefore, the processor can conveniently configure the storage parameters of the memory 120, so that the memory 120 can be conveniently configured with the data to be read of the next frame, and the touch detection circuit 10 can conveniently respond to the read instruction of the main control circuit 30 in time.
For a plurality of touch signals collected by a plurality of touch sensors in the touch module 20 at the same time, the touch detection circuit may determine touch detection data obtained based on the plurality of touch signals as one frame of touch detection data. The master control circuit 30 reads data frame by frame means that the master control circuit 30 reads multi-frame touch detection data sequentially according to a certain reading period. The reading period may be determined based on the frequency at which the touch sensors in the touch module 20 collect the touch signals.
It can be appreciated that, in the method for transmitting SPI data provided in the embodiment of the present application, the touch detection circuit 10 can match target data in the SPI data received by the touch detection circuit with a pre-stored command key, and execute a corresponding write operation or read operation when determining a command indicated by the target data based on a matching result. Thus, even if the master control circuit 30 and the touch detection circuit 10 are not the master and slave that match before shipment, the touch detection circuit 10 can normally communicate with the master control circuit 30 through the SPI bus. In addition, the touch detection circuit 10 may detect the command indicated by the target data in the SPI data at the start time of receiving the SPI data, and perform the write operation or the read operation based on the detection result. Therefore, the touch detection circuit 10 can timely respond to the instruction transmitted by the main control circuit, and the transmission efficiency of SPI data is improved.
In summary, the embodiment of the application provides a method for transmitting SPI data, which is applied to a touch detection circuit. After receiving the SPI data transmitted by the main control circuit, the touch control detection circuit can determine an instruction indicated by the target data based on a matching result of the target data and the instruction key words in the SPI data. If the command is a write command, the touch detection circuit can store the received SPI data so as to realize the writing of the data. If the instruction is a read instruction, the touch detection circuit can transmit the stored data to the main control circuit for the main control circuit to read. Because the touch detection circuit can match the received SPI data with the command key words so as to realize the writing or reading of the data, the touch detection circuit can still normally communicate with the main control circuit through the SPI bus even though the main control circuit and the touch detection circuit are not a matched main machine and a slave machine before delivery.
As a second possible implementation, the command key stored in the touch detection circuit 10 may include at least one write command key. In the second implementation manner, referring to fig. 8, the method for transmitting SPI data may include:
step 301, receiving SPI data transmitted by a master circuit from a MOSI bus.
This step 301 may refer to the description of step 101 or step 201 above.
Step 302, detecting whether the target data in the SPI data is matched with one write command keyword in the at least one write command keyword.
In this second possible implementation, if the touch detection circuit 10 detects that the target data in the SPI data matches one of the at least one write command key, the following step 303 may be performed. If the touch detection circuit 10 detects that the target data in the SPI data does not match with at least one write command keyword, the following step 308 may be performed.
In this second possible implementation, the number of write command keywords included in the command keywords may be determined based on the type of write command indicated by the target data in the SPI data transmitted by the master control circuit 30 to the touch detection circuit 10.
It can be appreciated that at least one second key group may be stored in the touch detection circuit 10, where each second key group includes a write command key, a data amount of the data to be written corresponding to the write command key, and a start write address of the data to be written. Wherein write instruction keywords included in the different second keyword groups are different. The touch detection circuit 10 may match the target data with the write command keywords included in the at least one second keyword group one by one when detecting the command indicated by the target data.
Step 303, determining that the instruction indicated by the target data is a write instruction, and determining a second target keyword group from at least one second keyword group.
In the above step 302, if the touch detection circuit 10 detects that the target data in the SPI data matches the write command key in a second key group, it may determine that the command indicated by the target data is a write command, and may determine the second key group as a second target key group corresponding to the target data.
By way of example, the at least one second keyword group may include a second keyword group 1, a second keyword group 2, and a second keyword group 3. The second keyword group 1 comprises a write instruction keyword1, the second keyword group 2 comprises a write instruction keyword2, and the second keyword group 3 comprises a write instruction keyword3. If the touch detection circuit 10 determines that the target data { F2, 02, 30} matches the write command key word2 in the second key word group 2 in the SPI data received from the MOSI bus, it may determine that the command indicated by the target data { F2, 02, 30} is a write command, and determine the second key word group 2 as the second target key word group.
Alternatively, referring to fig. 10, the interface circuit 110 in the touch detection circuit 10 may include at least one second register set corresponding to at least one second key set one by one. The data included in each second key group may be stored in a corresponding one of the second register groups. Wherein each second register set may comprise a plurality of sub-write registers. For example, as shown in fig. 10, each of the second register groups may include a fourth sub-write register write_key for storing a write instruction key, a fifth sub-write register write_number for storing a data amount of data to be written corresponding to the write instruction key, and a sixth sub-write register write_address for storing a start write address of the data to be written.
It will be appreciated that the master circuit 30 may configure the value of each of the sub-write registers in the at least one second register set after power up. Thereby, a configuration of the write parameters of the at least one write instruction may be achieved. The write parameters of the write instruction may include a read instruction key to which the write instruction matches, a data amount of data to be written by the write instruction, and a start write address of the data to be written by the write instruction.
Step 304, obtaining the target initial write address and the second target data volume in the second target keyword group.
After determining the second target key group from the at least one second key group, the touch detection circuit 10 may determine the start write address of the data to be written included in the second target key group as the target start write address of the data to be written by the write instruction indicated by the target data. The touch detection circuit 10 may further determine the data amount of the data to be written included in the second target keyword group as the second target data amount corresponding to the data to be written by the write instruction. The unit of the second target data amount may be a byte. For example, the amount of data to be written by a write instruction may be 8 bytes.
It can be appreciated that, since the touch detection circuit 10 determines the second target keyword group corresponding to the target data, the initial target write address and the second target data amount corresponding to the write command indicated by the target data can be determined, the touch detection circuit 10 can conveniently and rapidly write data in the memory 120.
Step 305, initiate DMA write status.
In this embodiment of the present application, after determining that the instruction indicated by the target data is a write instruction, the touch detection circuit 10 may start the DMA write state to carry the data received by the interface circuit 110 to the memory 120, thereby implementing writing of the data.
Step 306, writing the SPI data received during the DMA write status starting process into a write register corresponding to the second target key word group.
In this embodiment, the touch detection circuit 10 may further include at least one write register corresponding to at least one second keyword group one-to-one. The write register stores therein data corresponding to one write instruction in advance. It will be appreciated that the initiation of the DMA write state requires a certain period of time, and the master circuit 30 will continuously transmit the SPI data to the touch sensing circuit 10 through the MOSI bus. Based on this, the touch detection circuit 10 can write the SPI data received during the DMA write state start process into the write register corresponding to the second target key word group, so as to implement real-time writing of the SPI data, and avoid loss of the SPI data. The register value of the write register may be configured after the main control circuit 30 is powered up.
For example, referring to fig. 9 and 10, the touch detection circuit 10 may start the DMA write state when determining that the instruction indicated by the target data { F2, 02, 30} is a write instruction and determining that the second target key group corresponding to the target data is the second key group 2. Wherein the data of the second key group 2 may be stored in the second register group 2. In the process of starting the DMA write state, the touch detection circuit 10 may first store the data { F2, 02, 30, 12, 34, 56} transferred on the MOSI bus to the write register write_reserved2 in the second register set 2.
Step 307, after determining that the DMA writing state is started, storing the received SPI data of the second target data amount to a storage location indicated by the target initial writing address in the memory in a DMA writing manner.
In this embodiment of the present application, after determining that the DMA writing state is started, the touch detection circuit 10 may stop writing the SPI data received on the MOSI bus into the writing register, and store the SPI data of the second target data amount received on the MOSI bus into the storage location indicated by the target initial writing address in the memory 120 in the DMA writing manner, so as to implement writing of the SPI data. As can be seen from this, among the SPI data transmitted from the main control circuit 30 to the touch detection circuit 10, a part of the SPI data is stored in the write register, and a part of the SPI data is stored in the memory 120.
For example, referring to fig. 9, after determining that the DMA write status is enabled, the touch detection circuit 10 may store the data {78, ab, cd, ef,90, 11, 22, 33, 44, 55} received on the MOSI bus to the storage location indicated by the target start write address in the memory 120 by way of DMA write.
Alternatively, as shown in FIG. 10, the memory 120 may include an array that corresponds one-to-one to at least one write instruction key. That is, the touch detection circuit 10 may write the data to be written corresponding to the write command key into the array corresponding to the write command key. When writing data in the memory 120 by way of DMA writing, the touch detection circuit 10 may determine an array to which data to be written is to be written based on a predetermined target start write address, and then write data of a second target data amount in the array.
For example, referring to fig. 10, if the write command key matched with the target data is keyword2, the touch detection circuit 10 may determine an array 2 corresponding to the keyword2 from the memory 120 based on a predetermined target start write address, and write data of the first target data amount in the array 2.
Step 308, determining the instruction indicated by the target data as a read instruction.
In the above step 302, if the touch detection circuit 10 determines that the target data does not match with at least one write command keyword, it may determine that the command indicated by the target data is a read command. For example, the read command may be a command for the main control circuit 30 to read the touch detection data in the touch detection circuit 10.
Step 309, the stored data is transmitted to the master circuit through the MISO bus for the master circuit to read.
In the embodiment of the present application, the touch detection circuit 10 stores data (e.g. touch detection data) for the main control circuit 30 to read in advance. If the touch detection circuit 10 determines that the instruction indicated by the target data is a read instruction, the data stored in advance can be used as data to be read and transmitted to the main control circuit 30 through the MISO bus. The main control circuit 30 can further read the received data and execute corresponding operations.
Optionally, referring to fig. 10, the touch detection circuit 10 may further include a read register set. The read register set may include a fourth sub-read register read_number for storing a data amount of data to be read, a fifth sub-read register read_address for storing a start memory address of the data to be read, and a sixth sub-read register read_reserved for storing the data to be read. The register values of the plurality of sub-read registers may be values configured in advance by the main control circuit 30.
After determining that the instruction indicated by the target data is a read instruction, the touch detection circuit 10 may initiate a DMA read state. Since a certain period of time is required to start the DMA read state, the touch detection circuit 10 may transmit the data stored in the sixth sub-read register read_reserved to the MISO bus as the data to be read, so as to be read by the main control circuit 30 during the process of starting the DMA read state. After determining that the DMA read state is started, the touch detection circuit 10 may transmit the data stored in the memory 120 to the MISO bus for the master control circuit 30 to read by using the DMA read mode based on the register value of the fourth sub-read register read_address and the register value of the fifth sub-read register read_number in the read register set.
Alternatively, as shown in FIG. 10, the memory 120 may include a read array corresponding to a read register set. The set of readings may have stored therein data to be read. The touch detection circuit 10 may transmit the data in the read group to the MISO bus by way of DMA reading. After the data in the read array is read, new data can be written, so that when the touch detection circuit 10 receives the read command again, the data can still be read from the read array.
It will be appreciated that the register values of the fourth sub-read register read_address and the fifth sub-read register read_number are fixed, so that the initial read addresses of the data to be read in the memory 120 of the data to be read by the master circuit 30 at different times are the same, and the data amounts of the data to be read by the master circuit 30 at different times are theoretically the same. However, the read command indicated by the target data in the SPI data received by the touch detection circuit 10 may be different, that is, the amount of data actually read is different. Therefore, when configuring the register value of the fifth sub-read register read_number, the master circuit 30 may configure the register value of the fifth sub-read register read_number based on the maximum data amount of the data to be read that can be transmitted by the master circuit 30 in the process of transmitting the SPI data. The on-time of the DMA read status may be positively correlated with a register value of the fifth sub-read register read_number.
Based on this, after the touch detection circuit 10 completes the data reading by the DMA reading, the DMA reading state may still be in an on state (i.e., still in a state of waiting for data). Thus, it is ensured that the touch detection circuit 10 is capable of reading data of different data amounts in the memory 120 based on a fixed register value. After the opening duration of the DMA read state reaches the preset duration, the touch detection circuit 10 may switch from the DMA read state to the normal state.
Step 310, generating an interrupt instruction after determining that the SPI data transmission is completed.
The implementation of this step 310 may be as described above with reference to step 210.
In summary, the embodiment of the application provides a method for transmitting SPI data, which is applied to a touch detection circuit. After receiving the SPI data transmitted by the main control circuit, the touch control detection circuit can determine an instruction indicated by the target data based on a matching result of the target data and the instruction key words in the SPI data. If the command is a write command, the touch detection circuit can store the received SPI data so as to realize the writing of the data. If the instruction is a read instruction, the touch detection circuit can transmit the stored data to the main control circuit for the main control circuit to read. Because the touch detection circuit can match the received SPI data with the command key words so as to realize the writing or reading of the data, the touch detection circuit can still normally communicate with the main control circuit through the SPI bus even though the main control circuit and the touch detection circuit are not a matched main machine and a slave machine before delivery.
As a third possible implementation, the command key stored in the touch detection circuit 10 may include at least one write command key and at least one read command key. In this third implementation manner, referring to fig. 11, the method for transmitting SPI data may include:
Step 401, receive SPI data transmitted by the master circuit from the MOSI bus.
The implementation of this step 401 may be referred to the description above for step 101, step 201 or step 301.
Step 402, determining an instruction indicated by the target data based on a matching result of the target data and the instruction keyword in the SPI data.
In this embodiment of the present application, after receiving the SPI data, the touch detection circuit 10 can match the target data in the SPI data with the command key word, and determine the command indicated by the target data based on the matching result. Wherein the instruction indicated by the target data may comprise a write instruction or a read instruction.
The command key may be a key that is preconfigured and stored in the touch detection circuit 10. The instruction keys may include at least one read instruction key and at least one write instruction key. Therefore, if the touch detection circuit 10 detects that the target data matches one of the at least one read command key, it can determine that the command indicated by the target data is a read command, and execute step 403. If the touch detection circuit 10 detects that the target data matches one of the at least one write command key, it may determine that the command indicated by the target data is a write command, and execute step 408.
It can be understood that the SPI data transmitted by the master control circuit 30 to the touch detection circuit 10 all carry target data capable of indicating a read command or a write command. Therefore, the touch detection circuit 10 can determine the instruction indicated by the target number based on the matching result of the target data and the instruction key in the SPI data.
Step 403, if the instruction indicated by the target data is a read instruction, determining a first target keyword group from at least one first keyword group.
In this embodiment of the present application, at least one first keyword set is stored in the touch detection circuit 10, and each first keyword set includes a read command keyword, a data amount of data to be read corresponding to the read command keyword, and a start read address of the data to be read. In the above step 402, if the touch detection circuit 10 detects that the target data in the SPI data matches the read command key in the first key group, it may determine that the command indicated by the target data is a read command, and may determine the first key group as the first target key group corresponding to the target data.
Step 404, acquiring a target initial read address and a first target data volume in the first target keyword group.
The implementation of this step 404 may be as described above with respect to step 204.
Step 405, initiate DMA read status.
The implementation of this step 405 may be as described above with respect to step 205.
Step 406, in the starting process of the DMA read state, data in the read register corresponding to the first target key word group is transferred to the MISO bus for the master control circuit to read.
The implementation of this step 406 may be as described above with respect to step 206.
Step 407, after determining that the DMA read state is started, reading data of the first target data amount from the memory by using the target initial read address as the initial address in a DMA read mode, and transmitting the read data to the master control circuit through the MISO bus for the master control circuit to read.
The implementation of this step 407 may be referred to the description of step 207 above.
Step 408, if the instruction indicated by the target data is a write instruction, determining a second target keyword group from at least one second keyword group.
In this embodiment of the present application, at least one second keyword group may also be stored in the touch detection circuit 10. Each second keyword group comprises a write instruction keyword, a data amount of data to be written corresponding to the write instruction keyword, and a start write address of the data to be written. Wherein write instruction keywords included in the different second keyword groups are different. In the above step 402, if the touch detection circuit 10 detects that the target data in the SPI data matches the write command key in a second key group, it may determine that the command indicated by the target data is a write command, and may determine the second key group as a second target key group corresponding to the target data.
Step 409, obtaining the target initial write address and the second target data amount in the second target keyword group.
The implementation of this step 409 may be found in the description of step 304 above.
Step 410, initiate DMA write status.
The implementation of this step 410 may be described above with reference to step 305.
Step 411, writing the SPI data received during the DMA write status starting process into a write register corresponding to the second target key word group.
The implementation of this step 411 may be found in the description of step 306 above.
Step 412, after determining that the DMA writing state is started, storing the received SPI data of the second target data amount to a storage location indicated by the target initial writing address in the memory in a DMA writing manner.
The implementation of this step 412 may be as described above with respect to step 307.
Step 413, generating an interrupt command after determining that the SPI data transmission is completed.
The implementation of this step 413 may be as described above for step 210.
In summary, the embodiment of the application provides a method for transmitting SPI data, which is applied to a touch detection circuit. After receiving the SPI data transmitted by the main control circuit, the touch control detection circuit can determine an instruction indicated by the target data based on a matching result of the target data and the instruction key words in the SPI data. If the command is a write command, the touch detection circuit can store the received SPI data so as to realize the writing of the data. If the instruction is a read instruction, the touch detection circuit can transmit the stored data to the main control circuit for the main control circuit to read. Because the touch detection circuit can match the received SPI data with the command key words so as to realize the writing or reading of the data, the touch detection circuit can still normally communicate with the main control circuit through the SPI bus even though the main control circuit and the touch detection circuit are not a matched main machine and a slave machine before delivery.
The embodiment of the application provides a touch detection circuit, which can execute the SPI data transmission method provided by the embodiment of the method. The washing machine may be the touch detection circuit 10 in the scenario shown in fig. 1 or fig. 3. Referring to fig. 3, the touch detection circuit 10 includes: interface circuit 110 and memory 120. The interface circuit 110 is connected to the master circuit 30 in the touch display device via an SPI bus, which includes a MOSI bus, and a MISO bus. The interface circuit 110 is configured to:
the SPI data transmitted by the master circuit 30 is received from the MOSI bus.
And determining an instruction indicated by the target data based on a matching result of the target data and the instruction key words in the SPI data, wherein the instruction comprises a write instruction or a read instruction.
If the command indicated by the target data is a write command, the received SPI data is stored in the memory 120.
If the instruction indicated by the target data is a read instruction, the data stored in the memory 120 is transmitted to the master control circuit 30 through the MISO bus for the master control circuit 30 to read.
Optionally, the instruction key comprises at least one read instruction key, and the interface circuit 110 is configured to:
if the target data in the SPI data is matched with one read command keyword in the at least one read command keyword, determining the command indicated by the target data as the read command.
If the target data in the SPI data is not matched with at least one read command keyword, determining that the command indicated by the target data is a write command.
Optionally, the interface circuit 110 in the touch detection circuit 10 stores at least one first keyword set, where each first keyword set includes a read command keyword, a data amount of the data to be read corresponding to the read command keyword, and a start read address of the data to be read. The interface circuit 110 is configured to:
if the instruction indicated by the target data is a read instruction, determining a first target keyword group from at least one first keyword group, wherein the target data is matched with the read instruction keywords in the first target keyword group.
And acquiring a target initial read address and a first target data volume in the first target keyword group.
The data of the first target data amount is read with the target start read address as a start address, and the read data is transferred to the master control circuit 30 through the MISO bus.
Optionally, the interface circuit 110 includes at least one read register corresponding to at least one first key group one-to-one, and the interface circuit 110 is further configured to:
the DMA read state is initiated.
In the DMA read status starting process, data in the read register corresponding to the first target key group is transferred to the MISO bus for the master control circuit 110 to read.
After determining that the DMA read state is enabled, data of the first target data amount is read from the memory 120 by way of DMA read with the target start read address as a start address, and the read data is transferred to the master circuit 30 via the MISO bus.
Optionally, the instruction key comprises at least one write instruction key, and the interface circuit 110 is configured to:
if the target data in the SPI data is matched with one write instruction keyword in the at least one write instruction keyword, determining that the instruction indicated by the target data is the write instruction.
If the target data in the SPI data is not matched with at least one write command keyword, determining that the command indicated by the target data is a read command.
Optionally, at least one second key group is stored in the interface circuit 110, where each second key group includes a write command key, a data amount of the data to be written corresponding to the write command key, and a start write address of the data to be written; the interface circuit 110 is configured to:
and if the instruction indicated by the target data is a write instruction, determining a second target keyword group from at least one second keyword group, wherein the target data is matched with the write instruction keywords in the second target keyword group.
And acquiring a target initial write address and a second target data volume in the second target keyword group.
And writing the second target number of data in the received SPI data into a storage position indicated by the target initial writing address.
Optionally, the interface circuit 110 further includes at least one write register corresponding to at least one second key group, and the interface circuit 110 is further configured to:
and starting the DMA writing state, and writing SPI data received in the starting process of the DMA writing state into a writing register corresponding to the second target keyword group.
After the starting of the DMA writing state is determined, the received SPI data of the second target data quantity is stored to a storage position indicated by the target initial writing address in the memory in a DMA writing mode.
Optionally, the instruction keywords include at least one write instruction keyword and at least one read instruction keyword; the interface circuit 110 is configured to:
if the target data in the SPI data is matched with one read command keyword in the at least one read command keyword, determining the command indicated by the target data as the read command.
If the target data in the SPI data is matched with one write instruction keyword in the at least one write instruction keyword, determining that the instruction indicated by the target data is the write instruction.
Optionally, as shown in fig. 3, the touch detection circuit 10 further includes a processor 130, and the interface circuit 110 is further configured to:
after determining that the SPI data transmission is completed, an interrupt instruction is generated, where the interrupt instruction is used to instruct the processor 130 to parse the stored SPI data to execute a control operation for the touch screen when determining that the instruction indicated by the target data is a write instruction.
In summary, the embodiment of the application provides a touch detection circuit, which can determine an instruction indicated by target data based on a matching result of the target data and an instruction keyword in SPI data after receiving the SPI data transmitted by the master control circuit. If the command is a write command, the touch detection circuit can store the received SPI data so as to realize the writing of the data. If the instruction is a read instruction, the touch detection circuit can transmit the stored data to the main control circuit for the main control circuit to read. Because the touch detection circuit can match the received SPI data with the command key words so as to realize the writing or reading of the data, the touch detection circuit can still normally communicate with the main control circuit through the SPI bus even though the main control circuit and the touch detection circuit are not a matched main machine and a slave machine before delivery.
It can be understood that the embodiments of the touch detection circuit and the method for transmitting SPI data provided in the foregoing embodiments belong to the same concept, and detailed implementation processes of the embodiments are shown in the method embodiments, which are not repeated herein.
The embodiment of the application further provides a touch detection circuit, as shown in fig. 3, which may include a processor 130 and a memory 120. The memory 120 stores instructions that are loaded and executed by the processor 130 to implement the method for transmitting SPI data provided in the above-described method embodiment, such as the method shown in fig. 4, 5, 8, or 11.
The present embodiment provides a computer readable storage medium having a computer program stored therein, the computer program being loaded by a processor and executing the method for transmitting SPI data provided in the above embodiment, for example, the method shown in fig. 4, 5, 8 or 11.
The embodiments of the present application also provide a computer program product containing instructions, which when executed on a computer, cause the computer to perform the method for transmitting SPI data provided by the method embodiments described above, for example, the method shown in fig. 4, 5, 8 or 11.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
It is understood that the term "at least one" in this application means one or more, and the meaning of "a plurality" means two or more.
Reference herein to "and/or" means that there may be three relationships, e.g., a and/or B, which may represent: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
The terms "first," "second," and the like in this application are used to distinguish between identical or similar items that have substantially the same function and function, and it should be understood that there is no logical or chronological dependency between the "first," "second," and "nth" terms, nor is it limited to the number or order of execution.
The foregoing description of the exemplary embodiments of the present application is not intended to limit the invention to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, alternatives, and alternatives falling within the spirit and scope of the invention.

Claims (12)

1. A transmission method of serial peripheral interface SPI data is characterized in that the transmission method is applied to a touch detection circuit in touch display equipment; the touch detection circuit is connected with a main control circuit in the touch display device through an SPI bus, wherein the SPI bus comprises a master-slave input MOSI bus and a master-slave output MISO bus; the method comprises the following steps:
receiving SPI data transmitted by the master control circuit from the MOSI bus;
determining an instruction indicated by target data based on a matching result of the target data and an instruction keyword in the SPI data, wherein the instruction comprises a write instruction or a read instruction;
if the instruction indicated by the target data is the write instruction, storing the received SPI data;
and if the instruction indicated by the target data is the read instruction, transmitting the stored data to the main control circuit through the MISO bus for reading by the main control circuit.
2. The method of claim 1, wherein the command key comprises at least one read command key, and wherein the determining the command indicated by the target data based on the matching result of the target data and the command key in the SPI data comprises:
If the target data in the SPI data is matched with one read command keyword in the at least one read command keyword, determining that the command indicated by the target data is the read command;
and if the target data in the SPI data is not matched with the at least one read command keyword, determining that the command indicated by the target data is the write command.
3. The method of claim 2, wherein at least one first keyword group is stored in the touch detection circuit, and each first keyword group includes a read command keyword, an amount of data of the data to be read corresponding to the read command keyword, and a start read address of the data to be read; if the instruction indicated by the target data is the read instruction, transmitting the stored data to the master control circuit through the MISO bus, including:
if the instruction indicated by the target data is the read instruction, determining a first target keyword group from the at least one first keyword group, wherein the target data is matched with the read instruction keywords in the first target keyword group;
acquiring a target initial reading address and a first target data volume in the first target keyword group;
And reading the data of the first target data volume by taking the target initial reading address as an initial address, and transmitting the read data to the main control circuit through the MISO bus.
4. The method of claim 3, wherein the touch detection circuit includes a memory and at least one read register in one-to-one correspondence with the at least one first key group, the method further comprising:
starting a Direct Memory Access (DMA) read state;
transmitting data in a read register corresponding to the first target key word group to the MISO bus for reading by the main control circuit in the starting process of the DMA read state;
the reading the data of the first target data amount by taking the target initial reading address as an initial address, and transmitting the read data to the main control circuit through the MISO bus, including:
after the starting of the DMA reading state is determined, reading the data of the first target data volume from the memory by taking the target initial reading address as the initial address in a DMA reading mode, and transmitting the read data to the main control circuit through the MISO bus.
5. The method of claim 1, wherein the command key comprises at least one write command key, and wherein the determining the command indicated by the target data based on the matching result of the target data and the command key in the SPI data comprises:
if the target data in the SPI data is matched with one write instruction keyword in the at least one write instruction keyword, determining that the instruction indicated by the target data is the write instruction;
and if the target data in the SPI data is not matched with the at least one write instruction keyword, determining that the instruction indicated by the target data is the read instruction.
6. The method of claim 5, wherein at least one second keyword group is stored in the touch detection circuit, each second keyword group includes a write command keyword, a data amount of data to be written corresponding to the write command keyword, and a start write address of the data to be written; and if the instruction indicated by the target data is the write instruction, storing the received SPI data, including:
if the instruction indicated by the target data is the write instruction, determining a second target keyword group from the at least one second keyword group, wherein the target data is matched with the write instruction keywords in the second target keyword group;
Acquiring a target initial write address and a second target data volume in the second target keyword group;
and writing the second target number of data in the received SPI data into a storage position indicated by the target initial writing address.
7. The method of claim 6, wherein the touch detection circuit includes a memory and at least one write register in one-to-one correspondence with the at least one second key group, the method further comprising:
starting a DMA writing state, and writing SPI data received in the starting process of the DMA writing state into a writing register corresponding to the second target keyword group;
the writing the second target amount of data in the received SPI data to the storage location indicated by the target starting write address includes:
after the starting of the DMA writing state is determined, the received SPI data of the second target data quantity is stored to a storage position indicated by the target initial writing address in the memory in a DMA writing mode.
8. The method of claim 1, wherein the instruction keywords comprise at least one write instruction keyword and at least one read instruction keyword; the determining the instruction indicated by the target data based on the matching result of the target data and the instruction keyword in the SPI data comprises the following steps:
If the target data in the SPI data is matched with one read command keyword in the at least one read command keyword, determining that the command indicated by the target data is the read command;
and if the target data in the SPI data is matched with one write instruction keyword in the at least one write instruction keyword, determining that the instruction indicated by the target data is the write instruction.
9. The method of any one of claims 1 to 8, wherein the touch detection circuit further comprises a processor, the method further comprising:
after the SPI data transmission is determined to be completed, an interrupt instruction is generated, and the interrupt instruction is used for indicating the processor to analyze the stored SPI data when the instruction indicated by the target data is determined to be the write instruction, so as to execute control operation for the touch screen.
10. The utility model provides a touch detection circuit which characterized in that, touch detection circuit includes: an interface circuit and a memory; the interface circuit is connected with a main control circuit in the touch display device through a Serial Peripheral Interface (SPI) bus, wherein the SPI bus comprises a Master Output Slave Input (MOSI) bus and a Master Input Slave Output (MISO) bus; the interface circuit is used for:
Receiving SPI data transmitted by the master control circuit from the MOSI bus;
determining an instruction indicated by target data based on a matching result of the target data and an instruction keyword in the SPI data, wherein the instruction comprises a write instruction or a read instruction;
if the instruction indicated by the target data is the write instruction, storing the received SPI data into the memory;
and if the instruction indicated by the target data is the read instruction, transmitting the data stored in the memory to the main control circuit through the MISO bus for reading by the main control circuit.
11. A touch display device, the touch display device comprising: a main control circuit, a touch module and a touch detection circuit as claimed in claim 10;
the master control circuit is connected with the touch detection circuit through a serial peripheral interface SPI bus, the SPI bus comprises a master output slave input MOSI bus and a master input slave output MISO bus, and the master control circuit is used for transmitting SPI data to the touch detection circuit through the MOSI bus and reading touch detection data transmitted by the touch detection circuit through the MISO bus;
The touch module is connected with the touch detection circuit and is used for collecting touch signals and transmitting the touch signals to the touch detection circuit so as to enable the touch detection circuit to perform touch detection to obtain touch detection data.
12. The touch display device of claim 11, wherein the master control circuit comprises a micro control unit MCU and the touch detection circuit comprises a touch display driver integrated TDDI chip.
CN202310282733.8A 2023-03-21 2023-03-21 SPI data transmission method, touch detection circuit and touch display device Pending CN116382514A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310282733.8A CN116382514A (en) 2023-03-21 2023-03-21 SPI data transmission method, touch detection circuit and touch display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310282733.8A CN116382514A (en) 2023-03-21 2023-03-21 SPI data transmission method, touch detection circuit and touch display device

Publications (1)

Publication Number Publication Date
CN116382514A true CN116382514A (en) 2023-07-04

Family

ID=86974201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310282733.8A Pending CN116382514A (en) 2023-03-21 2023-03-21 SPI data transmission method, touch detection circuit and touch display device

Country Status (1)

Country Link
CN (1) CN116382514A (en)

Similar Documents

Publication Publication Date Title
US10102177B2 (en) Serial communication system, communication control unit, and electronic device for finding and assigning unused addresses
CN102759676B (en) Capacitive screen comprehensive testing circuit, testing method and output data switching algorithm of testing method
US20130007289A1 (en) Remote control system and remote control method of the same
US20170177538A1 (en) Communication system with serial ports for automatically identifying device types and communication protocols and method thereof
CN108304334B (en) Application processor and integrated circuit including interrupt controller
CN104021101A (en) USB interface system and implementation method based on LPC1768 platform
CN115858431A (en) Data transmission control method, controller and electronic equipment
CN115033444B (en) 8051 core-based online debugging circuit control device
CN112631851A (en) Chip debugging agent device and chip debugging method
CN116301880A (en) Instruction response method and device in micro control unit, electronic equipment and medium
US11630532B2 (en) Touch sensitive processing apparatus and method thereof and touch system
CN215642735U (en) Fingerprint sensing device
CN1333333C (en) Code flow broadcast card and driving method of code flow collection card
CN110795373B (en) I2C bus-to-parallel bus conversion method, terminal and storage medium
CN116382514A (en) SPI data transmission method, touch detection circuit and touch display device
CN110795369A (en) Method and terminal for realizing MIDO slave function based on GPIO pin
CN115994111A (en) Data processing circuit, method, chip and electronic equipment
CN103207850B (en) The transmission system of heterogeneous device
CN105068962A (en) I2C controller access method and I2C controller access system
CN105068835B (en) Mobile terminal and debugging information display method thereof
CN116047259A (en) Detection system and detection method
CN108008854B (en) Method, device and terminal equipment for avoiding antenna carrier interference
CN117406845B (en) Reset method, reset device, computer equipment and storage medium
CN112765082B (en) Multi-host arbitration method, device and readable storage medium
CN113467729B (en) Electronic device and multi-screen display method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination