Display data processing method and device, chip, electronic device and storage medium
Through the combination of the preprocessing module and the PWM pulse module, the PWM signal is directly generated to control the LED screen display, which solves the problems of complexity and low frequency of the divider circuit in the existing technology, improves the display effect, and reduces the chip manufacturing cost.
Patent Information
- Application Number
- CN202410729388.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-05
AI Technical Summary
The divider circuit in the existing LED display driver chip is complex and difficult to speed up, resulting in low clock frequency, low gray scale accuracy, and poor picture precision. The divider circuit occupies a large area and increases manufacturing costs.
The pre-processing module is used to generate display data based on the growth sequence number, low gray non-dispersion threshold and the total number of sub-frames. The PWM pulse module generates PWM signals based on the comparison between the display data and the count value, eliminating the need for a divider circuit and directly controlling the picture of the pixel array. show.
It improves the display effect of the LED screen, reduces the chip manufacturing cost, and avoids the complexity and area occupation of the divider circuit.
Smart Images

Figure CN118314832B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display drive technology, and in particular to a display data processing method and device, a chip, an electronic device and a storage medium. Background Art
[0002] At present, LED (Light Emitting Diode) display screen driving systems generally use SPWM (Scrambled Pulse Wide Modulation, SPWM) technology to control each LED lamp bead in the LED display screen so that the LED display screen displays the corresponding frame image. The technical principle is to disperse the total conduction time of each lamp bead in a frame image into several shorter conduction times and evenly distribute them in several sub-frame images to increase the visual refresh rate of the LED display screen. The implementation process is to first evenly distribute the time of a frame image to N sub-frame images, and then divide the grayscale value of each LED lamp bead in the LED display screen on this frame image into N parts as evenly as possible and distribute them to N sub-frame images respectively. Finally, in each sub-frame image, the lighting time of each LED lamp bead in the LED display screen is the time corresponding to the grayscale value dispersed to the sub-frame image. The algorithm that distributes the grayscale on a frame image to all sub-frames as evenly as possible is also called the PWM scattering algorithm.
[0003] However, in the process of evenly distributing the grayscale on a frame to all subframes, division is required, and a divider is required for circuit implementation. However, in the field of chip design, the divider circuit is the most complex and the most difficult to speed up in the addition, subtraction, multiplication and division circuits. In the chip, data is stored in binary numbers, and binary division is the same as the decimal division we usually use, that is, shift and subtraction. For example, if the dividend is a 16-bit binary number and the divisor is an 8-bit binary number, first fill the high bits of the dividend with 8 zeros to expand it to a 24-bit number. Compare the 8-bit divisor with the high 8 bits of the 24-bit dividend. If the divisor is larger, shift the dividend left by 1 bit and fill the low bits with 0. Otherwise, subtract the divisor from the high 8 bits of the dividend to get a new dividend, and then shift it left by 1 bit and fill the low bits with 1. After executing this method 15 times, the low 16 bits of the dividend are the quotient and the high 8 bits are the remainder. Most LED display driver chips on the market now support up to 16-bit grayscale. When using a divider circuit to implement the PWM scattering algorithm in the above example, a total of 16 shift operations must be performed. If placed within one clock cycle, the delay of the combinational logic will be very large, which will result in a very long cycle of the clock GCLK to avoid timing violations, that is, the frequency of the clock GCLK used for the scattering algorithm is low. When the LED display driver chip displays grayscale, the minimum unit of PWM pulse width is a GCLK clock cycle, and the time of a frame is often fixed, such as 60Hz for 16.67ms. The use of a divider causes the GCLK frequency to be not too high, and the maximum number of grayscales that can be displayed in one frame is also limited to not too high. The final display is reflected in low grayscale accuracy, insufficient picture fineness, and poor display effect. If multiple clock cycles are used to implement the divider, the area overhead is too large. As in the above example, 24 D flip-flops are needed to cache the intermediate results after each shift. N cycles require N*24 D flip-flops. The area required by these D flip-flops is very large for the LED display driver chip, which increases the manufacturing cost of the chip. Summary of the invention
[0004] In view of the above problems, the purpose of the present invention is to provide a method and device, chip, electronic device and storage medium for processing display data. The preprocessing module generates display data according to the growth sequence number, the low gray non-dispersion threshold and the total number of subframes. The PWM pulse module compares the display data with the count value to generate a PWM signal, thereby eliminating the divider circuit and solving the problems caused by the divider circuit, improving the display effect of the LED screen and reducing the chip manufacturing cost.
[0005] According to one aspect of the present invention, there is provided a method for processing display data, comprising: generating a growth number of a current subframe according to a total number of subframes and a subframe number of a display frame, wherein the growth number indicates a priority of grayscale value display of any subframe in a display frame; generating a count value of the current subframe according to the growth number, the total number of subframes, a display length, and a configuration parameter of a chip, wherein the count value is reset to a value related to the growth number, the total number of subframes, the configuration parameter, and the display length upon receiving a row switching signal, wherein the display length is a time length of a display area of any display row in a subframe; generating a grayscale threshold according to the growth number, a low gray non-dispersion threshold, and the total number of subframes, and generating subframe data of the current subframe according to the grayscale threshold and the grayscale data, wherein the grayscale data is a grayscale sum of subframe data of all subframes in the display frame; and generating a high-level or low-level PWM signal according to a comparison result of the count value and the subframe data, wherein the PWM signal controls the screen display of a pixel array.
[0006] Optionally, in the step of generating a count value of the current subframe according to the growth sequence number, the total number of subframes, the display length and chip configuration parameters, the count value changes at the valid edge of the display clock, that is, at least one count value is generated in one subframe.
[0007] Optionally, the count value is obtained by corresponding different preset methods according to different stored values of the register of the chip.
[0008] Optionally, the count value is reset to a first preset value after receiving a row switching signal, and the first preset value is equal to the growth sequence number + (configuration parameter - 1) * total number of subframes.
[0009] Optionally, the step of generating a count value of the current subframe according to the growth sequence number, the total number of subframes, the display length and the configuration parameters of the chip includes: obtaining the display length of a display row of the subframe; judging whether the configuration parameters of the chip are equal to 1; if the configuration parameters of the chip are equal to 1, the count value is equal to the growth sequence number from the initial value, and then the count value is incremented by the total number of subframes for each valid edge of the display clock received, until the count value is updated to be equal to the growth sequence number + (display length - 1) * the total number of subframes, and then the count value is stopped from being updated; if the configuration parameters of the chip are not equal to 1, then continue to judge whether the configuration parameters of the chip are equal to the display length; if the configuration parameters of the chip are equal to the display length, the count value is equal to the growth sequence number + (display length - 1) * the total number of subframes, and then the count value is stopped from being updated; 1) * total number of subframes, and then each time a valid edge of the display clock is received, the count value will decrease by the total number of subframes until the count value is updated to be equal to the growth sequence number, and then the count value will stop updating; if the configuration parameter of the chip is not equal to the display length, the count value will be equal to the growth sequence number + (configuration parameter-1) * total number of subframes from the initial value, and then each time a valid edge of the display clock is received, the count value will decrease by the total number of subframes until it is updated to be equal to the growth sequence number; then at the next display clock valid edge, the count value is updated to be equal to the growth sequence number + configuration parameter * total number of subframes, and at each subsequent display clock valid edge, the count value is increased by the total number of subframes until the count value is updated to be equal to the growth sequence number + (display length-1) * total number of subframes, and then the count value update is stopped.
[0010] Optionally, the count value is reset to a second preset value after receiving a row switching signal, and the second preset value is equal to the growth sequence number+(display length-1)*total number of subframes.
[0011] Optionally, the step of generating a count value of the current subframe according to the growth sequence number, the total number of subframes, the display length and the configuration parameters of the chip includes: obtaining the display length of a display row of the subframe; judging whether the configuration parameters of the chip are equal to 1; if the configuration parameters of the chip are equal to 1, the count value is updated from an initial value equal to the growth sequence number + (display length - 1) * the total number of subframes to the growth sequence number at the valid edge of the first display clock, and then the count value is incremented by the total number of subframes for each valid edge of the display clock received until the count value is updated to be equal to the growth sequence number + (display length - 2) * the total number of subframes, and then the count value is stopped from being updated; if the configuration parameters of the chip are not equal to 1, continuing to judge whether the configuration parameters of the chip are equal to the display length; if the configuration parameters of the chip are equal to the display length, the count value is increased from an initial value equal to the growth sequence number Long sequence number + (display length - 1) * total number of subframes. Each time a valid edge of the display clock is received, the count value will decrease by the total number of subframes until the count value is updated to be equal to the growth sequence number, and then the count value will stop updating. If the configuration parameter of the chip is not equal to the display length, the count value will be equal to the growth sequence number + (display length - 1) * total number of subframes from the initial value. Each time a valid edge of the display clock is received, the count value will decrease by the total number of subframes until the count value is updated to be equal to the growth sequence number + (display length - configuration parameter) * total number of subframes, and then at the next display clock valid edge, the count value will be updated to be equal to the growth sequence number, and at each subsequent display clock valid edge, the count value will increase by the total number of subframes until the count value is updated to be equal to the growth sequence number + (display length - configuration parameter - 1) * total number of subframes, and then the count value will stop updating.
[0012] Optionally, in the step of generating a grayscale threshold according to the growth sequence number, the low gray non-dispersion threshold and the total number of subframes, the number of the grayscale thresholds is at least one.
[0013] Optionally, the grayscale threshold includes a first grayscale threshold, a second grayscale threshold and a third grayscale threshold; the first grayscale threshold = total number of subframes * low gray non-dispersed threshold; the second grayscale threshold = (growth sequence number + 1) * low gray non-dispersed threshold; the third grayscale threshold = growth sequence number * low gray non-dispersed threshold.
[0014] Optionally, the step of generating subframe data of the current subframe according to the grayscale threshold and grayscale data includes: determining whether the grayscale data is greater than or equal to the first grayscale threshold; if the grayscale data is greater than or equal to the first grayscale threshold, the subframe data is equal to the grayscale data; if the grayscale data is not greater than or equal to the first grayscale threshold, continue to determine whether the grayscale data is greater than or equal to the second grayscale threshold; if the grayscale data is not greater than or equal to the second grayscale threshold, the subframe data is equal to the growth sequence number plus the first grayscale threshold; if the grayscale data is not greater than or equal to the second grayscale threshold, continue to determine whether the grayscale data is greater than or equal to the third grayscale threshold; if the grayscale data is greater than or equal to the third grayscale threshold, the subframe data is equal to the product of the difference between the grayscale data and the third grayscale threshold and the total number of subframes plus the sum of the growth sequence numbers; if the grayscale data is not greater than or equal to the third grayscale threshold, the subframe data is equal to zero.
[0015] Optionally, in the step of generating a high-level or low-level PWM signal according to the comparison result of the count value and the sub-frame data, when the sub-frame data is greater than the count value, the PWM signal is a high level; when the sub-frame data is less than or equal to the count value, the PWM signal is a low level.
[0016] According to another aspect of the present invention, a display data processing device is provided, comprising: a subframe counting module, used to calculate and generate a subframe sequence number of a current display frame; a growth sequence number generating module, connected to the subframe counting module, used to generate a growth sequence number according to the subframe sequence number and the total number of subframes, wherein the growth sequence number represents the priority of the grayscale value display of any subframe in a display frame; a timing generator, connected to the growth sequence number generating module, used to generate a count value according to the growth sequence number, the total number of subframes, the display length and the configuration parameters of the chip, wherein the timing generator resets the count value to a value corresponding to the growth sequence number when receiving a row switching signal. The growth sequence number, the total number of subframes, the configuration parameters and the numerical value related to the display length, the display length is the time length of the display area of any display row in a subframe; a preprocessing module generates subframe data according to the growth sequence number, grayscale data, low gray non-dispersion threshold and the total number of subframes; a storage module, connected to the preprocessing module, for storing the grayscale data and providing it to the preprocessing module; a PWM pulse generating module, connected to the timing generator and the preprocessing module, generates a PWM signal according to the comparison result of the count value and the subframe data, and the PWM signal controls the screen display of the pixel array.
[0017] Optionally, each time the timing generator receives a valid edge of a display clock, the count value changes, and the timing generator generates at least one count value in a subframe.
[0018] Optionally, according to different stored values of the register of the chip, the timing generator obtains the count value by corresponding different preset methods.
[0019] Optionally, the timing generator resets the count value to a first preset value after receiving a row switching signal, where the first preset value is equal to the growth sequence number + (configuration parameter - 1) * total number of subframes.
[0020] Optionally, the step of the timing generator generating a count value according to the growth sequence number, the total number of subframes, the display length and the configuration parameters of the chip includes: obtaining the display length of a display row of a subframe; judging whether the configuration parameters of the chip are equal to 1; if the configuration parameters of the chip are equal to 1, the count value is equal to the growth sequence number from the initial value, and then the count value is incremented by the total number of subframes for each valid edge of the display clock received, until the count value is updated to be equal to the growth sequence number + (display length - 1) * the total number of subframes, and then the count value is stopped from being updated; if the configuration parameters of the chip are not equal to 1, then continue to judge whether the configuration parameters of the chip are equal to the display length; if the configuration parameters of the chip are equal to the display length, the count value is equal to the growth sequence number + (display length - 1) * the total number of subframes, and then the count value is stopped from being updated; The count value is equal to the growth sequence number + (configuration parameter - 1) * the total number of sub-frames, and then each time a valid edge of the display clock is received, the count value will decrease the total number of sub-frames until the count value is updated to be equal to the growth sequence number, and then the count value is stopped from being updated; if the configuration parameter of the chip is not equal to the display length, the count value is equal to the growth sequence number + (configuration parameter - 1) * the total number of sub-frames from the initial value, and then each time a valid edge of the display clock is received, the count value will decrease the total number of sub-frames until it is updated to be equal to the growth sequence number; then at the next display clock valid edge, the count value is updated to be equal to the growth sequence number + configuration parameter * the total number of sub-frames, and at each subsequent display clock valid edge, the count value is increased by the total number of sub-frames until the count value is updated to be equal to the growth sequence number + (display length - 1) * the total number of sub-frames, and then the count value is stopped from being updated.
[0021] Optionally, the timing generator resets the count value to a second preset value after receiving a row switching signal, and the second preset value is equal to the growth sequence number+(display length-1)*total number of subframes.
[0022] Optionally, the step of the timing generator generating a count value according to the growth sequence number, the total number of subframes, the display length and the configuration parameters of the chip includes: obtaining the display length of a display row of a subframe; judging whether the configuration parameters of the chip are equal to 1; if the configuration parameters of the chip are equal to 1, the count value is updated from an initial value equal to the growth sequence number + (display length - 1) * the total number of subframes at the valid edge of the first display clock to be equal to the growth sequence number, and then the count value is incremented by the total number of subframes for each valid edge of the display clock received until the count value is updated to be equal to the growth sequence number + (display length - 2) * the total number of subframes, and then the count value is stopped from being updated; if the configuration parameters of the chip are not equal to 1, continuing to judge whether the configuration parameters of the chip are equal to the display length; if the configuration parameters of the chip are equal to the display length, the count value is updated from an initial value equal to Growth sequence number + (display length - 1) * total number of subframes. Each time a valid edge of the display clock is received, the count value will decrease by the total number of subframes until the count value is updated to be equal to the growth sequence number, and then the count value will stop updating. If the configuration parameter of the chip is not equal to the display length, the count value will be equal to the growth sequence number + (display length - 1) * total number of subframes from the initial value. Each time a valid edge of the display clock is received, the count value will decrease by the total number of subframes until the count value is updated to be equal to the growth sequence number + (display length - configuration parameter) * total number of subframes, and then at the next valid edge of the display clock, the count value will be updated to be equal to the growth sequence number, and at each subsequent valid edge of the display clock, the count value will increase by the total number of subframes until the count value is updated to be equal to the growth sequence number + (display length - configuration parameter - 1) * total number of subframes, and then the count value will stop updating.
[0023] Optionally, the pre-processing module generates at least one grayscale threshold according to the growth sequence number, the low-gray non-dispersion threshold and the total number of subframes.
[0024] Optionally, the preprocessing module generates three grayscale thresholds according to the growth sequence number, the low gray non-dispersed threshold and the total number of subframes, including a first grayscale threshold, a second grayscale threshold and a third grayscale threshold; the first grayscale threshold = total number of subframes * low gray non-dispersed threshold; the second grayscale threshold = (growth sequence number + 1) * low gray non-dispersed threshold; the third grayscale threshold = growth sequence number * low gray non-dispersed threshold.
[0025] Optionally, the preprocessing module generates subframe data of the current subframe based on the grayscale threshold and grayscale data, including: determining whether the grayscale data is greater than or equal to the first grayscale threshold; if the grayscale data is greater than or equal to the first grayscale threshold, the subframe data is equal to the grayscale data; if the grayscale data is not greater than or equal to the first grayscale threshold, continue to determine whether the grayscale data is greater than or equal to the second grayscale threshold; if the grayscale data is not greater than or equal to the second grayscale threshold, the subframe data is equal to the growth sequence number plus the first grayscale threshold; if the grayscale data is not greater than or equal to the second grayscale threshold, continue to determine whether the grayscale data is greater than or equal to the third grayscale threshold; if the grayscale data is greater than or equal to the third grayscale threshold, the subframe data is equal to the product of the difference between the grayscale data and the third grayscale threshold and the total number of subframes plus the sum of the growth sequence number; if the grayscale data is not greater than or equal to the third grayscale threshold, the subframe data is equal to zero.
[0026] According to another aspect of the present invention, a display chip is provided, comprising the above-mentioned display data processing device.
[0027] According to another aspect of the present invention, there is provided an electronic device, comprising: a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the above-mentioned method for processing display data when executing the computer program.
[0028] According to another aspect of the present invention, there is provided a storage medium storing a computer program, wherein the computer program implements the steps of the above-mentioned method for processing display data when executed by a processor.
[0029] The present invention provides a method and device for processing display data, a chip, an electronic device and a storage medium. The preprocessing module calculates at least one grayscale threshold (preferably three) according to the growth sequence number, the low gray non-dispersion threshold and the total number of subframes, and then compares the total grayscale value with the grayscale threshold, and generates corresponding subframe data according to the comparison result. The PWM pulse module compares the subframe data with the count value to generate a PWM signal, thereby eliminating the divider circuit and solving the problems caused by the divider circuit, improving the display effect of the LED screen and reducing the chip manufacturing cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0031] Figure 1 A schematic diagram showing the structure of a device for processing display data according to an embodiment of the present invention is shown;
[0032] Figure 2A flow chart showing a method for processing display data according to an embodiment of the present invention is shown;
[0033] Figure 3 A schematic diagram showing a subframe sequence number generated by a subframe counting module in a display data processing device according to an embodiment of the present invention;
[0034] Figure 4 A schematic diagram showing a growth sequence number generated by a growth sequence number generating module in a display data processing device according to an embodiment of the present invention;
[0035] Figure 5 A flowchart showing an embodiment of a timing generator generating a count value in a display data processing device according to an embodiment of the present invention is shown;
[0036] Figure 6 A flowchart showing another embodiment of a timing generator generating a count value in a display data processing device according to an embodiment of the present invention is shown;
[0037] Figures 7a to 7e A schematic diagram showing several situations in which a timing generator in a display data processing device according to an embodiment of the present invention generates count values;
[0038] Figure 8 It shows a flow chart of generating sub-frame data by a pre-processing module in a display data processing device according to an embodiment of the present invention;
[0039] Figures 9a to 9d A waveform diagram showing an embodiment of a method for processing display data according to an embodiment of the present invention;
[0040] Figures 10a to 10d A waveform diagram showing another embodiment of a method for processing display data according to an embodiment of the present invention;
[0041] Fig.11a and Fig.11b A waveform diagram showing another embodiment of a method for processing display data according to an embodiment of the present invention;
[0042] Fig.12a and Figure 12b A waveform diagram showing still another embodiment of a method for processing display data according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0043] Various embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. In each of the accompanying drawings, the same elements are represented by the same or similar reference numerals. For the sake of clarity, the various parts in the accompanying drawings are not drawn to scale.
[0044] In the LED display screen driving system, SPWM technology is usually used to control the frame of the display screen. The principle is: divide a frame into multiple sub-frames, and disperse the total conduction time of each lamp bead in a frame into multiple shorter conduction times evenly distributed in multiple sub-frames. In addition, based on the SPWM technology, low gray non-dispersion technology will also be used, that is, firstly preset a non-dispersion threshold. When the gray value is lower than or equal to the non-dispersion threshold, this gray value is only displayed in a certain sub-frame, and the other sub-frames are not displayed. When the gray value is greater than the non-dispersion threshold, firstly assign the gray value to one or several sub-frames, so that the gray values in these sub-frames are equal to the non-dispersion threshold. If there are remaining gray values after being assigned to one or several sub-frames, the remaining gray value is assigned to another sub-frame.
[0045] The specific implementation of the present invention is further described in detail below in conjunction with the drawings and examples.
[0046] Figure 1 A schematic diagram of the structure of a display data processing device according to an embodiment of the present invention is shown.
[0047] refer to Figure 1 The display data processing device 100 of the present application includes: a subframe counting module 110, a growth sequence number generating module 120, a timing generator 130, a pre-processing module 140, a storage module 150 and a PWM pulse generating module 160.
[0048] Specifically, the subframe counting module 110 is used to calculate and generate the subframe number group_cnt of the current display frame. The growth number generating module 120 is connected to the subframe counting module 110, and is used to obtain the growth number curr_group according to the subframe number group_cnt and the total number of subframes group_num. The timing generator 130 is connected to the growth number generating module 120, and is used to generate the count value pwm_thr according to the growth number curr_group, and the count value pwm_thr is reset to a value determined by the growth number curr_group and the total number of subframes group_num when each row switching signal arrives. The preprocessing module 140 is connected to the growth number generating module 120, and is used to calculate at least one grayscale threshold according to the growth number curr_group, the low gray non-dispersion threshold dither_thr and the total number of subframes group_num, and compare the grayscale data gray_data with the grayscale threshold, and generate the subframe data data_pwm assigned to the subframe according to the different comparison results. The storage module 150 is connected to the pre-processing module 140, and is used to provide grayscale data gray_data to the pre-processing module 140. The PWM pulse generation module 160 is connected to the pre-processing module 140 and the timing generator 130, and is used to compare the sub-frame data data_pwm provided by the pre-processing module 140 with the count value pwm_thr provided by the timing generator 130 when the effective edge of the display clock GCLK arrives, and generate a PWM signal according to the comparison result. Among them, when the sub-frame data data_pwm is greater than the count value pwm_thr, the PWM signal generated by the PWM pulse generation module 160 is a high level; if the sub-frame data data_pwm is less than or equal to the count value pwm_thr, the PWM signal generated by the PWM pulse generation module 160 is a low level, and the PWM signal controls the picture display of the pixel array, for example, when the PWM signal is a high level, the pixel array displays the picture, and when the PWM signal is a low level, the pixel array does not display the picture.
[0049] In this embodiment, the total number of subframes group_num and the low gray non-dispersion threshold dither_thr in a display frame are set by the user of the chip according to display requirements, the low gray non-dispersion threshold dither_thr is a positive integer greater than or equal to 1, and the total number of subframes group_num is a positive integer greater than or equal to 2. The number of gray thresholds calculated by the preprocessing module 140 is preferably three. The effective edge of the display clock GCLK can be a rising edge or a falling edge, either of which can be selected. In general, the rising edge is selected as the effective edge.
[0050] Further, Figure 2 A flowchart of a method for processing display data according to an embodiment of the present application is shown below. Figure 2 To Attachment Figure 12b The method for processing display data of the present application is described in detail.
[0051] Step S100: generating a growth sequence number according to the total number of subframes in the display frame and the subframe sequence number.
[0052] In this step, the subframe counting module 110 determines the subframe number group_cnt of the current subframe according to the total subframe number group_num of the current display frame, and the growth number generating module 120 generates the growth number curr_group according to the total subframe number group_num and the subframe number group_cnt.
[0053] At the beginning of a display frame, the subframe number generated by the subframe counting module 110 is 0. After all rows are displayed, the subframe counting module increments by 1. For example, in a display frame with 8 subframes and a pixel array with 16 rows, the change rule of the subframe number group_cnt generated by the subframe counting module 110 is as follows: Figure 3 shown.
[0054] Furthermore, combined with Figure 4 , a process in which the growth number generating module 120 obtains the growth number curr_group according to the subframe number group_cnt and the total subframe number group_num is described in detail.
[0055] The subframe number group_cnt is used to record the number of each subframe in the display frame, and the binary number represents the binary number corresponding to the subframe number group_cnt. Specifically, for example, if the subframe number group_cnt is "0", the corresponding binary number is "000"; if the subframe number group_cnt is "3", the corresponding binary number is "011". Further, the high and low bits of the binary number corresponding to the subframe number group_cnt are swapped, and the binary number after the high and low bits are swapped is converted into a decimal value, that is, the growth number curr_group is obtained. Specifically, for example, if the subframe number group_cnt is "0", its corresponding binary number is "000", and the mirrored binary number after the high and low bits are swapped is "000", which is still "0" when converted into a decimal number, which means that the growth number curr_group of the subframe whose subframe number group_cnt is "0" is "0"; if the subframe number group_cnt is "3", its corresponding binary number is "011", and the mirrored binary number after the high and low bits are swapped is "110", which is "6" when converted into a decimal number, which means that the growth number curr_group of the subframe whose subframe number group_cnt is "3" is "6".
[0056] In this embodiment, the smaller the growth number curr_group is, the higher the grayscale allocation priority is, and the greater the probability that the grayscale value of the subframe picture is not 0. At the same time, due to the difference in the total number of subframes group_num, the length of the binary digits corresponding to the subframe number group_cnt is also different. For example, when the total number of subframes group_num is only 8, three binary digits of length (for example, 7 needs to be represented by 111) can be used to fully represent the subframe number group_cnt; and when the total number of subframes group_num is 12, four binary digits of length (for example, 11 needs to be represented by 1011) can be used to fully represent the subframe number group_cnt, but four binary digits of length can represent up to 16 digits, which means that the binary digits of the mirror may exceed 12, which does not conform to the size of the growth number curr_group.
[0057] Therefore, in the process of obtaining the growth sequence number curr_group according to the subframe sequence number group_cnt, a process of comparing the decimal number corresponding to the mirror binary number with the total subframe number group_num is also included. Only when the decimal number corresponding to the mirror binary number (mirror subframe sequence number) is less than the total subframe number group_num, the growth sequence number curr_group can be determined. That is, in a specific implementation, the growth sequence number generating module 120 can first perform a high-low bit flip operation on the binary number corresponding to the subframe sequence number group_cnt of each subframe picture of the target frame picture, and after obtaining the mirror binary number of the subframe sequence number group_cnt, the growth sequence number curr_group of the subframe sequence number group_cnt is determined based on the decimal number (mirror subframe sequence number) corresponding to the mirror binary number of the subframe sequence number group_cnt. Specifically, if it is determined that the mirror subframe number of the subframe number group_cnt is less than the total number of subframes group_num, the mirror subframe number of the subframe number group_cnt is determined as the growth number curr_group of the subframe picture; if it is determined that the mirror subframe number of the subframe picture is not less than the total number of subframes group_num, the subframe number group_cnt is iteratively incremented until it is determined that the mirror subframe number of the intermediate subframe number obtained by performing the sequence number increment operation is less than the total number of subframes group_num, and the mirror subframe number of the intermediate subframe number obtained by the last sequence number increment operation is determined as the growth number curr_group of the subframe picture, and further, the subframe number group_cnt corresponding to the subframe picture after the subframe picture on which the sequence number increment operation is performed is also incremented accordingly, and then the step of determining the growth number curr_group is performed. Wherein, the sequence number increment operation includes increasing by 1.
[0058] For example, in an embodiment where the total number of subframes group_num is 12, the subframe number group_cnt of the fourth subframe picture is "3", the corresponding binary number is "0011", the mirror binary number after the high and low bits are swapped is "1100", and the corresponding mirror subframe number is 12, which does not meet the condition of being less than the total number of subframes group_num, so the subframe number increment operation is performed, that is, the subframe number group_cnt of the fourth subframe picture becomes "4", the corresponding binary number is "0100", the mirror binary number after the high and low bits are swapped is "0010", and the corresponding mirror subframe number is 2, which meets the condition of being less than the total number of subframes group_num, and the mirror subframe number 2 is determined as the growth number curr_group of the fourth subframe picture. Since the subframe number of the fourth subframe picture has performed a sequence number increment operation, the subframe number group_cnt corresponding to the fifth subframe picture should also perform a sequence number increment operation, that is, the initial subframe number corresponding to the fifth subframe picture is "4". Due to the subframe number increment operation of the fourth subframe picture, the subframe number group_cnt corresponding to the fifth subframe picture becomes "5", and the corresponding binary number is "0101". The mirror binary number after the high and low bits are swapped is "1010", and the corresponding mirror subframe number is 10, which meets the condition that it is less than the total subframe number group_num. Therefore, the mirror subframe number 10 is determined as the growth number curr_group of the fifth subframe picture.
[0059] In other embodiments, the growth sequence number generating module 120 may also use other algorithms to obtain the growth sequence number curr_group, and is not limited to the high-low bit swapping method.
[0060] Step S200: generating a count value according to the growth sequence number, the total number of subframes and the configuration parameters of the chip.
[0061] In this step, the timing generator 130 generates a count value pwm_thr according to the growth sequence number curr_group. The count value pwm_thr is reset to a value determined by the growth sequence number curr_group and the total sub-frame number group_num when each row switching signal arrives.
[0062] Specifically, combined Figure 5 , Figure 6 as well as Figure 7a to Figure 7e , the specific steps of the timing generator 130 in the present application for generating the count value pwm_thr according to the growth sequence number curr_group are described in detail.
[0063] In one embodiment, the growth sequence number is curr_group, the total number of subframes in each display frame is group_num, and the time length of the display area of each row is width GCLK cycles (the display length width is a positive integer greater than 1). According to the different register values of the chip register, the timing generator 130 obtains the count value pwm_thr through corresponding different preset methods. Specifically, there are two cases in which the timing generator 130 generates a change rule of the count value pwm_thr, and which of the two cases is used is selected according to the register value of the register. In a specific embodiment, for example, there is a 1-bit register, and when the register value is 0, the chip uses the first case, and when the register value is 1, the chip uses the second case.
[0064] According to the aforementioned Figure 3 It can be seen that in each subframe, the display of all display rows needs to be completed before entering the next subframe. Therefore, the present application generates multiple count values pwm_thr in one subframe. The following description will take the display of any row in one subframe as an example.
[0065] The first case is described as follows:
[0066] At the end or the beginning of each row, that is, when the row switching signal arrives, the count value pwm_thr is reset to the first preset value. Specifically, the first preset value is equal to the sum of the product of the growth sequence number curr_group plus (configuration parameter inv_thr minus one) and the total number of subframes group_num, that is,
[0067] pwm_thr=curr_group+(inv_thr-1)*group_num,
[0068] The configuration parameter inv_thr is a positive integer, and the configuration parameter inv_thr is less than or equal to the display length width.
[0069] After entering the display area of the row (after the row switching signal), the count value pwm_thr changes once each time the timing generator receives a valid edge of the display clock GCLK. Depending on the configuration parameter inv_thr, the subsequent count value pwm_thr changes in different rules.
[0070] Specifically, the calculation steps of the count value in the first case are as follows Figure 5 As shown, including:
[0071] Step S211: Obtain the display length of a display line of the subframe.
[0072] Step S212: Determine whether the configuration parameter is equal to 1.
[0073] In this step, if the configuration parameter is equal to 1, step S213 is executed; if the configuration parameter is not equal to 1, step S214 is executed.
[0074] Step S213: the count value is equal to the growth sequence number from the initial value. Each time a valid edge of the display clock GCLK is received, the count value will increase by the total number of subframes until the count value is updated to be equal to the growth sequence number + (display length - 1) * total number of subframes, and then the count value is stopped from being updated.
[0075] In this step, if Figure 7a As shown, for example, when the configuration parameter inv_thr=1, the first preset value is equal to the growth sequence number curr_group, that is, the count value pwm_thr is equal to the growth sequence number curr_group from the initial value, and each time a valid edge of the display clock GCLK is received, the count value pwm_thr will increase the total subframe number group_num until it is updated to be equal to the count value pwm_thr=curr_group+(width-1)*group_num and then the count value is stopped from being updated.
[0076] Step S214: Determine whether the configuration parameter is equal to the display length.
[0077] In this step, if the configuration parameter is equal to the display length, step S215 is executed; if the configuration parameter is not equal to the display length, step S216 is executed.
[0078] Step S215: the count value is equal to the growth sequence number + (display length - 1) * total number of subframes from the initial value. Each time a valid edge of the display clock GCLK is received, the count value decreases by the total number of subframes until the count value is updated to be equal to the growth sequence number, and then the count value is stopped from being updated.
[0079] In this step, if Figure 7b As shown, for example, when the configuration parameter inv_thr = display length width, the first preset value = curr_group + (width-1) * group_num, that is, the count value pwm_thr is equal to curr_group + (width-1) * group_num from the initial value, and each time a valid edge of the display clock GCLK is received, the count value pwm_thr will decrease the total number of subframes group_num until the count value pwm_thr is updated to be equal to the growth sequence number curr_group and then the count value is stopped from being updated.
[0080] Step S216: the count value starts from an initial value equal to the growth sequence number + (configuration parameter - 1) * total number of subframes, and each time a valid edge of the display clock GCLK is received, the count value decreases by the total number of subframes until it is updated to be equal to the growth sequence number; then, at the next valid edge of the display clock GCLK, the count value is updated to be equal to the growth sequence number + configuration parameter * total number of subframes, and at each subsequent valid edge of the display clock GCLK, the count value increases by the total number of subframes until the count value is updated to be equal to the growth sequence number + (display length - 1) * total number of subframes, and then the count value is stopped from being updated.
[0081] In this step, if Figure 7c As shown, for example, when the configuration parameter inv_thr is greater than 1 and less than the display length width, the first preset value is equal to curr_group+(inv_thr-1)*group_num, that is, the count value pwm_thr is equal to curr_group+(inv_thr-1)*group_num from the initial value, and each time a valid edge of the display clock GCLK is received, the count value pwm_thr will decrease the total number of subframes group_num until it is updated to be equal to the growth sequence number curr_group; then, at the next valid edge of the display clock GCLK, the count value pwm_thr is updated to be equal to curr_group+inv_thr*group_num, and at each subsequent valid edge of the display clock GCLK, the count value pwm_thr increases the total number of subframes group_num until the count value pwm_thr is updated to be equal to curr_group+(width-1)*group_num and then the count value is stopped from being updated.
[0082] The second situation is described as follows:
[0083] At the end or the beginning of each row, that is, when the row switching signal arrives, the count value pwm_thr is reset to a second preset value. Specifically, the second preset value is equal to the sum of the product of the growth sequence number curr_group plus (display length width minus one) and the total number of subframes group_num, that is,
[0084] pwm_thr=curr_group+(width-1)*group_num,
[0085] After entering the display area of the row (after the row switching signal), the count value pwm_thr changes once each time the timing generator receives a valid edge of the display clock GCLK. Depending on the configuration parameter inv_thr, the subsequent count value pwm_thr changes in different rules.
[0086] Specifically, the calculation steps of the count value in the second case are as follows: Figure 6 As shown, including:
[0087] Step S221: Obtain the display length of a display line of the subframe.
[0088] Step S222: Determine whether the configuration parameter is equal to 1.
[0089] In this step, if the configuration parameter is equal to 1, step S223 is executed; if the configuration parameter is not equal to 1, step S224 is executed.
[0090] Step S223: The count value changes from an initial value equal to the growth sequence number + (display length - 1) * total number of subframes to a growth sequence number at the valid edge of the first display clock, and then the count value increases by the total number of subframes each time a valid edge of a display clock is received until the count value is updated to be equal to the growth sequence number + (display length - 2) * total number of subframes, after which the count value stops being updated.
[0091] In this step, if Figure 7d As shown, for example, when the configuration parameter inv_thr=1, the second preset value=curr_group+(width-1)*group_num, and then at the valid edge of the first display clock GCLK, the count value pwm_thr is updated from the initial value equal to curr_group+(width-1)*group_num to equal to the growth sequence number curr_group; after each valid edge of the display clock GCLK is received, the count value pwm_thr will increase the total sub-frame number group_num, until the count value pwm_thr is updated to equal to curr_group+(width-2)*group_num and then the count value is stopped from being updated.
[0092] Step S224: Determine whether the configuration parameter is equal to the display length.
[0093] In this step, if the configuration parameter is equal to the display length, step S225 is executed; if the configuration parameter is not equal to the display length, step S226 is executed.
[0094] Step S225: The count value is equal to the growth sequence number + (display length - 1) * total number of subframes from the initial value. Each time a valid edge of the display clock is received, the count value decreases by the total number of subframes until the count value is updated to be equal to the growth sequence number, and then the count value is stopped from being updated.
[0095] In this step, if Figure 7bAs shown, for example, when the configuration parameter inv_thr = display length width, the second preset value = curr_group + (width-1) * group_num, then the count value pwm_thr is equal to curr_group + (width-1) * group_num from the initial value, and each time a valid edge of the display clock GCLK is received, the count value pwm_thr will decrease the total number of subframes group_num until the count value pwm_thr is updated to be equal to the growth sequence number curr_group and then the count value is stopped being updated.
[0096] Step S226: The count value starts from the initial value equal to the growth sequence number + (display length - 1) * total number of subframes. Each time a valid edge of the display clock is received, the count value decreases by the total number of subframes until the count value is updated to be equal to the growth sequence number + (display length - configuration parameter) * total number of subframes. Then, at the next valid edge of the display clock, the count value is updated to be equal to the growth sequence number. At each subsequent valid edge of the display clock, the count value increases by the total number of subframes until the count value is updated to be equal to the growth sequence number + (display length - configuration parameter - 1) * total number of subframes, and then the count value is stopped from being updated.
[0097] In this step, if Figure 7e As shown, for example, when the configuration parameter inv_thr is greater than 1 and less than the display length width, the second preset value = curr_group + (width-1) * group_num, then the count value pwm_thr is equal to curr_group + (width-1) * group_num from the initial value, and each time a valid edge of the display clock GCLK is received, the count value pwm_thr will decrease the total number of sub-frames group_num until it is updated to be equal to curr_group + (width-inv_thr) * group_num; then, at the next display clock GCLK valid edge, the count value pwm_thr is updated to be equal to the growth sequence number curr_group, and at each subsequent display clock GCLK valid edge, the count value pwm_thr increases the total number of sub-frames group_num until the count value pwm_thr is updated to be equal to curr_group + (width-inv_thr-1) * group_num, and then the count value is stopped.
[0098] Therefore, in this step, the timing generator 130 selects different counting value pwm_thr changing methods according to specific circumstances.
[0099] Step S300: Generate a grayscale threshold according to the growth sequence number, the low gray non-dispersion threshold and the total number of subframes, and generate subframe data of the current subframe according to the grayscale threshold and the grayscale data.
[0100] In this step, the preprocessing module 140 calculates at least one grayscale threshold based on the growth number curr_group, the low gray non-dispersion threshold dither_thr and the total number of subframes group_num provided by the growth number generation module 120, and compares the grayscale data gray_data provided by the storage module 150 with the grayscale threshold, and generates subframe data data_pwm assigned to the subframe based on the comparison result.
[0101] Figure 8 A flowchart of an embodiment of the pre-processing module 140 generating sub-frame data is shown, which specifically includes the following contents.
[0102] Step S301: Obtain a first grayscale threshold, a second grayscale threshold and a third grayscale threshold according to the total number of subframes, a growth sequence number and a low gray non-dispersion threshold.
[0103] In this step, the preprocessing module 140 calculates the first grayscale threshold M1 according to the total number of subframes group_num and the low-gray non-dispersed threshold dither_thr. Specifically, the first grayscale threshold M1=total number of subframes group_num*low-gray non-dispersed threshold dither_thr; the preprocessing module 140 also calculates the second grayscale threshold M2 and the third grayscale threshold M3 according to the low-gray non-dispersed threshold dither_thr and the growth number curr_group. Specifically, the second grayscale threshold M2=(growth number curr_group+1)*low-gray non-dispersed threshold dither_thr, and the third grayscale threshold M3=growth number curr_group*low-gray non-dispersed threshold dither_thr.
[0104] Step S302: Determine whether the grayscale data is greater than or equal to a first grayscale threshold.
[0105] In this step, the preprocessing module 140 first compares the grayscale data gray_data with the first grayscale threshold M1. If the grayscale data gray_data is greater than or equal to the first grayscale threshold M1, step S303 is executed; if the grayscale data gray_data is less than the first grayscale threshold M1, step S304 is executed.
[0106] Step S303: The sub-frame data is equal to the grayscale data.
[0107] In this step, if the pre-processing module 140 determines that the grayscale data gray_data is greater than or equal to the first grayscale threshold M1, the sub-frame data data_pwm output by the pre-processing module 140 is equal to the grayscale data gray_data.
[0108] Step S304: determining whether the grayscale data is greater than or equal to a second grayscale threshold.
[0109] In this step, the grayscale data gray_data is less than the first grayscale threshold M1, and the preprocessing module 140 further compares the grayscale data gray_data with the second grayscale threshold M2. If the grayscale data gray_data is greater than or equal to the second grayscale threshold M2, step S305 is executed; if the grayscale data gray_data is less than the second grayscale threshold M2, step S306 is executed.
[0110] Step S305: the subframe data is equal to the growth sequence number plus the first grayscale threshold.
[0111] In this step, the preprocessing module 140 determines that the grayscale data gray_data is less than the first grayscale threshold M1 and greater than or equal to the second grayscale threshold M2, then the sub-frame data data_pwm output by the preprocessing module 140 is equal to the sum of the growth number curr_group and the first grayscale threshold M1, the first grayscale threshold M1=total number of sub-frames group_num*low gray non-dispersed threshold dither_thr, that is, sub-frame data data_pwm=growth number curr_group+total number of sub-frames group_num*low gray non-dispersed threshold dither_thr.
[0112] Step S306: Determine whether the grayscale data is greater than or equal to the third grayscale threshold.
[0113] In this step, the grayscale data gray_data is less than the second grayscale threshold M2, and the preprocessing module 140 further compares the grayscale data gray_data with the third grayscale threshold M63. If the grayscale data gray_data is greater than or equal to the third grayscale threshold M3, step S307 is executed; if the grayscale data gray_data is less than the third grayscale threshold M3, step S308 is executed.
[0114] Step S307: the sub-frame data is equal to the product of the difference between the grayscale data and the third grayscale threshold and the total number of sub-frames plus the sum of the growth sequence numbers.
[0115] In this step, the preprocessing module 140 determines that the grayscale data gray_data is less than the second grayscale threshold M2 and is greater than or equal to the third grayscale threshold M3, then the subframe data data_pwm output by the preprocessing module 140 is equal to the product of the difference between the grayscale data gray_data and the third grayscale threshold M3 and the total number of subframes group_num plus the sum of the growth number curr_group, the third grayscale threshold M3 = growth number curr_group * low gray non-dispersed threshold dither_thr, that is, subframe data data_pwm = growth number curr_group + (grayscale data gray_data-growth number curr_group*low gray non-dispersed threshold dither_thr) * total number of subframes group_num.
[0116] Step S308: The subframe data is equal to 0.
[0117] In this step, the pre-processing module 140 determines that the grayscale data gray_data is less than the third grayscale threshold M3, and the sub-frame data data_pwm output by the pre-processing module 140 is equal to 0.
[0118] Step S400: Generate a PWM signal according to the count value and sub-frame data.
[0119] In this step, the PWM pulse generation module 160 generates a PWM signal according to the count value pwm_thr provided by the timing generator 130 and the sub-frame data data_pwm provided by the pre-processing module 140. Specifically, the PWM pulse generation module 160 compares the sub-frame data data_pwm with the count value pwm_thr when the effective edge of the display clock GCLK arrives, and generates a PWM signal according to the comparison result. When the sub-frame data data_pwm is greater than the count value pwm_thr, the PWM signal generated by the PWM pulse generation module 160 is a high level; if the sub-frame data data_pwm is less than or equal to the count value pwm_thr, the PWM signal generated by the PWM pulse generation module 160 is a low level.
[0120] In order to more intuitively describe the display data processing method of the present application, the following will be described with specific embodiments and in combination with the attached Figures 9a to 12b The method for processing display data of the present application is described by way of example.
[0121] [Example 1]
[0122] Set the number of row scans of the chip to 4 (for example, Figure 3Each subframe in a display frame displays 4 lines), the total number of subframes in a display frame group_num is 8, the low gray non-dispersion threshold dither_thr is 4, the configuration parameter inv_thr=1, and the count value pwm_thr is calculated in the first case.
[0123] refer to Figure 9a , assuming that the grayscale data gray_data of a certain LED lamp bead is 34, after the grayscale data gray_data is scattered into each subframe, the grayscale displayed in each subframe, that is, the width of the high level of the PWM pulse is as follows Figure 9a shown. Figure 9a The algorithm used is the PWM scattering algorithm in the background art. The grayscale data gray_data 34 is greater than the first grayscale threshold M1 32, so the grayscale data gray_data is divided by the total number of subframes group_num to obtain a quotient of 4 and a remainder of 2. The growth sequence numbers curr_group of the first subframe and the fifth subframe are 0 and 1, respectively, which are less than the remainder 2. Therefore, the grayscale values displayed by the first subframe and the fifth subframe are both 4+1=5, and the grayscale values displayed by the remaining subframes are 4.
[0124] In the present application, for the first subframe, the subframe number group_cnt generated by the subframe counting module 110 is 0, and the growth number curr_group calculated by the growth number generating module 120 is 0. The timing of the count value pwm_thr generated by the timing generator 130 is as follows: Figure 9b As shown (taking the third line Line2 of the first subframe as an example). The count value pwm_thr increases from the growth sequence number curr_group=0, and the total subframe number group_num=8 is increased each time, that is, the count value pwm_thr generated by the sequence generator 130 is 0, 8, 16, 24, 32, 40, 48, 56. In the pre-processing module 140, the grayscale data gray_data=34, the first grayscale threshold M1=total subframe number group_num*low gray non-scattering threshold dither_thr=8*4=32, then the grayscale data gray_data satisfies Figure 8In step S302, the sub-frame data data_pwm=34 generated by the pre-processing module 140. In the PWM pulse generation module 160, it is determined whether the sub-frame data data_pwm> the count value pwm_thr is established at each valid edge of the display clock GCLK. At the first valid edge, the sub-frame data data_pwm>count value pwm_thr (34>0) holds, and the PWM signal generated by the PWM pulse long generation module 160 is high level; at the second valid edge, the sub-frame data data_pwm>count value pwm_thr (34>8) holds, and the PWM signal generated by the PWM pulse long generation module 160 is high level; at the third valid edge, the sub-frame data data_pwm>count value pwm_thr (34>16) holds, and the PWM signal generated by the PWM pulse long generation module 160 is high level; at the fourth valid edge, the sub-frame data data_pwm>count value pwm_thr (34>24) holds, and the PWM signal generated by the PWM pulse long generation module 160 is high level; For five valid edges, the sub-frame data data_pwm>count value pwm_thr (34>32) is established, and the PWM signal generated by the PWM pulse growth module 160 is high level; for the sixth valid edge, the sub-frame data data_pwm>count value pwm_thr (34>40) is not established, and the PWM signal generated by the PWM pulse growth module 160 is low level; for the seventh valid edge, the sub-frame data data_pwm>count value pwm_thr (34>48) is not established, and the PWM signal generated by the PWM pulse growth module 160 is low level; for the eighth valid edge, the sub-frame data data_pwm>count value pwm_thr (34>56) is not established, and the PWM signal generated by the PWM pulse growth module 160 is low level. That is, in the display area of a subframe, if there are 8 display clock GCLK cycles, PWM is at a high level during the first 5 display clock GCLK cycles; and PWM is at a low level during the last three display clock GCLK cycles. The final result is that the pulse width of the PWM in the subframe is 5 display clock GCLK cycles, which is the same as the calculation result of the existing PWM scrambling algorithm.
[0125] For the second subframe, the subframe number group_cnt generated by the subframe counting module 110 is 1, and the growth number curr_group calculated by the growth number generating module 120 is 4. The timing of the count value pwm_thr generated by the timing generator 130 is as follows: Fig.9cAs shown (taking the third line line2 of the second subframe as an example). The count value pwm_thr increases from the growth sequence number curr_group=4, and the total subframe number group_num=8 is increased each time, that is, the count value pwm_thr=4, 12, 20, 28, 36, 44, 52, 60 generated by the sequence generator 130. In the pre-processing module 140, the grayscale data gray_data=34, the first grayscale threshold M1=total subframe number group_num*low gray non-scattering threshold dither_thr=8*4=32, then the grayscale data gray_data satisfies Figure 8 In step S302, the sub-frame data data_pwm=34 generated by the pre-processing module 140. In the PWM pulse generation module 160, it is determined whether the sub-frame data data_pwm> the count value pwm_thr is established at each valid edge of the display clock GCLK. At the first valid edge, the sub-frame data data_pwm>count value pwm_thr (34>4) holds, and the PWM signal generated by the PWM pulse long-living module 160 is high level; at the second valid edge, the sub-frame data data_pwm>count value pwm_thr (34>12) holds, and the PWM signal generated by the PWM pulse long-living module 160 is high level; at the third valid edge, the sub-frame data data_pwm>count value pwm_thr (34>20) holds, and the PWM signal generated by the PWM pulse long-living module 160 is high level; at the fourth valid edge, the sub-frame data data_pwm>count value pwm_thr (34>28) holds, and the PWM signal generated by the PWM pulse long-living module 160 is high level; For five valid edges, the sub-frame data data_pwm>count value pwm_thr (34>36) does not hold, and the PWM signal generated by the PWM pulse growth module 160 is at a low level; for the sixth valid edge, the sub-frame data data_pwm>count value pwm_thr (34>44) does not hold, and the PWM signal generated by the PWM pulse growth module 160 is at a low level; for the seventh valid edge, the sub-frame data data_pwm>count value pwm_thr (34>52) does not hold, and the PWM signal generated by the PWM pulse growth module 160 is at a low level; for the eighth valid edge, the sub-frame data data_pwm>count value pwm_thr (34>60) does not hold, and the PWM signal generated by the PWM pulse growth module 160 is at a low level. That is, in the display area of a subframe, if there are 8 display clock GCLK cycles, PWM is at a high level during the first 4 display clock GCLK cycles; and PWM is at a low level during the last 4 display clock GCLK cycles. The final result is that the pulse width of the PWM in the subframe is 4 display clock GCLK cycles, which is the same as the calculation result using the existing PWM scrambling algorithm.
[0126] For the fifth subframe, the subframe number group_cnt generated by the subframe counting module 110 is 4, and the growth number curr_group calculated by the growth number generating module 120 is 1. The timing of the count value pwm_thr generated by the timing generator 130 is as follows: Figure 9d As shown (taking the third line line2 of the fifth subframe as an example). The count value pwm_thr increases from the growth sequence number curr_group=1, and the total subframe number group_num=8 is increased each time, that is, the count value pwm_thr=1, 9, 17, 25, 33, 41, 49, 57 generated by the sequence generator 130. In the pre-processing module 140, the grayscale data gray_data=34, the first grayscale threshold M1=total subframe number group_num*low gray non-scattering threshold dither_thr=8*4=32, then the grayscale data gray_data satisfies Figure 8In step S302, the sub-frame data data_pwm=34 generated by the pre-processing module 140. In the PWM pulse generation module 160, it is determined whether the sub-frame data data_pwm> the count value pwm_thr is established at each valid edge of the display clock GCLK. At the first valid edge, the sub-frame data data_pwm>count value pwm_thr (34>1) holds, and the PWM signal generated by the PWM pulse long-living module 160 is high level; at the second valid edge, the sub-frame data data_pwm>count value pwm_thr (34>9) holds, and the PWM signal generated by the PWM pulse long-living module 160 is high level; at the third valid edge, the sub-frame data data_pwm>count value pwm_thr (34>17) holds, and the PWM signal generated by the PWM pulse long-living module 160 is high level; at the fourth valid edge, the sub-frame data data_pwm>count value pwm_thr (34>25) holds, and the PWM signal generated by the PWM pulse long-living module 160 is high level; For five valid edges, the sub-frame data data_pwm>count value pwm_thr (34>33) is established, and the PWM signal generated by the PWM pulse growth module 160 is high level; for the sixth valid edge, the sub-frame data data_pwm>count value pwm_thr (34>41) is not established, and the PWM signal generated by the PWM pulse growth module 160 is low level; for the seventh valid edge, the sub-frame data data_pwm>count value pwm_thr (34>49) is not established, and the PWM signal generated by the PWM pulse growth module 160 is low level; for the eighth valid edge, the sub-frame data data_pwm>count value pwm_thr (34>57) is not established, and the PWM signal generated by the PWM pulse growth module 160 is low level. That is, in the display area of a subframe, if there are 8 display clock GCLK cycles, PWM is at a high level during the first 5 display clock GCLK cycles; and PWM is at a low level during the last 3 display clock GCLK cycles. The final result is that the pulse width of the PWM in the subframe is 5 display clock GCLK cycles, which is the same as the calculation result using the existing PWM scrambling algorithm.
[0127] [Example 2]
[0128] Set the number of row scans of the chip to 4 (for example, Figure 3 Each subframe in a display frame displays 4 lines), the total number of subframes in a display frame group_num is 8, the low gray non-dispersion threshold dither_thr is 4, the configuration parameter inv_thr=1, and the count value pwm_thr is calculated in the first case.
[0129] refer to Fig.10a, assuming that the grayscale data gray_data of a certain LED lamp bead is 15, after the grayscale data gray_data is scattered into each subframe, the grayscale displayed in each subframe, that is, the width of the high level of the PWM pulse is as follows Fig.10a shown. Fig.10a The algorithm is based on the PWM dispersion algorithm in the background technology. The grayscale data gray_data 15 is less than the first grayscale threshold M132, so the grayscale data gray_data is divided by the low gray non-dispersion threshold dither_thr to obtain the quotient 3 and the remainder 3. The growth numbers curr_group of the first subframe, the third subframe and the fifth subframe are 0, 2 and 1 respectively, which are less than the quotient 3. Therefore, the grayscale values displayed by the first subframe, the third subframe and the fifth subframe are all the low gray non-dispersion threshold dither_thr 4, and the growth number curr_group of the seventh subframe is 3, which is equal to the quotient 3, so the grayscale value displayed by the seventh subframe is the remainder 3. The growth numbers curr_group of the remaining subframes are greater than the quotient 3, so the displayed grayscale values are all 0.
[0130] In the present application, for the fifth subframe, the subframe number group_cnt generated by the subframe counting module 110 is 4, and the growth number curr_group calculated by the growth number generating module 120 is 1. The timing of the count value pwm_thr generated by the timing generator 130 is as follows: Fig.10b As shown (taking the third line line2 of the fifth subframe as an example), the count value pwm_thr increases from the growth sequence number curr_group=1, and the total subframe number group_num=8 is increased each time, that is, the count values pwm_thr=1, 9, 17, 25, 33, 41, 49, 57 generated by the sequence generator 130. In the pre-processing module 140, the grayscale data gray_data=15, the first grayscale threshold M1=total subframe number group_num*low gray non-scattering threshold dither_thr=8*4=32, then the grayscale data gray_data does not meet Figure 8 Step S302 in step S304 is continued, the second gray threshold M2 = (growth number curr_group + 1) * low gray non-scattering threshold dither_thr = (1 + 1) * 4 = 8, then the gray data gray_data satisfies Figure 8In step S304, the subframe data data_pwm generated by the preprocessing module 140 = growth sequence number curr_group + total subframe number group_num * low gray non-scattering threshold dither_thr = 1 + 8 * 4 = 33. In the PWM pulse generation module 160, each time at the effective edge of the display clock GCLK, it is determined whether the subframe data data_pwm> count value pwm_thr is established. At the first valid edge, the subframe data data_pwm>count value pwm_thr (33>1) is established, and the PWM signal generated by the PWM pulse long-living module 160 is high level; at the second valid edge, the subframe data data_pwm>count value pwm_thr (33>9) is established, and the PWM signal generated by the PWM pulse long-living module 160 is high level; at the third valid edge, the subframe data data_pwm>count value pwm_thr (33>17) is established, and the PWM signal generated by the PWM pulse long-living module 160 is high level; at the fourth valid edge, the subframe data data_pwm>count value pwm_thr (33>25) is established, and the PWM signal generated by the PWM pulse long-living module 160 is high level; at the fifth valid edge, the subframe data data_pwm>count value pwm_thr (33>25) is established, and the PWM signal generated by the PWM pulse long-living module 160 is high level; at the fifth valid edge, the subframe data data_pwm>count value pwm_thr (33>9) is established, and the PWM signal generated by the PWM pulse long-living module 160 is high level. On the first valid edge, the sub-frame data data_pwm>count value pwm_thr (33>33) does not hold, and the PWM signal generated by the PWM pulse growth module 160 is at a low level; on the sixth valid edge, the sub-frame data data_pwm>count value pwm_thr (33>41) does not hold, and the PWM signal generated by the PWM pulse growth module 160 is at a low level; on the seventh valid edge, the sub-frame data data_pwm>count value pwm_thr (33>49) does not hold, and the PWM signal generated by the PWM pulse growth module 160 is at a low level; on the eighth valid edge, the sub-frame data data_pwm>count value pwm_thr (33>57) does not hold, and the PWM signal generated by the PWM pulse growth module 160 is at a low level. That is, in the display area of a subframe, if there are 8 display clock GCLK cycles, PWM is at a high level during the first 4 display clock GCLK cycles; and PWM is at a low level during the last 4 display clock GCLK cycles. The final result is that the pulse width of the PWM in the subframe is 4 display clock GCLK cycles, which is the same as the calculation result using the existing PWM scrambling algorithm.
[0131] For the seventh subframe, the subframe number group_cnt generated by the subframe counting module 110 is 6, and the growth number curr_group calculated by the growth number generating module 120 is 3. The timing of the count value pwm_thr generated by the timing generator 130 is as follows: Fig.10cAs shown (taking the third line line2 of the seventh subframe as an example), the count value pwm_thr increases from the growth sequence number curr_group=3, and the total subframe number group_num=8 is increased each time, that is, the count values pwm_thr=3, 11, 19, 27, 35, 43, 51, 59 generated by the sequence generator 130. In the pre-processing module 140, the grayscale data gray_data=15, the first grayscale threshold M1=total subframe number group_num*low gray non-scattering threshold dither_thr=8*4=32, then the grayscale data gray_data does not meet Figure 8 Step S302 in step S304 is continued, the second gray threshold M2 = (growth number curr_group + 1) * low gray non-scattering threshold dither_thr = (3 + 1) * 4 = 16, then the gray data gray_data does not meet Figure 8 Step S304 in, continue to execute step S306, the third grayscale threshold M3 = growth number curr_group * low gray non-dispersed threshold dither_thr = 3*4=12, satisfying step S306, then the sub-frame data data_pwm generated by the pre-processing module 140 = growth number curr_group + (grayscale data gray_data-low gray non-dispersed threshold dither_thr*growth number curr_group)*total number of sub-frames group_num=3+(15-4*3)*8=27. In the PWM pulse generation module 160, each time at the effective edge of the display clock GCLK, it is determined whether the sub-frame data data_pwm> count value pwm_thr is established. When the count value pwm_thr=3, 11, 19, the sub-frame data data_pwm> count value pwm_thr is established, and the PWM signal generated by the PWM pulse generation module 160 is high level; when the count value pwm_thr=27, 35, 43, 51, 59, the sub-frame data data_pwm> count value pwm_thr is not established, and the PWM signal generated by the PWM pulse generation module 160 is low level. That is, in the display area of a sub-frame, if there are 8 display clock GCLK cycles, PWM is high level during the first 3 display clock GCLK cycles; PWM is low level during the last 5 display clock GCLK cycles, and the final result is that the pulse width of the PWM in the sub-frame is 3 display clock GCLK cycles, which is the same as the calculation result of the existing PWM scattering algorithm.
[0132] For the second subframe, the subframe number group_cnt generated by the subframe counting module 110 is 1, and the growth number curr_group calculated by the growth number generating module 120 is 4. The timing of the count value pwm_thr generated by the timing generator 130 is as follows: Fig.10d As shown (taking the third line line2 of the second subframe as an example), the count value pwm_thr increases from the growth sequence number curr_group=4, and the total subframe number group_num=8 is increased each time, that is, the count values pwm_thr=4, 12, 20, 28, 36, 44, 52, 60 generated by the sequence generator 130. In the pre-processing module 140, the grayscale data gray_data=15, the first grayscale threshold M1=total subframe number group_num*low gray non-scattering threshold dither_thr=8*4=32, then the grayscale data gray_data does not meet Figure 8 Step S302 in step S304 is continued, the second gray threshold M2 = (growth number curr_group + 1) * low gray non-scattering threshold dither_thr = (4 + 1) * 4 = 20, then the gray data gray_data does not meet Figure 8 Step S304 in the above step, continue to execute step S306, the third gray threshold M3 = growth number curr_group * low gray non-scattering threshold dither_thr = 4 * 4 = 16, if step S306 is not satisfied, then the sub-frame data data_pwm generated by the pre-processing module 140 = 0. In the PWM pulse growth module 160, each time at the effective edge of the display clock GCLK, it is determined whether the sub-frame data data_pwm> count value pwm_thr is established, wherein when the count value pwm_thr is any value, the sub-frame data data_pwm> count value pwm_thr is not established, and the PWM signals generated by the PWM pulse growth module 160 are all low level. That is, in the display area of a sub-frame, if there are 8 display clock GCLK cycles, the final result is that the pulse width of the PWM in the sub-frame is 8 display clock GCLK cycles, which is the same as the calculation result of the existing PWM scattering algorithm.
[0133] [Example 3]
[0134] Set the number of row scans of the chip to 4 (for example, Figure 3 Each subframe in a display frame displays 4 lines), the total number of subframes in a display frame group_num is 8, the low gray non-dispersion threshold dither_thr is 4, the display length width=8, the configuration parameter inv_thr=8, and the count value pwm_thr is calculated in the first case.
[0135] refer to Fig.11a, assuming that the grayscale data gray_data of a certain LED lamp bead is 34, after the grayscale data gray_data is scattered into each subframe, the grayscale displayed in each subframe, that is, the width of the high level of the PWM pulse is as follows Fig.11a shown. Fig.11a The algorithm used is the PWM scattering algorithm in the background art. The grayscale data gray_data 34 is greater than the first grayscale threshold M132, so the grayscale data gray_data is divided by the total number of subframes group_num to obtain a quotient of 4 and a remainder of 2. The growth sequence numbers curr_group of the first subframe and the fifth subframe are 0 and 1, respectively, which are less than the remainder 2. Therefore, the grayscale values displayed by the first subframe and the fifth subframe are both 4+1=5, and the grayscale values displayed by the remaining subframes are 4.
[0136] In the present application, for the first subframe, the subframe number group_cnt generated by the subframe counting module 110 is 0, and the growth number curr_group calculated by the growth number generating module 120 is 0. The timing of the count value pwm_thr generated by the timing generator 130 is as follows: Fig.11b As shown (taking the third line line2 of the first subframe as an example). Since the count value pwm_thr = display length width, the count value pwm_thr starts to decrease from the initial value growth sequence number curr_group + (display length width-1) * total subframe number group_num = 0 + (8-1) * 8 = 56, and the total subframe number group_num = 8 is reduced each time until it reaches 0, that is, the count value pwm_thr generated by the sequence generator 130 is 56, 48, 40, 32, 24, 16, 8, 0. In the pre-processing module 140, the grayscale data gray_data = 34, the first grayscale threshold M1 = total subframe number group_num * low gray non-scattering threshold dither_thr = 8*4 = 32, then the grayscale data gray_data satisfies Figure 8In step S302, the sub-frame data data_pwm generated by the pre-processing module 140 is 34. In the PWM pulse generation module 160, each time at the effective edge of the display clock GCLK, it is determined whether the sub-frame data data_pwm> count value pwm_thr is established. Among them, when the count value pwm_thr=32, 24, 16, 8, 0, the sub-frame data data_pwm> count value pwm_thr is established, and the PWM signal generated by the PWM pulse generation module 160 is a high level; when the count value pwm_thr=56, 48, 40, the sub-frame data data_pwm> count value pwm_thr is not established, and the PWM signal generated by the PWM pulse generation module 160 is a low level. That is, in the display area of a subframe, in the 8 display clock GCLK cycles, PWM is at a high level during the last 5 display clock GCLK cycles; and PWM is at a low level during the first 3 display clock GCLK cycles. The final result is that the pulse width of the PWM in the subframe is 5 display clock GCLK cycles, which is the same as the calculation result using the existing PWM scrambling algorithm.
[0137] [Example 4]
[0138] Set the number of row scans of the chip to 4 (for example, Figure 3 Each subframe in a display frame displays 4 lines), the total number of subframes in a display frame group_num is 8, the low gray non-dispersion threshold dither_thr is 1, the display length width=8, the configuration parameter inv_thr=8, and the count value pwm_thr is calculated in the first case.
[0139] refer to Fig.12a , assuming that the grayscale data gray_data of a certain LED lamp bead is 5, after the grayscale data gray_data is scattered into each subframe, the grayscale displayed in each subframe, that is, the width of the high level of the PWM pulse is as follows Fig.12a shown. Fig.12a The algorithm is based on the PWM dispersion algorithm in the background technology. Gray data gray_data 5 is less than the first gray threshold M1 8, so the gray data gray_data is divided by the low gray non-dispersion threshold dither_thr to obtain the quotient 5 and the remainder 0. The growth numbers curr_group of the first subframe, the second subframe, the third subframe, the fifth subframe and the seventh subframe are 0-4 respectively, which are less than the quotient 5, so the gray values displayed by the first subframe, the second subframe, the third subframe, the fifth subframe and the seventh subframe are all the low gray non-dispersion threshold dither_thr=1, and the growth number curr_group of the sixth subframe is 5, which is equal to the quotient 5, so the displayed gray value is the remainder 0. The growth numbers curr_group of the remaining subframes are all greater than 5, so the displayed gray values are all 0.
[0140] In the present application, for the seventh subframe, the subframe number group_cnt generated by the subframe counting module 110 is 6, and the growth number curr_group calculated by the growth number generating module 120 is 3. The timing of the count value pwm_thr generated by the timing generator 130 is as follows: Figure 12b As shown (taking the display of line 2 of the third line of the seventh subframe as an example). Since the count value pwm_thr = display length width, the count value pwm_thr starts to decrease from the initial value growth sequence number curr_group + (display length width-1) * total number of subframes group_num = 3 + (8-1) * 8 = 59, and the total number of subframes group_num = 8 is reduced each time until it reaches 0, that is, the count values pwm_thr = 59, 51, 43, 35, 27, 19, 11, 3 generated by the sequence generator 130. In the pre-processing module 140, the grayscale data gray_data = 5, the first grayscale threshold M1 = total number of subframes group_num * low gray non-scattering threshold dither_thr = 8 * 1 = 8, then the grayscale data gray_data does not meet Figure 8 Step S302 in the above example, continue to execute step S304, the second grayscale threshold M2 = (growth number curr_group+1) * low gray non-dispersed threshold dither_thr = (3+1) * 1 = 4, and step S304 is satisfied. Then the sub-frame data data_pwm generated by the pre-processing module 140 = growth number curr_group + low gray non-dispersed threshold dither_thr * total number of sub-frames group_num = 3+1*8=11. In the PWM pulse generation module 160, each time at the effective edge of the display clock GCLK, it is determined whether the sub-frame data data_pwm> count value pwm_thr is established. When the count value pwm_thr=3, the sub-frame data data_pwm> count value pwm_thr is established, and the PWM signal generated by the PWM pulse generation module 160 is high level; when the count value pwm_thr=59, 51, 43, 35, 27, 19, 11, the sub-frame data data_pwm> count value pwm_thr is not established, and the PWM signal generated by the PWM pulse generation module 160 is low level. That is, in the display area of a sub-frame, if there are 8 display clock GCLK cycles, PWM is low level during the first 7 display clock GCLK cycles; PWM is low level during the last display clock GCLK cycle, and the final result is that the pulse width of the sub-frame PWM is 1 display clock GCLK cycle, which is the same as the calculation result of the existing PWM scattering algorithm.
[0141] Therefore, the present invention provides a method and device for processing display data, a chip, an electronic device and a storage medium. The preprocessing module calculates at least one grayscale threshold (preferably three) according to the growth sequence number, the low gray non-dispersion threshold and the total number of subframes, and then compares the total grayscale value with the grayscale threshold. The display data of the corresponding subframe is generated according to the comparison result. The PWM pulse module compares the display data with the count value to generate a PWM signal, thereby eliminating the divider circuit and solving the problems caused by the divider circuit, improving the display effect of the LED screen and reducing the chip manufacturing cost.
[0142] According to the embodiments of the present invention as described above, these embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made based on the above description. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can make good use of the present invention and the modified use based on the present invention. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A method for processing display data, include: Generate a growth sequence number of the current subframe according to the total number of subframes and the subframe sequence number of the display frame, wherein the growth sequence number indicates the priority of grayscale value display of any subframe in a display frame; Generate a count value of the current subframe according to the growth sequence number, the total number of subframes, the display length and the configuration parameters of the chip, wherein the count value is reset to a value related to the growth sequence number, the total number of subframes, the configuration parameters and the display length when receiving a row switching signal, and the display length is the time length of the display area of any display row in a subframe; Generate a grayscale threshold according to the growth sequence number, the low gray non-dispersion threshold and the total number of subframes, and generate subframe data of the current subframe according to the grayscale threshold and the grayscale data, wherein the grayscale data is the grayscale sum of the subframe data of all subframes in the display frame; and A high-level or low-level PWM signal is generated according to a comparison result between the count value and the sub-frame data, and the PWM signal controls the picture display of the pixel array.
2. The processing method according to claim 1, in, In the step of generating the count value of the current subframe according to the growth sequence number, the total number of subframes, the display length and the configuration parameters of the chip, the count value changes at the effective edge of the display clock, that is, at least one count value is generated in one subframe.
3. The processing method according to claim 2, in, According to different stored values of the register of the chip, the count value is obtained by corresponding different preset methods.
4. The processing method according to claim 3, in, The count value is reset to a first preset value after receiving the row switching signal, and the first preset value is equal to the growth sequence number + (configuration parameter - 1) * total number of subframes.
5. The processing method according to claim 4, in, The step of generating a count value of the current subframe according to the growth sequence number, the total number of subframes, the display length and the configuration parameters of the chip comprises: Acquire the display length of a display line of a subframe; Determine whether the configuration parameter of the chip is equal to 1; If the configuration parameter of the chip is equal to 1, the count value is equal to the growth sequence number from the initial value, and then the count value is incremented by the total number of subframes each time a valid edge of the display clock is received, until the count value is updated to be equal to the growth sequence number + (display length - 1) * total number of subframes, and then the count value is stopped from being updated; If the configuration parameter of the chip is not equal to 1, then continue to determine whether the configuration parameter of the chip is equal to the display length; If the configuration parameter of the chip is equal to the display length, the count value is equal to the growth sequence number + (display length - 1) * total number of subframes from the initial value, and then the count value is decremented by the total number of subframes each time a valid edge of the display clock is received until the count value is updated to be equal to the growth sequence number, and then the count value is stopped from being updated; If the configuration parameter of the chip is not equal to the display length, the count value starts from an initial value equal to the growth sequence number + (configuration parameter - 1) * total number of subframes, and then each time a valid edge of the display clock is received, the count value will decrease by the total number of subframes until it is updated to be equal to the growth sequence number; then at the next valid edge of the display clock, the count value is updated to be equal to the growth sequence number + configuration parameter * total number of subframes, and at each subsequent valid edge of the display clock, the count value increases by the total number of subframes until the count value is updated to be equal to the growth sequence number + (display length - 1) * total number of subframes, and then the count value is stopped from being updated.
6. The processing method according to claim 3, in, The count value is reset to a second preset value after receiving the row switching signal, and the second preset value is equal to the growth sequence number+(display length-1)*total number of subframes.
7. The processing method according to claim 6, in, The step of generating a count value of the current subframe according to the growth sequence number, the total number of subframes, the display length and the configuration parameters of the chip comprises: Acquire the display length of a display line of a subframe; Determine whether the configuration parameter of the chip is equal to 1; If the configuration parameter of the chip is equal to 1, the count value is equal to the growth sequence number + (display length - 1) * total number of subframes from the initial value, and is updated to be equal to the growth sequence number at the valid edge of the first display clock. After that, the count value will increase by the total number of subframes each time a valid edge of the display clock is received, until the count value is updated to be equal to the growth sequence number + (display length - 2) * total number of subframes, and then the count value stops being updated; If the configuration parameter of the chip is not equal to 1, then continue to determine whether the configuration parameter of the chip is equal to the display length; If the configuration parameter of the chip is equal to the display length, the count value is equal to the growth sequence number + (display length - 1) * total number of subframes from the initial value, and the count value is decremented by the total number of subframes each time a valid edge of the display clock is received until the count value is updated to be equal to the growth sequence number, and then the count value is stopped from being updated; If the configuration parameters of the chip are not equal to the display length, the count value starts from an initial value equal to the growth sequence number + (display length - 1) * total number of subframes, and each time a valid edge of the display clock is received, the count value will decrease by the total number of subframes until the count value is updated to be equal to the growth sequence number + (display length - configuration parameter) * total number of subframes, and then at the next valid edge of the display clock, the count value is updated to be equal to the growth sequence number, and at each subsequent valid edge of the display clock, the count value will increase by the total number of subframes until the count value is updated to be equal to the growth sequence number + (display length - configuration parameter - 1) * total number of subframes, and then the count value is stopped from being updated.
8. The processing method according to claim 1, in, In the step of generating a grayscale threshold according to the growth sequence number, the low gray non-dispersion threshold and the total number of subframes, the number of the grayscale threshold is at least one.
9. The processing method according to claim 8, in, The grayscale threshold includes a first grayscale threshold, a second grayscale threshold and a third grayscale threshold; The first grayscale threshold = total number of subframes * low gray non-dispersion threshold; The second grayscale threshold = (growth sequence number + 1) * low gray non-dispersion threshold; The third grayscale threshold = growth sequence number * low gray non-dispersion threshold.
10. The processing method according to claim 9, in, The step of generating subframe data of the current subframe according to the grayscale threshold and the grayscale data comprises: Determine whether the grayscale data is greater than or equal to the first grayscale threshold; If the grayscale data is greater than or equal to the first grayscale threshold, the subframe data is equal to the grayscale data; If the grayscale data is not greater than or equal to the first grayscale threshold, continue to determine whether the grayscale data is greater than or equal to the second grayscale threshold; If the grayscale data is greater than or equal to the second grayscale threshold, the subframe data is equal to the growth sequence number plus the first grayscale threshold; If the grayscale data is not greater than or equal to the second grayscale threshold, continue to determine whether the grayscale data is greater than or equal to the third grayscale threshold; If the grayscale data is greater than or equal to the third grayscale threshold, the subframe data is equal to the product of the difference between the grayscale data and the third grayscale threshold and the total number of subframes plus the sum of the growth sequence numbers; If the grayscale data is not greater than or equal to the third grayscale threshold, the sub-frame data is equal to zero.
11. The processing method according to claim 10, in, In the step of generating a high-level or low-level PWM signal according to the comparison result of the count value and the sub-frame data, when the sub-frame data is greater than the count value, the PWM signal is at a high level; when the sub-frame data is less than or equal to the count value, the PWM signal is at a low level.
12. A display data processing device, include: A subframe counting module, used to calculate and generate the subframe sequence number of the current display frame; A growth sequence number generating module, connected to the subframe counting module, for generating a growth sequence number according to the subframe sequence number and the total number of subframes, wherein the growth sequence number indicates the priority of grayscale value display of any subframe in a display frame; a timing generator connected to the growth sequence number generating module, and used to generate a count value according to the growth sequence number, the total number of subframes, the display length, and the configuration parameters of the chip, wherein the timing generator resets the count value to a value related to the growth sequence number, the total number of subframes, the configuration parameters, and the display length when receiving a row switching signal, and the display length is the time length of the display area of any display row in a subframe; A preprocessing module generates subframe data according to the growth sequence number, grayscale data, low gray non-dispersion threshold and the total number of subframes; A storage module, connected to the preprocessing module, for storing the grayscale data and providing it to the preprocessing module; The PWM pulse generating module is connected to the timing generator and the preprocessing module, and generates a PWM signal according to the comparison result between the count value and the subframe data, and the PWM signal controls the picture display of the pixel array.
13. The processing device according to claim 12, in, Each time the timing generator receives a valid edge of a display clock, the count value changes, and the timing generator generates at least one count value in one subframe.
14. The processing device according to claim 13, in, According to different stored values of the registers of the chip, the timing generator obtains the count value through corresponding different preset methods.
15. The processing device according to claim 14, in, The timing generator resets the count value to a first preset value after receiving the row switching signal, where the first preset value is equal to the growth sequence number+(configuration parameter-1)*total number of subframes.
16. The processing device according to claim 15, in, The step of the timing generator generating a count value according to the growth sequence number, the total number of subframes, the display length and the configuration parameters of the chip includes: Acquire the display length of a display line of a subframe; Determine whether the configuration parameter of the chip is equal to 1; If the configuration parameter of the chip is equal to 1, the count value is equal to the growth sequence number from the initial value, and then the count value is incremented by the total number of subframes each time a valid edge of the display clock is received, until the count value is updated to be equal to the growth sequence number + (display length - 1) * total number of subframes, and then the count value is stopped from being updated; If the configuration parameter of the chip is not equal to 1, then continue to determine whether the configuration parameter of the chip is equal to the display length; If the configuration parameter of the chip is equal to the display length, the count value is equal to the growth sequence number + (display length - 1) * total number of subframes from the initial value, and then the count value is decremented by the total number of subframes each time a valid edge of the display clock is received until the count value is updated to be equal to the growth sequence number, and then the count value is stopped from being updated; If the configuration parameter of the chip is not equal to the display length, the count value starts from an initial value equal to the growth sequence number + (configuration parameter - 1) * total number of subframes, and then each time a valid edge of the display clock is received, the count value will decrease by the total number of subframes until it is updated to be equal to the growth sequence number; then at the next valid edge of the display clock, the count value is updated to be equal to the growth sequence number + configuration parameter * total number of subframes, and at each subsequent valid edge of the display clock, the count value increases by the total number of subframes until the count value is updated to be equal to the growth sequence number + (display length - 1) * total number of subframes, and then the count value is stopped from being updated.
17. The processing device according to claim 14, in, The timing generator resets the count value to a second preset value after receiving the row switching signal, and the second preset value is equal to the growth sequence number+(display length-1)*total number of subframes.
18. The processing device according to claim 17, in, The step of the timing generator generating a count value according to the growth sequence number, the total number of subframes, the display length and the configuration parameters of the chip includes: Acquire the display length of a display line of a subframe; Determine whether the configuration parameter of the chip is equal to 1; If the configuration parameter of the chip is equal to 1, the count value is equal to the growth sequence number + (display length - 1) * total number of subframes from the initial value, and is updated to be equal to the growth sequence number at the valid edge of the first display clock. After that, the count value will increase by the total number of subframes each time a valid edge of the display clock is received, until the count value is updated to be equal to the growth sequence number + (display length - 2) * total number of subframes, and then the count value stops being updated; If the configuration parameter of the chip is not equal to 1, then continue to determine whether the configuration parameter of the chip is equal to the display length; If the configuration parameter of the chip is equal to the display length, the count value is equal to the growth sequence number + (display length - 1) * total number of subframes from the initial value, and the count value is decremented by the total number of subframes each time a valid edge of the display clock is received until the count value is updated to be equal to the growth sequence number, and then the count value is stopped from being updated; If the configuration parameters of the chip are not equal to the display length, the count value starts from an initial value equal to the growth sequence number + (display length - 1) * total number of subframes, and each time a valid edge of the display clock is received, the count value will decrease by the total number of subframes until the count value is updated to be equal to the growth sequence number + (display length - configuration parameter) * total number of subframes, and then at the next valid edge of the display clock, the count value is updated to be equal to the growth sequence number, and at each subsequent valid edge of the display clock, the count value will increase by the total number of subframes until the count value is updated to be equal to the growth sequence number + (display length - configuration parameter - 1) * total number of subframes, and then the count value is stopped from being updated.
19. The processing device according to claim 12, in, The preprocessing module generates at least one grayscale threshold according to the growth sequence number, the low gray non-dispersion threshold and the total number of subframes.
20. The processing device according to claim 19, in, The preprocessing module generates three grayscale thresholds according to the growth sequence number, the low grayscale non-dispersion threshold and the total number of subframes, including a first grayscale threshold, a second grayscale threshold and a third grayscale threshold; The first grayscale threshold = total number of subframes * low gray non-dispersion threshold; The second grayscale threshold = (growth sequence number + 1) * low gray non-dispersion threshold; The third grayscale threshold = growth sequence number * low gray non-dispersion threshold.
21. The processing device according to claim 20, in, The preprocessing module generates subframe data of the current subframe according to the grayscale threshold and the grayscale data, including: Determine whether the grayscale data is greater than or equal to the first grayscale threshold; If the grayscale data is greater than or equal to the first grayscale threshold, the subframe data is equal to the grayscale data; If the grayscale data is not greater than or equal to the first grayscale threshold, continue to determine whether the grayscale data is greater than or equal to the second grayscale threshold; If the grayscale data is greater than or equal to the second grayscale threshold, the subframe data is equal to the growth sequence number plus the first grayscale threshold; If the grayscale data is not greater than or equal to the second grayscale threshold, continue to determine whether the grayscale data is greater than or equal to the third grayscale threshold; If the grayscale data is greater than or equal to the third grayscale threshold, the subframe data is equal to the product of the difference between the grayscale data and the third grayscale threshold and the total number of subframes plus the sum of the growth sequence numbers; If the grayscale data is not greater than or equal to the third grayscale threshold, the sub-frame data is equal to zero.
22. A display chip, comprising the display data processing device according to any one of claims 12 to 21.
23. An electronic device, include: The method comprises a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the method for processing display data according to any one of claims 1 to 11 when executing the computer program.
24. A storage medium having a computer program stored thereon, in, When the computer program is executed by a processor, the steps of the method for processing display data described in any one of claims 1 to 11 are implemented.
Citation Information
Patent Citations
LED driving circuit based on a frequency multiplication OS-PWM algorithm
CN109903721A
LED display screen subframe driving control method, device and system
CN114627795A
LED display screen driving method, system, device, equipment and medium
CN115050314A
LED display driving method, LED display driving chip, LED display driving device and display panel
CN116524851A
Driving method of display panel, driving chip and display device
CN117456903A
