Display control method, display control device, and storage medium

By controlling the Mini LED chip via the SPI protocol, and combining closed buffering and half-transmission interrupt mode, the issues of smoothness and transmission speed in Mini LED display technology are solved, achieving efficient grayscale data transmission and reducing costs.

CN115617287BActive Publication Date: 2026-07-24BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110797672.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-14
Publication Date
2026-07-24
Estimated Expiration
2041-07-14

Smart Images

  • Figure CN115617287B_ABST
    Figure CN115617287B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a display control method, a display control device and a storage medium, which input grayscale data into a Mini LED driving chip through SPI, control a Mini LED dot matrix to display a pattern mapped by the grayscale data, so as to meet the requirements of smoothness and transmission speed of the Mini LED dot matrix display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of image display, and more particularly to a display control method, display control device, and storage medium. Background Technology

[0002] Mini-light emitting diodes (Mini LEDs), as a next-generation display technology, offer advantages over traditional LED display technologies, including higher brightness, better luminous efficiency, and lower power consumption. Based on these advantages, Mini LED display technology is increasingly being used in the field of terminal display control.

[0003] When using Mini LED display technology for display control, compared to traditional LED technology, a significantly larger number of Mini LEDs need to be cascaded, and the requirements for data transmission smoothness are also increasingly stringent. The increased number of Mini LEDs and the need for improved data transmission smoothness result in a substantial increase in the amount of data to be transmitted. Therefore, control methods using high-speed chips such as Field Programmable Gate Arrays (FPGAs) or dedicated control chips to control cascaded Mini LED chips cannot meet the requirements for smoothness and transmission speed. Summary of the Invention

[0004] To overcome the problems existing in related technologies, this disclosure provides a display control method, a display control device, and a storage medium.

[0005] According to a first aspect of the present disclosure, a display control method is provided, comprising:

[0006] Acquire grayscale data of the pattern to be displayed; input the grayscale data to the Mini LED driver chip via the serial peripheral interface SPI to control the Mini LED dot matrix to display the pattern mapped by the grayscale data.

[0007] In one implementation, the grayscale data is input to the Mini LED driver chip based on SPI, including:

[0008] The grayscale data is input to the Mini LED driver chip via the SPI clock signal line SCLK and the SPI master output / slave input data line MOSI.

[0009] In one implementation, the SPI-based clock signal line SCLK and the SPI MOSI input the grayscale data to the Mini LED driver chip, including:

[0010] The clock frequency of SCLK, the byte length of grayscale data input to the Mini LED driver chip via MOSI, and the transmission frame rate are determined. Based on the transmission frame rate of the grayscale data, the duration corresponding to the transmission cycle of the grayscale data is determined, and based on the clock frequency and the byte length of the grayscale data, the effective transmission duration of the grayscale data is determined. Based on the duration corresponding to the transmission cycle and the effective transmission duration, the grayscale data is transmitted to the Mini LED driver chip in a closed-loop buffer manner.

[0011] In one implementation, based on the duration corresponding to the transmission period and the effective transmission duration, the grayscale data is transmitted to the Mini LED driver chip in a closed-loop buffer manner, including:

[0012] Based on the effective transmission duration, the duration of a single closed buffer cycle for transmitting data in a half-transmission interrupt mode is determined; based on the effective transmission duration, the duration of the single closed buffer cycle, and the duration corresponding to the transmission cycle, the grayscale data is transmitted to the Mini LED driver chip.

[0013] In one embodiment, transmitting the grayscale data to the Mini LED driver chip based on the effective transmission duration, the duration of a single closed buffer cycle, and the duration corresponding to the transmission cycle includes:

[0014] At the beginning of the current transmission cycle, the grayscale data cached in the first closed buffer cycle is transmitted to the Mini LED driver chip. After the effective transmission duration is reached, the grayscale data cached in the first closed buffer cycle is cleared, and empty data is transmitted to the Mini LED driver chip for the duration of the closed buffer cycle. This process continues until the beginning of the next transmission cycle is reached, at which point the grayscale data to be transmitted is filled into the closed buffer for transmission.

[0015] According to a second aspect of the present disclosure, a display control device is provided, comprising:

[0016] An acquisition unit is used to acquire grayscale data of the pattern to be displayed; a display unit is used to input the grayscale data to a Mini LED driver chip based on a serial peripheral interface SPI, so as to control the Mini LED dot matrix to display the pattern mapped by the grayscale data.

[0017] In one embodiment, the display unit is configured to:

[0018] The grayscale data is input to the Mini LED driver chip via the SPI clock signal line SCLK and the SPI master output / slave input data line MOSI.

[0019] In one embodiment, the display unit is configured to:

[0020] The clock frequency of SCLK, the byte length of grayscale data input to the Mini LED driver chip via MOSI, and the transmission frame rate are determined. Based on the transmission frame rate of the grayscale data, the duration corresponding to the transmission cycle of the grayscale data is determined, and based on the clock frequency and the byte length of the grayscale data, the effective transmission duration of the grayscale data is determined. Based on the duration corresponding to the transmission cycle and the effective transmission duration, the grayscale data is transmitted to the Mini LED driver chip in a closed-loop buffer manner.

[0021] In one embodiment, the display unit is configured to:

[0022] Based on the effective transmission duration, the duration of a single closed buffer cycle for transmitting data in a half-transmission interrupt mode is determined; based on the effective transmission duration, the duration of the single closed buffer cycle, and the duration corresponding to the transmission cycle, the grayscale data is transmitted to the Mini LED driver chip.

[0023] In one embodiment, the display unit is configured to:

[0024] At the beginning of the current transmission cycle, the grayscale data cached in the first closed buffer cycle is transmitted to the Mini LED driver chip. After the effective transmission duration is reached, the grayscale data cached in the first closed buffer cycle is cleared, and empty data is transmitted to the Mini LED driver chip for the duration of the closed buffer cycle. This process continues until the beginning of the next transmission cycle is reached, at which point the grayscale data to be transmitted is filled into the closed buffer for transmission.

[0025] According to a third aspect of the present disclosure, a display control device is provided, comprising:

[0026] A processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the display control method described in the first aspect or any embodiment of the first aspect.

[0027] According to a fourth aspect of the present disclosure, a storage medium is provided, the storage medium storing instructions that, when executed by a processor of a terminal, enable the terminal to perform the display control method described in the first aspect or any one of the embodiments of the first aspect.

[0028] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: In the embodiments of this disclosure, grayscale data is input to the Mini LED driver chip via SPI to control the Mini LED dot matrix display to display the pattern mapped by the grayscale data, which can meet the requirements of Mini LED dot matrix display in terms of smoothness and transmission speed.

[0029] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0030] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0031] Figure 1 This is a schematic diagram illustrating a one-to-one master-slave device connection based on an exemplary embodiment.

[0032] Figure 2 This is a schematic diagram illustrating a master-slave device one-to-many working mode based on an exemplary embodiment.

[0033] Figure 3 This is a flowchart illustrating a display control method according to an exemplary embodiment.

[0034] Figure 4 This is a schematic diagram illustrating a grayscale data transmission process according to an exemplary embodiment.

[0035] Figure 5 This is a schematic diagram illustrating a grayscale data transmission process according to an exemplary embodiment.

[0036] Figure 6 This is a flowchart illustrating a display control method according to an exemplary embodiment.

[0037] Figure 7 This is a schematic diagram illustrating the arrangement of Mini LEDs in the back cover of a mobile phone according to an exemplary embodiment.

[0038] Figure 8 This is a schematic diagram of cascaded Mini LED chips according to an exemplary embodiment.

[0039] Figure 9 This is a flowchart illustrating a display control method according to an exemplary embodiment.

[0040] Figure 10 This is a schematic diagram of a closed buffer according to an exemplary embodiment.

[0041] Figure 11This is a schematic diagram of the waveform corresponding to grayscale data according to an exemplary embodiment.

[0042] Figure 12 This is a block diagram illustrating a display control device according to an exemplary embodiment.

[0043] Figure 13 This is a block diagram illustrating a display control device according to an exemplary embodiment. Detailed Implementation

[0044] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0045] When using Mini LED display technology for display control, compared to traditional LED technology, a significantly larger number of Mini LEDs need to be cascaded, and the requirements for data transmission smoothness are also increasingly stringent. The increased number of Mini LEDs and the need for improved data transmission smoothness result in a substantial increase in the amount of data to be transmitted. Therefore, the control methods for cascaded Mini LED chips face higher demands in terms of accuracy, smoothness, transmission rate, and cost.

[0046] This implementation analyzes control methods for cascaded Mini LED chips in related technologies. While pulse width modulation (PWM) can generally meet the requirements for controlling cascaded Mini LED chips, some platforms in related technologies suffer from insufficient accuracy. Using an Inter-Integrated Circuit (I2C) bus... 2While using a Universal Asynchronous Receiver / Transmitter (UART) to control cascaded Mini LED chips can meet the requirements for accuracy and smoothness, the special status bits in the transmission protocol cannot effectively simulate a carrier wave, rendering these two control methods unsuitable for controlling cascaded Mini LED chips. Furthermore, using control methods such as high-speed FPGA chips or dedicated control chips not only fails to meet the requirements for smoothness and transmission speed but also increases costs. Therefore, in this embodiment, using a Serial Peripheral Interface (SPI) (also known as the SPI protocol) to control cascaded Mini LED chips not only satisfies the requirements for accurate transmission of control and data signals from the Mini LED chips but also meets the requirements for smoothness and transmission rate during transmission. Simultaneously, since no external controller is required, the cost requirement is also met.

[0047] Figure 1 This is a schematic diagram illustrating a one-to-one master-slave device connection based on an exemplary embodiment. Figure 2 This is a schematic diagram illustrating a one-to-many master-slave device operation mode based on an exemplary embodiment. Figure 1 and Figure 2 In SPI master and slave devices, there are generally four lines: a clock signal line (Serial Clock, SCLK), a master input / slave output data line (Master Input / Slave Output, MISO), a master output / slave input data line (Master Output / Slave Input, MOSI), and a slave select line (SSS), which is active low. See also... Figure 1 When an SPI master device controls one SPI slave device, the four lines of the SPI master device and the SPI slave device are connected one-to-one. When an SPI master device controls multiple SPI slave devices, refer to [the relevant documentation]. Figure 2In an SPI master device, an additional slave select line (SS) equal to the number of SPI slave devices being controlled is added to switch the SPI slave devices controlled by the master. Since the SPI protocol is applied to a single-master device, only one central device on the bus can initiate communication. In other words, when the SPI master wants to read / write to a slave device, it first needs to pull the corresponding SS line of the slave device low, then start sending a working pulse to the clock line. At the corresponding pulse time, the master sends a signal to the MOSI line to "write" to the slave device. Similarly, it can sample the slave device through the MISO line to "read" from the slave device. Therefore, the master and slave devices must use the same operating parameters—SCLK, clock polarity (CPOL), and clock phase (CPHA)—to function properly. If there are multiple slave devices, and each slave device uses different operating parameters, the master device must reconfigure SCLK, CPOL, and CPHA after completing the read / write operation on the current slave device. In summary, the SPI protocol does not specify a maximum transmission rate, has no address scheme, and does not specify a communication acknowledgment mechanism or flow control rules. When controlling cascaded Mini LED chips via the SPI protocol, the control process needs to be set up manually to transmit each frame of data to the cascaded Mini LED chips at a certain rate.

[0048] Taking the use of Mini LED display technology in a terminal as an example, depending on the size of the terminal screen, multiple cascaded Mini LED chips need to be arranged. Each Mini LED chip includes a Mini LED dot matrix composed of Mini LED lights. Data for each frame is then transmitted to the Mini LED dot matrix at a certain rate. The amount of data M for each frame can be determined based on the grayscale data of the pattern to be displayed on the terminal. Assuming X frames are displayed per second, the corresponding data volume to ensure smoothness is M*X. Furthermore, as the size of the terminal screen increases, the number of Mini LED lights also increases, correspondingly increasing the requirement for smoothness and causing the data volume to increase exponentially. It is evident that due to I... 2 The C-rate has limitations and may cause insufficient data throughput, leading to I... 2 C cannot meet the control requirements of cascaded Mini LED chips.

[0049] In view of this, embodiments of this disclosure provide a display control method that acquires grayscale data of a pattern to be displayed on a terminal, inputs the grayscale data to a Mini LED driver chip using SPI, and drives a Mini LED dot matrix to display the pattern mapped by the grayscale data through the Mini LED driver chip. In this way, the data volume of each frame can be transmitted to the cascaded Mini LED chips at a certain rate, thereby meeting the requirements for smoothness and transmission speed.

[0050] Figure 3 This is a flowchart illustrating a display control method according to an exemplary embodiment. Figure 3 As shown, the display control method includes the following steps.

[0051] In step S11, the grayscale data of the pattern to be displayed is obtained.

[0052] In this embodiment, the pattern to be displayed can be user-defined, a default pattern in the terminal, or a pattern sent to the terminal by another terminal. The pattern can be an image or a changing effect displayed via Mini LED. Providing users with both default and custom patterns enhances the user experience.

[0053] In step S12, grayscale data is input to the Mini LED driver chip via SPI to control the Mini LED dot matrix display of the grayscale data mapping pattern.

[0054] The SPI-based SCLK sends a continuous clock signal to the Mini LED driver chip, and inputs grayscale data into the Mini LED driver chip through the SPI MOSI. The Mini LED driver chip controls the Mini LED dot matrix display to display the pattern mapped by the grayscale data according to the clock signal.

[0055] In this embodiment of the disclosure, the reasons for choosing SPI to transmit grayscale data include:

[0056] First, since the SPI frequency is configurable, the SPI frequency can be configured to meet the transmission rate requirements during the transmission of grayscale data.

[0057] Secondly, there are no special status bits in the SPI protocol. The high and low levels on the MOSI pin depend entirely on the data to be sent. That is, the purpose of controlling the MOSI pin is achieved by controlling the data to be sent. This feature enables grayscale data to be input to the Mini LED driver chip via the MOSI pin of SPI.

[0058] Third, SPI supports DMA output. During display control, the real-time display of the pattern requires continuous input of grayscale data corresponding to the pattern to be displayed into the Mini LED driver chip to meet the requirements of smoothness.

[0059] For the reasons mentioned above, SPI is selected to input the grayscale data of the pattern to be displayed into the Mini LED driver chip. The Mini LED driver chip drives the Mini LED dot matrix to display the pattern mapped by the grayscale data, thereby meeting the requirements of smoothness and transmission speed of Mini LED dot matrix display.

[0060] Furthermore, based on SPI's SCLK and SPI's MOSI, grayscale data is input into the Mini LED driver chip.

[0061] Figure 4 This is a schematic diagram illustrating a grayscale data transmission process according to an exemplary embodiment. Figure 4 As shown, the bus controller acquires the grayscale data of the pattern to be displayed, pre-configures the SPI SCLK according to the transmission rate requirements, for example, 8MHz, and configures the MOSI data output mode, such as serial output. Through the configured SCLK and MOSI, the grayscale data of the pattern to be displayed is continuously sent to the Mini LED driver chipset in a closed-loop buffer format. The Mini LED driver chipset then drives the Mini LED dot matrix to display the pattern mapped from the grayscale data.

[0062] In one implementation, taking a mobile phone in the terminal as an example, Figure 5 This is a schematic diagram illustrating a grayscale data transmission process according to an exemplary embodiment. Figure 5 As shown, mobile phone I 2 The STMicroelectronics interface (C-interface) sends grayscale data of the pattern to be displayed to the ST Single-Chip Microcomputer (MCU). The ST MCU communicates with the Mini LED driver chipset via the SPI protocol. The ST MCU configures the SCLK and MOSI of the SPI based on the grayscale data, and then sends the grayscale data to the Mini LED driver chipset using the configured SCLK and MOSI. The Mini LED driver chipset converts the grayscale data into scan and data signals according to the clock data, driving the Mini LED dot matrix to display the pattern mapped by the grayscale data. In this embodiment, the grayscale data output method can be pre-configured, for example, outputting the grayscale data serially, or configuring the transmission mode as an 8-bit / s high-order priority mode.

[0063] Figure 6 This is a flowchart illustrating a display control method according to an exemplary embodiment. Figure 6 As shown in this embodiment, grayscale data is input into the Mini LED driver chip based on SPI SCLK and SPI MOSI, including the following steps.

[0064] In step S21, the clock frequency of SCLK, the byte length of grayscale data input to the Mini LED driver chip via MOSI, and the transmission frame rate are determined.

[0065] In this embodiment, the clock frequency of SCLK, the byte length of grayscale data input to the Mini LED driver chip via MOSI, and the transmission frame rate can be set according to actual needs.

[0066] In step S22, the duration corresponding to the transmission period is determined based on the transmission frame rate of the grayscale data, and the effective transmission duration of the grayscale data is determined based on the clock frequency and the byte length of the grayscale data.

[0067] In this embodiment, based on the fact that the transmission frame rate is the reciprocal of the transmission period, the transmission frame rate is used to determine the duration corresponding to the transmission period of grayscale data, that is, the duration taken to complete one transmission between the SPI and the Mini LED driver chip. Clock frequency is generally measured in bits. The byte length of grayscale data is converted to the corresponding number of data bits using the formula 1 byte = 8 bits. The effective transmission time required to transmit grayscale data is calculated using the clock frequency and the byte length of grayscale data. The formula is: Effective transmission time = byte length of grayscale data * 8 / clock frequency. In other words, it is the duration required to complete the transmission of all grayscale data at the current clock frequency. In other words, in the data transmitted between the SPI and the Mini LED driver chip, grayscale data is the valid data, and the duration of transmitting grayscale data is called the effective transmission time.

[0068] In one implementation, taking a mobile phone as an example of displaying a pattern using Mini LED display technology, the process of controlling cascaded Mini LED chips is explained. Figure 7 This is a schematic diagram illustrating the arrangement of Mini LEDs in the back cover of a mobile phone according to an exemplary embodiment. See also... Figure 7 The overall dimensions of the phone's back cover (including the frame) are 157.3mm * 72.5mm. The clearance between the MiniLED and the edge of the phone is 5mm, and the spacing between each MiniLED is 3mm. The back cover includes a camera module, and the dimensions of the camera module (excluding rounded corners) are 32.48mm * 32.48mm. Figure 7 As can be seen, the phone's back cover is divided into an upper and lower section. The upper section includes the camera module and contains 11 rows and 10 columns of Mini LEDs, totaling 110 Mini LEDs. The lower section contains 39 rows and 21 columns of Mini LEDs, totaling 819 Mini LEDs. Therefore, the entire back cover requires 110 + 819 = 929 Mini LEDs.

[0069] Figure 8 This is a schematic diagram illustrating cascaded Mini LED chips according to an exemplary embodiment. For ease of description... Figure 7For the layout specifications of the Mini LED lights, please refer to [link / reference]. Figure 8 In this embodiment, the Mini LED chips can be cascaded in any form. Taking the cascading of two Mini LED chips as an example, the first Mini LED chip is called chip A and the second Mini LED chip is called chip B. Chip A has 25 rows and 21 columns of Mini LED lights arranged in it, and chip B has 24 rows and 21 columns of Mini LED lights arranged in it.

[0070] In this embodiment, taking the control of 929 Mini LED lights as an example, the byte length of grayscale data is determined.

[0071] The amount of data sent per frame = Frame Start + Register + Data + Frame Stop.

[0072] The data consists of: Start (32 bytes), Register (66 bytes), Data (24 * 2 * 25 * 2 = 2400 bytes), and Stop (32 bytes). Therefore, each frame contains 2530 bytes of data, meaning the grayscale data is 2530 bytes long.

[0073] The byte lengths included in Start, Register, and Stop are fixed values ​​preset based on the data packet attributes. The Data size is determined based on the data to be transmitted for controlling the grayscale brightness display of the Mini LEDs in chips A and B.

[0074] In this implementation, with the SPI SCLK at 8MHz, the effective transmission time for transmitting grayscale data is determined to be 2.53ms based on the formula: effective transmission time = byte length of grayscale data * 8 / clock frequency.

[0075] If the transmission frame rate is 60 frames per second, which corresponds to a transmission cycle of 16.6ms, the total amount of data that needs to be transmitted to ensure smoothness is 2530 * 60 = 151800 bytes, approximately 148KB.

[0076] In step S23, grayscale data is transmitted to the Mini LED driver chip in a closed-loop buffer manner based on the duration corresponding to the transmission cycle and the effective transmission duration.

[0077] In this embodiment, to meet the requirements of real-time pattern display, an uninterrupted clock source is needed from SPI. However, SPI only has a SCLK signal during transmission. That is, the time required to complete the transmission of all grayscale data at the current clock frequency is only a portion of the total transmission time between SPI and the Mini LED driver chip. During the time without grayscale data transmission, SCLK has no signal, causing the SPI clock source to be interrupted. To ensure the uninterrupted clock source, this embodiment transmits empty data during the time without grayscale data transmission. The amount of empty data transmitted needs to be determined based on the duration of the transmission cycle and the effective transmission time.

[0078] In one implementation, grayscale data and empty data are transmitted to the Mini LED driver chip in a closed-loop buffer manner, thereby enabling SPI to provide an uninterrupted clock source.

[0079] Figure 9 This is a flowchart illustrating a display control method according to an exemplary embodiment. Figure 9 As shown in this embodiment, grayscale data is transmitted to the Mini LED driver chip in a closed-loop buffer manner based on the duration corresponding to the transmission cycle and the effective transmission duration, including the following steps.

[0080] In step S31, the duration of a single closed buffer cycle for transmitting data in half-transmission interrupt mode is determined based on the effective transmission duration.

[0081] In this embodiment of the disclosure, in order to provide an uninterrupted clock source for SPI, grayscale data and empty data are transmitted to the Mini LED driver chip in a closed-loop buffer manner. Transmitting grayscale data and empty data to the Mini LED driver chip in a closed-loop buffer manner can be understood as transmitting grayscale data within the effective transmission duration and transmitting empty data within the closed-loop buffer period other than the effective transmission duration.

[0082] For ease of control, a semi-transfer interrupt mode (Direct Memory Access, DMA) is used for transmission. This means that an interrupt is generated after all grayscale data has been transmitted, followed by the transmission of empty data of the same byte length as the grayscale data, and another interrupt is generated after the empty data is transmitted. The time between the start of transmission and the generation of the two interrupts is called the duration of a single closed buffer cycle. By counting the number of interrupts, the number of single closed buffer cycles is determined. Then, based on the total duration corresponding to the aforementioned number of single closed buffer cycles, it is determined whether the transmission cycle duration has been reached.

[0083] In step S32, grayscale data is transmitted to the Mini LED driver chip based on the effective transmission duration, the duration of a single closed buffer cycle, and the duration corresponding to the transmission cycle.

[0084] In this process, the effective transmission duration refers to the time spent transmitting grayscale data within the corresponding transmission cycle. The duration of transmitting grayscale data plus the duration of transmitting one empty data instance constitutes a single closed buffer cycle duration. The duration corresponding to the transmission cycle includes at least one single closed buffer cycle duration. When using DMA, twice the effective transmission duration is determined as the single closed buffer cycle duration. Based on the duration corresponding to the transmission cycle, the number of closed buffer cycle durations included within each transmission cycle is determined. Grayscale data transmission begins at the beginning of the first closed buffer cycle within the corresponding number of closed buffer cycle durations. After reaching the effective transmission duration, empty data is transmitted until the duration corresponding to the aforementioned number of closed buffer cycle durations is reached, completing the process of transmitting data within the current transmission cycle duration to the Mini LED driver chip.

[0085] In this embodiment of the disclosure, grayscale data is transmitted to the Mini LED driver chip based on the effective transmission duration, the duration of a single closed buffer cycle, and the duration corresponding to the transmission cycle. This means that the grayscale data cached in the first closed buffer cycle is transmitted to the Mini LED driver chip starting at the beginning of the current transmission cycle. This continues until the effective transmission duration is reached, after which the grayscale data cached in the first closed buffer cycle is cleared. Empty data is then transmitted during the remaining duration of the first closed buffer cycle, and empty data is transmitted to the Mini LED driver chip within the corresponding number of closed buffer cycles. This process continues until the beginning of the next transmission cycle is reached, at which point the grayscale data to be transmitted is refilled into the closed buffer, and the above grayscale data transmission process is repeated.

[0086] In one implementation, a circular buffer is used as an example to illustrate the process of transferring grayscale data from SPI to the MiniLED driver chip. The data to be transferred is divided into two different forms: grayscale data (also called valid data) and empty data. The half-transfer interrupt control of DMA is used to realize the alternating output of valid data and empty data throughout the transfer process. Continuing from the previous example, the length of the valid data is 2530 bytes, where one byte includes 8 bits, so the length of the valid data is 2530 * 8.

[0087] The clock frequency is 8MHz, so the effective transmission time is 2530*8 / 8MHz = 2.53ms.

[0088] Based on the DMA-based semi-transfer interrupt mode, the duration of a single closed buffer cycle is 2.53*2ms.

[0089] Based on the transmission cycle duration of 16.6ms and the single closed buffer cycle duration of 2.53ms*2, the required number of closed buffer cycles to transmit empty data to the Mini LED driver chip using the closed buffer cycle duration is 3, meaning the size of the empty data is the amount of data transmitted for 5 effective transmission cycles.

[0090] Figure 10 This is a schematic diagram illustrating the transfer of grayscale data using a circular buffer. (Example) Figure 10 As shown, at the start of the current transmission cycle, indicated by number 1, the grayscale data buffered within the first closed buffer cycle is transmitted to the Mini LED driver chip. After the effective transmission duration is reached, the grayscale data buffered within the first closed buffer cycle is cleared in number 1, and empty data is transmitted to the Mini LED driver chip during the remaining single closed buffer cycle durations. After the single closed buffer cycle durations corresponding to numbers 2 and 3, the next transmission cycle begins. At the start of the next transmission cycle, number 4, the grayscale data to be transmitted is refilled into the closed buffer for transmission.

[0091] In this embodiment, an X / Y Buffer is allocated, where the X Buffer contains 2530 bytes of valid data and the Y Buffer contains 2530 bytes of empty data. With an SPI SCLK of 8MHz, the effective transmission time for one buffer is approximately 2.53ms. Considering the X / Y Buffer as a whole, the DMA transmission time for half the data is also approximately 2.53ms, at which point an interrupt is generated, and the X Buffer is quickly cleared. From the start to the halfway point, 2.53ms have elapsed. At this point, the X Buffer is filled with empty data. Due to the circular buffer structure, the DMA operation does not stop. After three single closed buffer cycles, valid data can be filled in within the interrupt, thus resolving the clock continuity issue.

[0092] The pattern to be displayed is pre-loaded in the Linux Fireware segment. The driver loads the relevant pattern and uses SPI to send the corresponding grayscale data via MOSI, such as... Figure 11 The waveform diagram corresponding to the grayscale data shown is shown.

[0093] In this embodiment, displaying the pattern to be displayed using Mini LEDs can increase the visibility of the terminal and also enhance the atmosphere. For example, when a user is searching for the terminal, upon receiving a paging command, a pre-set flashing pattern is displayed on the terminal, making it easier for the user to find the terminal quickly. In one embodiment, Mini-LED display technology is used, with the back cover of the phone serving as the display carrier. A pre-edited pattern is displayed on the back cover to achieve a vibrant breathing effect, and it can also be used to display charging icons and dynamic interfaces.

[0094] Based on the same concept, embodiments of this disclosure also provide a display control device.

[0095] It is understood that the display control device provided in this disclosure includes hardware structures and / or software modules corresponding to each function in order to achieve the above-mentioned functions. In conjunction with the units and algorithm steps of the various examples disclosed in this disclosure, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of this disclosure.

[0096] Figure 12 This is a block diagram illustrating a display control device according to an exemplary embodiment. (Refer to...) Figure 12 The display control device 100 includes an acquisition unit 101 and a display unit 102.

[0097] Acquisition unit 101 is used to acquire grayscale data of the pattern to be displayed;

[0098] Display unit 102 is used to input grayscale data to the Mini LED driver chip based on SPI, so as to control the Mini LED dot matrix display of the grayscale data mapping pattern.

[0099] In this embodiment of the disclosure, the display unit is used for:

[0100] Based on SPI's SCLK and SPI's MOSI, grayscale data is input into the Mini LED driver chip.

[0101] In this embodiment of the disclosure, the display unit is used for:

[0102] Determine the clock frequency of SCLK, as well as the byte length and transmission frame rate of the grayscale data input from MOSI to the Mini LED driver chip;

[0103] Based on the transmission frame rate of grayscale data, the duration corresponding to the transmission cycle of grayscale data is determined, and based on the clock frequency and the byte length of grayscale data, the effective transmission duration of grayscale data is determined.

[0104] Based on the duration corresponding to the transmission cycle and the effective transmission duration, grayscale data is transmitted to the Mini LED driver chip in a closed buffer manner.

[0105] In this embodiment of the disclosure, the display unit 102 is used for:

[0106] Based on the effective transmission duration, determine the duration of a single closed buffer cycle when transmitting data in the half-transmission interrupt mode;

[0107] Based on the effective transmission duration, the duration of a single closed buffer cycle, and the duration corresponding to the transmission cycle, grayscale data is transmitted to the Mini LED driver chip.

[0108] In this embodiment of the disclosure, the display unit 102 is used for:

[0109] At the beginning of the current transmission cycle, the grayscale data cached in the first closed buffer cycle is transmitted to the Mini LED driver chip. After the effective transmission time is reached, the grayscale data cached in the first closed buffer cycle is cleared, and empty data is transmitted to the Mini LED driver chip for the duration of the closed buffer cycle. This process continues until the beginning of the next transmission cycle is reached, at which point the grayscale data to be transmitted is filled into the closed buffer for transmission.

[0110] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0111] Figure 13 This is a block diagram illustrating a display control device 200 according to an exemplary embodiment. For example, device 200 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0112] Reference Figure 13 The device 200 may include one or more of the following components: processing component 202, memory 204, power component 206, multimedia component 208, audio component 210, input / output (I / O) interface 212, sensor component 214, and communication component 216.

[0113] Processing component 202 typically controls the overall operation of device 200, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 202 may include one or more modules to facilitate interaction between processing component 202 and other components. For example, processing component 202 may include a multimedia module to facilitate interaction between multimedia component 208 and processing component 202.

[0114] Memory 204 is configured to store various types of data to support the operation of device 200. Examples of such data include instructions for any application or method operating on device 200, contact data, phonebook data, messages, pictures, videos, etc. Memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0115] The power supply component 206 provides power to the various components of the device 200. The power supply component 206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 200.

[0116] Multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 208 includes a front-facing camera and / or a rear-facing camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0117] Audio component 210 is configured to output and / or input audio signals. For example, audio component 210 includes a microphone (MIC) configured to receive external audio signals when device 200 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 204 or transmitted via communication component 216. In some embodiments, audio component 210 also includes a speaker for outputting audio signals.

[0118] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0119] Sensor assembly 214 includes one or more sensors for providing status assessments of various aspects of device 200. For example, sensor assembly 214 may detect the on / off state of device 200, the relative positioning of components such as the display and keypad of device 200, changes in the position of device 200 or a component of device 200, the presence or absence of user contact with device 200, the orientation or acceleration / deceleration of device 200, and temperature changes of device 200. Sensor assembly 214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 214 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0120] Communication component 216 is configured to facilitate wired or wireless communication between device 200 and other devices. Device 200 can access wireless networks based on communication standards, such as WiFi, 4G, or 5G, or combinations thereof. In one exemplary embodiment, communication component 216 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 216 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0121] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0122] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, which can be executed by a processor 220 of the device 200 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0123] It is understood that in this disclosure, "multiple" refers to two or more, and other quantifiers are similar. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. The singular forms "a," "the," and "the" are also intended to include the plural forms unless the context clearly indicates otherwise.

[0124] It is further understood that the terms "first," "second," etc., are used to describe various types of information, but this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and do not indicate a specific order or degree of importance. In fact, the expressions "first," "second," etc., are completely interchangeable. For example, without departing from the scope of this disclosure, first information can also be referred to as second information, and similarly, second information can also be referred to as first information.

[0125] It can be further understood that, unless otherwise specified, "connection" includes both direct connections where no other components exist between the two parties and indirect connections where other components exist between them.

[0126] It is further understood that although operations are described in a specific order in the accompanying drawings in the embodiments of this disclosure, this should not be construed as requiring these operations to be performed in the specific order or serial order shown, or requiring all of the shown operations to be performed to obtain the desired result. In certain environments, multitasking and parallel processing may be advantageous.

[0127] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following scope of claims.

[0128] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A display control method, characterized in that, include: Obtain the grayscale data of the pattern to be displayed; Based on the serial peripheral interface SPI, empty data is transmitted during the time when there is no grayscale data transmission, and the grayscale data and the empty data are input into the Mini LED driver chip in the form of a closed buffer to control the Mini LED dot matrix to display the pattern mapped by the grayscale data in real time. The step of inputting the grayscale data and the empty data into the Mini LED driver chip in the form of a closed buffer includes: transmitting grayscale data within the effective transmission duration, and transmitting empty data within the closed buffer period duration other than the effective transmission duration. The effective transmission duration refers to the duration of transmitting grayscale data within the duration corresponding to the transmission period, and the duration of a single closed buffer period refers to the duration from the start of transmission to the occurrence of two interrupts.

2. The display control method according to claim 1, characterized in that, Based on SPI, the grayscale data is input to the Mini LED driver chip, including: The grayscale data is input to the Mini LED driver chip via the SPI clock signal line SCLK and the SPI master output / slave input data line MOSI.

3. The display control method according to claim 2, characterized in that, The SPI-based clock signal line SCLK and the SPI MOSI input the grayscale data into the Mini LED driver chip, including: Determine the clock frequency of SCLK, as well as the byte length and transmission frame rate of the grayscale data input from MOSI to the Mini LED driver chip; Based on the transmission frame rate of the grayscale data, the duration corresponding to the transmission period of the grayscale data is determined, and based on the clock frequency and the byte length of the grayscale data, the effective transmission duration of the grayscale data is determined. Based on the duration corresponding to the transmission cycle and the effective transmission duration, the grayscale data is transmitted to the Mini LED driver chip in a closed buffer manner.

4. The display control method according to claim 3, characterized in that, Based on the duration corresponding to the transmission period and the effective transmission duration, the grayscale data is transmitted to the Mini LED driver chip in a closed-loop buffer manner, including: Based on the effective transmission duration, determine the duration of a single closed buffer cycle when transmitting data in the half-transmission interruption mode; Based on the effective transmission duration, the duration of a single closed buffer cycle, and the duration corresponding to the transmission cycle, the grayscale data is transmitted to the Mini LED driver chip.

5. The display control method according to claim 4, characterized in that, The step of transmitting the grayscale data to the Mini LED driver chip based on the effective transmission duration, the duration of a single closed buffer cycle, and the duration corresponding to the transmission cycle includes: At the start of the current transmission cycle, the grayscale data cached in the first closed buffer cycle is transmitted to the MiniLED driver chip. After the effective transmission duration is reached, the grayscale data cached in the first closed buffer cycle is cleared, and empty data is transmitted to the MiniLED driver chip for the duration of the closed buffer cycle. This process continues until the start of the next transmission cycle is reached, at which point the grayscale data to be transmitted is filled into the closed buffer for transmission.

6. A display control device, characterized in that, include: The acquisition unit is used to acquire the grayscale data of the pattern to be displayed; The display unit is used to transmit empty data during periods when there is no grayscale data transmission based on the serial peripheral interface SPI, and input the grayscale data and the empty data into the Mini LED driver chip in the form of a closed buffer to control the Mini LED dot matrix to display the pattern mapped by the grayscale data in real time. The display unit is used to transmit grayscale data within the effective transmission duration and transmit empty data within the closed buffer cycle duration other than the effective transmission duration. The effective transmission duration refers to the duration of transmitting grayscale data within the duration corresponding to the transmission cycle, and the duration of a single closed buffer cycle refers to the duration from the start of transmission to the occurrence of two interruptions.

7. The display control device according to claim 6, characterized in that, The display unit is used for: The grayscale data is input to the Mini LED driver chip via the SPI clock signal line SCLK and the SPI master output / slave input data line MOSI.

8. The display control device according to claim 7, characterized in that, The display unit is used for: Determine the clock frequency of SCLK, as well as the byte length and transmission frame rate of the grayscale data input from MOSI to the Mini LED driver chip; Based on the transmission frame rate of the grayscale data, the duration corresponding to the transmission period of the grayscale data is determined, and based on the clock frequency and the byte length of the grayscale data, the effective transmission duration of the grayscale data is determined. Based on the duration corresponding to the transmission cycle and the effective transmission duration, the grayscale data is transmitted to the Mini LED driver chip in a closed buffer manner.

9. The display control device according to claim 8, characterized in that, The display unit is used for: Based on the effective transmission duration, determine the duration of a single closed buffer cycle when transmitting data in the half-transmission interruption mode; Based on the effective transmission duration, the duration of a single closed buffer cycle, and the duration corresponding to the transmission cycle, the grayscale data is transmitted to the Mini LED driver chip.

10. The display control device according to claim 9, characterized in that, The display unit is used for: At the beginning of the current transmission cycle, the grayscale data cached in the first closed buffer cycle is transmitted to the MiniLED driver chip. After the effective transmission duration is reached, the grayscale data cached in the first closed buffer cycle is cleared, and empty data is transmitted to the MiniLED driver chip for the duration of the closed buffer cycle. This process continues until the beginning of the next transmission cycle is reached, at which point the grayscale data to be transmitted is filled into the closed buffer for transmission.

11. A display control device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to execute the display control method according to any one of claims 1 to 5.

12. A storage medium, characterized in that, The storage medium stores instructions that, when executed by the terminal's processor, enable the terminal to perform the display control method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Display control method and display control system both supportive of gray level expansion

    CN103310735A

  • Display driver, and method for driving display panel

    CN106128357A

  • Mini-LED display screen splicing display driving system and driving display method

    CN112634824A

  • SPI serial interface based light controller

    KR1020140143983A