[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108366452B - A kind of LED drive circuit single wire control method, system and storage equipment - Google Patents

A kind of LED drive circuit single wire control method, system and storage equipment Download PDF

Info

Publication number
CN108366452B
CN108366452B CN201810141172.9A CN201810141172A CN108366452B CN 108366452 B CN108366452 B CN 108366452B CN 201810141172 A CN201810141172 A CN 201810141172A CN 108366452 B CN108366452 B CN 108366452B
Authority
CN
China
Prior art keywords
mode
led
backlight
under
current output
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
Application number
CN201810141172.9A
Other languages
Chinese (zh)
Other versions
CN108366452A (en
Inventor
贺江平
李伊珂
伍滔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Energy Internet Research Institute EIRI Tsinghua University
Original Assignee
Sichuan Energy Internet Research Institute EIRI Tsinghua University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Sichuan Energy Internet Research Institute EIRI Tsinghua University filed Critical Sichuan Energy Internet Research Institute EIRI Tsinghua University
Priority to CN201810141172.9A priority Critical patent/CN108366452B/en
Publication of CN108366452A publication Critical patent/CN108366452A/en
Application granted granted Critical
Publication of CN108366452B publication Critical patent/CN108366452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The present invention provides a kind of LED drive circuit single wire control method, system and storage equipment, can also be worked in flash mode by single wire control protocol integrated test system LED backlight driving chip so that backlight module can work in backlight mode;The single wire control agreement of backlight module backlight mode includes chip address information field, LED current output information field and chip operation pattern field;The single wire control agreement of backlight module flash mode includes chip address information field, LED current output information field, chip operation pattern field and flashing current output information field.When single wire control mobile phone backlight and flash model, hardware does not need to be adjusted, as long as carrying out software minor alteration, the backlight and flash of light that can be achieved with mobile phone control together;Since the I/O of mobile phone main control chip is limited, with I2C compares the resource that can be reduced to main control chip, while can also reduce the power consumption of main control chip.

Description

A kind of LED drive circuit single wire control method, system and storage equipment
Technical field
The present invention relates to a kind of LED drive circuit single wire control method, system and storage equipment, are related to LED drive control Field.
Background technique
Mobile phone it is higher and higher to photograph functional requirement, and the pixel of front camera and effect are also to become better and better, because This hope is also able to achieve flash of light when using self-timer mode, while the display screen of present mobile phone occupies fuselage ratio increasingly Greatly, even shield comprehensively, therefore the installation site for leaving flash lamp for is extremely limited.
Meanwhile single line is also very extensive for the control of mobile phone backlight LED drive chip, backlight illumination is adjusted in realization Section, this mode can reduce the dynamic power consumption of main control chip, but single wire control mode is mainly used for controlling the bright of LED backlight at present Degree can not change the operating mode of IC, and also very simple to the control of IC operating mode.
And the existing I that standard is all used to mobile phone flashlight setting2C agreement is controlled, and this control mode needs Two control signals, a control signal is SDA, data transfer signal;Another control signal is SCL, one it is accurate when Clock signal;It realizes that control terminal is synchronous with controlled terminal progress clock using clock signal, realizes signal transmission.
The backlight module overwhelming majority of mobile phone uses single-wire-protocol to dim at present, in this way and I2C cannot be compatible with;If Using I2C control protocol controls mobile phone backlight module, then needs cell phone manufacturer to redesign software and hardware, carry on the back simultaneously Optical mode group manufacturer is also required to redesign interface, this I2C interface mode can greatly increase popularization in practical application popularization Cost.
Summary of the invention
The present invention provides a kind of LED drive circuit single wire control method, has control LED backlight driving chip can either work Work can also work under the premise of flash mode in backlight mode, not need to be adjusted hardware, it is only necessary on software Carry out the feature of minor alteration.
The present invention also provides a kind of LED drive circuit single line control system, setting flash mode LED electricity can be facilitated by having Flow the feature of output information.
The present invention also provides a kind of storage equipment, have convenient for executing the feature of above-mentioned driving circuit single wire control method.
A kind of LED drive circuit single wire control method provided according to the present invention, method particularly includes: it is assisted by single wire control View control LED backlight driving chip can also work in flash mode so that backlight module can work in backlight mode;Backlight The single wire control agreement of module group backlight mode includes chip address information field, LED current output information field and chip operation Pattern field;The single wire control agreement of backlight module flash mode includes chip address information field, LED current output information word Section, chip operation pattern field and flashing current output information field;The chip address information is LED backlight driving chip Address information;The LED current output information is LED current output size information under backlight mode;The chip operation mode For flash mode or backlight mode;The flashing current output information includes the size information that LED current exports under flash mode And raising and lowering velocity information.
The flashing current output information field includes a field or two fields;When one field, including flash of light mould The size information and raising and lowering velocity information that LED current exports under formula;When two fields, one of field is flash of light mould The size information that LED current exports under formula, another field are the raising and lowering speed letter that LED current exports under flash mode Breath.
The size information that LED current exports under the flash mode is the multiple of LED current output size under backlight mode Information.
The raising and lowering velocity information that LED current exports under the flash mode is rising and/or fall time information.
A kind of LED drive circuit single line control system provided according to the present invention, using above-mentioned LED drive circuit single line control Method processed, including
Backlight module is arranged under flash mode in the size setup module that LED current exports under backlight module flash mode The size of LED current output;And/or
The raising and lowering speed setup module that LED current exports under backlight module flash mode, setting backlight module exist The raising and lowering speed that LED current exports under flash mode.
The size that LED current exports under the flash mode is the multiple of LED current output size under backlight mode.
The raising and lowering speed that LED current exports under the flash mode is rising and/or fall time.
A kind of storage equipment provided according to the present invention, wherein be stored with a plurality of instruction, described instruction include be suitable for by Reason device is loaded and is executed:
The chip operation mode in command information is identified, if it is backlight mode, then according under the backlight mode in instruction The setting of LED current output size, driving backlight module according to be sized carry out electric current output;If it is flash mode, then According to the setting of LED current output size and raising and lowering speed under the flash mode in instruction, drive backlight module according to It is sized and raising and lowering speed carries out electric current output.
Described instruction further includes being suitable for being loaded and being executed by processor: if it is flash mode, according to the mould that glistens in instruction The small scalar multiple that LED current output size is exported with LED current under backlight mode under formula obtains LED electricity under flash mode Flow the size of output.
Described instruction further includes being suitable for being loaded and being executed by processor: if it is flash mode, according to the mould that glistens in instruction The size and rising and/or the setting of fall time that LED current exports under formula obtain LED current output under flash mode and rise With the speed of decline.
Compared with prior art, the beneficial effects of the present invention are: single wire control mobile phone backlight provided by the invention and flash of light Mode, hardware do not need to be adjusted, as long as carrying out software minor alteration, the backlight and flash of light that can be achieved with mobile phone are controlled together System;Since the I/O of mobile phone main control chip is limited, with I2C compares the resource that can be reduced to main control chip, while can also reduce master control The power consumption of chip.
Detailed description of the invention
Fig. 1 is the single wire control agreement schematic diagram of a wherein embodiment of the invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.
Any feature disclosed in this specification (including abstract and attached drawing) unless specifically stated can be equivalent by other Or the alternative features with similar purpose are replaced.That is, unless specifically stated, each feature is a series of equivalent or class Like an example in feature.
A kind of LED drive circuit single wire control method provided according to the present invention is carried on the back by single wire control protocol integrated test system LED Optical drive chip can also work in flash mode so that backlight module can work in backlight mode;Backlight module backlight mode Single wire control agreement include chip address information field, LED current output information field and chip operation pattern field;Backlight The single wire control agreement of mould group flash mode includes chip address information field, LED current output information field, chip operation mould Formula field and flashing current output information field;The chip address information is the address information of LED backlight driving chip;It is described LED current output information is LED current output size information under backlight mode;The chip operation mode is flash mode or back Optical mode;The flashing current output information includes the size information that LED current exports under flash mode and raising and lowering speed Spend information.
It is controlled using back light of the single-wire-protocol to mobile phone, so that this light source is not only able to achieve mobile phone backlight, but also energy It realizes flash of light when mobile phone self-timer, two kinds of works of entire backlight and self-timer photoflash is realized in a manner of very simple single wire control The control of operation mode, so that circuit application is more simple.Single wire control mobile phone backlight and flash model, hardware do not need to be adjusted Whole, as long as cell phone manufacturer carries out software minor alteration, the backlight and flash of light that can be achieved with mobile phone control together, come to cell phone manufacturer It says, also increases the otherness of mobile phone itself, therefore can have apparent market prospects.In addition, due to the I/O of mobile phone main control chip It is limited, with I2C compares the resource that can be reduced to main control chip, while can also reduce the power consumption of main control chip.
The flashing current output information field includes a field or two fields;When one field, including flash of light mould The size information and raising and lowering velocity information that LED current exports under formula;When two fields, one of field is flash of light mould The size information (maximum current of LED current output when glistening) that LED current exports under formula, another field is flash mode The raising and lowering velocity information of lower LED current output.
The size information that LED current exports under the flash mode is the multiple of LED current output size under backlight mode Information.The size information that LED current exports under flash mode can directly be size information, or LED under backlight mode The multiple information of electric current output size is LED current output size under backlight mode as a preferred embodiment of the present invention Multiple information, that is, a ratio of flashing current size and back facet current size.
The raising and lowering velocity information that LED current exports under the flash mode is rising and/or fall time information. The raising and lowering velocity information that LED current exports under flash mode can directly be a rate information, or one Rise and/or fall time information can also be identical if rise time and fall time can be different, in identical situation Under, a rise time or fall time can be only set, default corresponding fall time equal to rise time or correspondence Rise time be equal to fall time.
As a specific embodiment mode of the invention, as shown in Figure 1, in this embodiment, the single wire control Agreement includes:
(1) start bit, each frame data of single line input signal have a start bit, such as the START bit institute in figure Show, in this embodiment, getting higher from low, being maintained high time > 100uS, then be lower, hold time > 200uS, becomes again Height, and maintain, and set entire initial time > 1mS;
(2) input LED current value under 10Bits backlight mode and data be set, it is assumed that D=8Fh(16 system), it is counted below It needs to use this data when calculating LED output electric current under flash mode;
(3) input 1Bit operating mode is set as, and when DL0=1, is worked in flash mode, if DL0=0, is worked and carrying on the back Optical mode;
(4) 4Bits flash time (FTO) data are inputted, when data are 1000b, flash time 800mS is up to 1.5S, minimum 100mS;
(5) 4Bits flashing current operating mode, the electricity between DQ0 and DQ1 setting back facet current and electric current of flash lamp are inputted Stream ratio, when DQ0/DQ1=00, multiple 1, when DQ0/DQ1=01, multiple 3, when DQ0/DQ1=10, multiple 5 works as DQ0/ DQ1=11, multiple 7;DQ2/DQ3 is used to be arranged the mode of electric current of flash lamp rise and fall, when DQ2/DQ3=01, rising Between be 100uS, when DQ2/DQ3=01, rise time 300uS, when DQ2/DQ3=10, rise time 500uS works as DQ2/DQ3 =11, rise time 700uS;In the present embodiment, it since rise time and fall time are equal, can directly use The time is risen to indicate fall time;Alternatively, it is also possible to directly set specific multiple and/or specific time.
(6) address of 8Bits driving circuit is inputted, it is 8Fh that this address, which is such as arranged,;
(7) input frame stop bits, after stop bits, all settings control driving circuit.
In above 7 parts, the digit of each section voluntarily can increase or reduce, it might even be possible to use default Value, can no longer be configured in this way, such as be not provided with all digits in (5).
A kind of LED drive circuit single line control system provided according to the present invention is being based on or is being not based on above-mentioned LED driving On the basis of circuit single wire control method, including
Backlight module is arranged under flash mode in the size setup module that LED current exports under backlight module flash mode The size of LED current output;And/or
The raising and lowering speed setup module that LED current exports under backlight module flash mode, setting backlight module exist The raising and lowering speed that LED current exports under flash mode.
The size that LED current exports under the flash mode is the multiple of LED current output size under backlight mode.Flash of light The size setting that LED current exports under mode can be directly arranged for size, or LED current output is big under backlight mode Small multiple setting is the multiple setting of LED current output size under backlight mode as a preferred embodiment of the present invention, A namely ratio setting of flashing current size and back facet current size.
The raising and lowering speed that LED current exports under the flash mode is rising and/or fall time.Flash mode The raising and lowering speed setting of lower LED current output can be directly a rate setting, or one rise and/or Fall time setting can also be identical if rise time and fall time can be different, under identical circumstances, can be only One rise time or fall time are only set, default corresponding fall time equal to rise time or corresponding rise time Equal to fall time.
A kind of storage equipment provided according to the present invention, wherein be stored with a plurality of instruction, described instruction include be suitable for by Reason device is loaded and is executed:
The chip operation mode in command information is identified, if it is backlight mode, then according under the backlight mode in instruction The setting of LED current output size, driving backlight module according to be sized carry out electric current output;If it is flash mode, then According to the setting of LED current output size and raising and lowering speed under the flash mode in instruction, drive backlight module according to It is sized and raising and lowering speed carries out electric current output.
If operating mode is backlight mode, the LED current output information for being concerned about flash mode is not needed.
Described instruction further includes being suitable for being loaded and being executed by processor: if it is flash mode, according to the mould that glistens in instruction The scalar multiple for the size that LED current output size is exported with LED current under backlight mode under formula, obtains LED under flash mode The size of electric current output.The size information that LED current exports under flash mode can directly be size information, or backlight The multiple information of LED current output size under mode is LED current under backlight mode as a preferred embodiment of the present invention The multiple information of output size, that is, a ratio of flashing current size and back facet current size.
Described instruction further includes being suitable for being loaded and being executed by processor: if it is flash mode, according to the mould that glistens in instruction The size and rising and/or the setting of fall time that LED current exports under formula obtain LED current output under flash mode and rise With the speed of decline.The raising and lowering velocity information that LED current exports under flash mode can directly be a rate information, Or a rising and/or fall time information can also be identical if rise time and fall time can be different, Under identical circumstances, a rise time or fall time can be only set, default corresponding fall time equal to upper It rises the time or the corresponding rise time is equal to fall time.

Claims (10)

1. a kind of LED drive circuit single wire control method, method particularly includes: it is driven by single wire control protocol integrated test system LED backlight Chip can also work in flash mode so that backlight module can work in backlight mode;The single line of backlight module backlight mode Control protocol includes chip address information field, LED current output information field and chip operation pattern field;Backlight module dodges The single wire control agreement of optical mode includes chip address information field, LED current output information field, chip operation pattern field With flashing current output information field;The chip address information is the address information of LED backlight driving chip;The LED electricity Flowing output information is LED current output size information under backlight mode;The chip operation mode is flash mode or backlight mould Formula;The flashing current output information includes the size information that LED current exports under flash mode and raising and lowering speed letter Breath.
2. LED drive circuit single wire control method according to claim 1, the flashing current output information field include One field or two fields;When one field, the size information and raising and lowering that are exported including LED current under flash mode Velocity information;When two fields, one of field is the size information that LED current exports under flash mode, another field The raising and lowering velocity information exported for LED current under flash mode.
3. LED drive circuit single wire control method according to claim 1 or 2, LED current is exported under the flash mode Size information be backlight mode under LED current output size multiple information.
4. LED drive circuit single wire control method according to claim 1 or 2, LED current is exported under the flash mode Raising and lowering velocity information be rising and falling time information.
5. a kind of LED drive circuit single line control system, using LED drive circuit single line control described in one of claims 1 to 4 Method processed, it is characterised in that: including
Backlight module LED electricity under flash mode is arranged in the size setup module that LED current exports under backlight module flash mode Flow the size of output;And/or
The raising and lowering speed setup module that LED current exports under backlight module flash mode, setting backlight module are glistening The raising and lowering speed that LED current exports under mode.
6. LED drive circuit single line control system according to claim 5, it is characterised in that: LED under the flash mode The size of electric current output is the multiple of LED current output size under backlight mode.
7. LED drive circuit single line control system according to claim 5 or 6, it is characterised in that: under the flash mode The raising and lowering speed of LED current output is rising and falling time.
8. a kind of storage equipment, wherein being stored with a plurality of instruction, described instruction includes being suitable for being loaded and being executed by processor:
The chip operation mode in command information is identified, if it is backlight mode, then according to single line under the backlight mode in instruction The setting of LED current output size in control protocol, driving backlight module according to be sized carry out electric current output;If it is Flash mode, then according to the LED current output size and raising and lowering under the flash mode in instruction in single wire control agreement The setting of speed, driving backlight module according to be sized and raising and lowering speed carry out electric current output.
9. storage equipment according to claim 8, described instruction further includes being suitable for being loaded and being executed by processor: if it is Flash mode, according to the LED current output size under flash mode in instruction in single wire control agreement and single line under backlight mode The small scalar multiple of LED current output in control protocol, obtains the size that LED current exports under flash mode.
10. storage equipment according to claim 8, described instruction further includes being suitable for being loaded and being executed by processor: if It is flash mode, according to the size and raising and lowering of the LED current output under flash mode in instruction in single wire control agreement The setting of time obtains the speed of LED current output raising and lowering under flash mode.
CN201810141172.9A 2018-02-11 2018-02-11 A kind of LED drive circuit single wire control method, system and storage equipment Active CN108366452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810141172.9A CN108366452B (en) 2018-02-11 2018-02-11 A kind of LED drive circuit single wire control method, system and storage equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810141172.9A CN108366452B (en) 2018-02-11 2018-02-11 A kind of LED drive circuit single wire control method, system and storage equipment

Publications (2)

Publication Number Publication Date
CN108366452A CN108366452A (en) 2018-08-03
CN108366452B true CN108366452B (en) 2019-11-26

Family

ID=63005747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810141172.9A Active CN108366452B (en) 2018-02-11 2018-02-11 A kind of LED drive circuit single wire control method, system and storage equipment

Country Status (1)

Country Link
CN (1) CN108366452B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883454A (en) * 2009-05-08 2010-11-10 复旦大学 LED driving chip with single-line pulse control mode
CN102696282A (en) * 2009-11-06 2012-09-26 尼欧弗科系统有限公司 System and method for lighting power and control system
CN105354163A (en) * 2015-11-17 2016-02-24 江苏工程职业技术学院 Method for achieving plug and play of single bus equipment
CN105469748A (en) * 2014-09-30 2016-04-06 苹果公司 Asymmetric multiphase boost for display backlights
CN105845091A (en) * 2016-06-08 2016-08-10 维沃移动通信有限公司 Backlight driving circuit and terminal device
CN106412222A (en) * 2015-07-28 2017-02-15 Lg电子株式会社 Mobile terminal and method of controlling therefor
CN207022061U (en) * 2017-08-02 2018-02-16 上海鼎为电子科技(集团)有限公司 Flash unit and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9164679B2 (en) * 2011-04-06 2015-10-20 Patents1, Llc System, method and computer program product for multi-thread operation involving first memory of a first memory class and second memory of a second memory class

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883454A (en) * 2009-05-08 2010-11-10 复旦大学 LED driving chip with single-line pulse control mode
CN102696282A (en) * 2009-11-06 2012-09-26 尼欧弗科系统有限公司 System and method for lighting power and control system
CN105469748A (en) * 2014-09-30 2016-04-06 苹果公司 Asymmetric multiphase boost for display backlights
CN106412222A (en) * 2015-07-28 2017-02-15 Lg电子株式会社 Mobile terminal and method of controlling therefor
CN105354163A (en) * 2015-11-17 2016-02-24 江苏工程职业技术学院 Method for achieving plug and play of single bus equipment
CN105845091A (en) * 2016-06-08 2016-08-10 维沃移动通信有限公司 Backlight driving circuit and terminal device
CN207022061U (en) * 2017-08-02 2018-02-16 上海鼎为电子科技(集团)有限公司 Flash unit and mobile terminal

Also Published As

Publication number Publication date
CN108366452A (en) 2018-08-03

Similar Documents

Publication Publication Date Title
CN201114961Y (en) Light control adjuster
CN116471720B (en) LED driving chip, LED self-adaptive allowance control system and method
CN213152420U (en) Backlight partition control circuit of LED module
CN107426882A (en) LED and its intelligence control system
CN108366452B (en) A kind of LED drive circuit single wire control method, system and storage equipment
CN105407610B (en) A kind of method and device for controlling double flashing light
CN102376273A (en) LED (Light Emitting Diode) backlight driving device
CN101345025B (en) Backlight regulation circuit and backlight regulating method
CN100489949C (en) Driving device for light-emitting diode serial
CN107226016A (en) Automobile tail lamp circuit based on Communication Control
CN205920310U (en) Flash light and contain its grow light system
CN108811257A (en) A kind of control method of LED illumination System and LED load circuit
CN111818695B (en) Control system, method and display module
CN210899726U (en) Trinity control interface circuit of lamps and lanterns
CN215345141U (en) LED drive control circuit
CN106067292A (en) A kind of backlight source driving circuit and display device
CN107231147A (en) A kind of I2C signal generating systems
CN208507169U (en) A kind of constant current driving system for television backlight LED
CN207399586U (en) A kind of light modulator for signal light control
KR20200138011A (en) Lighting memory device and memory module
CN206938590U (en) Automobile tail lamp circuit based on Communication Control
CN219592673U (en) Light control system
CN112004299A (en) Tunnel light control system and design method and control method thereof
CN206097871U (en) LCD backlight drive device and mobile terminal
CN208657135U (en) A kind of LED illumination System

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant