An algorithm for optimizing LED driver chip effects of inter-channel coupling

By using a random sequence generator and compensation register configuration in the LED driver chip algorithm, the coupling effect between channels is optimized, the display problem of the LED display screen at low grayscale is solved, and the display quality and effect are improved.

CN115641809BActive Publication Date: 2024-10-01CHINA KEY SYST & INTEGRATED CIRCUIT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211226540.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-09
Publication Date
2024-10-01
Estimated Expiration
2042-10-09

AI Technical Summary

Technical Problem

When the input grayscale data is low, existing LED displays are susceptible to coupling interference from the chip's internal or external circuits and the environment, causing problems such as screen flickering and color blocks in the display, affecting the display effect.

Method used

By using the random sequence generator to generate random sequences for different channels in the LED driver chip algorithm, the distribution of grayscale data and the compensation register configuration are optimized to ensure that each channel has a different opening time within the display cycle, and performs operation at low grayscale Compensation to prevent breakage and achieve even distribution of grayscale data.

Benefits of technology

It effectively reduces the coupling effect between channels, improves the display quality, especially in low grayscale conditions, and avoids screen flickering and color block problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115641809B_ABST
    Figure CN115641809B_ABST
Patent Text Reader

Abstract

The present invention discloses an LED driver chip algorithm for optimizing the influence of inter-channel coupling, which belongs to the field of LED display. A sub-periods, each sub-period is 2 B GCLK cycles; set register X to configure the grayscale data optimization level; generate different sequences S according to different channel numbers and different open groups 1~n ; The starting point is corrected by comparing the value P of the random sequence with the size of the optimization level X; the compensation register is configured, and according to the size of the grayscale data, if the grayscale data is less than the configured value W, the grayscale is compensated, and the compensation level is configured by the compensation register; according to the optimization level X, the grayscale data is evenly distributed to 2 A The present invention can solve the high coupling effect caused by the consistent PWM opening time among channels, and further improve the display effect by realizing the random staggered opening of PWM and cooperating with low gray.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of LED display, and in particular to an LED driver chip algorithm for optimizing the influence of coupling between channels. Background Art

[0002] As a new type of semiconductor lighting material, LED has many excellent characteristics such as low power consumption, long life, small size and low cost. It has been widely used and has become an irreplaceable important medium in the fields of lighting equipment, display screens and other electronic products.

[0003] However, as people's quality of life improves, the requirements for the quality of LED displays are getting higher and higher, especially for the clear and delicate display images of LED displays.

[0004] However, many mature products still have display problems such as dark first line, color blocks, and pockmarks. Especially when the input grayscale data is low, it is easy to be affected by coupling interference from the internal or external circuits and environment of the chip due to the short opening time. There may even be coupling interference between two different channels and different grayscales, resulting in screen flickering and color blocks on the display, resulting in poor display effects. Summary of the invention

[0005] The object of the present invention is to provide an LED driver chip algorithm for optimizing the influence of inter-channel coupling, so as to solve the problems in the background technology.

[0006] In order to solve the above technical problems, the present invention provides an LED driver chip algorithm for optimizing the influence of inter-channel coupling, including:

[0007] Step 1: Divide an LED display cycle into 2 according to the input display grayscale data bit width C. A sub-periods, each sub-period is 2 B GCLK cycles, the data relationship is C=A+B, where C is a positive integer, and A and B are non-negative integers less than C;

[0008] Step 2, set register X to configure the grayscale data optimization level;

[0009] Step 3: Generate a random sequence according to the random sequence generator. Each channel corresponds to a random sequence generator. Different sequences S1~S1 are generated according to the different channel numbers and the number of open groups. n , where the value P of the random sequence represents the starting point at which the degree data is pulled high in each sub-period;

[0010] Step 4: The starting point is corrected by comparing the value P of the random sequence with the optimization level X, thereby ensuring that the PWM is continuously pulled high within a sub-cycle to prevent overflow and breakage;

[0011] Step 5, configuring the compensation register, according to the size of the grayscale data, if the grayscale data is less than the configured value W, then the grayscale is compensated, and the compensation level is configured by the compensation register;

[0012] Step 6: According to the optimization level X, the grayscale data is evenly distributed to 2 A In a sub-cycle.

[0013] In one embodiment, in step 1, the input display grayscale data is N-bit binary grayscale data D N- 1D N-2 …D1D0, input from the outside to the driver chip.

[0014] In one implementation, in step 2, registers X1, X2, ... can be configured with different optimization levels according to actual needs.

[0015] In one implementation, in step 4, the random sequence generated by each channel refreshes a new random number in each sub-period as the starting point for PWM high in the sub-period, so as to achieve different opening times in different sub-periods of the same channel.

[0016] In one implementation, in step 6, when the grayscale data allocated in the sub-period plus the random value is greater than the time of the sub-period, the random value is corrected; the inverse of the grayscale data is taken as the new random value, that is, the starting point of the new PWM pull-up.

[0017] The LED driver chip algorithm for optimizing the influence of inter-channel coupling provided by the present invention has the following beneficial effects:

[0018] (1) The random sequence generator is used to achieve different opening times between channels of the display driver chip to solve problems such as color blocks and high-contrast coupling caused by the mutual coupling between channels, thereby improving display quality;

[0019] (2) Low grayscale opening width compensation is achieved through compensation register configuration to compensate for situations such as difficulty in opening at low grayscale. Combined with the mechanism of opening each channel at different times, the LED display effect is effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a schematic diagram of the algorithm flow of an LED driver chip for optimizing the influence of inter-channel coupling proposed by the present invention.

[0021] Figure 2Generates module schematics for random locations.

[0022] Figure 3 Block diagram for the random position generation module.

[0023] Figure 4 Schematic diagram of low grayscale optimization timing.

[0024] Figure 5 The fourth group shows the timing diagram of opening each channel.

[0025] Figure 6 The fifth group shows the timing diagram of opening each channel.

[0026] Figure 7 Schematic diagram of the special grayscale opening processing timing.

[0027] Figure 8 Low gray compensation timing diagram. DETAILED DESCRIPTION

[0028] The following is a further detailed description of an LED driver chip algorithm for optimizing the inter-channel coupling effect proposed by the present invention in combination with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer according to the following description. It should be noted that the accompanying drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0029] The present invention provides an algorithm for optimizing the LED driver chip for the effect of inter-channel coupling, and the process is as follows: Figure 1 As shown, the following steps are included:

[0030] Step S11: Divide an LED display cycle into two parts according to the input display grayscale data bit width C. A sub-periods, each sub-period is 2 B GCLK cycles, the data relationship is C = A + B, where C is a positive integer, A and B are non-negative integers less than C; the input display grayscale data is N-bit binary grayscale data D N-1 D N-2 …D1D0, input from the outside to the driver chip;

[0031] Step S12, setting register X to configure the grayscale data optimization level, and being able to set registers X1, X2, ... to configure different optimization levels according to actual needs;

[0032] Step S13: Generate a random sequence according to the random sequence generator. Each channel corresponds to a random sequence generator, and different sequences S1 to S2 are generated according to different channel numbers and different numbers of open groups. n, where the value P of the random sequence represents the starting point at which the PWM data is pulled high in each sub-period; this ensures that each channel generates a different random sequence, that is, the starting point of each channel PWM pulling high in each sub-period is inconsistent, thereby achieving the purpose of staggered opening between channels;

[0033] Step S14, by comparing the value P of the random sequence with the size of the optimization level X, the starting point is corrected, so as to ensure that the PWM is continuously pulled up in a sub-period to prevent overflow and breakage; the random sequence generated by each channel refreshes a new random number in each sub-period as the starting point of the PWM pulling up in the sub-period, so as to achieve different opening times of the same channel in different sub-periods;

[0034] Step S15, configuring a compensation register, according to the size of the grayscale data, if the grayscale data is less than the configured value W, then the grayscale is compensated, and the compensation level is configured by the compensation register;

[0035] Step S16: According to the optimization level X, the grayscale data is evenly distributed to 2 A sub-period; when the grayscale data allocated in the sub-period plus the random value is greater than the time of the sub-period, the random value is corrected; the inverse of the grayscale data is taken as the new random value, that is, the starting point of the new PWM pull-up, thereby preventing the PWM waveform from being broken in the sub-period due to excessive grayscale data or random numbers, and ensuring the continuity of the PWM waveform.

[0036] The present invention is applicable to a multi-channel constant current LED display driver chip. In the currently more common display driver S-PWM algorithm, in each broken-up group, the opening starting point of each channel is consistent, for example, all start from 0. However, in actual analog circuits, due to the existence of parasitic capacitance, mutual coupling between circuits is common, and the opening and closing of channels will affect other channels, which is particularly obvious in low-gray scenes. If the adjacent channel is a high-brightness grayscale, the low-gray part may be coupled and brightened, which will cause a high-contrast coupling problem on the LED display. To address this problem, different opening position functions are added between channels to reduce the mutual coupling between channels.

[0037] If only the above method is used directly, the influence of mutual coupling between channels can be reduced, but it may cause the channel to not be opened at low gray; this is because in the actual analog circuit, the rising edge and the falling edge are not perfectly vertical, but there is a certain inclination, which makes the represented grayscale data smaller than the original value. When the grayscale data is small, it will have a significant impact on the display effect. In this regard, a compensation register is set in the present invention. If there is insufficient opening at low gray, the opening width is compensated, thereby further improving the display effect. In the present invention, different settings are made for the PWM opening positions of different channels and different opening groups of the same channel. The opening position is set using a random sequence generator, and a linear feedback shift register is used to generate a random sequence, that is, by shifting the register left or right, and continuously performing XOR operations to generate new numbers as the starting opening position. The specific principle is as follows Figure 2 As shown, among which, S1~S n Varies depending on the channel. Figure 3 This is the block diagram of the random position generation module. By controlling the initial value init of the module, the output of different sequences of each channel is realized, that is, {S1, ..., S n}Specific values, each value of each sequence represents the starting opening position of different scattered groups. The output of the module is realized by controlling the enable signal en. In addition, clk is the clock signal input and rst_n is the reset signal input.

[0038] The algorithm of the present invention will be analyzed by example below. The specific steps are as follows:

[0039] (1) First, set the low gray optimization level. This value can be set by register. Here, X is set to 4 GCLK. If the entire display cycle has 2 A sub-cycles, each cycle 2 B GCLK cycles, then in each display cycle, the minimum PWM open width allowed is 4 GCLKs, as shown in the following example: Figure 4 shown.

[0040] (2) Configure different initial values ​​of the random sequence generator according to the different channels and the number of open groups. Here, it is set according to the channel number. The sequence number of channels 0-15 is also the initial value of the random sequence generator. According to the setting in step 1, the output data range of the random sequence generator is 2 BGCLK cycles. For example, if the number of GCLKs in each sub-cycle is 16 and the initial value of channel 1 is 1, the output of the random sequence generator is {1,8,12,14,15,7,11,5,10,13,6,3,9,4,2}, which correspond to the starting open positions of each scattered group of the channel. If the number of scattered groups is greater than the number of starting positions in the sequence, they are reused cyclically; the initial value of channel 2 is 2, the output of the random sequence generator is {2,1,8,12,14,15,7,11,5,10,13,6,3,9,4}; the initial value of channel 3 is 3, the output of the random sequence generator is {3,9,4,2,1,8,12,14,15,7,11,5,10,13,6}; channel The initial value of channel 4 is 4, so the output of the random sequence generator is {4,2,1,8,12,14,15,7,11,5,10,13,6,3,9}; the initial value of channel 5 is 5, so the output of the random sequence generator is {5,10,13,6,3,9,4,2,1,8,12,14,15,7,11}; the initial value of channel 6 is 6, so the output of the random sequence generator is {6,3,9,4,2,1,8,12,14,15,7,11,5,10,13}; the initial value of channel 7 is 7, so the output of the random sequence generator is {7,11,5,10,13,6,3,9,4,2,1,8,12,14,15}; the initial value of channel 8 is 5, so the output of the random sequence generator is {5,10,13,6,3,9,4,2,1,8,12,14,15,7,11}; the initial value of channel 6 is 6, so the output of the random sequence generator is {6,3,9,4,2,1,8,12,14,15,7,11,5,10,13} The initial value of channel 9 is 9, then the output of the random sequence generator is {9,4,2,1,8,12,14,15,7,11,5,10,13,6,3}; the initial value of channel 10 is 10, then the output of the random sequence generator is {10,13,6,3,9,4,2,1,8,12,14,15,7,11,5}; the initial value of channel 11 is 11, then the output of the random sequence generator is {11,5,10,13,6,3,9,4,2,1,8,12,14,15,7}; the initial value of channel 12 is 11, then the output of the random sequence generator is {11,5,10,13,6,3,9,4,2,1,8,12,14,15,7}; The initial value is 12, so the output of the random sequence generator is {12, 14, 15, 7, 11, 5, 10, 13, 6, 3, 9, 4, 2, 1, 8}; the initial value of channel 13 is 13, so the output of the random sequence generator is {13, 6, 3, 9, 4, 2, 1, 8, 12, 14, 15, 7, 11, 5, 10}; the initial value of channel 14 is 14, so the output of the random sequence generator is {14, 15, 7, 11, 5, 10, 13, 6, 3, 9, 4, 2, 1, 8, 12}; the initial value of channel 15 is 15, so the output of the random sequence generator is {15, 7, 11, 5, 10, 13, 6, 3, 9, 4, 2, 1, 8, 12, 14};The initial value of channel 0 is 0, that is, the channel maintains the normal initial position and starts to open from the 0th GCLK. If A>16, the initial value of channel 0 can be 1, the initial value of channel 1 can be 2, and so on, as long as it is less than A. ;

[0041] (3) According to the opening sequence of each channel obtained in step 3, the change of the opening position of each channel in each group can be obtained. For example, in the first group, the opening positions of each channel are {0,8,1,9,2,10,3,11,12,4,13,5,14,16,15,7}, the opening positions of each channel in the second group are {0,12,8,4,1,13,9,5,14,2,6,10,15,3,7,11}, and the opening positions of each channel in the fifteenth group are {0,2,4,6,9,11,13,15,1,3,5,7,8,10,12,14}. For example, Figure 5 This is the timing diagram of opening each channel of the fourth group when A is equal to 6, that is, the number of open groups is 64, and the initial open positions of channels 0-15 are 1-16; Figure 6 This is the timing diagram of opening each channel in the fifth group. Note that GCLK uses dual-edge sampling in the figure, so one GCLK cycle can display two grayscale cycles. As can be seen from the figure, the opening positions of each channel in each group are not the same, and when A> number of channels, the same channel in different groups will also be different. This realizes the difference in the opening positions of each part in the algorithm, thereby achieving the purpose of opening between staggered channels.

[0042] (4) From step 1, the low gray optimization setting X is 4 GCLKs, and the opening time in each group is 64 GCLKs. The starting point is corrected by comparing the value P of the random sequence and the size of the optimization level X, so as to ensure that the PWM is continuously pulled up in a sub-cycle to prevent overflow and breakage. At this time, if the gray value is greater than 60, it is necessary to satisfy gray value + X ≤ 64. If the width of the opening group itself is greater than X, it is necessary to satisfy gray value + opening width ≤ 64, so as to ensure that the PWM is continuously pulled up in a sub-cycle to prevent overflow and breakage. Figure 7 For example, the opening timing of channels 0-5 after the start position is corrected when the above conditions are not met is listed. The method used is that if the gray value + X> 64 or the gray value + opening width> 64, the opening start position of each channel plus the gray value is equal to the number of GCLKs in the group, that is, the closing position is the same, at the last GCLK, so as to ensure that the opening positions of each channel are different as much as possible.

[0043] (5) According to the above steps, configure the low gray compensation register. The register can be set to multiple levels of compensation, such as a 4-bit register to achieve 16 levels of compensation configuration. The specific compensation time for each level depends on the display effect. In the present invention, a 5-bit configuration register is set, and the compensation step for each level is specified to be 4 nanoseconds, that is, the configuration range is 4-128 nanoseconds. When the gray value is low, the implementation scheme is to compensate in the group with a smaller gray value, such as Figure 8 As shown in the figure, the first group turns on 2 GCLKs, and the second group turns on 1 GCLK, then the configured low gray compensation value will be added to the second group, the purpose is to compensate for the smaller gray value, and at the same time make the opening time of each group more balanced. By configuring the low gray compensation register, the display effect can be made more uniform and easy to turn on, so as to further achieve a better low gray display effect.

[0044] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.

Claims

1. An algorithm for optimizing the effects of inter-channel coupling on LED driver chips, characterized in that: include: Step 1: According to the input display grayscale data width C , divide an LED display cycle time into sub-periods, each sub-period is 2 B GCLK cycles, the data relationship is C=A+B ,in C is a positive integer, A 、 B is less than C A non-negative integer; Step 2: Set registers X Used to configure the grayscale data optimization level; Step 3: Generate a random sequence based on the random sequence generator. Each channel corresponds to a random sequence generator, and different sequences are generated according to the channel number and the number of open groups. ~ , where the value of the random sequence is P Indicates the starting point where the grayscale data is pulled high in each sub-cycle; Step 4: Compare the values ​​of random sequences P and optimization level X The starting point is corrected by the size of PWM, so as to ensure that PWM is continuously pulled high within a sub-cycle to prevent overflow and breakage; Step 5: Configure the compensation register. According to the size of the grayscale data, if the grayscale data is less than the configured value W, the grayscale is compensated. The compensation level is configured by the compensation register. Step 6: According to the optimization level X , distribute the grayscale data evenly to In a sub-cycle.

2. The LED driver chip algorithm for optimizing inter-channel coupling effects according to claim 1, characterized in that: In step 1, the input display grayscale data is N binary grayscale data , input from the outside to the driver chip.

3. The LED driver chip algorithm for optimizing inter-channel coupling effects according to claim 1, characterized in that: In step 2, the register can be set according to actual needs X1 、 X2 ,...Configure different optimization levels.

4. The LED driver chip algorithm for optimizing inter-channel coupling effects according to claim 1, wherein: In step 4, the random sequence generated by each channel refreshes a new random number in each sub-period as the starting point for the PWM high in the sub-period, so as to achieve different opening times in different sub-periods of the same channel.

5. The LED driver chip algorithm for optimizing inter-channel coupling effects according to claim 1, wherein: In step 6, when the grayscale data allocated in the sub-cycle plus the random value is greater than the time of the sub-cycle, the random value is corrected; the inverse of the grayscale data is taken as the new random value, that is, the starting point of the new PWM pull-up.