CN-122002664-A - LED driving method, driving chip and LED control system
Abstract
The application provides an LED driving method, a driving chip and an LED control system, which are suitable for the technical field of LED driving control. The method comprises the steps of responding to a received control instruction, obtaining a current address, wherein the control instruction comprises a mask parameter, carrying out operation on the basis of the current address and the mask parameter to obtain an operation result, grouping the current address on the basis of the operation result to obtain a target address, obtaining luminous control information and a grouping driving address, and controlling corresponding LEDs to emit light on the basis of the luminous control information and the target address. The embodiment of the application realizes the grouping mode through mask operation, supports the dynamic creation, modification and combination of LED grouping through the control command when the LED control system operates, does not need to change hardware wiring, improves the control flexibility, ensures that one control command can operate hundreds or even thousands of LEDs at the same time, greatly reduces the bus data quantity, improves the refresh rate and has extremely high control command efficiency.
Inventors
- QIAO SHICHENG
- LU YULING
- WANG ZHIWEI
- CHEN MENGBANG
- CAI RONGHUAI
- LEI XIANZAI
Assignees
- 宗仁科技(平潭)股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260129
Claims (10)
- 1. An LED driving method, comprising: acquiring a current address in response to receiving a control instruction, wherein the control instruction comprises a mask parameter; performing operation based on the current address and the mask parameter to obtain an operation result; grouping the current addresses based on the operation result to obtain target addresses; And acquiring light emission control information, and controlling the corresponding LEDs to emit light based on the light emission control information and the target address.
- 2. The method of driving an LED as claimed in claim 1, wherein the current address is a physical address or a temporary address; the grouping the current address based on the operation result to obtain a target address includes: If the current address is a physical address, grouping the physical address based on the operation result, generating a temporary address, and taking the temporary address as the target address; And if the current address is a temporary address, grouping the temporary address based on the operation result, generating a new temporary address, and taking the new temporary address as the target address.
- 3. The LED driving method according to claim 1, wherein grouping the current addresses based on the operation result to obtain target addresses includes: taking the operation result as a target address to group the current address; and/or the control instruction further comprises a target value, wherein the grouping the current address based on the operation result to obtain the target address comprises the following steps: And comparing the operation result with the target value, and determining the target address based on the comparison result so as to group the current address.
- 4. The LED driving method according to claim 3, wherein the control instruction includes a comparison condition; The determining the target address based on the comparison result includes determining the target address based on a comparison condition satisfied by the comparison result.
- 5. The LED driving method according to any one of claims 1 to 4, wherein the performing an operation based on the current address and the mask parameter to obtain an operation result includes: And carrying out logic operation on the current address and the mask parameter to obtain an operation result.
- 6. The LED driving method according to any one of claims 1 to 4, wherein the light emission control information includes light emission information and driving address information, and the controlling the corresponding LED to emit light based on the light emission control information and the target address includes: matching the target address with the driving address information to obtain a matching result; controlling the corresponding LEDs to emit light based on the light emitting information and the matching result; Or controlling the corresponding LED to emit light based on the light emission control information and the target address, including: determining the data ordering of the target address based on a preset ordering logic or a designated starting address; Acquiring luminous data of the target address from the luminous control information based on the data sequence of the target address, wherein the luminous control information comprises a plurality of luminous data which are sequentially arranged; and controlling the corresponding LEDs to emit light based on the light-emitting data of the target address.
- 7. The LED driving method according to any one of claims 1 to 4, wherein the acquiring of the light emission control information includes any one of: Acquiring luminous control information from the control instruction; in response to receiving a light emission drive instruction, light emission control information is acquired from the light emission drive instruction.
- 8. A driver chip, comprising: An address storage unit for storing an address; The logic operation unit is used for responding to a control instruction, acquiring a current address from the address storage unit, wherein the control instruction comprises a mask parameter, performing operation based on the current address and the mask parameter to obtain an operation result, and grouping the current address based on the operation result to obtain a target address; And the driving unit is used for acquiring the light-emitting control information and controlling the corresponding LEDs to emit light based on the light-emitting control information and the target address.
- 9. The drive chip according to claim 8, wherein the address storage unit includes a first address storage module for storing a physical address and a second address storage module for storing a temporary address, the temporary address including the target address; and/or the driving chip further comprises an instruction decoding unit, wherein the instruction decoding unit is used for receiving the control instruction and decoding the control instruction to obtain the mask parameter.
- 10. An LED control system is characterized by comprising a controller and at least one driving chip; The controller is used for sending control instructions to the driving chips; the driving chip is used for executing the LED driving method according to any one of claims 1 to 7.
Description
LED driving method, driving chip and LED control system Technical Field The present application relates to the technical field of LED driving control, and in particular, to an LED driving method, a driving chip, and an LED control system. Background As the demand for visual experience by humans continues to increase, the innovation and development of display technology is increasingly important. Illumination and display technology has been two areas of necessity in modern technological development. In LED (light-emitting diode) display, lighting and decoration systems, how to efficiently and flexibly control a large number of LED units is a long-standing technical challenge. The existing grouping mode depends on a pre-programming or fixed circuit, and the LED units cannot be recombined efficiently and flexibly when the LED control system operates. Disclosure of Invention In view of the above, the embodiments of the present application provide an LED driving method, a driving chip and an LED control system, so as to solve the problem that the LED units cannot be efficiently and flexibly recombined when the LED control system is operated in the prior art. A first aspect of an embodiment of the present application provides an LED driving method, including: Acquiring a current address in response to receiving a control instruction, wherein the control instruction comprises a mask parameter; performing operation based on the current address and the mask parameter to obtain an operation result; grouping the current addresses based on the operation result to obtain target addresses; And acquiring the light-emitting control information, and controlling the corresponding LEDs to emit light based on the light-emitting control information and the target address. In one possible implementation, the LED driving method comprises the steps that the current address is a physical address or a temporary address; grouping the current address based on the operation result to obtain a target address, including: if the current address is a physical address, grouping the physical address based on the operation result, generating a temporary address, and taking the temporary address as a target address; If the current address is a temporary address, the temporary addresses are grouped based on the operation result, a new temporary address is generated, and the new temporary address is used as a target address. In one possible implementation, grouping the current address based on the operation result to obtain the target address includes: taking the operation result as a target address to group the current address; And/or the control instruction further comprises a target value, and grouping the current address based on the operation result to obtain a target address, wherein the method comprises the following steps: The operation result and the target value are compared, and a target address is determined based on the comparison result to group the current address. In one possible implementation, the control instructions include a comparison condition, and determining the target address based on the comparison result includes determining the target address based on the comparison condition satisfied by the comparison result. In one possible implementation, the operation is performed based on the current address and the mask parameter to obtain an operation result, including performing a logic operation on the current address and the mask parameter to obtain the operation result. In one possible implementation, the lighting control information includes lighting information and driving address information, and controlling lighting of the corresponding LED based on the lighting control information and the target address includes: matching the target address with the driving address information to obtain a matching result; Based on the luminous information and the matching result, controlling the corresponding LEDs to emit light; or based on the lighting control information and the target address, controlling the corresponding LED to emit light, including: determining the data ordering of the target address based on a preset ordering logic or a designated starting address; acquiring luminous data of a target address from luminous control information based on data ordering of the target address, wherein the luminous control information comprises a plurality of luminous data which are sequentially arranged; and controlling the corresponding LEDs to emit light based on the light-emitting data of the target address. In one possible implementation, the light emission control information is obtained, including any one of the following: Acquiring luminous control information from a control instruction; In response to receiving the light emission drive instruction, light emission control information is acquired from the light emission drive instruction. A second aspect of an embodiment of the present application provides a driving chip, inclu