SPI (Serial Peripheral Interface) signal cross-screen receiving method and folding double-screen electronic equipment
By adopting the cross-screen reception method of SPI signal in folding dual-screen electronic devices, using a cross-screen signal line to transmit data from two SPI interfaces, the problem of the large number of cross-screen signal lines is solved, and the effect of simplifying printed circuit board wiring and improving the service life of the equipment is achieved.
Patent Information
- Application Number
- CN202510137923.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-07
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2045-02-07
AI Technical Summary
Among the existing folding dual-screen electronic devices, there are many cross-screen signal lines, which leads to complex wiring and large area occupancy, affecting the service life of the equipment.
Through a cross-screen reception method of SPI signal, the data of two SPI interfaces is transmitted using a cross-screen signal line, the number of cross-screen signal lines is reduced, and the SPI data input signal is compliant with the SPI protocol rules by adding configurable virtual bits.
It greatly reduces the number of cross-screen signal lines, simplifies printed circuit board routing, reduces the difficulty of engineering implementation, and complies with SPI protocol specifications, and improves the service life of the equipment.
Smart Images

Figure CN119597692A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of signal bridging and conversion, and in particular to an SPI signal cross-screen receiving method and a foldable dual-screen electronic device. Background Art
[0002] As an innovative technology product, foldable dual-screen electronic devices have won the favor of many consumers with their portability and large-screen design. However, due to the dynamic hinge connection between the dual screens, higher requirements are placed on the stability and durability of the cross-screen signal line. Frequent opening and closing operations may cause the cross-screen signal line to malfunction, thereby significantly shortening the service life of the electronic device. Therefore, reducing the number of cross-screen signal lines used has become an urgent problem to be solved in this field.
[0003] Figure 1 The first screen and the second screen connected by the hinge and the schematic diagram of the Serial Peripheral Interface (SPI) connection scheme are shown. The SPI interface is a full-duplex, synchronous communication bus with the advantages of simplicity and high communication rate.
[0004] The application processor is located under the first screen, and the second screen includes a first sensor and a second sensor. The application processor has two related SPI interfaces: an SPI1 interface and an SPI2 interface. When the SPI1 interface and the SPI2 interface send signals to the first sensor and the second sensor, the information is transmitted directly across the hinge through the cross-screen signal line.
[0005] Since each standard SPI interface includes four signal lines, which are generally referred to in the art as: an SPI clock signal SPI_SCLK, an SPI data output signal SPI_DO, an SPI data input signal SPI_DI, and an SPI chip select signal SPI_CS.
[0006] Figure 1 The two SPI interfaces included in the example require the design of 8 cross-screen signal lines: SPI1_SCLK, SPI1_DO, SPI1_DI and SPI1_CS connected to the SPI1 interface; SPI2_SCLK, SPI2_DO, SPI2_DI and SPI2_CS connected to the SPI2 interface. This method results in a large number of cross-screen signal lines, complex printed circuit board routing and a large occupied area.
[0007] How to reduce the number of cross-screen signal lines in the SPI signal cross-screen reception solution has become a technical problem that needs to be solved urgently in this field. Summary of the invention
[0008] In order to alleviate or partially alleviate the above technical problems, the solution of the present invention is as follows: A method for receiving SPI signals across screens, wherein an application processor under a first screen receives an SPI signal from at least a first device under a second screen, and the first device sends a first SPI data input signal and a first SPI clock signal to a data receiving module in a chip under the second screen; the data receiving module determines the value of a first SPI tag according to whether the first SPI data input signal is valid, and sends the first SPI data input signal and the first SPI tag to a framing and sending module; the framing and sending module sends frame data including at least the first SPI data input signal and the first SPI tag to a receiving and deframing module in the chip under the first screen through a first cross-screen signal line; if the first SPI tag indicates that the first SPI data input signal is valid, the first SPI data input signal is stored in a first FIFO module for access by the application processor.
[0009] Furthermore, the frame data includes SPI data input signals and SPI tags sent by more than two devices.
[0010] Furthermore, through the second cross-screen signal line, the first under-screen chip obtains the receiving clock from the second under-screen chip.
[0011] Further, the first device is a first sensor.
[0012] Furthermore, the frame data also includes a start mark and an end mark.
[0013] Furthermore, the information sent by the data receiving module to the framing and sending module does not include the first SPI clock signal.
[0014] Furthermore, the first cross-screen chip makes the first SPI data input signal comply with SPI protocol rules by adding configurable virtual bits.
[0015] Furthermore, the first device is an accelerometer, a proximity sensor, a gyroscope, a light sensor or a temperature sensor.
[0016] Furthermore, the application processor and the first under-screen chip are both located under the first screen; the second under-screen chip and the first device are both located under the second screen.
[0017] A foldable dual-screen electronic device comprises a first screen and a second screen, and also comprises an application processor and a first under-screen chip both located under the first screen, and a second under-screen chip and a first device both located under the second screen; when the application processor under the first screen receives an SPI signal from at least the first device under the second screen, the SPI signal cross-screen reception method described in any one of the above items is applied.
[0018] The technical solution of the present invention has one or more of the following beneficial technical effects: (1) When the SPI signal is received across screens, the number of cross-screen signal lines can be greatly reduced, especially when the number of SPI interfaces is large.
[0019] (2) The solution engineering is easy to implement and complies with the SPI protocol specifications.
[0020] In addition, other beneficial effects of the present invention will be mentioned in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of a first screen and a second screen connected by a hinge and a serial peripheral device interface connection scheme; Figure 2 It is a schematic diagram of an exemplary SPI signal cross-screen receiving solution of the present invention; Figure 3 It is a further schematic diagram of the SPI signal cross-screen receiving solution of the present invention; Figure 4 It is a flow chart of the SPI signal cross-screen receiving method. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order.
[0024] Figure 2 The schematic diagram of an exemplary SPI signal cross-screen receiving solution of the present invention is shown. An application processor and a first under-screen chip are arranged under the first screen.
[0025] By way of example, the application processor includes a first SPI interface and a second SPI interface. The first under-screen chip includes a first edge detection module and a second edge detection module.
[0026] The second under-screen chip includes a frame data generation module, which sends first received data to the first edge detection module and the second edge detection module through the first cross-screen signal line. In addition, the second under-screen chip transmits a receiving clock to the first under-screen chip through the second cross-screen signal line.
[0027] The first SPI interface and the first edge detection module can transmit data to each other, and the second SPI interface and the second edge detection module can transmit data to each other.
[0028] The first device and the second device are two devices located under the second screen. For example, the first device is a first sensor, and the second device is a second sensor. The first sensor and the second sensor here are only exemplary devices, and can also be other types of devices.
[0029] The first sensor and the second under-screen chip can transmit SPI signals to each other, and the second sensor and the second under-screen chip can also transmit SPI signals to each other.
[0030] The signals sent between the first under-screen chip and the second under-screen chip are transmitted through the cross-screen signal line. For example, the first received data is transmitted through the first cross-screen signal line, and the received clock is transmitted through the second cross-screen signal line.
[0031] Figure 3 A further schematic diagram of the SPI signal cross-screen receiving scheme of the present invention is shown. The application processor receives the SPI data input signal from the first under-screen chip. If the data comes from two devices, namely the first device and the second device, the application processor receives the first SPI data input signal SPI1_DI and the second SPI data input signal SPI2_DI from the first under-screen chip.
[0032] The first SPI data input signal SPI1_DI and the second SPI data input signal SPI2_DI are specifically obtained in the following manner: The first device and the second device are, for example, a first sensor and a second sensor respectively. The first sensor and the second sensor are located under the second screen, for example, they can be one or more of the following: an accelerometer, a proximity sensor, a gyroscope, a light sensor, and a temperature sensor.
[0033] The first device sends the first SPI data input signal SPI1_DI and the first SPI clock signal SPI1_SCLK to the data receiving module in the second under-screen chip; the second device sends the second SPI data input signal SPI2_DI and the second SPI clock signal SPI2_SCLK to the data receiving module in the second under-screen chip.
[0034] When the data receiving module communicates with the first device and the second device, it can be known whether the first device and the second device are in a data sending state or a data receiving state. When the data is received from the first device or the second device, the received data is considered valid. Therefore, the data in this state can be marked as valid data.
[0035] For example, the first SPI flag SPI1_DI_VLD is used to mark whether the first SPI data input signal SPI1_DI received by the data receiving module from the first device is valid. For example, if it is valid, the first SPI flag SPI1_DI_VLD is set to 1, otherwise it is set to 0. The data receiving module sets the first SPI data input signal SPI1_DI ( Figure 3 middle ) and the first SPI marker SPI1_DI_VLD ( Figure 3 middle ) is sent to the framing and sending module.
[0036] Further, the second SPI flag SPI2_DI_VLD is used to mark whether the second SPI data input signal SPI2_DI received by the data receiving module from the second device is valid. For example, if it is valid, the second SPI flag SPI2_DI_VLD is set to 1, otherwise it is set to 0. The data receiving module sets the second SPI data input signal SPI2_DI ( Figure 3 middle ) and the second SPI flag SPI2_DI_VLD ( Figure 3 middle ) is sent to the framing and sending module.
[0037] The framing and sending modules follow The sequence is added with a start flag S and an end flag E, and the information is assembled into a frame of data. It is sent to the receiving and de-framing module in the first under-screen chip through the first cross-screen signal line. In the present invention, the cross-screen signal line refers to a signal line passing through the hinge.
[0038] Whether to store the first SPI data input signal SPI1_DI into a first First In First Out (FIFO) module is determined according to whether the first SPI flag SPI1_DI_VLD indicates validity.
[0039] Whether to store the second SPI data input signal SPI2_DI into the second FIFO module is determined according to whether the second SPI flag SPI2_DI_VLD indicates validity.
[0040] Finally, the application processor reads the first SPI data input signal SPI1_DI and the second SPI data input signal SPI2_DI by accessing the first FIFO module and the second FIFO module.
[0041] Figure 4 The flow chart of the SPI signal cross-screen receiving method of the present invention is shown. The SPI signal cross-screen receiving method of the present invention is applied to the application processor under the first screen to receive the SPI signal from at least the first device under the second screen, and the first device sends the first SPI data input signal and the first SPI clock signal to the data receiving module in the chip under the second screen; according to whether the first SPI data input signal is valid, the data receiving module determines the value of the first SPI tag, and sends the first SPI data input signal and the first SPI tag to the framing and sending module.
[0042] The framing and sending module sends frame data including at least a first SPI data input signal and a first SPI tag to the receiving and deframing module in the first under-screen chip through the first cross-screen signal line; if the first SPI tag indicates that the first SPI data input signal is valid, the first SPI data input signal is stored in the first FIFO module for access by the application processor.
[0043] Preferably, the first cross-screen chip makes the first SPI data input signal comply with SPI protocol rules by adding configurable virtual bits.
[0044] Preferably, the frame data includes SPI data input signals and SPI tags sent by more than two devices.
[0045] Furthermore, the information sent by the data receiving module to the framing and sending module does not include the SPI clock signal, especially the first SPI clock signal.
[0046] Therefore, compared with the traditional solution, the present invention transmits information through one cross-screen signal line from two cross-screen signal lines that receive SPI signals. The more SPI interfaces there are, the more cross-screen signal lines that can be replaced. Generally, if there are n SPI interfaces, then compared with the traditional solution, 2n cross-screen signal lines are required to realize cross-screen reception of SPI signals, while the present invention only requires 2 cross-screen signal lines, where n is a positive integer.
[0047] In order to better illustrate the present invention, numerous specific details are provided in the above specific embodiments. It should be understood by those skilled in the art that the present invention can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present invention.
[0048] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for receiving SPI signals across screens, wherein an application processor under a first screen receives an SPI signal from at least a first device under a second screen, and wherein: The first device sends a first SPI data input signal and a first SPI clock signal to a data receiving module in the second under-screen chip; The data receiving module determines the value of the first SPI tag according to whether the first SPI data input signal is valid, and sends the first SPI data input signal and the first SPI tag to the framing and sending module; The framing and sending module sends the frame data including at least the first SPI data input signal and the first SPI tag to the receiving and deframing module in the first under-screen chip through the first cross-screen signal line; If the first SPI flag indicates that the first SPI data input signal is valid, the first SPI data input signal is stored in the first FIFO module for access by the application processor.
2. The SPI signal cross-screen receiving method according to claim 1, wherein: The frame data includes SPI data input signals and SPI tags sent by more than two devices.
3. The SPI signal cross-screen receiving method according to claim 2, characterized in that: The first under-screen chip obtains the receiving clock from the second under-screen chip through the second cross-screen signal line.
4. The SPI signal cross-screen receiving method according to claim 3, characterized in that: The first device is a first sensor.
5. The SPI signal cross-screen receiving method according to claim 4, characterized in that: The frame data also includes a start mark and an end mark.
6. The SPI signal cross-screen receiving method according to claim 5, characterized in that: The information sent by the data receiving module to the framing and sending module does not include the first SPI clock signal.
7. The SPI signal cross-screen receiving method according to claim 6, characterized in that: The first cross-screen chip makes the first SPI data input signal comply with the SPI protocol rules by adding configurable virtual bits.
8. The SPI signal cross-screen receiving method according to claim 7, characterized in that: The first device is an accelerometer, a proximity sensor, a gyroscope, a light sensor, or a temperature sensor.
9. The SPI signal cross-screen receiving method according to claim 8, characterized in that: The application processor and the first under-screen chip are both located under the first screen; The second under-screen chip and the first device are both located under the second screen.
10. A foldable dual-screen electronic device, comprising a first screen and a second screen, characterized in that: Also included is an application processor and a first under-screen chip both located under the first screen, and a second under-screen chip and a first device both located under the second screen; When the application processor under the first screen receives the SPI signal from at least the first device under the second screen, the SPI signal cross-screen reception method according to any one of claims 1 to 8 is applied.
Citation Information
Patent Citations
Control method and electronic equipment
CN112130799A
SPI-based communication method and device, electronic equipment and storage medium
CN112822002A
Data writing method based on SPI communication, electronic terminal and storage medium
CN115794699A
Folding screen system and signal transmission method
CN117827727A
I2C signal transmission method and foldable device
CN119342134A