LED backlight control method, system, medium and control module
Through the automation system of four DMA channels, the palette table and LED grayscale table are used to dynamically adjust the LED brightness, which solves the problem of low MCU processing efficiency in the existing technology and achieves efficient LED backlight control and brightness refresh rate.
Patent Information
- Application Number
- CN202211144954.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-20
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-09-20
AI Technical Summary
In existing LED backlight control technology, the LED must be refreshed as a whole for each change, resulting in low MCU processing efficiency and consuming more processor resources.
An automated color adjustment brightness value and refresh system using four DMA channels is used to dynamically adjust LED brightness through the palette table and LED grayscale table, freeing up processor pressure, reducing memory usage, and increasing the LED backlight brightness refresh rate.
It achieves efficient LED backlight brightness refresh, reduces processor load, improves MCU resources and efficiency, and can perform other tasks.
Smart Images

Figure CN115527503B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of LED backlight control, and in particular relates to an LED backlight control method, system, medium and control module. Background Art
[0002] For devices with a large number of buttons and other peripherals that require LED backlight control and driving, in the LED control from the host computer to the slave computer, the slave computer driver hardware is usually implemented using a cascade of LED driver chips, which must be refreshed as a whole each time.
[0003] Because the hardware driver mechanism determines that the entire LED must be refreshed for each change, even if the brightness of one LED changes, the MCU has to pay the price of processing all LEDs, which will lead to low MCU processing efficiency and consume more MCU processor resources. Summary of the invention
[0004] In view of the shortcomings of the prior art described above, the purpose of the present invention is to provide an LED backlight control method, system, medium and control module to solve the problem in the existing LED backlight control technology that each change must be made to the entire LED refresh, resulting in low MCU processing efficiency and consumption of more MCU processor resources.
[0005] To achieve the above-mentioned purpose and other related purposes, the present invention provides an LED backlight control method, comprising the following steps: obtaining a color palette table and an LED grayscale table; the color palette table includes a plurality of different index values and a plurality of different grayscale values, each index value corresponds to a grayscale value, and each of the grayscale values is stored in a memory address; the LED grayscale table includes a plurality of different LED serial numbers and a target index value corresponding to each of the LED serial numbers, and each LED serial number corresponds to an LED; configuring a first DMA channel so that the first DMA channel decodes the target index value based on the color palette table, obtains the target grayscale value, and the target memory address corresponding to the target grayscale value; configuring a second DMA channel so that the second The DMA channel updates the write destination address according to the LED grayscale table when the target memory address is different from the write destination address corresponding to the LED; configures the third DMA channel so that the third DMA channel writes the target grayscale value to the LED transmission list according to the updated write destination address; the LED transmission list includes a plurality of different LED serial numbers and the target grayscale value corresponding to each of the LED serial numbers; configures the fourth DMA channel so that when the target grayscale values corresponding to all the LEDs are written into the LED transmission list, the fourth DMA channel ends the current process and triggers the transmission module so that the transmission module sends the LED transmission list to realize LED backlight control.
[0006] In one embodiment of the present invention, the method further includes the following steps: configuring a second DMA channel so that the second DMA channel triggers the third DMA channel according to the LED grayscale table when the target memory address is the same as the write destination address corresponding to the LED, so that the third DMA channel writes the target grayscale value to the LED transmission list according to the write destination address.
[0007] In an embodiment of the present invention, the method further comprises the following steps: according to the actual brightness requirement, establishing a palette mechanism corresponding to the actual brightness requirement to obtain the palette table.
[0008] In one embodiment of the present invention, the method further includes the following steps: when the brightness of the LED needs to be changed, modifying the LED grayscale table.
[0009] In an embodiment of the present invention, the method further comprises the following step: modifying the palette table.
[0010] The present invention provides an LED backlight control system, comprising: an acquisition module, a first configuration module, a second configuration module, a third configuration module and a fourth configuration module; the acquisition module is used to acquire a color palette table and an LED grayscale table; the color palette table includes a plurality of different index values and a plurality of different grayscale values, each index value corresponds to a grayscale value, and each grayscale value is stored in a memory address; the LED grayscale table includes a plurality of different LED serial numbers and a target index value corresponding to each LED serial number, and each LED serial number corresponds to an LED; the first configuration module is used to configure a first DMA channel, so that the first DMA channel decodes the target index value based on the color palette table, acquires the target grayscale value, and the target memory address corresponding to the target grayscale value; the second configuration module is used to configure a second DMA channel The MA channel is configured to enable the second DMA channel to update the write destination address according to the LED grayscale table when the target memory address is different from the write destination address corresponding to the LED; the third configuration module is configured to configure the third DMA channel so that the third DMA channel writes the target grayscale value to the LED transmission list according to the updated write destination address; the LED transmission list includes a plurality of different LED serial numbers and the target grayscale value corresponding to each of the LED serial numbers; the fourth configuration module is configured to configure the fourth DMA channel so that when the target grayscale values corresponding to all the LEDs are written into the LED transmission list, the fourth DMA channel ends the current process and triggers the transmission module so that the transmission module sends the LED transmission list to realize LED backlight control.
[0011] The present invention provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned LED backlight control method is implemented.
[0012] The present invention provides a control module, comprising: a processor and a memory; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory, so that the control module executes the above-mentioned LED backlight control method.
[0013] The present invention provides an LED backlight control system, comprising: a host computer, a transmission module, a first DMA channel, a second DMA channel, a third DMA channel, a fourth DMA channel and the above-mentioned control module; the control module is connected to the host computer and is used to receive a color palette table and an LED grayscale table sent by the host computer, and configure the first DMA channel, the second DMA channel, the third DMA channel and the fourth DMA channel; the transmission module is connected to the control module and is used to transmit an LED transmission list sent by the control module.
[0014] In one embodiment of the present invention, the transmission module adopts SPI serial communication mode.
[0015] As described above, the LED backlight control method, system, medium and control module of the present invention have the following beneficial effects:
[0016] Compared with the prior art, the present invention constructs an automatic color adjustment brightness value acquisition and refresh system including four DMA channels and implemented by hardware, which completely relieves the processing pressure of the processor itself and can ensure a high LED backlight brightness refresh rate; by modifying the palette table and the LED grayscale table, the brightness of the LED can be dynamically adjusted, and the whole process does not require excessive participation of the processor, which can reduce the operating load of the processor and reduce the amount of memory used, so that the processor can have more resources and efficiency to perform other task processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 Shown is a flow chart of an LED backlight control method in one embodiment of the present invention.
[0018] Figure 2 FIG. 1 is a diagram showing the working principle of the LED backlight control method in one embodiment of the present invention.
[0019] Figure 3 FIG. 1 is a schematic diagram showing the structure of an LED backlight control system according to an embodiment of the present invention.
[0020] Figure 4 Shown is a schematic diagram of the structure of the LED backlight control system of another embodiment of the present invention
[0021] Description of symbols
[0022] 31 Get Module
[0023] 32 First configuration module
[0024] 33 Second configuration module
[0025] 34 Third configuration module
[0026] 35 Fourth configuration module
[0027] 41 Host computer
[0028] 42 Transmission Module
[0029] 43 First DMA channel
[0030] 44 Second DMA channel
[0031] 45 The third DMA channel
[0032] 46 Fourth DMA channel
[0033] 47 Control Module
[0034] Steps S1 to S5 DETAILED DESCRIPTION
[0035] The following describes the embodiments of the present invention through specific embodiments, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0036] It should be noted that the illustrations provided in the following embodiments are only used to illustrate the basic concept of the present invention in a schematic manner, and thus the illustrations only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0037] Compared with the prior art, the LED backlight control method, system, medium and control module of the present invention construct an automatic color adjustment brightness value acquisition and refresh system including four DMA channels and implemented by hardware, which completely relieves the processing pressure of the processor itself and can ensure a high LED backlight brightness refresh rate; by modifying the palette table and the LED grayscale table, the brightness of the LED can be dynamically adjusted, and the entire process does not require excessive participation of the processor, which can reduce the operating load of the processor and reduce the amount of memory used, so that the processor can have more resources and efficiency to perform other task processing.
[0038] The storage medium of the present invention stores a computer program, and when the computer program is executed by a processor, the following LED backlight control method is implemented. The storage medium includes: a read-only memory (ROM), a random access memory (RAM), a disk, a USB flash drive, a memory card, or an optical disk, etc., which can store program codes.
[0039] Any combination of one or more storage media may be used. The storage medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0040] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0041] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0042] Computer program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, Smalltalk, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0043] The present invention will be described below with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, thereby producing a machine so that these computer program instructions, when executed by the processor of the computer or other programmable data processing device, produce a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0044] These computer program instructions may also be stored in a computer-readable medium, which enables a computer, other programmable data processing apparatus, or other device to operate in a specific manner, so that the instructions stored in the computer-readable medium produce an article of manufacture including instructions for implementing the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0045] Computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide a process for implementing the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0046] The control module of the present invention includes a processor and a memory.
[0047] The memory is used to store computer programs; preferably, the memory includes: ROM, RAM, disk, USB flash drive, memory card or CD, etc., which can store program codes.
[0048] The processor is connected to the memory and is used to execute the computer program stored in the memory so that the control module executes the following LED backlight control method.
[0049] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0050] In one embodiment, the control module is an MCU.
[0051] like Figure 1 As shown, in one embodiment, the LED backlight control method of the present invention is applied to a control module; specifically, the LED backlight control method includes the following steps:
[0052] Step S1, obtaining a color palette table and an LED grayscale table.
[0053] In one embodiment, a color palette table and an LED grayscale table sent by a host computer are received.
[0054] It should be noted that the palette table includes a plurality of different index values and a plurality of different grayscale values, each index value corresponds to a grayscale value, and each grayscale value is stored in a corresponding memory address.
[0055] It should be noted that the LED grayscale table includes a plurality of different LED numbers and target index values corresponding to each of the LED numbers, and each LED number corresponds to an LED.
[0056] Furthermore, the target index value corresponding to each LED serial number may be the same or different, that is, among all LEDs, some LEDs may have the same grayscale value (brightness) or some LEDs may have different grayscale values (brightness).
[0057] In one embodiment, the method further includes the following steps: according to the actual brightness requirement, establishing a color palette mechanism corresponding to the actual brightness requirement to obtain the color palette table.
[0058] It should be noted that for LED backlight control, LED brightness control chips are used, generally using 4096 levels of grayscale, which can control 4096 levels of brightness. In actual use, only 4 levels are generally required, namely off, low brightness, high brightness, and brightest, which can be represented by 00, 01, 10, and 11 respectively. The correspondence between the 4 levels of brightness and the actual 4096 levels of grayscale is established, which is the palette mechanism.
[0059] In one embodiment, the palette mechanism uses binary index values, which are 00, 01, 10, and 11, and the brightness corresponding to these four index values is off, low brightness, high brightness, and brightest.
[0060] In one embodiment, the grayscale values corresponding to the brightness of off, low brightness, high brightness and brightest brightness are 0x0000, 0x2000, 0xC000 and 0xFFFF respectively.
[0061] Specifically, in this embodiment, the obtained color palette table is shown in Table 1:
[0062] Table 1 Color palette table
[0063]
[0064] In one embodiment, the grayscale value 0x0000 corresponding to the index value 00 is stored in a preset memory address; the grayscale value 0x2000 corresponding to the index value 01 is stored in (preset memory address + 2); the grayscale value 0xC000 corresponding to the index value 10 is stored in (preset memory address + 4); and the grayscale value 0xFFFF corresponding to the index value 11 is stored in (preset memory address + 6).
[0065] It should be noted that the preset memory address is pre-set, and its specific address is not a condition to limit the present invention. In practical applications, it can be set according to specific application scenarios.
[0066] Furthermore, a palette mechanism using ternary, decimal, and other index values may be established; specifically, the palette mechanism using several bases of index values is not a condition to limit the present invention, and in actual applications, it may be set according to specific application scenarios.
[0067] Step S2: configure the first DMA channel so that the first DMA channel decodes the target index value based on the palette table to obtain the target grayscale value and the target memory address corresponding to the target grayscale value.
[0068] Step S3, configuring a second DMA channel so that the second DMA channel updates the write destination address according to the LED grayscale table when the target memory address is different from the write destination address corresponding to the LED.
[0069] Step S4, configuring the third DMA channel so that the third DMA channel writes the target grayscale value into the LED transmission list according to the updated write destination address.
[0070] It should be noted that the LED transmission list includes a plurality of different LED numbers and the target grayscale value corresponding to each of the LED numbers.
[0071] In one embodiment, the method further includes the following steps: configuring a second DMA channel so that the second DMA channel triggers the third DMA channel according to the LED grayscale table when the target memory address is the same as the write destination address corresponding to the LED, so that the third DMA channel writes the target grayscale value to the LED transmission list according to the write destination address.
[0072] Step S5, configure the fourth DMA channel so that when the target grayscale values corresponding to all the LEDs are written into the LED transmission list, the process ends and the transmission module is triggered so that the transmission module sends the LED transmission list to realize LED backlight control.
[0073] In one embodiment, the method further comprises the following steps: when the brightness of the LED needs to be changed, modifying the LED grayscale table.
[0074] Specifically, when the brightness of an LED needs to be changed, the target index value corresponding to the LED whose brightness needs to be changed in the LED grayscale table can be directly modified.
[0075] In one embodiment, the LED grayscale table is modified by a host computer. At this time, the control module receives the modified LED grayscale table from the host computer to change the brightness of the LED according to the modified LED grayscale table.
[0076] It should be noted that, in the above-mentioned palette table, the grayscale value (that is, the corresponding brightness) corresponding to each index value is not fixed; for example, the grayscale value 0x2000 corresponding to the above-mentioned index value 01 (corresponding to brightness-low brightness) can also be 0x3000, as long as it is guaranteed to be between 0x0000 and 0xC000; similarly, the grayscale value 0xC000 corresponding to the index value 10 (corresponding to brightness-high brightness) can also be 0xD000, as long as it is guaranteed to be between 0x2000 and 0xFFFF.
[0077] In one embodiment, the method further comprises the following steps: modifying the palette table.
[0078] Specifically, the index value in the palette table may be modified, and the grayscale value therein may also be modified.
[0079] It should be noted that the palette table can reduce communication traffic (such as using 2-bit data instead of 12-bit grayscale data) by adopting the above-mentioned palette mechanism. On the other hand, by modifying the grayscale value in the palette table, the brightness of all LEDs of the same level can be modified in batches at the same time.
[0080] In one embodiment, the color palette table is modified by a host computer. In this case, the control module receives the modified color palette table from the host computer.
[0081] The working principle of the LED backlight control method of the present invention is further explained below through specific embodiments.
[0082] like Figure 2 As shown, in one embodiment, the working principle of the LED backlight control method of the present invention is as follows:
[0083] 1. The first DMA channel completes the decoding from the target index value to the target grayscale value corresponding to each LED (according to the LED serial number) in the LED grayscale table; and obtains the target memory address corresponding to the target grayscale value.
[0084] It should be noted that each time the first DMA channel completes decoding, the second DMA channel will be automatically triggered.
[0085] In one embodiment, the LED grayscale table is shown in Table 2:
[0086] Table 2 LED grayscale table
[0087]
[0088]
[0089] It should be noted that "00-11" in the column of "target index value" in Table 2 means any one of 00, 01, 10, and 11; the specific one is determined according to actual needs; Table 2 indicates that there are a total of (n+1) LEDs.
[0090] Furthermore, each LED corresponds to a write destination address, so that a target grayscale value corresponding to the LED is determined according to the write destination address.
[0091] It should be noted that the write destination address is one of the memory addresses corresponding to the storage of all grayscale values in the palette table.
[0092] 2. The second DMA channel is the transmission value address translation channel. According to the LED grayscale table, when the target memory address is different from the write destination address corresponding to the LED, the write destination address is updated. After the last translation is completed, the fourth DMA channel is triggered, otherwise the third DMA channel is triggered;
[0093] 3. The third DMA channel is a continuous transmission channel, which writes the target grayscale value decoded by the first DMA channel into the LED transmission list according to the write destination address translated by the second DMA channel.
[0094] It should be noted that after each target grayscale value is written to the LED transfer list, the third DMA channel will automatically trigger the first DMA channel to decode the next LED; until all target grayscale values corresponding to all LEDs are written into the LED transfer list.
[0095] In one embodiment, the LED transmission list is shown in Table 3:
[0096] Table 3 LED transmission list
[0097]
[0098] It should be noted that "0x0000-0xFFFF" in the column of "target grayscale value" in Table 3 refers to any one of 0x0000, 0x2000, 0xC000, and 0xFFFF; the specific one is determined according to actual needs.
[0099] 4. The fourth DMA channel is the end transmission channel. After all the target grayscale values corresponding to all LEDs are written into the LED transmission list, all operations of this time are ended, and the SPI serial interface is triggered to send out the LED transmission list to realize LED backlight control.
[0100] It should be noted that the LED backlight control method provided by the present invention constructs a complete set of DMA automatons for LED backlight transmission (including the above-mentioned first DMA channel, second DMA channel, third DMA channel and fourth DMA channel). After the configuration of multiple DMA channels is completed, whenever the LED backlight brightness needs to be updated, only one instruction to start the DMA automaton is required.
[0101] Furthermore, there is no order restriction for the execution process of steps S1 to S5 of the above-mentioned LED backlight control method, especially steps S2 to S5. These four steps emphasize the configuration of the first DMA channel, the second DMA channel, the third DMA channel and the fourth DMA channel (the channel can be configured first, and then the color palette table and the LED grayscale table are obtained; the color palette table and the LED grayscale table can also be obtained first, and then the channel is configured; of course, they can also be performed simultaneously). Which channel is configured first is not a condition to limit the present invention, as long as the four channels are configured and the corresponding color palette table and LED grayscale table are obtained before the LED backlight control is performed.
[0102] It should be noted that there is no order restriction for the execution of the above steps S1 to S5, but in the process of LED backlight control, the execution of each channel is in order, that is, first through the first DMA channel, then through the second DMA channel; and the third DMA channel and the fourth DMA channel are parallel, that is, after passing through the second DMA channel, if the target grayscale values corresponding to all LEDs are not completely written into the LED transmission list, the third DMA channel is triggered; on the contrary, if the target grayscale values corresponding to all LEDs are written into the LED transmission list, the fourth DMA channel is triggered (such as Figure 2 shown).
[0103] This means that after the second DMA channel, a judgment process is required to determine whether the target grayscale values corresponding to all LEDs are written into the LED transmission list.
[0104] In one embodiment, the control module determines whether the target grayscale values corresponding to all LEDs are written into the LED transmission list.
[0105] Specifically, if the target grayscale values corresponding to all LEDs are not completely written into the LED transfer list, the third DMA channel is triggered; if the target grayscale values corresponding to all LEDs are written into the LED transfer list, the fourth DMA channel is triggered.
[0106] In one embodiment, the third DMA channel is configured by the control module so that the third DMA channel automatically triggers the fourth DMA channel after writing the target grayscale value corresponding to the last LED into the LED transmission list.
[0107] It should be noted that the protection scope of the LED backlight control method described in the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.
[0108] like Figure 3As shown, in one embodiment, the LED backlight control system of the present invention includes an acquisition module 31 , a first configuration module 32 , a second configuration module 33 , a third configuration module 34 and a fourth configuration module 35 .
[0109] The acquisition module 31 is used to obtain a color palette table and an LED grayscale table; the color palette table includes multiple different index values and multiple different grayscale values, each index value corresponds to a grayscale value, and each of the grayscale values is stored in a memory address; the LED grayscale table includes multiple different LED serial numbers and target index values corresponding to each of the LED serial numbers, and each LED serial number corresponds to an LED.
[0110] The first configuration module 32 is used to configure the first DMA channel so that the first DMA channel decodes the target index value based on the palette table to obtain the target grayscale value and the target memory address corresponding to the target grayscale value.
[0111] The second configuration module 33 is used to configure the second DMA channel so that the second DMA channel updates the write destination address according to the LED grayscale table when the target memory address is different from the write destination address corresponding to the LED.
[0112] The third configuration module 34 is used to configure the third DMA channel so that the third DMA channel writes the target grayscale value into the LED transmission list according to the updated write destination address; the LED transmission list includes multiple different LED numbers and the target grayscale value corresponding to each LED number.
[0113] The fourth configuration module 35 is used to configure the fourth DMA channel so that when the target grayscale values corresponding to all the LEDs are written into the LED transmission list, the fourth DMA channel ends the current process and triggers the transmission module so that the transmission module sends the LED transmission list to realize LED backlight control.
[0114] It should be noted that the structures and principles of the acquisition module 31, the first configuration module 32, the second configuration module 33, the third configuration module 34 and the fourth configuration module 35 correspond one-to-one to the steps (steps S1 to S5) in the above-mentioned LED backlight control method, so they are not repeated here.
[0115] It should be noted that it should be understood that the division of the various modules of the above system is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the x module can be a separately established processing element, or it can be integrated in a certain chip of the above system for implementation. In addition, it can also be stored in the memory of the above system in the form of program code, and called and executed by a certain processing element of the above system. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0116] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0117] like Figure 4 As shown, in one embodiment, the LED backlight control system of the present invention includes a host computer 41, a transmission module 42, a first DMA channel 43, a second DMA channel 44, a third DMA channel 45, a fourth DMA channel 46 and the above-mentioned control module 47.
[0118] Specifically, the control module 47 is connected to the host computer 41, and is used to receive the palette table and LED grayscale table sent by the host computer 41, and configure the first DMA channel 43, the second DMA channel 44, the third DMA channel 45 and the fourth DMA channel 46; the transmission module 42 is connected to the control module 47, and is used to transmit the LED transmission list sent by the control module 47.
[0119] In one embodiment, the transmission module 42 adopts SPI serial communication.
[0120] It should be noted that the working principle of the LED backlight control system is the same as the working principle of the above-mentioned LED backlight control method, so it will not be described in detail here.
[0121] It should be noted that the LED backlight control system of the present invention can implement the LED backlight control method of the present invention, but the implementation device of the LED backlight control method of the present invention includes but is not limited to the structure of the LED backlight control system listed in this embodiment. All structural deformations and replacements of the prior art made according to the principles of the present invention are included in the protection scope of the present invention.
[0122] In summary, compared with the prior art, the LED backlight control method, system, medium and control module of the present invention construct an automatic color adjustment brightness value acquisition and refresh system including four DMA channels and implemented by hardware, which completely liberates the processing pressure of the processor itself and can ensure a high LED backlight brightness refresh rate; by modifying the palette table and the LED grayscale table, the brightness of the LED can be dynamically adjusted, and the entire process does not require excessive participation of the processor, which can reduce the operating load of the processor and reduce the amount of memory used, so that the processor can have more resources and efficiency to perform other task processing; therefore, the present invention effectively overcomes the various shortcomings of the prior art and has a high industrial utilization value.
[0123] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A method for controlling LED backlight, characterized in that: The following steps are involved: Obtain a color palette table and an LED grayscale table; the color palette table includes a plurality of different index values and a plurality of different grayscale values, each index value corresponds to a grayscale value, and each grayscale value is stored in a memory address; the LED grayscale table includes a plurality of different LED serial numbers and a target index value corresponding to each LED serial number, and each LED serial number corresponds to an LED; Configure a first DMA channel so that the first DMA channel decodes the target index value based on the palette table to obtain a target grayscale value and a target memory address corresponding to the target grayscale value; configuring a second DMA channel so that the second DMA channel updates the write destination address according to the LED grayscale table when the target memory address is different from the write destination address corresponding to the LED; configuring a third DMA channel so that the third DMA channel writes the target grayscale value into an LED transmission list according to an updated write destination address; the LED transmission list includes a plurality of different LED serial numbers and the target grayscale value corresponding to each of the LED serial numbers; The fourth DMA channel is configured so that when the target grayscale values corresponding to all the LEDs are written into the LED transmission list, the process ends and the transmission module is triggered so that the transmission module sends the LED transmission list to realize LED backlight control.
2. The LED backlight control method according to claim 1, characterized in that: The method also includes the following steps: configuring a second DMA channel so that the second DMA channel triggers the third DMA channel according to the LED grayscale table when the target memory address is the same as the write destination address corresponding to the LED, so that the third DMA channel writes the target grayscale value to the LED transmission list according to the write destination address.
3. The LED backlight control method according to claim 1, characterized in that: The method further comprises the following steps: according to the actual brightness requirement, establishing a color palette mechanism corresponding to the actual brightness requirement to obtain the color palette table.
4. The LED backlight control method according to claim 1, characterized in that: The method further comprises the following steps: when the brightness of the LED needs to be changed, modifying the LED grayscale table.
5. The LED backlight control method according to any one of claims 1 to 4, characterized in that: The method further comprises the step of modifying the palette table.
6. An LED backlight control system, characterized in that: include: An acquisition module, a first configuration module, a second configuration module, a third configuration module, and a fourth configuration module; The acquisition module is used to acquire a color palette table and an LED grayscale table; the color palette table includes a plurality of different index values and a plurality of different grayscale values, each index value corresponds to a grayscale value, and each grayscale value is stored in a memory address; the LED grayscale table includes a plurality of different LED serial numbers and a target index value corresponding to each LED serial number, and each LED serial number corresponds to an LED; The first configuration module is used to configure the first DMA channel so that the first DMA channel decodes the target index value based on the palette table to obtain the target grayscale value and the target memory address corresponding to the target grayscale value; The second configuration module is used to configure the second DMA channel so that the second DMA channel updates the write destination address according to the LED grayscale table when the target memory address is different from the write destination address corresponding to the LED; The third configuration module is used to configure the third DMA channel so that the third DMA channel writes the target gray value into the LED transmission list according to the updated write destination address; the LED transmission list includes a plurality of different LED serial numbers and the target gray value corresponding to each of the LED serial numbers; The fourth configuration module is used to configure the fourth DMA channel so that when the target grayscale values corresponding to all the LEDs are written into the LED transmission list, the fourth DMA channel ends the current process and triggers the transmission module so that the transmission module sends the LED transmission list to realize LED backlight control.
7. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the LED backlight control method according to any one of claims 1 to 5 is implemented.
8. A control module, characterized in that: include: Processor, memory; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory, so that the control module executes the LED backlight control method according to any one of claims 1 to 5.
9. An LED backlight control system, characterized in that: include: A host computer, a transmission module, a first DMA channel, a second DMA channel, a third DMA channel, a fourth DMA channel and a control module as described in any one of claim 8; The control module is connected to the host computer, and is used to receive the color palette table and the LED grayscale table sent by the host computer, and configure the first DMA channel, the second DMA channel, the third DMA channel, and the fourth DMA channel; The transmission module is connected to the control module and is used to transmit the LED transmission list sent by the control module.
10. The LED backlight control system according to claim 9, characterized in that: The transmission module adopts SPI serial communication mode.
