CN102548139B - Method and device for controlling brightness - Google Patents
Method and device for controlling brightness Download PDFInfo
- Publication number
- CN102548139B CN102548139B CN201110438824.3A CN201110438824A CN102548139B CN 102548139 B CN102548139 B CN 102548139B CN 201110438824 A CN201110438824 A CN 201110438824A CN 102548139 B CN102548139 B CN 102548139B
- Authority
- CN
- China
- Prior art keywords
- brightness
- data
- control data
- count value
- control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
The invention provides a method and a device for controlling brightness, which belongs to the field of brightness control. In the invention, needed brightness control data are generated according to the brightness variation parameter of a lighting device set at user sides; and the brightness control data are sent according to the data sending sequence set at the user sides to conduct brightness control of the lighting device at time division, so s to realize rapid brightness control and good brightness variation display effect of the lighting device. The method and the device provided by the invention solves the problems of large output data quantity, much redundant data and wastes of resources of a main control system in the brightness control method in the prior art.
Description
Technical field
The invention belongs to the brilliance control field, relate in particular to a kind of brightness control method and device.
Background technology
At present, the light-emitting devices such as LED have been widely used in the fields such as digital demonstration, domestic lighting, industrial searchlighting, and in the use procedure to light-emitting devices such as LED, often need to regulate the display effect of the light-emitting devices such as LED, for example, make certain LED lamp in the middle of a plurality of LED lamps gradually bright or gradually go out, other LED lamps keep original show state.This just need to light the time and working current driving LED lamp is realized specific display effect according to predefined.
In existing brilliance control technology, normally adopt the method for digital dimming, show that in each data the refresh cycle sends a luminance control data light-emitting device is shown to control.Yet, in said method, no matter whether the luminescence unit in light-emitting device needs to carry out the display effect variation, luminance control data all need to show that the refresh cycle regenerates and sends in each data, will cause like this data volume of exporting in whole light-emitting device control procedure large, redundant data is many, and the resource of waste master control system.Therefore, existing brightness control method exists output data quantity large, and redundant data is many, and the problem of waste master control system resource.
Summary of the invention
The invention provides a kind of brightness control method, be intended to solve existing brightness control method existing that output data quantity is large, redundant data is many, and the problem of waste master control system resource.
The present invention is achieved in that a kind of brightness control method, and described brightness control method comprises the following steps:
A, generate brilliance control information, cycle count value and Refresh Data display cycle number according to the setting of user side;
B, the data sending order timesharing of setting according to user side sends the luminance control data that comprises in described brilliance control information to control the brightness of light-emitting device;
C, adjust described cycle count value;
D, judge whether described cycle count value equals described Refresh Data display cycle number, is, performs step e, no, performs step b;
E, judge whether to receive the process END instruction that user side sends, and is, finishes the brilliance control process, no, jumps to step a.
The present invention also aims to provide a kind of brightness controlling device, described brightness controlling device comprises:
The control information generation unit, generate brilliance control information, cycle count value and Refresh Data display cycle number for the setting according to user side;
Control data transmission unit, for the data sending order timesharing of setting according to user side, send luminance control data that described brilliance control information comprises to control the brightness of light-emitting device;
The cycle count value adjustment unit, for adjusting described cycle count value;
Whether the periodicity comparing unit, equal described Refresh Data display cycle number for judging described cycle count value;
Process finishes judging unit, for judging whether to receive the process END instruction that user side sends;
Control the procedure termination unit, for finishing the brilliance control process;
The first trigger element, for being not equal to the Refresh Data display cycle when cycle count value during number, trigger described control data transmission unit and enter duty;
The second trigger element, for when not receiving the process END instruction that user side sends, trigger described control information generation unit and enter duty.
In the present invention, generate required luminance control data by the brightness running parameter of setting according to user side, and send described luminance control data according to the data sending order that user side is set, with timesharing, light-emitting device is carried out to brilliance control, thereby realize the quick brightness regulation of light-emitting device and good brightness are changed to display effect, solved the existing output data quantity of existing brightness control method large, redundant data is many, and the problem of waste master control system resource.
The accompanying drawing explanation
Fig. 1 is the realization flow figure of the brightness control method that provides of first embodiment of the invention;
Fig. 2 is that the brightness that first embodiment of the invention provides changes schematic diagram;
Fig. 3 is that the brightness that first embodiment of the invention provides changes schematic diagram
Fig. 4 is the structural drawing of the brightness controlling device that provides of second embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, generate required luminance control data by the brightness running parameter of setting according to user side, and according to the data sending order transmission luminance control data timesharing of user side setting, light-emitting device is carried out to brilliance control, thereby realize the quick brightness regulation of light-emitting device and good brightness are changed to display effect.
Below in conjunction with specific embodiment, specific implementation of the present invention is described in detail:
embodiment mono-:
Fig. 1 shows the realization flow of the brightness control method that first embodiment of the invention provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention, and details are as follows:
In step S101, according to the setting of user side, generate brilliance control information, cycle count value and Refresh Data display cycle number.
Wherein, brilliance control information comprises single or multiple constant brightness control data, or single or multiple brightness variation control data, or single or multiple constant brightness is controlled data and single or multiple brightness changes the control data.Constant brightness control data are used for controlling light-emitting device and are fixed the brightness demonstration, and brightness variation control data are used for controlling light-emitting device and carry out brightness variation demonstration.
Wherein, the cycle count value generated according to the setting of user side is 0, the cycle index that Refresh Data display cycle number is the brilliance control process set of user side.
In step S102, the luminance control data comprised in the data sending order timesharing transmission brilliance control information of setting according to user side is to control the brightness of light-emitting device.
Step S102 specifically comprises:
What generate the luminance control data that comprises in enable signal and brilliance control information according to the setting of user side enables the time width value;
The data sending order of setting according to user side sends the luminance control data comprised in brilliance control information, and enables time width value output enable signal according to it after each luminance control data sends;
When brilliance control information comprises that single or multiple brightness changes the control data, generate according to the setting of user side the time width step value that single or multiple brightness changes the control data, this single or multiple brightness is changed to the time width step value of controlling data and enables the time width value with it and carries out once and computing, and change the control data using operation result as single or multiple brightness enable the time width value.
In specific implementation process, for example, when brilliance control information comprises that a constant brightness is controlled data and a brightness changes the control data, and the sending order that user side is set is controlled data for first sending this constant brightness, this brightness of rear transmission changes controls data, enable time width value output enable signal according to it after sending these constant brightness control data, enable time width value output enable signal according to it after sending these brightness variation control data, thereby realize the timesharing brilliance control to light-emitting device.
In embodiments of the present invention, enable signal is that to control in constant brightness that data or brightness changes after controlling data and being sent be low level pulse signal from the high level saltus step, constant brightness is controlled the time width value representation enable signal that enables of data and is controlled the output time after data are sent in constant brightness each time, brightness changes the time width value representation enable signal that enables of controlling data and changes the output time of controlling after data are sent in brightness each time, what data change were controlled in brightness enables the time width value along with the variation of predefined regularity can occur in the propelling of whole brilliance control process, brightness changes the time width step value of controlling data and means that brightness changes the time amount that enables the required adjustment after output each time of time width value of controlling data.
In step S103, the adjustment cycle count value.
Step S103 is specially:
Cycle count value is carried out from add-one operation;
Cycle count value is updated to it is carried out to the operation result from add-one operation.
In step S104, judge whether cycle count value equals Refresh Data display cycle number, is, performs step S105, no, perform step S102.
In specific implementation process, for example, the Refresh Data display cycle number that user side sets is 10, and, when the cycle count value through adjusting is 10, whole brilliance control process finishes.
In specific implementation process, sending constant brightness controls data, according to constant brightness, controls enabling time width value output enable signal, sending brightness and change and control data, change according to brightness the time width value output enable signal that enables of controlling data and interrupt carrying out by different timers respectively of data, each time of interrupting is identical, can when the timesharing of carrying out different display effects to light-emitting device is controlled, avoid like this occurring the problem with the display effect entanglement that interferes with each other between the luminance control datas of two kinds of adjacent times.
In step S105, judge whether to receive the process END instruction that user side sends, be to perform step S106, no, jump to step S101.
In step S106, finish the brilliance control process.
In the invention process, constant brightness is controlled data and brightness and is changed and control data and be the packet that binary code " 0 " and " 1 " form, " 0 " represents that luminescence unit in light-emitting device is in " going out " state, " 1 " represents that luminescence unit is in " bright " state, system becomes " 0 " in " 1 " that generates when brightness changes the control data in only constant brightness need to being controlled to data, and will need the corresponding code bit of luminescence unit that changes brightness to become " 1 " by " 0 ", the binary code of all the other code bits remains unchanged and gets final product, output data quantity can be reached so little, save system resource, shorten the processing time, realization drives the flicker free of light-emitting device.
The data sending order of at every turn setting according to user side sends the luminance control data comprised in brilliance control information, and to enable the shared time of time width value output enable signal according to it after each luminance control data sends be number refresh cycle according to the show.
As shown in Figure 2, LED lamp group is carried out to brilliance control, suppose that the LED lamp group that need to carry out brilliance control comprises L1-L10 totally 10 LED lamps, wherein, the user needs L2 and L9 to keep normal bright state, L7 is bright state gradually, L5 is the state that gradually goes out, L10 is the glimmer state, remaining LED lamp keeps the state that often goes out, constant brightness control data (Chang Liang) comprising: 0100000010, brightness changes control data (gradually bright) and comprising: 0000001000, brightness changes control data (gradually going out) and comprising: 0000100000, constant brightness is controlled data (glimmer) and being comprised: 0000000001, above-mentioned constant brightness is controlled data, brightness changes controls data (gradually bright), brightness changes control data (gradually going out) and constant brightness is controlled from left to right corresponding L1-L10 of data (glimmer).Constant brightness is controlled data (Chang Liang), brightness changes controls data (gradually bright), brightness changes the transmitting time width value of controlling data (gradually going out) and constant brightness control data (glimmer) and is 10T, it is T that brightness changes the time width step value of controlling data (gradually bright), brightness changes the time width step value of controlling data (gradually going out), T can be the Microsecond grade time interval of user side setting, each data shows that the refresh cycle is 59T, the time width value that constant brightness is controlled data is 8T, the initial value that brightness changes the time width value of controlling data (gradually bright) is T, the initial value that brightness changes the time width value of controlling data (gradually going out) is 8T, the time width value (glimmer) of constant brightness control data is 2T, from S1-S48, interrupt for totally 48 times, be 300 microseconds (μ s) each break period, the initial value of cycle count value is 0, from T1-T6 totally 6 numbers refresh cycle according to the show, each data shows that the refresh cycle is 20 milliseconds (ms), often enter next data and show the refresh cycle, brightness changes the time width value of controlling data (gradually bright) and adds a T, brightness changes the time width value of controlling data (gradually going out) and adds one-T, when cycle count value equals Refresh Data number of cycles (6), whole brilliance control process finishes.
As shown in Figure 3, LED lamp group is carried out to brilliance control, suppose that the LED lamp group that need to carry out brilliance control comprises L1-L10 totally 10 LED lamps, wherein, the user needs L2 and L9 to keep normal bright state, and L7 is bright state gradually, remaining LED lamp maintenance state that often goes out, constant brightness control data comprise: 0100000010, and brightness changes control data (gradually bright) and comprising: 0000001000.The time width value that constant brightness is controlled data is 16T, the initial value that brightness changes the time width value of controlling data (gradually bright) is T, it is T that brightness changes the time width step value of controlling data (gradually bright), T can be the Microsecond grade time interval of user's setting, from S1-S64, interrupt for totally 64 times, be 300 microseconds (μ s) each break period, the initial value of cycle count value is 0, from T1-T16 totally 16 numbers refresh cycle according to the show, often enter next data and show the refresh cycle, brightness changes the time width value of controlling data (gradually bright) and adds a T, when cycle count value equals Refresh Data number of cycles (16), whole brilliance control process finishes.
As above-mentioned Fig. 3 is first to send constant brightness to control data for example, rear transmission brightness changes the control data instance whole LED brilliance control process is described, and change the control data first to send brightness, the principle of the LED brilliance control process of rear transmission constant brightness control data, with above-mentioned identical for example, therefore repeats no more.
In embodiments of the present invention, generate required luminance control data by the brightness running parameter of setting according to user side, and the data sending order of setting according to user side transmission luminance control data carries out brilliance control with timesharing to light-emitting device, thereby realize the quick brightness regulation of light-emitting device and good brightness are changed to display effect, solved the existing output data quantity of existing brightness control method large, redundant data is many, and the problem of waste master control system resource.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
embodiment bis-:
Fig. 3 shows the structural drawing of the brightness controlling device that second embodiment of the invention provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention, and details are as follows:
Brightness controlling device comprises that control information generation unit 100, control data transmission unit 200, cycle count value adjustment unit 300, periodicity comparing unit 400, process finish judging unit 500, control procedure termination unit 600, the first trigger element 700 and the second trigger element 800.
Control information generation unit 100 generates brilliance control information, cycle count value and Refresh Data display cycle number for the setting according to user side.
The luminance control data that control data transmission unit 200 comprises for the data sending order transmission brilliance control information of setting according to user side is to control the brightness of light-emitting device.
Controlling data transmission unit 200 specifically comprises:
Enable parameter generating unit 201, what for the setting according to user side, generate luminance control data that enable signal and brilliance control information comprises enables the time width value.
Control data and send subelement 202, send for the data sending order of setting according to user side the luminance control data that brilliance control information comprises, and enable time width value output enable signal according to each luminance control data after each luminance control data sends.
Enable time width adjustment unit 203, be used for when brilliance control information comprises that single or multiple brightness changes the control data, generate according to the setting of user side the time width step value that single or multiple brightness changes the control data, this single or multiple brightness is changed to the time width step value of controlling data and enables the time width value with it and carries out once and computing, and change the control data using operation result as single or multiple brightness enable the time width value.
Cycle count value adjustment unit 300 is for the adjustment cycle count value.
Cycle count value adjustment unit 300 specifically comprises:
Cycle count value computing unit 301, for carrying out from add-one operation cycle count value;
Cycle count value updating block 302, for being updated to cycle count value the operation result of cycle count value computing unit 302.
Process finishes judging unit 500 for judging whether to receive the process END instruction that user side sends.
Control procedure termination unit 600 for finishing the brilliance control process.
The first trigger element 700 is for being not equal to the Refresh Data display cycle during number when cycle count value, trigger to control data transmission unit 200 and enter duty.
The second trigger element 800, for when not receiving the process END instruction that user side sends, triggers control information generation unit 100 and enters duty
In embodiments of the present invention, generate required luminance control data by the brightness running parameter of setting according to user side, and the data sending order of setting according to user side transmission luminance control data carries out brilliance control with timesharing to light-emitting device, thereby realize the quick brightness regulation of light-emitting device and good brightness are changed to display effect, solved the existing output data quantity of existing brightness control method large, redundant data is many, and the problem of waste master control system resource.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.
Claims (3)
1. a brightness control method, is characterized in that, described brightness control method comprises the following steps:
A, generate brilliance control information, cycle count value and display cycle data number according to the setting of user side;
B, the luminance control data comprised in the data sending order timesharing of setting according to user side transmission brilliance control information is to control the brightness of light-emitting device;
C, adjust described cycle count value;
D, judge whether described cycle count value equals described display cycle data number, is, performs step e, no, performs step b;
E, judge whether to receive the process END instruction that user side sends, and is, finishes the brilliance control process, no, jumps to step a;
Described step b specifically comprises the following steps:
What generate the luminance control data that comprises in enable signal and described brilliance control information according to the setting of user side enables the time width value;
The data sending order of setting according to user side sends the luminance control data comprised in described brilliance control information, and enables the time width value according to it export described enable signal after each luminance control data sends;
When described brilliance control information comprises that single or multiple brightness changes the control data, generate according to the setting of user side the time width step value that described single or multiple brightness changes the control data, described single or multiple brightness is changed to the time width step value of controlling data and enables the time width value with it and carries out once and computing, and change the control data using operation result as described single or multiple brightness enable the time width value;
Described step c specifically comprises:
Described cycle count value is carried out from add-one operation;
Described cycle count value is updated to it is carried out to the operation result from add-one operation.
2. brightness control method as claimed in claim 1, it is characterized in that, described brilliance control information comprises single or multiple constant brightness control data, perhaps single or multiple brightness changes the control data, or single or multiple constant brightness is controlled data and single or multiple brightness changes the control data;
Described constant brightness control data are used for controlling light-emitting device and are fixed the brightness demonstration, and described brightness variation control data are used for controlling light-emitting device and carry out brightness variation demonstration.
3. a brightness controlling device, is characterized in that, described brightness controlling device comprises:
The control information generation unit, generate brilliance control information, cycle count value and Refresh Data display cycle number for the setting according to user side;
Control data transmission unit, for the data sending order timesharing of setting according to user side, send luminance control data that described brilliance control information comprises to control the brightness of light-emitting device;
The cycle count value adjustment unit, for adjusting described cycle count value;
Whether the periodicity comparing unit, equal described Refresh Data display cycle number for judging described cycle count value;
Process finishes judging unit, for judging whether to receive the process END instruction that user side sends;
Control the procedure termination unit, for finishing the brilliance control process;
The first trigger element, trigger described control data transmission unit during number and enter duty for be not equal to the Refresh Data display cycle when cycle count value;
The second trigger element, for when not receiving the process END instruction that user side sends, trigger described control information generation unit and enter duty;
Described control data transmission unit specifically comprises:
Enable parameter generating unit, what for the setting according to user side, generate luminance control data that enable signal and described brilliance control information comprises enables the time width value;
Control data and send subelement, send for the data sending order of setting according to user side the luminance control data that described brilliance control information comprises, and enable time width value output enable signal according to described each luminance control data after each luminance control data sends;
Enable the time width adjustment unit, be used for when described brilliance control information comprises that single or multiple brightness changes the control data, generate according to the setting of user side the time width step value that described single or multiple brightness changes the control data, described single or multiple brightness is changed to the time width step value of controlling data and enables the time width value with it and carries out once and computing, and change the control data using operation result as described single or multiple brightness enable the time width value;
Described cycle count value adjustment unit specifically comprises:
The cycle count value computing unit, for carrying out from add-one operation described cycle count value;
The cycle count value updating block, for being updated to described cycle count value the operation result of described cycle count value computing unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110438824.3A CN102548139B (en) | 2011-12-23 | 2011-12-23 | Method and device for controlling brightness |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110438824.3A CN102548139B (en) | 2011-12-23 | 2011-12-23 | Method and device for controlling brightness |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102548139A CN102548139A (en) | 2012-07-04 |
CN102548139B true CN102548139B (en) | 2014-01-08 |
Family
ID=46353777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110438824.3A Active CN102548139B (en) | 2011-12-23 | 2011-12-23 | Method and device for controlling brightness |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102548139B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109862651B (en) * | 2018-08-13 | 2024-03-22 | 上海艾为电子技术股份有限公司 | One-line dimming method, circuit, chip and system |
CN109922582B (en) * | 2019-02-27 | 2021-01-08 | 张蓬 | Luminous group effect control method |
CN110930939B (en) * | 2019-12-27 | 2021-04-02 | 深圳市明微电子股份有限公司 | Display screen output port crosstalk prevention method and device |
CN115002973A (en) * | 2022-06-21 | 2022-09-02 | 中国第一汽车股份有限公司 | Lamp control method, device and system and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101901578A (en) * | 2010-08-19 | 2010-12-01 | 深圳市明微电子股份有限公司 | Display control method and device |
CN101902861A (en) * | 2010-08-10 | 2010-12-01 | 友达光电股份有限公司 | LED driving method and LED driving circuit |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080180414A1 (en) * | 2007-01-30 | 2008-07-31 | Kai Ming Fung | Method and apparatus for controlling light emitting diode |
-
2011
- 2011-12-23 CN CN201110438824.3A patent/CN102548139B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101902861A (en) * | 2010-08-10 | 2010-12-01 | 友达光电股份有限公司 | LED driving method and LED driving circuit |
CN101901578A (en) * | 2010-08-19 | 2010-12-01 | 深圳市明微电子股份有限公司 | Display control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN102548139A (en) | 2012-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102548139B (en) | Method and device for controlling brightness | |
US8492983B1 (en) | System and method to address and control serially connected LEDs | |
CN105764204B (en) | A kind of PWM light-dimming methods and PWM light modulating devices | |
CN102625541B (en) | Pulse modulation control method and device for driving LED | |
CN102415020A (en) | Method and device for optically transmitting data | |
CN101516152A (en) | System and method for implementing synchronous refreshing | |
CN102214444A (en) | Backlight unit and display apparatus having the same | |
CN102438370A (en) | All-digital intelligent control system of LED plant light filling lamp | |
CN103165075B (en) | Driving circuit of light emitting diode and method thereof | |
CN202907302U (en) | A cascade structure of a LED lamp string | |
KR20150032489A (en) | Method for controlling light emission of a light emitting device, and a driving system implementing the method | |
CN109640464A (en) | A kind of pwm signal duty ratio control method and corresponding circuit and LED light | |
CN102705758B (en) | Backlight module and display device | |
CN102970105A (en) | Transmission method and system of light-emitting diode (LED) chip cascading signals | |
CN102027715B (en) | Method and apparatus for repeating illumination information on a daisy chain bus structure | |
CN110136621A (en) | The display of reduction central processing unit mouth line resource and key scanning method and device | |
CN101938877A (en) | LED driving circuit | |
CN204836700U (en) | LED actuating system | |
CN202454226U (en) | Brightness control circuit, chip and device | |
CN110708793B (en) | Cascade control method of cascade equipment, cascade equipment and illumination system | |
CN102855849A (en) | Liquid crystal backlight driving current control device | |
CN101937638B (en) | Greyscale scanning output method and device | |
CN105472831A (en) | Light-emitting device control method through light driven chip and light driven chip thereof | |
CN106507544A (en) | A kind of LED lamplight brightness adjusting method and device | |
CN207264755U (en) | LED display |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |