WO2023143381A1 - Flash lamp circuit, control method, electronic device, and readable storage medium - Google Patents

Flash lamp circuit, control method, electronic device, and readable storage medium Download PDF

Info

Publication number
WO2023143381A1
WO2023143381A1 PCT/CN2023/073173 CN2023073173W WO2023143381A1 WO 2023143381 A1 WO2023143381 A1 WO 2023143381A1 CN 2023073173 W CN2023073173 W CN 2023073173W WO 2023143381 A1 WO2023143381 A1 WO 2023143381A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
power supply
flashlight
switch tube
turned
Prior art date
Application number
PCT/CN2023/073173
Other languages
French (fr)
Chinese (zh)
Inventor
王涛
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023143381A1 publication Critical patent/WO2023143381A1/en

Links

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B15/00Special procedures for taking photographs; Apparatus therefor
    • G03B15/02Illuminating scene
    • G03B15/03Combinations of cameras with lighting apparatus; Flash units
    • G03B15/05Combinations of cameras with electronic flash apparatus; Electronic flash units
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M3/00Conversion of dc power input into dc power output
    • H02M3/02Conversion of dc power input into dc power output without intermediate conversion into ac
    • H02M3/04Conversion of dc power input into dc power output without intermediate conversion into ac by static converters
    • H02M3/10Conversion of dc power input into dc power output without intermediate conversion into ac by static converters using discharge tubes with control electrode or semiconductor devices with control electrode
    • H02M3/145Conversion of dc power input into dc power output without intermediate conversion into ac by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal
    • H02M3/155Conversion of dc power input into dc power output without intermediate conversion into ac by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal using semiconductor devices only
    • H02M3/156Conversion of dc power input into dc power output without intermediate conversion into ac by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal using semiconductor devices only with automatic control of output voltage or current, e.g. switching regulators
    • H02M3/158Conversion of dc power input into dc power output without intermediate conversion into ac by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal using semiconductor devices only with automatic control of output voltage or current, e.g. switching regulators including plural semiconductor devices as final control devices for a single load
    • 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]
    • H05B45/30Driver circuits
    • 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]
    • H05B45/30Driver circuits
    • H05B45/37Converter circuits
    • H05B45/3725Switched mode power supply [SMPS]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Definitions

  • the application belongs to the technical field of communication, and in particular relates to a flashlight circuit, a control method, electronic equipment and a readable storage medium.
  • the shooting function has become an indispensable function of the electronic equipment, and when the electronic equipment is used for shooting under low-light conditions, the flashlight, as an important auxiliary peripheral, is more and more widely used in the electronic equipment.
  • the electronic device can convert the voltage of the system power supply to the voltage required for the flash lamp to work through a driver chip, and control the flash lamp to work in different modes according to different voltage values of the system power supply.
  • the purpose of the embodiment of the present application is to provide a flashlight circuit, a control method, an electronic device and a readable storage medium, which can solve the problem that the flashlight cannot continue to work when the voltage value of the system power supply is large.
  • the embodiment of the present application provides a flashlight circuit
  • the flashlight circuit includes: a driver chip, an input power supply connected to the driver chip, a first power supply module, and a flashlight module;
  • the voltage is greater than the threshold value: in the first time period of a step-down cycle, drive the input power to charge the first power module, and drive the input power to supply power to the flash module; in the second time period of a step-down cycle segment, driving the first power supply module to supply power to the flashlight module.
  • an embodiment of the present application provides an electronic device, the electronic device includes the flashlight circuit as described in the first aspect.
  • an embodiment of the present application provides a method for controlling a flash lamp, which is applied to the flash lamp circuit described in the first aspect, and the method includes: when the voltage of the input power supply in the flash lamp circuit is greater than a voltage threshold value: In the first period of time in a step-down cycle, the first power supply module in the flash circuit is charged by the input power supply, and the flash module in the flash circuit is powered; in the second period of time in a step-down cycle, the first A power supply module supplies power to the flashlight module.
  • the embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, the memory stores programs or instructions that can run on the processor, and the programs or instructions are processed by the Implemented when the device executes The steps of the method as described in the third aspect.
  • the embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method as described in the third aspect are implemented .
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, to achieve the third aspect the method described.
  • an embodiment of the present application provides a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method as described in the third aspect.
  • the flashlight circuit may include: a driver chip, and an input power supply connected to the driver chip, a first power supply module, and a flashlight module; Situation: In the first time period of a step-down cycle, drive the input power to charge the first power supply module, and drive the input power to supply power to the flash module; in the second time period of a step-down cycle, drive the first power supply The module powers the flash module.
  • the driver chip can firstly charge the first power supply module through the input power supply and charge the flashlight module through the input power supply in a step-down cycle.
  • FIG. 1 is one of the structural schematic diagrams of a flashlight circuit provided by an embodiment of the present application
  • Fig. 2 is the second structural schematic diagram of a flashlight circuit provided by the embodiment of the present application.
  • Fig. 3 is the third structural schematic diagram of a flashlight circuit provided by the embodiment of the present application.
  • FIG. 4 is the fourth structural schematic diagram of a flashlight circuit provided by an embodiment of the present application.
  • Fig. 5 is the fifth structural schematic diagram of a flashlight circuit provided by the embodiment of the present application.
  • Fig. 6 is the sixth structural schematic diagram of a flashlight circuit provided by the embodiment of the present application.
  • Fig. 7 is the seventh structural schematic diagram of a flashlight circuit provided by the embodiment of the present application.
  • Fig. 8 is the eighth structural schematic diagram of a flashlight circuit provided by the embodiment of the present application.
  • FIG. 9 is the ninth schematic structural diagram of a flashlight circuit provided by an embodiment of the present application.
  • Fig. 10 is the tenth structural schematic diagram of a flashlight circuit provided by the embodiment of the present application.
  • FIG. 11 is a flow chart of a flashlight control method provided in an embodiment of the present application.
  • Fig. 12 is a schematic diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present application.
  • the flash is widely used in mobile terminals such as mobile phones.
  • mobile terminals have higher and higher requirements for the brightness of the flashlight; on the other hand, because users have higher and higher aesthetic requirements for the design of mobile terminals, the screen openings corresponding to the flashlights are being used.
  • the design is small; thus the mobile terminal can only increase the current passing through the flashlight in order to ensure the expected brightness of the flashlight.
  • the voltage and current of the flashlight must be kept constant. However, since the input power is generally connected to the battery terminal, its voltage is not constant.
  • the driver chip can ensure the power consumption of the driver chip by adjusting the duty cycle of different switching elements in the driver chip. minimum.
  • the driver chip can no longer ensure the minimum power loss of the driver chip by adjusting the duty cycle of different switching elements in the driver chip. Voltage and current, the power loss of the driver chip is also increasing.
  • the power loss is directly dissipated on the driver chip in the form of heat, on the one hand, the energy conversion efficiency of the driver chip will be reduced, which will affect the user's use time; on the other hand, the temperature of the driver chip will be too high , may lead to over-temperature protection of the driver chip, so that the flash cannot continue to work, thereby affecting the user experience.
  • the driver chip can be used to drive the input power to be
  • the first power supply module charges and drives the input power supply to supply power to the flashlight module; in the second time period of a step-down cycle, drives the first power supply module to supply power to the flashlight module.
  • FIG. 1 shows a schematic structural diagram of a flashlight circuit provided in the embodiment of the present application.
  • the flashlight circuit provided by the embodiment of the present application may include a driver chip 10 , and an input power supply 11 connected to the driver chip 10 , a first power supply module 12 and a flashlight module 13 .
  • the driver chip can be used to drive the input power to charge the first power module and drive the input
  • the power supply supplies power to the flashlight module; in a second period of time within a step-down cycle, the first power supply module is driven to supply power to the flashlight module.
  • the voltage threshold may be the minimum value of the output voltage of the flash circuit.
  • the minimum value of the output voltage of the flashlight circuit may be the sum of the voltage required for normal operation of the flashlight module (for example, the rated voltage) and the minimum voltage drop on the driver chip.
  • the duration of the above-mentioned one step-down period is the sum of the duration of the first time period and the duration of the second time period. That is, a pressure drop period is composed of a first time period and a second time period.
  • the end moment of the first time period is shorter than the start moment of the second time period.
  • the duration of the above-mentioned step-down cycle is a fixed duration, and the duration of the first time period and the duration of the second time period can be determined according to the ratio between the voltage of the input power supply and the voltage threshold.
  • the first duty cycle D 1 the first time period: step-down period
  • the first duty cycle D 1 , the voltage threshold value V th and the voltage V PH of the input power satisfy the following formula (1):
  • V th D 1 *V PH ;
  • the driver chip can drive the input power supply to charge the first power module in the first time period of the next step-down cycle when the voltage of the input power supply is greater than the voltage threshold value. , and drive the input power supply to supply power to the flashlight module; and drive the first power supply module to supply power to the flashlight module during the second period of time in the next step-down cycle. That is, the driver chip can drive the input power to charge the first power module and drive the input power to supply power to the flashlight module in the first time period of each step-down cycle; and in the second time period of each step-down cycle, Driving the first power supply module to supply power to the flashlight module.
  • the first power module may be an inductance element.
  • the driver chip drives the inductance element in the boost circuit of the flash circuit as a separate power supply for the flash module during the first period of time in each step-down cycle, so that the output voltage of the flash circuit can be avoided from changing with the input power supply.
  • the increase of the voltage continues to increase, so that the power consumption of the driver chip can be reduced.
  • the input power supply may be used to: charge the first power supply module under the drive of the driver chip; or supply power to the flashlight module.
  • the first power supply module may be used to: be charged by an input power supply under the drive of the driver chip; or, supply power to the flashlight module.
  • the flashlight circuit can operate in a step-down (Buck) mode, and the step-down mode can include at least one step-down cycle, each step-down Each cycle includes two power supply modes, mode 1 and mode 2 respectively.
  • mode 1 is: in the first period of time in each step-down cycle, the input power supply 11 can charge the first power supply module 12 under the drive of the driver chip 10, and supply power to the flashlight module 13;
  • mode 2 is: In the second period of each step-down period, the first power supply module 12 can supply power to the flashlight module 13 driven by the driving chip 10 .
  • the output voltage of the flashlight circuit can be maintained stable (for example, the output voltage is kept at a minimum value) when the input power supply voltage is relatively high, thereby maintaining the flashlight circuit
  • the output current of the flashlight is stabilized, thereby minimizing the power loss of the driver chip in the flashlight circuit, so as to ensure that the flashlight can work normally.
  • FIG. 1 As shown in FIG. 1, as shown in FIG. Four switching tubes Q4.
  • the microprocessor 14 is respectively connected to the control terminal of the first switching tube Q1 (indicated by c1 in FIG. 2 ), the control terminal of the second switching tube Q2 (indicated by c2 in FIG. 2) is connected to the control end of the fourth switching tube Q4 (shown as c4 in FIG. 2 ); the first end of the first switching tube Q1 (shown as a1 in FIG. 2 ) is connected to the positive pole of the input power supply 11, The second end of the first switching tube Q1 (indicated by b1 in FIG. 2 ) is connected to the first end of the second switching tube Q2 (indicated by a2 in FIG.
  • the first end of the third switch tube Q3 (shown by a3 in FIG.
  • the first end of the switch tube Q4 (indicated by a4 in FIG. 2 ) is connected to the second end (indicated by b in FIG. 2 ) of the first power module 12, and the second end of the second switch tube Q2 (indicated by b2 in FIG. 2 ), the second end of the fourth switching tube Q4 (shown as b4 in FIG. 2 ), the negative pole of the flashlight module 13 and the negative pole of the input power supply 11 are all grounded.
  • the microprocessor can be used to control the third switching tube to turn on and control the fourth switching tube to turn off when the voltage of the input power supply is greater than the voltage threshold value;
  • on and the fourth switching tube is off in the first time period, by controlling the first switching tube to be on and controlling the second switching tube to be off, the input power supply is driven to charge the first power module, and the input power supply is driven to The power supply supplies power to the flashlight module; or, in the second time period, the first power supply module is driven to supply power to the flashlight module by controlling the first switch tube to be turned off and the second switch tube to be turned on.
  • the driver chip can separately drive the first power module and the input power to supply power for the flashlight module through the microprocessor in two different time periods within a step-down cycle.
  • the switch transistor may be any possible switch transistor such as a switch triode or a field effect transistor.
  • the microprocessor can control the switch tube to be turned on or off by sending a control signal to the switch tube.
  • the driver chip when the voltage of the input power supply of the flashlight circuit is greater than the voltage threshold value, the driver chip can first charge the first power supply module through the input power supply in one step-down cycle, and The flashlight module is powered by the input power supply, and then the flashlight module is powered solely by the first power supply module, so that the output voltage of the flashlight circuit can always be kept at a minimum value when the input power supply voltage is relatively high, so that the The power loss of the driver chip is minimal, which in turn ensures that the flash can work normally.
  • the flash circuit provided in the embodiment of the present application may further include a second power module 15 connected to the above-mentioned driving chip 10 .
  • the driving chip can also be used to drive the input power supply to charge the first power supply module during the third period of time in a boost cycle when the voltage of the input power supply is less than or equal to the voltage threshold value, And drive the second power supply module to supply power to the flashlight module; in the fourth period of time within a boost cycle, drive the input power supply and the first power supply module to supply power to the flashlight module, and drive the input power supply and the first power supply module to serve as the second power supply module Charge.
  • the duration of the above-mentioned one boost cycle is the sum of the duration of the third time period and the duration of the fourth time period. That is, the boost cycle is composed of a third time period and a fourth time period.
  • the end moment of the third time period is shorter than the start moment of the fourth time period.
  • the duration of one boost cycle is a fixed duration
  • the duration of the third time period and the fourth time period can be determined according to the ratio between the voltage of the input power supply and the voltage threshold.
  • the driver chip can drive the input power to the first power supply in the third period of time in the next boost cycle when the voltage of the input power is less than or equal to the voltage threshold value.
  • the module is charged, and the second power supply module is driven to supply power to the flashlight module; in the fourth period of time in the next boost cycle, the input power supply and the first power supply module are driven to supply power to the flashlight module, and the input power supply and the first power supply module are driven to supply power to the second power supply module. Two power modules are charged.
  • the driver chip can drive the input power supply to charge the first power module during the third time period of each boost cycle, and drive the second power module to supply power to the flashlight module; and during the second time period of each step-down cycle, The input power supply and the first power supply module are driven to supply power to the flashlight module, and the input power supply and the first power supply module are driven to charge the second power supply module.
  • the second power module may include a capacitive element.
  • the driver chip when the driver chip drives the input power and the first power module to supply power to the flashlight module, and drives the input power and the first power module to charge the second power module, the driver chip can drive the input power and The first power modules are connected in series.
  • the input voltage of the flashlight circuit can be the sum of the voltage of the input power supply and the voltage of the first power supply module, thereby ensuring that the output voltage of the flashlight circuit is greater than the voltage of the input power supply, so that the output voltage of the flashlight circuit can meet the voltage of the flashlight module need.
  • the input power supply can be used to charge the first power supply module under the drive of the driver chip; or, supply power to the flashlight module and charge the second power supply module.
  • the first power supply module can be used to charge the flashlight module and charge the second power supply module under the drive of the driver chip: charging through the input power supply.
  • the second power supply module can be used to supply power to the flashlight module under the drive of the driver chip; or, to charge through the input power supply and the first power supply module.
  • the flashlight circuit operates in a boost (Boost) mode
  • the boost mode may include at least one boost cycle, each boost
  • Each voltage cycle includes two power supply modes, namely mode 3 and mode 4.
  • the mode 3 is: in the third period of time in each boost cycle, the input power source 11 can be driven by the driver chip 10, to charge the first power module 12; Driven to supply power to the flashlight module 13;
  • mode 4 is: in the fourth time period of each boost cycle, the input power supply 11 and the first power supply module 12 can be driven by the driver chip 10 to supply power to the flashlight module 13 and Charge the second power module 15 .
  • the output voltage of the flashlight circuit can be kept stable (for example, keep the output voltage at a minimum value) when the voltage of the input power supply is small, thereby maintaining the flashlight
  • the stability of the output current of the circuit makes the power loss of the driver chip in the flash circuit the lowest small to ensure that the flash will work properly.
  • the flashlight circuit when the voltage of the input power supply is less than or equal to the voltage threshold value, the flashlight circuit can increase the output voltage of the flashlight circuit by operating in boost mode, so as to ensure that the output voltage of the flashlight circuit is always maintained at minimum value; and when the voltage of the input power supply is greater than the voltage threshold value, by multiplexing the first power supply module in the boost mode, specifically driving the first voltage module in the first time period to supply power for the power flashlight module alone, And in the second time period, the input power is driven to supply power to the power flashlight module alone, and the output voltage of the flashlight circuit is reduced to ensure that the output voltage of the flashlight circuit is always kept at a minimum value. In this way, no matter how the voltage of the input power source changes, the output voltage of the flashlight circuit can always be kept at a minimum value, thereby reducing the power consumption of the driver chip, increasing the working time of the flashlight module, and improving user experience.
  • the microprocessor 14 is respectively connected to the control terminal of the first switching tube Q1 (shown by c1 in FIG. 4 ), the control terminal of the second switching tube Q2 (shown by c2 in FIG. 4 ), and the third switching tube Q3
  • the control terminal (indicated by c3 in FIG. 4 ) is connected to the control terminal (indicated by c4 in FIG. 4 ) of the fourth switching tube Q4; the first end (indicated by a1 in FIG. 4 ) of the first switching tube Q1 is connected to the input power supply 11, the second end of the first switching tube Q1 (indicated by b1 in FIG.
  • the microprocessor can be used to control the first switching tube to be turned on and the second switching tube to be turned off when the voltage of the input power supply is less than or equal to the voltage threshold value, and the first switching tube When it is turned on and the second switch is turned off: in the third time period, by controlling the third switch to be turned off and the fourth switch to be turned on, the input power is driven to charge the first power module and drive the second The second power supply module supplies power to the flashlight module; or, in the fourth time period, by controlling the third switch tube to be turned on and the fourth switch tube to be turned off, the input power supply and the first power supply module are driven to supply power to the flashlight module, and the input The power supply and the first power module charge the second power module. This ensures that the output voltage of the flash circuit is kept to a minimum.
  • the driver chip can control the first switch tube to be turned on and the second switch tube to be turned off, And when the first switch tube is turned on and the second switch tube is turned off: through the third time period in each boost cycle, drive the input power to charge the first power module, and drive the second power module to be The flashlight module supplies power; and in the fourth period of each boost cycle, the input power supply and the first power supply module are driven to supply power to the flashlight module, and the input power supply and the first power supply module are driven to charge the second power supply module, which improves The output voltage of the flash circuit, so it can ensure that the output voltage of the flash circuit is kept at a minimum value, thereby ensuring that the flash can work normally.
  • FIG. 4 As shown in FIG. 4, as shown in FIG. 4, as shown in FIG. 4, as shown in FIG. 4, as shown in FIG. The second flash lamp 19; the positive pole of the first current source 16 and the positive pole of the second current source 17 are all connected with the first end (represented by a3 in FIG. The positive pole of a flash lamp 18 is connected, the negative pole of the second current source 17 is connected with the positive pole of the second flash lamp 19; the negative pole of the first flash lamp 18 and the negative pole of the second flash lamp 19 are both grounded.
  • the positive pole of the first flashlight 18 and the positive pole of the second flashlight 19 are both positive poles of the above-mentioned flashlight module 13
  • the negative poles of the first flashlight and the negative pole of the second flashlight are both negative poles of the above-mentioned flashlight module.
  • the first current source can be used for voltage division to output a stable current to the first flashlight
  • the second current source can be used for voltage division to output a stable current to the second flashlight, thereby ensuring that the first The operating currents of the flashlight and the second flashlight remain stable.
  • the first flash lamp and the second flash lamp may be light emitting diodes, or any other elements capable of emitting light.
  • the power consumption of the driving chip may include: power consumption of the first current source and power consumption of the second current source in the driving chip.
  • the voltage drop of the driver chip can be calculated by the following formula (3):
  • V th voltage threshold value D 1 is the first duty cycle
  • V PH the voltage of the input power supply
  • V HR is the voltage drop of the driver chip
  • V LED1 is the operating voltage of the first flashlight
  • V LED2 is the second 2. The working voltage of the flashlight.
  • the voltage drop of the driver chip can be calculated by the following formula (4):
  • V th is the voltage threshold value
  • D 2 is the second duty cycle
  • V PH is the voltage of the input power supply
  • V HR is the voltage drop of the driver chip
  • V LED1 is the working voltage of the first flashlight
  • V LED2 is the second 2. The working voltage of the flashlight.
  • the power consumption of each current source is: the voltage drop of the current source*the working current of the flashlight module.
  • the above-mentioned flash circuit may include a driver chip 10, an input power supply 11, a first power module 12, a second power module 15, a flash module 13 and a control device (AP) 20; wherein, the driver chip 10 may include a microprocessor 14, a first current source 16, a second current source 17, a first switch tube Q1, a second switch tube Q2, a third switch tube Q3 and a fourth switch tube Q3.
  • the switch tube Q4; the flashlight module 13 may include a first flashlight 18 and a second flashlight 19.
  • the microprocessor 14 is respectively connected to the controller 20, the control terminal c1 of the first switching tube Q1, the control terminal c2 of the second switching tube Q2, the control terminal c3 of the third switching tube Q3, and the control terminal c4 of the fourth switching tube Q4 ;
  • the first terminal a1 of the first switching tube Q1 is connected to the positive pole of the input power supply 11
  • the second terminal b1 of the first switching tube Q1 is connected to the first terminal a2 of the second switching tube Q2 and the first terminal of the first power module 12 a connection
  • the first end a3 of the third switch tube Q3 is connected to the positive pole of the first current source 16
  • the second The positive pole of the current source 17 is connected to the positive pole of the second power module 15
  • the negative pole of the first current source 16 is connected to the positive pole of the first flash lamp 18, the negative pole of the second current source 17 is connected to the positive pole of the second flash lamp 19, and the third switch
  • the second terminal b3 of the tube Q3 is connected to the
  • the controller may be configured to send a first control signal to the microprocessor when the voltage of the input power supply is greater than the voltage threshold value, so as to pass
  • the microprocessor controls the third switch to be turned on and the fourth switch to be turned off; and when the third switch is turned on and the fourth switch is turned off: the first time period, sending a second control signal to the microprocessor, so that the microprocessor controls the first switch tube to be turned on and controls the second switch tube to be turned off; or, during the second time period in each step-down cycle,
  • the third control signal is sent to the microprocessor, so that the microprocessor controls the first switch tube to be turned off and the second switch tube to be turned on. or,
  • the controller is configured to send a fourth control signal to the microprocessor during the third period of time in each boost cycle when the voltage of the input power supply is less than or equal to the voltage threshold value, so as to pass the microprocessor Control the third switching tube to turn off, and control the fourth switching tube to turn on; or, in the fourth time period of each boost cycle, send the fifth control signal to the microprocessor, so as to control the third switching tube through the microprocessor
  • the switch tube is turned on, and the fourth switch tube is controlled to be turned off.
  • the controller may send a control signal to the microprocessor to request the microprocessor to turn on the flashlight. Then, the microprocessor can judge the relationship between the voltage V PH of the input power supply and the voltage threshold V th .
  • the microprocessor can dynamically adjust each step-down voltage according to the above formula (1).
  • the duty ratio of mode 1 in the period (specifically, the above-mentioned first duty ratio D 1 ).
  • the microprocessor 14 can control the third switch tube Q3 to be turned on, and the fourth switch tube Q4 to be turned off; One switch tube Q1 is turned on, and the second switch tube Q2 is turned off, so as to control the input power supply 11 to charge the first power supply module 12 (specifically, an inductor), and control the input power supply 11 to supply power to the flashlight module 13.
  • the current path is shown in FIG. 7 indicated by the dotted arrow. Further, as shown in FIG.
  • the microprocessor can control the first switching tube Q1 to be turned off and control the second switching tube Q2 to be turned on in mode 2 in each step-down cycle, so as to control the discharge of the inductor, thereby Power is supplied to the flashlight module 13 through an inductor, and the current path at this time is shown by the dotted arrow in FIG. 8 . Since the microprocessor can control the flashlight current mode 1 and mode 2 alternately in the Buck mode, the output voltage V out of the flashlight circuit is always kept at the minimum value, and the power consumption of the driver chip is also kept at the minimum value at this time.
  • the output voltage V out of the flash circuit depends on the duty cycle of mode 1, that is, the proportion of the duration of mode 1 (ie, the first time period) in the step-down cycle .
  • V PH ⁇ V th it means that the flashlight circuit satisfies the working conditions of the Boost mode, so that the microprocessor can control the flashlight circuit to enter the Boost mode.
  • the microprocessor can dynamically adjust each boost voltage according to the above formula (2).
  • the duty ratio of mode 3 in the period (specifically, the above-mentioned second duty ratio D 2 ).
  • the microprocessor in each boost cycle, can control the first switch tube Q1 to be turned on, and control The second switch tube Q2 is turned off. And in mode 3 in each boost cycle, the microprocessor can control the fourth switching tube Q4 to turn on, and control the third switching tube Q3 to turn off, so as to charge the first power module 12 through the input power, at this time
  • the second power supply module 15 discharges, so that the flashlight module 13 can be powered by the second power supply module.
  • the current path of the input power supply is shown by the dotted arrow A in FIG. 9
  • the current path of the second power supply module 15 is shown in FIG. 9
  • the dashed arrow B Further, as shown in FIG.
  • the microprocessor in mode 4 in each boost cycle, can control the third switching tube Q3 to turn on, and control the fourth switching tube Q4 to turn off, so that the input power and the first
  • the power supply module can supply power to the flashlight module 13 and charge the second power supply module 15 at the same time. At this time, it is discharging for the first power supply module and charging for the second power supply module.
  • the current path is shown in the dashed arrow in Figure 10 shown. Since the microprocessor can control the flashlight current mode 1 and mode 2 alternately in Boost mode, the output voltage V out of the flashlight circuit is always kept at the minimum value, and the power consumption of the driver chip is also kept at the minimum value.
  • the output voltage V out of the flash circuit depends on the duty cycle of mode 2, that is, the proportion of the duration of mode 3 (ie, the third time period) in the boost cycle .
  • the output voltage of the flash circuit can always be kept at a minimum value, that is, the power consumption of the driver chip can also be kept at a minimum value, thereby reducing the risk of overheating of the driver chip, and furthermore Increase the normal working time of the flash module.
  • the range of the voltage V PH of the input power supply is: 3.4V ⁇ VPH ⁇ 4.5V, the voltage threshold value V th is about 3.9V, and the minimum voltage drop of the driver chip is about 0.4V .
  • the microprocessor after receiving the control signal sent by the controller, can also monitor the voltage of the input power in real time, and compare the monitored voltage with the voltage threshold to determine the input power The relationship between the voltage and the voltage threshold.
  • the controller sends a control signal to the microprocessor, it can also monitor the voltage of the input power supply in real time, and compare the monitored voltage with the voltage threshold value to determine the relationship between the voltage of the input power supply and the voltage threshold value.
  • An embodiment of the present application further provides an electronic device, which may include the flashlight circuit in the foregoing embodiment.
  • FIG. 11 shows a flow chart of a flashlight control method provided in the embodiment of the present application.
  • the flashlight control method provided in the embodiment of the present application may include the following steps 101 and 102 .
  • the method will be exemplarily described below by taking an electronic device including the flash circuit as an example to execute the method.
  • Step 101 When the voltage of the input power supply in the flashlight circuit of the electronic device is greater than the voltage threshold value, the electronic device charges the first power supply module in the flashlight circuit through the input power supply during the first period of time within a step-down cycle, and Powers the flash module in the flash circuit.
  • Step 102 When the voltage of the input power supply in the flashlight circuit of the electronic device is greater than the voltage threshold value, the electronic device supplies power to the flashlight module through the first power supply module in a second time period within a voltage-down cycle.
  • step 101 may specifically be implemented through the following step 101a.
  • Step 101a the voltage of the input power supply of the electronic device in the flashlight circuit is greater than the voltage threshold value, and the flashlight circuit controls the third switch tube in the flashlight circuit to turn on and controls the fourth switch tube in the flashlight circuit to turn off
  • the input power can charge the first power module and supply power to the flash module .
  • step 102 may specifically be implemented through the following step 102a.
  • Step 102a the voltage of the input power supply in the flashlight circuit of the electronic device is greater than the voltage threshold value, and when the flashlight circuit controls the third switch tube in the flashlight circuit to turn on and controls the fourth switch tube in the flashlight circuit to turn off , in the second time period, by controlling the first switch tube in the flash circuit to be turned off and controlling the second switch tube in the flash circuit to be turned on, so that the first power supply module supplies power to the flash module.
  • the electronic device when the voltage of the input power supply of the flashlight circuit is greater than the voltage threshold value, the electronic device can first charge the first power supply module through the input power supply in one step-down cycle, And supply power to the flashlight module through the input power supply, and then supply power to the flashlight module separately through the first power supply module, so when the voltage of the input power supply is relatively high, it can be ensured that the output voltage of the flashlight circuit is always kept at a minimum value, so that The power loss of the driver chip is minimal, which in turn ensures that the flash can work normally.
  • the flashlight control method provided in the embodiment of the present application may further include the following steps 103 to 105.
  • Step 103 when the voltage of the input power is less than or equal to the voltage threshold value, the electronic device controls the first switching tube in the flash circuit to turn on and controls the second switching tube in the flash circuit to turn off.
  • Step 104 When the first switching tube is turned on and the second switching tube is turned off, the electronic device charges the first power module through the input power and drives the flashlight circuit in the third period of time within a boost cycle.
  • the second power module of the flashlight module supplies power.
  • Step 105 When the first switching tube is turned on and the second switching tube is turned off, the electronic device supplies power to the flashlight module through the input power supply and the first power supply module in the fourth time period of a boost cycle, and provides The second power module is charged.
  • the electronic device may control the first switching tube in the flash circuit to conduct and control the second switching tube in the flash circuit to disconnected, then the above step 104 can be specifically realized by the following step 104a, and the above step 105 can be specifically realized by the following step 105a.
  • Step 104a When the first switching tube is turned on and the second switching tube is turned off, the electronic device controls the third switching tube in the flash circuit to turn off and controls the fourth switching tube in the flash circuit in the third time period.
  • the switch tube is turned on so that the input power can charge the first power supply module and the second power supply module can supply power to the flashlight module.
  • Step 105a when the first switching tube is turned on and the second switching tube is turned off, the electronic device controls the third switching tube in the flash circuit to turn on and controls the fourth switching tube in the flash circuit in the fourth time period.
  • the switch tube is turned off, so that the input power supply and the first power supply module supply power to the flashlight module, and the input power supply and the first power supply module charge the second power supply module.
  • the electronic device can control the first switch tube to be turned on and the second switch tube to be turned off, and the first switch tube When the tube is turned on and the second switch tube is turned off: in the third time period of each boost cycle, the first power supply module is charged through the input power supply, and the flashlight module is powered through the second power supply module; and In the fourth time period of each boost cycle, the flashlight module is powered by the input power supply and the first power supply module, and the output voltage of the flashlight circuit is increased by means of charging the second power supply module by the input power supply and the first power supply module, Therefore, it can be ensured that the output voltage of the flash lamp circuit is kept at a minimum value, thereby ensuring that the flash lamp can work normally.
  • the embodiment of the present application also provides an electronic device 100, including a processor 101 and a memory 102.
  • the memory 102 stores programs or instructions that can run on the processor 101.
  • the steps in the above-mentioned embodiment of the flashlight control method can be realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 13 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010, etc. part.
  • the electronic device 1000 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 1010 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 13 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, and details will not be repeated here. .
  • the processor 1010 may be used when the voltage of the input power supply in the flashlight circuit is greater than the voltage threshold value: In the first period of time in a step-down cycle, the first power supply module in the flash circuit is charged by the input power supply, and the flash module in the flash circuit is powered; in the second period of time in a step-down cycle, the first A power supply module supplies power to the flashlight module.
  • the processor 1010 may specifically be configured to: in the case of controlling the third switch tube in the flashlight circuit to be turned on and controlling the fourth switch tube in the flashlight circuit to be turned off: during the first time period , by controlling the first switch tube in the flashlight circuit to be turned on and the second switch tube in the flashlight circuit to be turned off, so that the input power can charge the first power supply module and supply power to the flashlight module.
  • the processor 1010 may specifically be configured to: in the case of controlling the third switch tube in the flashlight circuit to be turned on and controlling the fourth switch tube in the flashlight circuit to be turned off: during the second time period , by controlling the flash power The first switch tube in the circuit is turned off, and the second switch tube in the flashlight circuit is controlled to be turned on, so that the first power supply module supplies power to the flashlight module.
  • the processor 1010 may also be configured to control the conduction of the first switch tube in the flash circuit and control the first The second switching tube is turned off, and when the first switching tube is turned on and the second switching tube is turned off: in the third time period of a boost cycle, the first power supply module is charged by the input power and the flashlight is driven The second power supply module in the circuit supplies power to the flashlight module; in the fourth period of a boost cycle, the input power supply and the first power supply module supply power to the flashlight module and charge the second power supply module.
  • the processor 1010 may specifically be configured to control the third switch tube in the flash circuit to be turned off and control the fourth switch tube in the flash circuit to be turned on during the third time period, so that The input power charges the first power module and enables the second power module to supply power to the flashlight module.
  • the processor 1010 may specifically be configured to control the third switch tube in the flash circuit to be turned on and control the fourth switch tube in the flash circuit to be turned off during the fourth time period, so that The input power supply and the first power supply module supply power to the flashlight module, and make the input power supply and the first power supply module charge the second power supply module.
  • the electronic device when the voltage of the input power supply of the flashlight circuit is greater than the voltage threshold, the electronic device can first charge the first power supply module through the input power supply in one step-down cycle, and The flashlight module is powered by the input power supply, and then the flashlight module is powered solely by the first power supply module, so that the output voltage of the flashlight circuit can always be kept at a minimum value when the input power supply voltage is relatively high, so that the The power loss of the driver chip is minimal, which in turn ensures that the flash can work normally.
  • the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072 .
  • the touch panel 10071 is also called a touch screen.
  • the touch panel 10071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 1009 can be used to store software programs as well as various data.
  • the memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc.
  • memory 1009 may include volatile memory or nonvolatile memory, or, memory 1009 may include both volatile and nonvolatile memory.
  • the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash.
  • ROM Read-Only Memory
  • PROM programmable read-only memory
  • Erasable PROM Erasable PROM
  • EPROM electronically programmable Erase Programmable Read-Only Memory
  • Flash Flash
  • the volatile memory can be Random Access Memory (Random Access Memory, RAM), Static Random Access Memory (Static RAM, SRAM), Dynamic Random Access Memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory Access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM).
  • the memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
  • the processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 1010 .
  • the embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by the processor, the various processes in the above-mentioned embodiment of the flashlight control method are implemented, and can achieve The same technical effects are not repeated here to avoid repetition.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk, and the like.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above-mentioned flashlight control method embodiment Each process, and can achieve the same technical effect, in order to avoid repetition, will not repeat them here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above embodiments of the flashlight control method, and can achieve the same technical effect , to avoid repetition, it will not be repeated here.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
  • the component can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), and include several instructions to make a terminal (which can be a mobile phone, a computer, a server) , or a network device, etc.) execute the methods described in the various embodiments of the present application.
  • a storage medium such as ROM/RAM, magnetic disk, optical disk

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Stroboscope Apparatuses (AREA)
  • Circuit Arrangements For Discharge Lamps (AREA)

Abstract

A flash lamp circuit, a control method, an electronic device, and a readable storage medium, which belong to the technical field of communications. The flash lamp circuit comprises: a driving chip (10) and an input power supply (11), a first power supply module (12), and a flash lamp module (13) that are connected to the driving chip (10). The driving chip (10) is used when the voltage of the input power supply (11) is greater than a voltage threshold to: in a first period of time within a voltage reduction period, drive the input power supply (11) to charge the first power supply module (12) and drive the input power supply (11) to supply power to the flash lamp module (13); and drive the first power supply module (12) to supply power to the flash lamp module (13) in a second period of time within the voltage reduction period.

Description

闪光灯电路、控制方法、电子设备及可读存储介质Flash lamp circuit, control method, electronic device and readable storage medium
相关申请的交叉引用Cross References to Related Applications
本申请主张在2022年01月25日在中国提交的中国专利申请号202210087146.9的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202210087146.9 filed in China on January 25, 2022, the entire contents of which are hereby incorporated by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种闪光灯电路、控制方法、电子设备及可读存储介质。The application belongs to the technical field of communication, and in particular relates to a flashlight circuit, a control method, electronic equipment and a readable storage medium.
背景技术Background technique
目前,拍摄功能已经成为电子设备不可或缺的一项功能,而电子设备在弱光条件下进行拍摄时,闪光灯作为重要的辅助外设,在电子设备上的应用也越来越广泛。At present, the shooting function has become an indispensable function of the electronic equipment, and when the electronic equipment is used for shooting under low-light conditions, the flashlight, as an important auxiliary peripheral, is more and more widely used in the electronic equipment.
通常,电子设备可以通过一个驱动芯片,将系统电源的电压转换为闪光灯工作时所需的电压,并根据该系统电源的不同电压值控制闪光灯在不同的模式下进行工作。Usually, the electronic device can convert the voltage of the system power supply to the voltage required for the flash lamp to work through a driver chip, and control the flash lamp to work in different modes according to different voltage values of the system power supply.
然而,按照上述方法,在上述系统电源的电压值较大时,由于上述驱动芯片的功率损耗也较大,且该功率损耗是以热量的形式直接耗散在该驱动芯片上的,因此可能会触发该驱动芯片的过温保护功能,使闪光灯无法继续工作,从而影响用户的使用体验。However, according to the above-mentioned method, when the voltage value of the above-mentioned system power supply is relatively large, since the power loss of the above-mentioned driver chip is also relatively large, and the power loss is directly dissipated on the driver chip in the form of heat, it may cause The over-temperature protection function of the driver chip is triggered, so that the flash cannot continue to work, thereby affecting the user experience.
发明内容Contents of the invention
本申请实施例的目的是提供一种闪光灯电路、控制方法、电子设备及可读存储介质,能够解决系统电源的电压值较大时,闪光灯无法继续工作的问题。The purpose of the embodiment of the present application is to provide a flashlight circuit, a control method, an electronic device and a readable storage medium, which can solve the problem that the flashlight cannot continue to work when the voltage value of the system power supply is large.
第一方面,本申请实施例提供了一种闪光灯电路,该闪光灯电路包括:驱动芯片,以及与驱动芯片连接的输入电源、第一电源模块和闪光灯模块;驱动芯片,用于在输入电源的电压大于电压门限值的情况下:在一个降压周期内的第一时间段,驱动输入电源为第一电源模块充电,并驱动输入电源为闪光灯模块供电;在一个降压周期内的第二时间段,驱动第一电源模块为闪光灯模块供电。In the first aspect, the embodiment of the present application provides a flashlight circuit, the flashlight circuit includes: a driver chip, an input power supply connected to the driver chip, a first power supply module, and a flashlight module; When the voltage is greater than the threshold value: in the first time period of a step-down cycle, drive the input power to charge the first power module, and drive the input power to supply power to the flash module; in the second time period of a step-down cycle segment, driving the first power supply module to supply power to the flashlight module.
第二方面,本申请实施例提供了一种电子设备,该电子设备包括如第一方面所述的闪光灯电路。In a second aspect, an embodiment of the present application provides an electronic device, the electronic device includes the flashlight circuit as described in the first aspect.
第三方面,本申请实施例提供了一种闪光灯控制方法,应用于如第一方面所述的闪光灯电路,该方法包括:在闪光灯电路中的输入电源的电压大于电压门限值的情况下:在一个降压周期内的第一时间段,通过输入电源为闪光灯电路中的第一电源模块充电,并为闪光灯电路中的闪光灯模块供电;在一个降压周期内的第二时间段,通过第一电源模块为闪光灯模块供电。In a third aspect, an embodiment of the present application provides a method for controlling a flash lamp, which is applied to the flash lamp circuit described in the first aspect, and the method includes: when the voltage of the input power supply in the flash lamp circuit is greater than a voltage threshold value: In the first period of time in a step-down cycle, the first power supply module in the flash circuit is charged by the input power supply, and the flash module in the flash circuit is powered; in the second period of time in a step-down cycle, the first A power supply module supplies power to the flashlight module.
第四方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现 如第三方面所述的方法的步骤。In a fourth aspect, the embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, the memory stores programs or instructions that can run on the processor, and the programs or instructions are processed by the Implemented when the device executes The steps of the method as described in the third aspect.
第五方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第三方面所述的方法的步骤。In the fifth aspect, the embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method as described in the third aspect are implemented .
第六方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第三方面所述的方法。In the sixth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, to achieve the third aspect the method described.
第七方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第三方面所述的方法。In a seventh aspect, an embodiment of the present application provides a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method as described in the third aspect.
在本申请实施例中,闪光灯电路可以包括:驱动芯片,以及与驱动芯片连接的输入电源、第一电源模块和闪光灯模块;且驱动芯片,可以用于在输入电源的电压大于电压门限值的情况下:在一个降压周期内的第一时间段,驱动输入电源为第一电源模块充电,并驱动输入电源为闪光灯模块供电;在一个降压周期内的第二时间段,驱动第一电源模块为闪光灯模块供电。通过该闪光灯电路,由于在闪光灯电路的输入电源的电压大于电压门限值的情况下,驱动芯片可以在一个降压周期内先通过输入电源为第一电源模块充电,并通过输入电源为闪光灯模块供电,然后再通过第一电源模块单独为闪光灯模块供电,因此可以在该输入电源的电压较大的情况下,确保闪光灯电路的输出电压始终保持在最小值,从而使得该驱动芯片的功率损耗最小,进而可以确保闪光灯能够正常工作。In the embodiment of the present application, the flashlight circuit may include: a driver chip, and an input power supply connected to the driver chip, a first power supply module, and a flashlight module; Situation: In the first time period of a step-down cycle, drive the input power to charge the first power supply module, and drive the input power to supply power to the flash module; in the second time period of a step-down cycle, drive the first power supply The module powers the flash module. Through the flashlight circuit, since the voltage of the input power supply of the flashlight circuit is greater than the voltage threshold value, the driver chip can firstly charge the first power supply module through the input power supply and charge the flashlight module through the input power supply in a step-down cycle. power supply, and then supply power to the flashlight module separately through the first power supply module, so it can ensure that the output voltage of the flashlight circuit is always kept at the minimum value when the input power supply voltage is relatively high, so that the power loss of the driver chip is minimized , which in turn ensures that the flash is working properly.
附图说明Description of drawings
图1是本申请实施例提供的一种闪光灯电路的结构示意图之一;FIG. 1 is one of the structural schematic diagrams of a flashlight circuit provided by an embodiment of the present application;
图2是本申请实施例提供的一种闪光灯电路的结构示意图之二;Fig. 2 is the second structural schematic diagram of a flashlight circuit provided by the embodiment of the present application;
图3是本申请实施例提供的一种闪光灯电路的结构示意图之三;Fig. 3 is the third structural schematic diagram of a flashlight circuit provided by the embodiment of the present application;
图4是本申请实施例提供的一种闪光灯电路的结构示意图之四;FIG. 4 is the fourth structural schematic diagram of a flashlight circuit provided by an embodiment of the present application;
图5是本申请实施例提供的一种闪光灯电路的结构示意图之五;Fig. 5 is the fifth structural schematic diagram of a flashlight circuit provided by the embodiment of the present application;
图6是本申请实施例提供的一种闪光灯电路的结构示意图之六;Fig. 6 is the sixth structural schematic diagram of a flashlight circuit provided by the embodiment of the present application;
图7是本申请实施例提供的一种闪光灯电路的结构示意图之七;Fig. 7 is the seventh structural schematic diagram of a flashlight circuit provided by the embodiment of the present application;
图8是本申请实施例提供的一种闪光灯电路的结构示意图之八;Fig. 8 is the eighth structural schematic diagram of a flashlight circuit provided by the embodiment of the present application;
图9是本申请实施例提供的一种闪光灯电路的结构示意图之九;FIG. 9 is the ninth schematic structural diagram of a flashlight circuit provided by an embodiment of the present application;
图10是本申请实施例提供的一种闪光灯电路的结构示意图之十;Fig. 10 is the tenth structural schematic diagram of a flashlight circuit provided by the embodiment of the present application;
图11是本申请实施例提供的闪光灯控制方法的流程图;FIG. 11 is a flow chart of a flashlight control method provided in an embodiment of the present application;
图12是本申请实施例提供的电子设备的示意图;Fig. 12 is a schematic diagram of an electronic device provided by an embodiment of the present application;
图13是本申请实施例提供的电子设备的硬件示意图。FIG. 13 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will clearly describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象, 而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, It is not intended to describe a particular order or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first,""second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的闪光灯电路、控制方法、电子设备及可读存储介质进行详细地说明。The flashlight circuit, control method, electronic device and readable storage medium provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
闪光灯作为拍摄时重要的辅助外设,在手机等移动终端上有着广泛的应用。一方面,移动终端为了获取较好的拍摄效果,对闪光灯亮度的需求越来越高;另一方面,由于用户对移动终端的设计的美学要求越来越高,因此闪光灯对应的屏幕开孔被设计的很小;从而移动终端为了确保闪光灯预期的亮度只能增大通过闪光灯的电流。通常,为了保证闪光灯可以发出预期亮度,闪光灯工作时的电压和电流必须保持固定,然而由于输入电源一般接到电池端,其电压并不固定。具体的,在该输入电源的电压小于或等于一个电压门限值时,无论其如何变化,驱动芯片均可以通过调整该驱动芯片中的不同开关元件的占空比,确保该驱动芯片的功耗最小。在该输入电源的电压大于该电压门限值时,该驱动芯片无法再通过调整该驱动芯片中的不同开关元件的占空比,确保该驱动芯片的功率损耗最小,而为了保证闪光灯固定的工作电压和电流,该驱动芯片的功率损耗也越来越大。由于该功率损耗是以热量的形式直接耗散在该驱动芯片上的,因此一方面会导致该驱动芯片的能量转换效率变低,影响用户的使用时长;另一方面,驱动芯片的温度过高,可能会导致驱动芯片的过温保护,从而使得闪光灯无法继续工作,进而影响用户的使用体验感。As an important auxiliary peripheral when shooting, the flash is widely used in mobile terminals such as mobile phones. On the one hand, in order to obtain better shooting effects, mobile terminals have higher and higher requirements for the brightness of the flashlight; on the other hand, because users have higher and higher aesthetic requirements for the design of mobile terminals, the screen openings corresponding to the flashlights are being used. The design is small; thus the mobile terminal can only increase the current passing through the flashlight in order to ensure the expected brightness of the flashlight. Usually, in order to ensure that the flashlight can emit the expected brightness, the voltage and current of the flashlight must be kept constant. However, since the input power is generally connected to the battery terminal, its voltage is not constant. Specifically, when the voltage of the input power supply is less than or equal to a voltage threshold value, no matter how it changes, the driver chip can ensure the power consumption of the driver chip by adjusting the duty cycle of different switching elements in the driver chip. minimum. When the voltage of the input power source is greater than the voltage threshold value, the driver chip can no longer ensure the minimum power loss of the driver chip by adjusting the duty cycle of different switching elements in the driver chip. Voltage and current, the power loss of the driver chip is also increasing. Since the power loss is directly dissipated on the driver chip in the form of heat, on the one hand, the energy conversion efficiency of the driver chip will be reduced, which will affect the user's use time; on the other hand, the temperature of the driver chip will be too high , may lead to over-temperature protection of the driver chip, so that the flash cannot continue to work, thereby affecting the user experience.
为了解决上述问题,在本申请实施例的闪光灯电路中,驱动芯片可以用于在输入电源的电压大于电压门限值的情况下:在一个降压周期内的第一时间段,驱动输入电源为第一电源模块充电,并驱动输入电源为闪光灯模块供电;在一个降压周期内的第二时间段,驱动第一电源模块为闪光灯模块供电。通过该闪光灯电路,在闪光灯电路的输入电源的电压大于电压门限值的情况下,由于驱动芯片可以在一个降压周期内的两个不同时间段,分别单独驱动输入电源和第一电源模块为闪光灯模块供电,因此可以在该输入电源的电压较大的情况下,确保该闪光灯电路的输出电压始终保持在最小值,从而使得使该驱动芯片的功率损耗最小,进而可以确保闪光灯能够正常工作。In order to solve the above problems, in the flashlight circuit of the embodiment of the present application, the driver chip can be used to drive the input power to be The first power supply module charges and drives the input power supply to supply power to the flashlight module; in the second time period of a step-down cycle, drives the first power supply module to supply power to the flashlight module. Through the flashlight circuit, when the voltage of the input power supply of the flashlight circuit is greater than the voltage threshold value, since the driver chip can separately drive the input power supply and the first power supply module in two different time periods within a step-down cycle, The flashlight module is powered, so when the voltage of the input power supply is high, the output voltage of the flashlight circuit can be kept at a minimum value, so that the power loss of the driver chip is minimized, and the flashlight can work normally.
本申请实施例提供一种闪光灯电路,图1示出了本申请实施例提供的一种闪光灯电路的结构示意图。如图1所示,本申请实施例提供的闪光灯电路可以包括驱动芯片10,以及与驱动芯片10连接的输入电源11、第一电源模块12和闪光灯模块13。An embodiment of the present application provides a flashlight circuit, and FIG. 1 shows a schematic structural diagram of a flashlight circuit provided in the embodiment of the present application. As shown in FIG. 1 , the flashlight circuit provided by the embodiment of the present application may include a driver chip 10 , and an input power supply 11 connected to the driver chip 10 , a first power supply module 12 and a flashlight module 13 .
本申请实施例中,驱动芯片可以用于在输入电源的电压大于电压门限值的情况下:在一个降压周期内的第一时间段,驱动输入电源为第一电源模块充电,并驱动输入电源为闪光灯模块供电;在一个降压周期内的第二时间段,驱动第一电源模块为闪光灯模块供电。In the embodiment of this application, the driver chip can be used to drive the input power to charge the first power module and drive the input The power supply supplies power to the flashlight module; in a second period of time within a step-down cycle, the first power supply module is driven to supply power to the flashlight module.
可选地,本申请实施例中,电压门限值可以为闪光灯电路的输出电压的最小值。 Optionally, in this embodiment of the present application, the voltage threshold may be the minimum value of the output voltage of the flash circuit.
可选地,本申请实施例中,闪光灯电路的输出电压的最小值可以为闪光灯模块正常工作所需的电压(例如额定电压)和驱动芯片上的最小压降之和。Optionally, in the embodiment of the present application, the minimum value of the output voltage of the flashlight circuit may be the sum of the voltage required for normal operation of the flashlight module (for example, the rated voltage) and the minimum voltage drop on the driver chip.
本申请实施例中,上述一个降压周期的时长为第一时间段的时长与第二时间段的时长之和。即一个压降周期由一个第一时间段和一个第二时间段组成。In the embodiment of the present application, the duration of the above-mentioned one step-down period is the sum of the duration of the first time period and the duration of the second time period. That is, a pressure drop period is composed of a first time period and a second time period.
可以理解,在一个降压周期内,第一时间段的结束时刻小于第二时间段的开始时刻。It can be understood that, within a depressurization cycle, the end moment of the first time period is shorter than the start moment of the second time period.
本申请实施例中,上述一个降压周期的时长为一个固定的时长,第一时间段的时长与第二时间段的时长可以根据输入电源的电压与电压门限值之间的比值确定。In the embodiment of the present application, the duration of the above-mentioned step-down cycle is a fixed duration, and the duration of the first time period and the duration of the second time period can be determined according to the ratio between the voltage of the input power supply and the voltage threshold.
示例性地,假设第一占空比D1=第一时间段:降压周期,那么:第一占空比D1、电压门限值Vth和输入电源的电压VPH满足下述的公式(1):Exemplarily, assuming that the first duty cycle D 1 = the first time period: step-down period, then: the first duty cycle D 1 , the voltage threshold value V th and the voltage V PH of the input power satisfy the following formula (1):
Vth=D1*VPH;         (1)V th =D 1 *V PH ; (1)
其中,0≤D1<1。Wherein, 0≤D 1 <1.
可以理解,在上述一个降压周期结束后,驱动芯片可以在输入电源的电压大于电压门限值的情况下,在下一个降压周期内的第一时间段,驱动输入电源为第一电源模块充电,并驱动输入电源为闪光灯模块供电;在下一个降压周期内的第二时间段,驱动第一电源模块为闪光灯模块供电。即驱动芯片可以在每个降压周期内的第一时间段,驱动输入电源为第一电源模块充电,并驱动输入电源为闪光灯模块供电;以及在每个降压周期内的第二时间段,驱动第一电源模块为闪光灯模块供电。It can be understood that after the above step-down cycle ends, the driver chip can drive the input power supply to charge the first power module in the first time period of the next step-down cycle when the voltage of the input power supply is greater than the voltage threshold value. , and drive the input power supply to supply power to the flashlight module; and drive the first power supply module to supply power to the flashlight module during the second period of time in the next step-down cycle. That is, the driver chip can drive the input power to charge the first power module and drive the input power to supply power to the flashlight module in the first time period of each step-down cycle; and in the second time period of each step-down cycle, Driving the first power supply module to supply power to the flashlight module.
可选地,本申请实施例中,第一电源模块可以为电感元件。Optionally, in this embodiment of the present application, the first power module may be an inductance element.
可以理解,驱动芯片通过在每个降压周期内的第一时间段,驱动闪光灯电路的升压电路中的电感元件作为单独的电源为闪光灯模块供电,因此可以避免闪光灯电路的输出电压随输入电源的电压的增大而持续增大,从而可以降低驱动芯片的功耗。It can be understood that the driver chip drives the inductance element in the boost circuit of the flash circuit as a separate power supply for the flash module during the first period of time in each step-down cycle, so that the output voltage of the flash circuit can be avoided from changing with the input power supply. The increase of the voltage continues to increase, so that the power consumption of the driver chip can be reduced.
本申请实施例中,输入电源可以用于在驱动芯片的驱动下:为第一电源模块充电;或者,为闪光灯模块供电。In the embodiment of the present application, the input power supply may be used to: charge the first power supply module under the drive of the driver chip; or supply power to the flashlight module.
本申请实施例中,第一电源模块可以用于在驱动芯片的驱动下:通过输入电源充电;或者,为闪光灯模块供电。In the embodiment of the present application, the first power supply module may be used to: be charged by an input power supply under the drive of the driver chip; or, supply power to the flashlight module.
下面结合附图,对本申请实施例提供的闪光灯电路进行示例性地说明。The flashlight circuit provided by the embodiment of the present application will be exemplarily described below with reference to the accompanying drawings.
示例性地,参照图1,若输入电源11的电压大于电压门限值,则闪光灯电路可以工作在降压(Buck)模式下,该降压模式可以包括至少一个降压周期,每个降压周期内均包括两个供电模式,分别为模式1和模式2。其中,模式1为:在每个降压周期内的第一时间段,输入电源11可以在驱动芯片10的驱动下,为第一电源模块12充电,并为闪光灯模块13供电;模式2为:在每个降压周期内的第二时间段,第一电源模块12可以在驱动芯片10的驱动下,为闪光灯模块13供电。如此,在降压模式下,通过两个供电模式的交替,可以在输入电源的电压较大的情况下,维持闪光灯电路的输出电压的稳定(例如使输出电压保持最小值),从而维持闪光灯电路的输出电流的稳定,进而使得使闪光灯电路中的驱动芯片的功率损耗最小,以确保闪光灯能够正常工作。 Exemplarily, referring to FIG. 1, if the voltage of the input power source 11 is greater than the voltage threshold value, the flashlight circuit can operate in a step-down (Buck) mode, and the step-down mode can include at least one step-down cycle, each step-down Each cycle includes two power supply modes, mode 1 and mode 2 respectively. Wherein, mode 1 is: in the first period of time in each step-down cycle, the input power supply 11 can charge the first power supply module 12 under the drive of the driver chip 10, and supply power to the flashlight module 13; mode 2 is: In the second period of each step-down period, the first power supply module 12 can supply power to the flashlight module 13 driven by the driving chip 10 . In this way, in the step-down mode, through the alternation of the two power supply modes, the output voltage of the flashlight circuit can be maintained stable (for example, the output voltage is kept at a minimum value) when the input power supply voltage is relatively high, thereby maintaining the flashlight circuit The output current of the flashlight is stabilized, thereby minimizing the power loss of the driver chip in the flashlight circuit, so as to ensure that the flashlight can work normally.
可选地,本申请实施例中,结合图1,如图2所示,上述驱动芯片10可以包括微处理器14、第一开关管Q1、第二开关管Q2、第三开关管Q3和第四开关管Q4。微处理器14分别与第一开关管Q1的控制端(图2中以表示c1)、第二开关管Q2的控制端(图2中以c2表示)、第三开关管Q3的控制端(图2中以c3表示)和第四开关管Q4的控制端(图2中以c4表示)连接;第一开关管Q1的第一端(图2中以a1表示)与输入电源11的正极连接,第一开关管Q1的第二端(图2中以b1表示)与第二开关管Q2的第一端(图2中以a2表示)和第一电源模块12的第一端连接(图2中以a表示),第三开关管Q3的第一端(图2中以a3表示)与闪光灯模块13的正极连接,第三开关管Q3的第二端(图2中以b3表示)与第四开关管Q4的第一端(图2中以a4表示)和第一电源模块12的第二端(图2中以b表示)连接,第二开关管Q2的第二端(图2中以b2表示)、第四开关管Q4的第二端(图2中以b4表示)、闪光灯模块13的负极以及输入电源11的负极均接地。Optionally, in this embodiment of the present application, referring to FIG. 1, as shown in FIG. Four switching tubes Q4. The microprocessor 14 is respectively connected to the control terminal of the first switching tube Q1 (indicated by c1 in FIG. 2 ), the control terminal of the second switching tube Q2 (indicated by c2 in FIG. 2) is connected to the control end of the fourth switching tube Q4 (shown as c4 in FIG. 2 ); the first end of the first switching tube Q1 (shown as a1 in FIG. 2 ) is connected to the positive pole of the input power supply 11, The second end of the first switching tube Q1 (indicated by b1 in FIG. 2 ) is connected to the first end of the second switching tube Q2 (indicated by a2 in FIG. 2 ) and the first end of the first power module 12 (in FIG. 2 denoted by a), the first end of the third switch tube Q3 (shown by a3 in FIG. The first end of the switch tube Q4 (indicated by a4 in FIG. 2 ) is connected to the second end (indicated by b in FIG. 2 ) of the first power module 12, and the second end of the second switch tube Q2 (indicated by b2 in FIG. 2 ), the second end of the fourth switching tube Q4 (shown as b4 in FIG. 2 ), the negative pole of the flashlight module 13 and the negative pole of the input power supply 11 are all grounded.
本申请实施例中,微处理器可以用于在输入电源的电压大于电压门限值的情况下,控制第三开关管导通、且控制第四开关管断开;并在第三开关管导通、且第四开关管断开的情况下:在第一时间段,通过控制第一开关管导通、且控制第二开关管断开,驱动输入电源为第一电源模块充电,并驱动输入电源为闪光灯模块供电;或者,在第二时间段,通过控制第一开关管断开、且控制第二开关管导通,驱动第一电源模块为闪光灯模块供电。如此,驱动芯片可以通过微处理器,在一个降压周期内的两个不同时间段,分别驱动第一电源模块和输入电源单独为闪光灯模块供电。In the embodiment of the present application, the microprocessor can be used to control the third switching tube to turn on and control the fourth switching tube to turn off when the voltage of the input power supply is greater than the voltage threshold value; In the case of on and the fourth switching tube is off: in the first time period, by controlling the first switching tube to be on and controlling the second switching tube to be off, the input power supply is driven to charge the first power module, and the input power supply is driven to The power supply supplies power to the flashlight module; or, in the second time period, the first power supply module is driven to supply power to the flashlight module by controlling the first switch tube to be turned off and the second switch tube to be turned on. In this way, the driver chip can separately drive the first power module and the input power to supply power for the flashlight module through the microprocessor in two different time periods within a step-down cycle.
可选地,本申请实施例中,开关管可以为开关三极管或场效应管等任意可能的开关管。Optionally, in the embodiment of the present application, the switch transistor may be any possible switch transistor such as a switch triode or a field effect transistor.
需要说明的是,微处理器可以通过向开关管发送控制信号的方式,控制开关管导通或断开。It should be noted that the microprocessor can control the switch tube to be turned on or off by sending a control signal to the switch tube.
在本申请实施例提供的闪光灯电路中,由于在闪光灯电路的输入电源的电压大于电压门限值的情况下,驱动芯片可以在一个降压周期内先通过输入电源为第一电源模块充电,并通过输入电源为闪光灯模块供电,然后再通过第一电源模块单独为闪光灯模块供电,因此可以在该输入电源的电压较大的情况下,确保闪光灯电路的输出电压始终保持在最小值,从而使得该驱动芯片的功率损耗最小,进而可以确保闪光灯能够正常工作。In the flashlight circuit provided in the embodiment of the present application, when the voltage of the input power supply of the flashlight circuit is greater than the voltage threshold value, the driver chip can first charge the first power supply module through the input power supply in one step-down cycle, and The flashlight module is powered by the input power supply, and then the flashlight module is powered solely by the first power supply module, so that the output voltage of the flashlight circuit can always be kept at a minimum value when the input power supply voltage is relatively high, so that the The power loss of the driver chip is minimal, which in turn ensures that the flash can work normally.
可选地,本申请实施例中,结合图1,如图3所示,本申请实施例提供的闪光灯电路还可以包括与上述驱动芯片10连接的第二电源模块15。Optionally, in the embodiment of the present application, referring to FIG. 1 , as shown in FIG. 3 , the flash circuit provided in the embodiment of the present application may further include a second power module 15 connected to the above-mentioned driving chip 10 .
本申请实施例中,驱动芯片还可以用于在输入电源的电压小于或等于电压门限值的情况下:在一个升压周期内的第三时间段,驱动输入电源为第一电源模块充电,并驱动第二电源模块为闪光灯模块供电;在一个升压周期内的第四时间段,驱动输入电源和第一电源模块为闪光灯模块供电,并驱动输入电源和第一电源模块为第二电源模块充电。In the embodiment of the present application, the driving chip can also be used to drive the input power supply to charge the first power supply module during the third period of time in a boost cycle when the voltage of the input power supply is less than or equal to the voltage threshold value, And drive the second power supply module to supply power to the flashlight module; in the fourth period of time within a boost cycle, drive the input power supply and the first power supply module to supply power to the flashlight module, and drive the input power supply and the first power supply module to serve as the second power supply module Charge.
本申请实施例中,上述一个升压周期的时长为第三时间段的时长与第四时间段的时长之和。即该升压周期由一个第三时间段和的一个第四时间段组成。In the embodiment of the present application, the duration of the above-mentioned one boost cycle is the sum of the duration of the third time period and the duration of the fourth time period. That is, the boost cycle is composed of a third time period and a fourth time period.
可以理解,在一个升压周期内,第三时间段的结束时刻小于第四时间段的开始时刻。 It can be understood that, within a boost cycle, the end moment of the third time period is shorter than the start moment of the fourth time period.
本申请实施例中,上述一个升压周期的时长为一个固定的时长,第三时间段的时长与第四时间段的时长可以根据输入电源的电压与电压门限值之间的比值确定。In the embodiment of the present application, the duration of one boost cycle is a fixed duration, and the duration of the third time period and the fourth time period can be determined according to the ratio between the voltage of the input power supply and the voltage threshold.
示例性地,假设第二占空比D2=第三时间段:升压周期,那么:第二占空比D2、电压门限值Vth和输入电源的电压VPH满足下述的公式(2):
Exemplarily, assuming that the second duty ratio D 2 = the third time period: boost cycle, then: the second duty ratio D 2 , the voltage threshold value V th and the voltage V PH of the input power satisfy the following formula (2):
其中,0≤D2<1。Wherein, 0≦D 2 <1.
可以理解,在上述一个升压周期结束后,驱动芯片可以在输入电源的电压小于或等于电压门限值的情况下,在下一个升压周期内的第三时间段,驱动输入电源为第一电源模块充电,并驱动第二电源模块为闪光灯模块供电;在下一个升压周期内的第四时间段,驱动输入电源和第一电源模块为闪光灯模块供电,并驱动输入电源和第一电源模块为第二电源模块充电。即驱动芯片可以在每个升压周期的第三时间段,驱动输入电源为第一电源模块充电,并驱动第二电源模块为闪光灯模块供电;以及在每个降压周期的第二时间段,驱动输入电源和第一电源模块为闪光灯模块供电,并驱动输入电源和第一电源模块为第二电源模块充电。It can be understood that after the above-mentioned one boost cycle ends, the driver chip can drive the input power to the first power supply in the third period of time in the next boost cycle when the voltage of the input power is less than or equal to the voltage threshold value. The module is charged, and the second power supply module is driven to supply power to the flashlight module; in the fourth period of time in the next boost cycle, the input power supply and the first power supply module are driven to supply power to the flashlight module, and the input power supply and the first power supply module are driven to supply power to the second power supply module. Two power modules are charged. That is, the driver chip can drive the input power supply to charge the first power module during the third time period of each boost cycle, and drive the second power module to supply power to the flashlight module; and during the second time period of each step-down cycle, The input power supply and the first power supply module are driven to supply power to the flashlight module, and the input power supply and the first power supply module are driven to charge the second power supply module.
可选地,本申请实施例中,第二电源模块可以为包括电容元件。Optionally, in the embodiment of the present application, the second power module may include a capacitive element.
可选地,本申请实施例中,当驱动芯片驱动输入电源和第一电源模块为闪光灯模块供电,并驱动输入电源和第一电源模块为第二电源模块充电时,驱动芯片可以驱动输入电源和第一电源模块串联连接。如此可以使得闪光灯电路的输入电压为输入电源的电压和第一电源模块的电压之和,从而可以确保闪光灯电路的输出电压大于输入电源的电压,进而使得闪光灯电路的输出电压能够满足闪光灯模块的电压需求。Optionally, in this embodiment of the application, when the driver chip drives the input power and the first power module to supply power to the flashlight module, and drives the input power and the first power module to charge the second power module, the driver chip can drive the input power and The first power modules are connected in series. In this way, the input voltage of the flashlight circuit can be the sum of the voltage of the input power supply and the voltage of the first power supply module, thereby ensuring that the output voltage of the flashlight circuit is greater than the voltage of the input power supply, so that the output voltage of the flashlight circuit can meet the voltage of the flashlight module need.
本申请实施例中,输入电源可以用于在驱动芯片的驱动下:为第一电源模块充电;或者,为闪光灯模块供电并为第二电源模块充电。In the embodiment of the present application, the input power supply can be used to charge the first power supply module under the drive of the driver chip; or, supply power to the flashlight module and charge the second power supply module.
本申请实施例中,第一电源模块可以用于在驱动芯片的驱动下:通过输入电源充电;或者,为闪光灯模块供电并为第二电源模块充电。In the embodiment of the present application, the first power supply module can be used to charge the flashlight module and charge the second power supply module under the drive of the driver chip: charging through the input power supply.
本申请实施例中,第二电源模块可以用于在驱动芯片的驱动下:为闪光灯模块供电;或者,通过输入电源和第一电源模块充电。In the embodiment of the present application, the second power supply module can be used to supply power to the flashlight module under the drive of the driver chip; or, to charge through the input power supply and the first power supply module.
下面结合附图,对本申请实施例提供的闪光灯电路进行示例性地说明。The flashlight circuit provided by the embodiment of the present application will be exemplarily described below with reference to the accompanying drawings.
示例性地,参照图3,若输入电源11的电压小于或等于电压门限值,则闪光灯电路工作在升压(Boost)模式下,该升压模式可以包括至少一个升压周期,每个升压周期内均包括两个供电模式,分别为模式3和模式4。其中,模式3为:在每个升压周期内的第三时间段,输入电源11可以在驱动芯片10的驱动下,为第一电源模块12充电;第二电源模块15可以在驱动芯片10的驱动下,为闪光灯模块13供电;模式4为:在每个升压周期内的第四时间段,输入电源11和第一电源模块12可以在驱动芯片10的驱动下,为闪光灯模块13供电且为第二电源模块15充电。如此,在升压模式下,通过两个供电模式的交替进行,可以在输入电源的电压较小的情况下,维持闪光灯电路的输出电压的稳定(例如使输出电压保持最小值),从而维持闪光灯电路的输出电流的稳定,进而使得使闪光灯电路中的驱动芯片的功率损耗最 小,以确保闪光灯能够正常工作。Exemplarily, referring to FIG. 3 , if the voltage of the input power supply 11 is less than or equal to the voltage threshold value, the flashlight circuit operates in a boost (Boost) mode, and the boost mode may include at least one boost cycle, each boost Each voltage cycle includes two power supply modes, namely mode 3 and mode 4. Wherein, the mode 3 is: in the third period of time in each boost cycle, the input power source 11 can be driven by the driver chip 10, to charge the first power module 12; Driven to supply power to the flashlight module 13; mode 4 is: in the fourth time period of each boost cycle, the input power supply 11 and the first power supply module 12 can be driven by the driver chip 10 to supply power to the flashlight module 13 and Charge the second power module 15 . In this way, in the boost mode, by alternately performing the two power supply modes, the output voltage of the flashlight circuit can be kept stable (for example, keep the output voltage at a minimum value) when the voltage of the input power supply is small, thereby maintaining the flashlight The stability of the output current of the circuit makes the power loss of the driver chip in the flash circuit the lowest small to ensure that the flash will work properly.
需要说明的是,在输入电源的电压小于或等于电压门限值的情况下,闪光灯电路可以通过工作在升压模式下,升高闪光灯电路的输出电压,以确保闪光灯电路的输出电压始终保持在最小值;并在输入电源的电压大于电压门限值的情况下,通过复用升压模式下的第一电源模块,具体为在第一时间段驱动第一电压模块单独为电源闪光灯模块供电,且在第二时间段驱动输入电源单独为电源闪光灯模块供电的方式,降低闪光灯电路的输出电压,以确保闪光灯电路的输出电压始终保持在最小值。如此无论输入电源的电压如何变化,闪光灯电路的输出电压可以始终保持在最小值,从而可以降低驱动芯片的功耗,提高闪光灯模组的工作时长,进而提高用户体验感。It should be noted that, when the voltage of the input power supply is less than or equal to the voltage threshold value, the flashlight circuit can increase the output voltage of the flashlight circuit by operating in boost mode, so as to ensure that the output voltage of the flashlight circuit is always maintained at minimum value; and when the voltage of the input power supply is greater than the voltage threshold value, by multiplexing the first power supply module in the boost mode, specifically driving the first voltage module in the first time period to supply power for the power flashlight module alone, And in the second time period, the input power is driven to supply power to the power flashlight module alone, and the output voltage of the flashlight circuit is reduced to ensure that the output voltage of the flashlight circuit is always kept at a minimum value. In this way, no matter how the voltage of the input power source changes, the output voltage of the flashlight circuit can always be kept at a minimum value, thereby reducing the power consumption of the driver chip, increasing the working time of the flashlight module, and improving user experience.
可选地,本申请实施例中,结合图3,如图4所示,上述驱动芯片10可以包括微处理器14、第一开关管Q1、第二开关管Q2、第三开关管Q3和第四开关管Q4;微处理器14分别与第一开关管Q1的控制端(图4中以c1表示)、第二开关管Q2的控制端(图4中以c2表示)、第三开关管Q3的控制端(图4中以c3表示)和第四开关管Q4的控制端(图4中以c4表示)连接;第一开关管Q1的第一端(图4中以a1表示)与输入电源11的正极连接,第一开关管Q1的第二端(图4中以b1表示)与第二开关管Q2的第一端(图4中以a2表示)和第一电源模块12的第一端(图4中以a表示)连接,第三开关管Q3的第一端(图4中以a3表示)与闪光灯模块13的正极和第二电源模块15的正极连接,第三开关管Q3的第二端(图4中以b3表示)与第四开关管Q4的第一端(图4中以a4表示)和第一电源模块12的第二端(图4中以b表示)连接,第二开关管Q2的第二端(图4中以b2表示)、第四开关管Q4的第二端(图4中以b4表示)、闪光灯模块13的负极、输入电源11的负极和第二电源模块15的负极均接地。Optionally, in this embodiment of the present application, referring to FIG. 3, as shown in FIG. Four switching tubes Q4; the microprocessor 14 is respectively connected to the control terminal of the first switching tube Q1 (shown by c1 in FIG. 4 ), the control terminal of the second switching tube Q2 (shown by c2 in FIG. 4 ), and the third switching tube Q3 The control terminal (indicated by c3 in FIG. 4 ) is connected to the control terminal (indicated by c4 in FIG. 4 ) of the fourth switching tube Q4; the first end (indicated by a1 in FIG. 4 ) of the first switching tube Q1 is connected to the input power supply 11, the second end of the first switching tube Q1 (indicated by b1 in FIG. 4 ) is connected with the first end of the second switching tube Q2 (indicated by a2 in FIG. 4 ) and the first end of the first power module 12 (represented by a in FIG. 4 ) connection, the first end of the third switching tube Q3 (represented by a3 in FIG. 4 ) is connected to the positive pole of the flashlight module 13 and the positive pole of the second power supply module 15, and the first end of the third switching tube Q3 The two terminals (shown by b3 in FIG. 4 ) are connected with the first end (shown by a4 in FIG. 4 ) of the fourth switch tube Q4 and the second end (shown by b in FIG. 4 ) of the first power module 12 , and the second The second end of the switch tube Q2 (shown by b2 in FIG. 4 ), the second end of the fourth switch tube Q4 (shown by b4 in FIG. 4 ), the negative pole of the flashlight module 13, the negative pole of the input power supply 11 and the second power supply module 15 negative poles are all grounded.
本申请实施例中,微处理器可以用于在输入电源的电压小于或等于电压门限值的情况下,控制第一开关管导通且控制第二开关管断开,并在第一开关管导通且第二开关管断开的情况下:在第三时间段,通过控制第三开关管断开、且控制第四开关管导通,驱动输入电源为第一电源模块充电,并驱动第二电源模块为闪光灯模块供电;或者,在第四时间段,通过控制第三开关管导通、且控制第四开关管断开,驱动输入电源和第一电源模块为闪光灯模块供电,并驱动输入电源和第一电源模块为第二电源模块充电。如此可以确保闪光灯电路的输出电压保持最小。In the embodiment of the present application, the microprocessor can be used to control the first switching tube to be turned on and the second switching tube to be turned off when the voltage of the input power supply is less than or equal to the voltage threshold value, and the first switching tube When it is turned on and the second switch is turned off: in the third time period, by controlling the third switch to be turned off and the fourth switch to be turned on, the input power is driven to charge the first power module and drive the second The second power supply module supplies power to the flashlight module; or, in the fourth time period, by controlling the third switch tube to be turned on and the fourth switch tube to be turned off, the input power supply and the first power supply module are driven to supply power to the flashlight module, and the input The power supply and the first power module charge the second power module. This ensures that the output voltage of the flash circuit is kept to a minimum.
在本申请实施例提供的闪光灯电路中,在闪光灯电路的输入电源的电压小于或等于电压门限值的情况下,由于驱动芯片可以控制第一开关管导通且控制第二开关管断开,并在第一开关管导通且第二开关管断开的情况下:通过在每个升压周期内的第三时间段,驱动输入电源为第一电源模块充电,并驱动第二电源模块为闪光灯模块供电;且在每个升压周期内的第四时间段,驱动输入电源和第一电源模块为闪光灯模块供电,并驱动输入电源和第一电源模块为第二电源模块充电的方式,提高闪光灯电路的输出电压,因此可以确保闪光灯电路的输出电压保持在最小值,从而可以确保闪光灯能够正常工作。 In the flashlight circuit provided by the embodiment of the present application, when the voltage of the input power supply of the flashlight circuit is less than or equal to the voltage threshold value, since the driver chip can control the first switch tube to be turned on and the second switch tube to be turned off, And when the first switch tube is turned on and the second switch tube is turned off: through the third time period in each boost cycle, drive the input power to charge the first power module, and drive the second power module to be The flashlight module supplies power; and in the fourth period of each boost cycle, the input power supply and the first power supply module are driven to supply power to the flashlight module, and the input power supply and the first power supply module are driven to charge the second power supply module, which improves The output voltage of the flash circuit, so it can ensure that the output voltage of the flash circuit is kept at a minimum value, thereby ensuring that the flash can work normally.
可选地,本申请实施例中,结合图4,如图5所示,上述驱动芯片10还可以包括第一电流源16和第二电流源17,上述闪光灯模块13可以包括第一闪光灯18和第二闪光灯19;第一电流源16的正极和第二电流源17的正极均与第三开关管Q3的第一端(图5中以a3表示)连接,第一电流源16的负极与第一闪光灯18的正极连接,第二电流源17的负极与第二闪光灯19的正极连接;第一闪光灯18的负极和第二闪光灯19的负极均接地。Optionally, in this embodiment of the present application, referring to FIG. 4, as shown in FIG. The second flash lamp 19; the positive pole of the first current source 16 and the positive pole of the second current source 17 are all connected with the first end (represented by a3 in FIG. The positive pole of a flash lamp 18 is connected, the negative pole of the second current source 17 is connected with the positive pole of the second flash lamp 19; the negative pole of the first flash lamp 18 and the negative pole of the second flash lamp 19 are both grounded.
可以理解,第一闪光灯18的正极和第二闪光灯19的正极均为上述闪光灯模块13的正极,第一闪光灯的负极和第二闪光灯的负极均为上述闪光灯模块的负极。It can be understood that the positive pole of the first flashlight 18 and the positive pole of the second flashlight 19 are both positive poles of the above-mentioned flashlight module 13, and the negative poles of the first flashlight and the negative pole of the second flashlight are both negative poles of the above-mentioned flashlight module.
本申请实施例中,第一电流源可以用于分压,以向第一闪光灯输出稳定的电流,第二电流源可以用于分压,以向第二闪光灯输出稳定的电流,从而确保第一闪光灯和第二闪光灯的工作电流保持稳定。In the embodiment of the present application, the first current source can be used for voltage division to output a stable current to the first flashlight, and the second current source can be used for voltage division to output a stable current to the second flashlight, thereby ensuring that the first The operating currents of the flashlight and the second flashlight remain stable.
本申请实施例中,第一闪光灯和第二闪光灯可以为发光二极管,或其他任意可以发光的元件。In the embodiment of the present application, the first flash lamp and the second flash lamp may be light emitting diodes, or any other elements capable of emitting light.
需要说明的是,驱动芯片的功耗可以包括:驱动芯片中的第一电流源的功耗和第二电流源的功耗。It should be noted that the power consumption of the driving chip may include: power consumption of the first current source and power consumption of the second current source in the driving chip.
可选地,本申请实施例中,如图5所示,当闪光灯电路工作在Buck模式时,可以通过下述的公式(3)计算驱动芯片的压降:Optionally, in the embodiment of the present application, as shown in FIG. 5, when the flash circuit works in Buck mode, the voltage drop of the driver chip can be calculated by the following formula (3):
Vth=D1*VPH=VHR+VLED1+VLED2;(3)V th =D 1 *V PH =V HR +V LED1 +V LED2 ; (3)
其中,为Vth电压门限值,D1为第一占空比,VPH为输入电源的电压;VHR为驱动芯片的压降,VLED1为第一闪光灯的工作电压,VLED2为第二闪光灯的工作电压。Among them, V th voltage threshold value, D 1 is the first duty cycle, V PH is the voltage of the input power supply; V HR is the voltage drop of the driver chip, V LED1 is the operating voltage of the first flashlight, V LED2 is the second 2. The working voltage of the flashlight.
如图5所示,当闪光灯电路工作在Boost模式下时,可以通过下述的公式(4)计算驱动芯片的压降:
As shown in Figure 5, when the flash circuit works in Boost mode, the voltage drop of the driver chip can be calculated by the following formula (4):
其中,Vth为电压门限值,D2为第二占空比,VPH为输入电源的电压;VHR为驱动芯片的压降,VLED1为第一闪光灯的工作电压,VLED2为第二闪光灯的工作电压。Among them, V th is the voltage threshold value, D 2 is the second duty cycle, V PH is the voltage of the input power supply; V HR is the voltage drop of the driver chip, V LED1 is the working voltage of the first flashlight, V LED2 is the second 2. The working voltage of the flashlight.
可选地,本申请实施例中,每个电流源的功耗为:该电流源的压降*闪光灯模块的工作电流。Optionally, in the embodiment of the present application, the power consumption of each current source is: the voltage drop of the current source*the working current of the flashlight module.
可选地,本申请实施例中,结合图5,如图6所示,上述闪光灯电路可以包括驱动芯片10、输入电源11、第一电源模块12、第二电源模块15、闪光灯模块13和控制器(AP)20;其中,驱动芯片10可以包括微处理器14、第一电流源16、第二电流源17、第一开关管Q1、第二开关管Q2、第三开关管Q3和第四开关管Q4;闪光灯模块13可以包括第一闪光灯18和第二闪光灯19。Optionally, in this embodiment of the present application, referring to FIG. 5, as shown in FIG. 6, the above-mentioned flash circuit may include a driver chip 10, an input power supply 11, a first power module 12, a second power module 15, a flash module 13 and a control device (AP) 20; wherein, the driver chip 10 may include a microprocessor 14, a first current source 16, a second current source 17, a first switch tube Q1, a second switch tube Q2, a third switch tube Q3 and a fourth switch tube Q3. The switch tube Q4; the flashlight module 13 may include a first flashlight 18 and a second flashlight 19.
微处理器14分别与控制器20、第一开关管Q1的控制端c1、第二开关管Q2的控制端c2、第三开关管Q3的控制端c3和第四开关管Q4的控制端c4连接;第一开关管Q1的第一端a1与输入电源11的正极连接,第一开关管Q1的第二端b1与第二开关管Q2的第一端a2和第一电源模块12的第一端a连接,第三开关管Q3的第一端a3与第一电流源16的正极、第二 电流源17的正极及第二电源模块15的正极连接,第一电流源16的负极与第一闪光灯18的正极连接,第二电流源17的负极与第二闪光灯19的正极连接,第三开关管Q3的第二端b3与第四开关管Q4的第一端a4和第一电源模块12的第二端b连接,输入电源11的负极、第二开关管Q2的第二端b2、第四开关管Q4的第二端b4、第一闪光灯18的负极、第二闪光灯19的负极以及第二电源模块15的负极均接地。The microprocessor 14 is respectively connected to the controller 20, the control terminal c1 of the first switching tube Q1, the control terminal c2 of the second switching tube Q2, the control terminal c3 of the third switching tube Q3, and the control terminal c4 of the fourth switching tube Q4 ; The first terminal a1 of the first switching tube Q1 is connected to the positive pole of the input power supply 11, the second terminal b1 of the first switching tube Q1 is connected to the first terminal a2 of the second switching tube Q2 and the first terminal of the first power module 12 a connection, the first end a3 of the third switch tube Q3 is connected to the positive pole of the first current source 16, the second The positive pole of the current source 17 is connected to the positive pole of the second power module 15, the negative pole of the first current source 16 is connected to the positive pole of the first flash lamp 18, the negative pole of the second current source 17 is connected to the positive pole of the second flash lamp 19, and the third switch The second terminal b3 of the tube Q3 is connected to the first terminal a4 of the fourth switching tube Q4 and the second terminal b of the first power module 12, the negative pole of the input power supply 11, the second terminal b2 of the second switching tube Q2, the fourth The second terminal b4 of the switching tube Q4, the negative poles of the first flash lamp 18, the negative poles of the second flash lamp 19 and the negative pole of the second power module 15 are all grounded.
可选地,本申请实施例中,一种可能的实现方式中,控制器,可以用于在输入电源的电压大于电压门限值的情况下,向微处理器发送第一控制信号,以通过微处理器控制第三开关管导通、且控制第四开关管断开;并在第三开关管导通、且第四开关管断开的情况下:在每个降压周期内的第一时间段,向微处理器发送第二控制信号,以通过微处理器控制第一开关管导通、且控制第二开关管断开;或者,在每个降压周期内的第二时间段,向微处理器发送第三控制信号,以通过微处理器控制第一开关管断开、且控制第二开关管导通。或者,Optionally, in the embodiment of the present application, in a possible implementation manner, the controller may be configured to send a first control signal to the microprocessor when the voltage of the input power supply is greater than the voltage threshold value, so as to pass The microprocessor controls the third switch to be turned on and the fourth switch to be turned off; and when the third switch is turned on and the fourth switch is turned off: the first time period, sending a second control signal to the microprocessor, so that the microprocessor controls the first switch tube to be turned on and controls the second switch tube to be turned off; or, during the second time period in each step-down cycle, The third control signal is sent to the microprocessor, so that the microprocessor controls the first switch tube to be turned off and the second switch tube to be turned on. or,
控制器,可以用于在输入电源的电压小于或等于电压门限值的情况下,在每个升压周期内的第三时间段,向微处理器发送第四控制信号,以通过微处理器控制第三开关管断开、且控制第四开关管导通;或者,在每个升压周期内的第四时间段,向微处理器发送第五控制信号,以通过微处理器控制第三开关管导通、且控制第四开关管断开。The controller is configured to send a fourth control signal to the microprocessor during the third period of time in each boost cycle when the voltage of the input power supply is less than or equal to the voltage threshold value, so as to pass the microprocessor Control the third switching tube to turn off, and control the fourth switching tube to turn on; or, in the fourth time period of each boost cycle, send the fifth control signal to the microprocessor, so as to control the third switching tube through the microprocessor The switch tube is turned on, and the fourth switch tube is controlled to be turned off.
可选地,本申请实施例中,另一种方式中,控制器可以向微处理器发送控制信号,以请求微处理器打开闪光灯。然后,微处理器可以判断输入电源的电压VPH与电压门限值Vth之间的关系。Optionally, in this embodiment of the present application, in another manner, the controller may send a control signal to the microprocessor to request the microprocessor to turn on the flashlight. Then, the microprocessor can judge the relationship between the voltage V PH of the input power supply and the voltage threshold V th .
若VPH>Vth,则表示闪光灯电路满足Buck模式的工作条件,从而微处理器可以控制闪光灯电路进入Buck模式,具体的:微处理器可以根据上述公式(1),动态调整每个降压周期内中的模式1的占空比(具体为上述第一占空比D1)。If V PH >V th , it means that the flashlight circuit satisfies the working conditions of the Buck mode, so that the microprocessor can control the flashlight circuit to enter the Buck mode. Specifically: the microprocessor can dynamically adjust each step-down voltage according to the above formula (1). The duty ratio of mode 1 in the period (specifically, the above-mentioned first duty ratio D 1 ).
然后,如图7所示,微处理器14可以控制第三开关管Q3导通,第四开关管Q4断开;并且,微处理器可以在每个降压周期内的模式1中,控制第一开关管Q1导通,第二开关管Q2断开,以控制输入电源11给第一电源模块12(具体为电感)充电,且控制输入电源11给闪光灯模块13供电,电流路径如图7中的虚线箭头所示。进一步地,如图8所示,微处理器可以在每个降压周期内的模式2中,控制第一开关管Q1断开,并控制第二开关管Q2导通,以控制电感放电,从而通过电感给闪光灯模块13供电,此时电流路径如图8中的虚线箭头所示。由于微处理器可以在Buck模式下控制闪光灯电流模式1和模式2交替进行,因此使闪光灯电路的输出电压Vout始终保持在最小值,此时驱动芯片的功耗也保持最小值。Then, as shown in FIG. 7, the microprocessor 14 can control the third switch tube Q3 to be turned on, and the fourth switch tube Q4 to be turned off; One switch tube Q1 is turned on, and the second switch tube Q2 is turned off, so as to control the input power supply 11 to charge the first power supply module 12 (specifically, an inductor), and control the input power supply 11 to supply power to the flashlight module 13. The current path is shown in FIG. 7 indicated by the dotted arrow. Further, as shown in FIG. 8, the microprocessor can control the first switching tube Q1 to be turned off and control the second switching tube Q2 to be turned on in mode 2 in each step-down cycle, so as to control the discharge of the inductor, thereby Power is supplied to the flashlight module 13 through an inductor, and the current path at this time is shown by the dotted arrow in FIG. 8 . Since the microprocessor can control the flashlight current mode 1 and mode 2 alternately in the Buck mode, the output voltage V out of the flashlight circuit is always kept at the minimum value, and the power consumption of the driver chip is also kept at the minimum value at this time.
需要说明的是,在每个降压周期内,闪光灯电路的输出电压Vout取决于模式1的占空比,也即模式1持续时间(即第一时间段)在降压周期中的占比。It should be noted that, in each step-down cycle, the output voltage V out of the flash circuit depends on the duty cycle of mode 1, that is, the proportion of the duration of mode 1 (ie, the first time period) in the step-down cycle .
若VPH≤Vth,则表示闪光灯电路满足Boost模式的工作条件,从而微处理器可以控制闪光灯电路进入Boost模式,具体的:微处理器可以根据上述公式(2),动态调整每个升压周期内中的模式3的占空比(具体为上述第二占空比D2)。If V PH ≤ V th , it means that the flashlight circuit satisfies the working conditions of the Boost mode, so that the microprocessor can control the flashlight circuit to enter the Boost mode. Specifically: the microprocessor can dynamically adjust each boost voltage according to the above formula (2). The duty ratio of mode 3 in the period (specifically, the above-mentioned second duty ratio D 2 ).
然后,如图9所示,在每个升压周期内,微处理器可以控制第一开关管Q1导通,且控制 第二开关管Q2断开。并且在每个升压周期内的模式3中,微处理器可以控制第四开关管Q4导通,并控制第三开关管Q3断开,以通过输入电源给第一电源模块12充电,此时第二电源模块15放电,从而可以通过第二电源模块为闪光灯模块13供电,此时,输入电源的电流路径如图9中虚线箭头A所示,第二电源模块15的电流路径如图9中的虚线箭头B。进一步地,如图10所示,在每个升压周期内的模式4中,微处理器可以控制第三开关管Q3导通,且控制第四开关管Q4断开,从而输入电源和第一电源模块可以同时对闪光灯模块13供电,并为第二电源模块15充电,此时对第一电源模块而言是放电,对第二电源模块来说是充电,电流路径如图10中的虚线箭头所示。由于微处理器可以在Boost模式下控制闪光灯电流模式1和模式2交替进行,因此使闪光灯电路的输出电压Vout始终保持在最小值,此时驱动芯片的功耗也保持最小值。Then, as shown in Figure 9, in each boost cycle, the microprocessor can control the first switch tube Q1 to be turned on, and control The second switch tube Q2 is turned off. And in mode 3 in each boost cycle, the microprocessor can control the fourth switching tube Q4 to turn on, and control the third switching tube Q3 to turn off, so as to charge the first power module 12 through the input power, at this time The second power supply module 15 discharges, so that the flashlight module 13 can be powered by the second power supply module. At this time, the current path of the input power supply is shown by the dotted arrow A in FIG. 9 , and the current path of the second power supply module 15 is shown in FIG. 9 The dashed arrow B. Further, as shown in FIG. 10 , in mode 4 in each boost cycle, the microprocessor can control the third switching tube Q3 to turn on, and control the fourth switching tube Q4 to turn off, so that the input power and the first The power supply module can supply power to the flashlight module 13 and charge the second power supply module 15 at the same time. At this time, it is discharging for the first power supply module and charging for the second power supply module. The current path is shown in the dashed arrow in Figure 10 shown. Since the microprocessor can control the flashlight current mode 1 and mode 2 alternately in Boost mode, the output voltage V out of the flashlight circuit is always kept at the minimum value, and the power consumption of the driver chip is also kept at the minimum value.
需要说明的是,在每个升压周期内,闪光灯电路的输出电压Vout取决于模式2的占空比,也即模式3持续时间(即第三时间段)在升压周期中的占比。It should be noted that in each boost cycle, the output voltage V out of the flash circuit depends on the duty cycle of mode 2, that is, the proportion of the duration of mode 3 (ie, the third time period) in the boost cycle .
如此,由于无论输入电源的电压如何变化,闪光灯电路的输出电压均可以始终保持在最小值,即可以保持驱动芯片的功耗也保持在最小值,从而可以降低驱动芯片过温的风险,进而可以提高闪光灯模块的正常工作的时长。In this way, no matter how the voltage of the input power source changes, the output voltage of the flash circuit can always be kept at a minimum value, that is, the power consumption of the driver chip can also be kept at a minimum value, thereby reducing the risk of overheating of the driver chip, and furthermore Increase the normal working time of the flash module.
可选地,本申请实施例中,假设输入电源的电压VPH的范围为:3.4V<VPH<4.5V,电压门限值Vth约为3.9V,驱动芯片的最小压降约为0.4V。Optionally, in this embodiment of the present application, it is assumed that the range of the voltage V PH of the input power supply is: 3.4V<VPH<4.5V, the voltage threshold value V th is about 3.9V, and the minimum voltage drop of the driver chip is about 0.4V .
可选地,本申请实施例中,在接收到控制器发送的控制信号之后,微处理器还可以实时监测输入电源的电压,并将监测的电压与电压门限值进行比较,以确定输入电源的电压与电压门限值的大小关系。或者,控制器向微处理器发送控制信号之后,还可以实时监测输入电源的电压,并将监测的电压与电压门限值进行比较,以确定输入电源的电压与电压门限值的大小关系。Optionally, in this embodiment of the application, after receiving the control signal sent by the controller, the microprocessor can also monitor the voltage of the input power in real time, and compare the monitored voltage with the voltage threshold to determine the input power The relationship between the voltage and the voltage threshold. Alternatively, after the controller sends a control signal to the microprocessor, it can also monitor the voltage of the input power supply in real time, and compare the monitored voltage with the voltage threshold value to determine the relationship between the voltage of the input power supply and the voltage threshold value.
本申请实施例还提供一种电子设备,该电子设备可以包括上述实施例中的闪光灯电路。An embodiment of the present application further provides an electronic device, which may include the flashlight circuit in the foregoing embodiment.
对于本申请实施例中的其它描述具体可以参照上述闪光灯电路实施例中的相关描述,为了避免重复,此处不再赘述。For other descriptions in the embodiments of the present application, specific reference may be made to relevant descriptions in the above-mentioned embodiments of the flash circuit, and in order to avoid repetition, details are not repeated here.
本申请实施例还提供一种闪光灯控制方法,应用于上述实施例中的闪光灯电路,图11示出了本申请实施例提供的一种闪光灯控制方法的流程图。如图11所示,本申请实施例提供的闪光灯控制方法可以包括下述的步骤101和步骤102。下面以包括该闪光灯电路的电子设备执行该方法为例进行示例性地说明。The embodiment of the present application also provides a flashlight control method, which is applied to the flashlight circuit in the above embodiment. FIG. 11 shows a flow chart of a flashlight control method provided in the embodiment of the present application. As shown in FIG. 11 , the flashlight control method provided in the embodiment of the present application may include the following steps 101 and 102 . The method will be exemplarily described below by taking an electronic device including the flash circuit as an example to execute the method.
步骤101、电子设备在闪光灯电路中的输入电源的电压大于电压门限值的情况下,在一个降压周期内的第一时间段,通过输入电源为闪光灯电路中的第一电源模块充电,并为闪光灯电路中的闪光灯模块供电。Step 101: When the voltage of the input power supply in the flashlight circuit of the electronic device is greater than the voltage threshold value, the electronic device charges the first power supply module in the flashlight circuit through the input power supply during the first period of time within a step-down cycle, and Powers the flash module in the flash circuit.
步骤102、电子设备在闪光灯电路中的输入电源的电压大于电压门限值的情况下,在一个降压周期内的第二时间段,通过第一电源模块为闪光灯模块供电。Step 102: When the voltage of the input power supply in the flashlight circuit of the electronic device is greater than the voltage threshold value, the electronic device supplies power to the flashlight module through the first power supply module in a second time period within a voltage-down cycle.
可选地,本申请实施例中,上述步骤101具体可以通过下述的步骤101a实现。 Optionally, in the embodiment of the present application, the foregoing step 101 may specifically be implemented through the following step 101a.
步骤101a、电子设备在闪光灯电路中的输入电源的电压大于电压门限值,且在闪光灯电路控制闪光灯电路中的第三开关管导通、并控制闪光灯电路中的第四开关管断开的情况下,在第一时间段,通过控制闪光灯电路中的第一开关管导通、且控制闪光灯电路中的第二开关管断开,以使输入电源为第一电源模块充电,并为闪光灯模块供电。Step 101a, the voltage of the input power supply of the electronic device in the flashlight circuit is greater than the voltage threshold value, and the flashlight circuit controls the third switch tube in the flashlight circuit to turn on and controls the fourth switch tube in the flashlight circuit to turn off Next, in the first time period, by controlling the first switch tube in the flash circuit to be turned on and controlling the second switch tube in the flash circuit to be turned off, the input power can charge the first power module and supply power to the flash module .
可选地,本申请实施例中,上述步骤102具体可以通过下述的步骤102a实现。Optionally, in the embodiment of the present application, the foregoing step 102 may specifically be implemented through the following step 102a.
步骤102a、电子设备闪光灯电路中的输入电源的电压大于电压门限值,且在闪光灯电路控制闪光灯电路中的第三开关管导通、并控制闪光灯电路中的第四开关管断开的情况下,在第二时间段,通过控制闪光灯电路中的第一开关管断开、且控制闪光灯电路中的第二开关管导通,以使第一电源模块为闪光灯模块供电。Step 102a, the voltage of the input power supply in the flashlight circuit of the electronic device is greater than the voltage threshold value, and when the flashlight circuit controls the third switch tube in the flashlight circuit to turn on and controls the fourth switch tube in the flashlight circuit to turn off , in the second time period, by controlling the first switch tube in the flash circuit to be turned off and controlling the second switch tube in the flash circuit to be turned on, so that the first power supply module supplies power to the flash module.
在本申请实施例提供的闪光灯控制方法中,由于在闪光灯电路的输入电源的电压大于电压门限值的情况下,电子设备可以在一个降压周期内先通过输入电源为第一电源模块充电,并通过输入电源为闪光灯模块供电,然后再通过第一电源模块单独为闪光灯模块供电,因此可以在该输入电源的电压较大的情况下,确保闪光灯电路的输出电压始终保持在最小值,从而使得该驱动芯片的功率损耗最小,进而可以确保闪光灯能够正常工作。In the flashlight control method provided in the embodiment of the present application, when the voltage of the input power supply of the flashlight circuit is greater than the voltage threshold value, the electronic device can first charge the first power supply module through the input power supply in one step-down cycle, And supply power to the flashlight module through the input power supply, and then supply power to the flashlight module separately through the first power supply module, so when the voltage of the input power supply is relatively high, it can be ensured that the output voltage of the flashlight circuit is always kept at a minimum value, so that The power loss of the driver chip is minimal, which in turn ensures that the flash can work normally.
可选地,本申请实施例中,本申请实施例提供的闪光灯控制方法还可以包括下述的步骤103至步骤105。Optionally, in the embodiment of the present application, the flashlight control method provided in the embodiment of the present application may further include the following steps 103 to 105.
步骤103、电子设备在输入电源的电压小于或等于电压门限值的情况下,控制闪光灯电路中的第一开关管导通且控制闪光灯电路中的第二开关管断开。Step 103 , when the voltage of the input power is less than or equal to the voltage threshold value, the electronic device controls the first switching tube in the flash circuit to turn on and controls the second switching tube in the flash circuit to turn off.
步骤104、电子设备在第一开关管导通且第二开关管断开的情况下,在一个升压周期内的第三时间段,通过输入电源为第一电源模块充电,并驱动闪光灯电路中的第二电源模块为闪光灯模块供电。Step 104: When the first switching tube is turned on and the second switching tube is turned off, the electronic device charges the first power module through the input power and drives the flashlight circuit in the third period of time within a boost cycle. The second power module of the flashlight module supplies power.
步骤105、电子设备在第一开关管导通且第二开关管断开的情况下,在一个升压周期内的第四时间段,通过输入电源和第一电源模块为闪光灯模块供电,并为第二电源模块充电。Step 105: When the first switching tube is turned on and the second switching tube is turned off, the electronic device supplies power to the flashlight module through the input power supply and the first power supply module in the fourth time period of a boost cycle, and provides The second power module is charged.
对于本申请实施例中的其它描述具体可以参照上述闪光灯电路实施例中的相关描述,为了避免重复,此处不再赘述。For other descriptions in the embodiments of the present application, specific reference may be made to relevant descriptions in the above-mentioned embodiments of the flash circuit, and in order to avoid repetition, details are not repeated here.
可选地,本申请实施例中,电子设备可以在输入电源的电压小于或等于电压门限值的情况下,控制闪光灯电路中的第一开关管导通且控制闪光灯电路中的第二开关管断开,那么上述步骤104具体可以通过下述的步骤104a实现,上述步骤105具体可以通过下述的步骤105a实现。Optionally, in the embodiment of the present application, the electronic device may control the first switching tube in the flash circuit to conduct and control the second switching tube in the flash circuit to disconnected, then the above step 104 can be specifically realized by the following step 104a, and the above step 105 can be specifically realized by the following step 105a.
步骤104a、电子设备在第一开关管导通且第二开关管断开的情况下,在第三时间段,通过控制闪光灯电路中的第三开关管断开、且控制闪光灯电路中的第四开关管导通,以使输入电源为第一电源模块充电,并使第二电源模块为闪光灯模块供电。Step 104a. When the first switching tube is turned on and the second switching tube is turned off, the electronic device controls the third switching tube in the flash circuit to turn off and controls the fourth switching tube in the flash circuit in the third time period. The switch tube is turned on so that the input power can charge the first power supply module and the second power supply module can supply power to the flashlight module.
步骤105a、电子设备在第一开关管导通且第二开关管断开的情况下,在第四时间段,通过控制闪光灯电路中的第三开关管导通、且控制闪光灯电路中的第四开关管断开,以使输入电源和第一电源模块为闪光灯模块供电,并使输入电源和第一电源模块为第二电源模块充电。 Step 105a, when the first switching tube is turned on and the second switching tube is turned off, the electronic device controls the third switching tube in the flash circuit to turn on and controls the fourth switching tube in the flash circuit in the fourth time period. The switch tube is turned off, so that the input power supply and the first power supply module supply power to the flashlight module, and the input power supply and the first power supply module charge the second power supply module.
本申请实施例中,在闪光灯电路的输入电源的电压小于或等于电压门限值的情况下,由于电子设备可以控制第一开关管导通且控制第二开关管断开,并在第一开关管导通且第二开关管断开的情况下:在每个升压周期内的第三时间段,通过输入电源为第一电源模块充电,并通过第二电源模块为闪光灯模块供电;且在每个升压周期内的第四时间段,通过输入电源和第一电源模块为闪光灯模块供电,并通过输入电源和第一电源模块为第二电源模块充电的方式,提高闪光灯电路的输出电压,因此可以确保闪光灯电路的输出电压保持在最小值,从而可以确保闪光灯能够正常工作。In the embodiment of the present application, when the voltage of the input power supply of the flashlight circuit is less than or equal to the voltage threshold value, since the electronic device can control the first switch tube to be turned on and the second switch tube to be turned off, and the first switch tube When the tube is turned on and the second switch tube is turned off: in the third time period of each boost cycle, the first power supply module is charged through the input power supply, and the flashlight module is powered through the second power supply module; and In the fourth time period of each boost cycle, the flashlight module is powered by the input power supply and the first power supply module, and the output voltage of the flashlight circuit is increased by means of charging the second power supply module by the input power supply and the first power supply module, Therefore, it can be ensured that the output voltage of the flash lamp circuit is kept at a minimum value, thereby ensuring that the flash lamp can work normally.
对于本申请实施例中的其它描述具体可以参照上述闪光灯电路实施例中的相关描述,为了避免重复,此处不再赘述。For other descriptions in the embodiments of the present application, specific reference may be made to relevant descriptions in the above-mentioned embodiments of the flash circuit, and in order to avoid repetition, details are not repeated here.
可选地,如图12所示,本申请实施例还提供一种电子设备100,包括处理器101和存储器102,存储器102上存储有可在所述处理器101上运行的程序或指令,该程序或指令被处理器101执行时实现上述闪光灯控制方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 12 , the embodiment of the present application also provides an electronic device 100, including a processor 101 and a memory 102. The memory 102 stores programs or instructions that can run on the processor 101. The When the programs or instructions are executed by the processor 101, the steps in the above-mentioned embodiment of the flashlight control method can be realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图13为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 13 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010, etc. part.
本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图13中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1000 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 1010 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 13 does not constitute a limitation to the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, and details will not be repeated here. .
其中,在图13所示的电子设备1000为包括如上述实施例中的闪光灯电路的情况下,处理器1010,可以用于在闪光灯电路中的输入电源的电压大于电压门限值的情况下:在一个降压周期内的第一时间段,通过输入电源为闪光灯电路中的第一电源模块充电,并为闪光灯电路中的闪光灯模块供电;在一个降压周期内的第二时间段,通过第一电源模块为闪光灯模块供电。Wherein, in the case that the electronic device 1000 shown in FIG. 13 includes the flashlight circuit in the above-mentioned embodiment, the processor 1010 may be used when the voltage of the input power supply in the flashlight circuit is greater than the voltage threshold value: In the first period of time in a step-down cycle, the first power supply module in the flash circuit is charged by the input power supply, and the flash module in the flash circuit is powered; in the second period of time in a step-down cycle, the first A power supply module supplies power to the flashlight module.
一种可能的实现方式中,处理器1010,具体可以用于在控制闪光灯电路中的第三开关管导通、且控制闪光灯电路中的第四开关管断开的情况下:在第一时间段,通过控制闪光灯电路中的第一开关管导通、且控制闪光灯电路中的第二开关管断开,以使输入电源为第一电源模块充电,并为闪光灯模块供电。In a possible implementation manner, the processor 1010 may specifically be configured to: in the case of controlling the third switch tube in the flashlight circuit to be turned on and controlling the fourth switch tube in the flashlight circuit to be turned off: during the first time period , by controlling the first switch tube in the flashlight circuit to be turned on and the second switch tube in the flashlight circuit to be turned off, so that the input power can charge the first power supply module and supply power to the flashlight module.
一种可能的实现方式中,处理器1010,具体可以用于在控制闪光灯电路中的第三开关管导通、且控制闪光灯电路中的第四开关管断开的情况下:在第二时间段,通过控制闪光灯电 路中的第一开关管断开、且控制闪光灯电路中的第二开关管导通,以使第一电源模块为闪光灯模块供电。In a possible implementation manner, the processor 1010 may specifically be configured to: in the case of controlling the third switch tube in the flashlight circuit to be turned on and controlling the fourth switch tube in the flashlight circuit to be turned off: during the second time period , by controlling the flash power The first switch tube in the circuit is turned off, and the second switch tube in the flashlight circuit is controlled to be turned on, so that the first power supply module supplies power to the flashlight module.
一种可能的实现方式中,处理器1010,还可以用于在输入电源的电压小于或等于电压门限值的情况下,控制闪光灯电路中的第一开关管导通且控制闪光灯电路中的第二开关管断开,并在第一开关管导通且第二开关管断开的情况下:在一个升压周期内的第三时间段,通过输入电源为第一电源模块充电,并驱动闪光灯电路中的第二电源模块为闪光灯模块供电;在一个升压周期内的第四时间段,通过输入电源和第一电源模块为闪光灯模块供电,并为第二电源模块充电。In a possible implementation manner, the processor 1010 may also be configured to control the conduction of the first switch tube in the flash circuit and control the first The second switching tube is turned off, and when the first switching tube is turned on and the second switching tube is turned off: in the third time period of a boost cycle, the first power supply module is charged by the input power and the flashlight is driven The second power supply module in the circuit supplies power to the flashlight module; in the fourth period of a boost cycle, the input power supply and the first power supply module supply power to the flashlight module and charge the second power supply module.
一种可能的实现方式中,处理器1010,具体可以用于在第三时间段,通过控制闪光灯电路中的第三开关管断开、且控制闪光灯电路中的第四开关管导通,以使输入电源为第一电源模块充电,并使第二电源模块为闪光灯模块供电。In a possible implementation manner, the processor 1010 may specifically be configured to control the third switch tube in the flash circuit to be turned off and control the fourth switch tube in the flash circuit to be turned on during the third time period, so that The input power charges the first power module and enables the second power module to supply power to the flashlight module.
一种可能的实现方式中,处理器1010,具体可以用于在第四时间段,通过控制闪光灯电路中的第三开关管导通、且控制闪光灯电路中的第四开关管断开,以使输入电源和第一电源模块为闪光灯模块供电,并使输入电源和第一电源模块为第二电源模块充电。In a possible implementation manner, the processor 1010 may specifically be configured to control the third switch tube in the flash circuit to be turned on and control the fourth switch tube in the flash circuit to be turned off during the fourth time period, so that The input power supply and the first power supply module supply power to the flashlight module, and make the input power supply and the first power supply module charge the second power supply module.
在本申请实施例提供的电子设备中,由于在闪光灯电路的输入电源的电压大于电压门限值的情况下,电子设备可以在一个降压周期内先通过输入电源为第一电源模块充电,并通过输入电源为闪光灯模块供电,然后再通过第一电源模块单独为闪光灯模块供电,因此可以在该输入电源的电压较大的情况下,确保闪光灯电路的输出电压始终保持在最小值,从而使得该驱动芯片的功率损耗最小,进而可以确保闪光灯能够正常工作。In the electronic device provided in the embodiment of the present application, when the voltage of the input power supply of the flashlight circuit is greater than the voltage threshold, the electronic device can first charge the first power supply module through the input power supply in one step-down cycle, and The flashlight module is powered by the input power supply, and then the flashlight module is powered solely by the first power supply module, so that the output voltage of the flashlight circuit can always be kept at a minimum value when the input power supply voltage is relatively high, so that the The power loss of the driver chip is minimal, which in turn ensures that the flash can work normally.
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072中的至少一种。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that, in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 is used for the image capture device ( Such as the image data of the still picture or video obtained by the camera) for processing. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072 . The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
存储器1009可用于存储软件程序以及各种数据。存储器1009可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1009可以包括易失性存储器或非易失性存储器,或者,存储器1009可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、 动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1009包括但不限于这些和任意其它适合类型的存储器。The memory 1009 can be used to store software programs as well as various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc. Furthermore, memory 1009 may include volatile memory or nonvolatile memory, or, memory 1009 may include both volatile and nonvolatile memory. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (Random Access Memory, RAM), Static Random Access Memory (Static RAM, SRAM), Dynamic Random Access Memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory Access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
处理器1010可包括一个或多个处理单元;可选的,处理器1010集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 1010 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现如上述闪光灯控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by the processor, the various processes in the above-mentioned embodiment of the flashlight control method are implemented, and can achieve The same technical effects are not repeated here to avoid repetition.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如上述闪光灯控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above-mentioned flashlight control method embodiment Each process, and can achieve the same technical effect, in order to avoid repetition, will not repeat them here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述闪光灯控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above embodiments of the flashlight control method, and can achieve the same technical effect , to avoid repetition, it will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部 分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of this application is essentially or part of the contribution made to the prior art The component can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), and include several instructions to make a terminal (which can be a mobile phone, a computer, a server) , or a network device, etc.) execute the methods described in the various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。 The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (17)

  1. 一种闪光灯电路,所述闪光灯电路包括:驱动芯片,以及与所述驱动芯片连接的输入电源、第一电源模块和闪光灯模块;A flashlight circuit, the flashlight circuit comprising: a driver chip, an input power supply connected to the driver chip, a first power supply module, and a flashlight module;
    所述驱动芯片,用于在所述输入电源的电压大于电压门限值的情况下:在一个降压周期内的第一时间段,驱动所述输入电源为所述第一电源模块充电,并驱动所述输入电源为所述闪光灯模块供电;在所述一个降压周期内的第二时间段,驱动所述第一电源模块为所述闪光灯模块供电。The driver chip is configured to: when the voltage of the input power source is greater than a voltage threshold value: drive the input power source to charge the first power module during a first period of time within a step-down cycle, and Driving the input power supply to supply power to the flashlight module; driving the first power supply module to supply power to the flashlight module during a second time period within the one step-down cycle.
  2. 根据权利要求1所述的闪光灯电路,其中,所述驱动芯片包括微处理器、第一开关管、第二开关管、第三开关管和第四开关管;The flashlight circuit according to claim 1, wherein the driving chip comprises a microprocessor, a first switching tube, a second switching tube, a third switching tube and a fourth switching tube;
    所述微处理器分别与所述第一开关管的控制端、所述第二开关管的控制端、所述第三开关管的控制端和所述第四开关管的控制端连接;所述第一开关管的第一端与所述输入电源的正极连接,所述第一开关管的第二端与所述第二开关管的第一端和所述第一电源模块的第一端连接,所述第三开关管的第一端与所述闪光灯模块的正极连接,所述第三开关管的第二端与所述第四开关管的第一端和所述第一电源模块的第二端连接,所述第二开关管的第二端、所述第四开关管的第二端、所述闪光灯模块的负极以及所述输入电源的负极均接地;The microprocessor is respectively connected to the control terminal of the first switch tube, the control terminal of the second switch tube, the control terminal of the third switch tube and the control terminal of the fourth switch tube; The first end of the first switch tube is connected to the positive pole of the input power supply, and the second end of the first switch tube is connected to the first end of the second switch tube and the first end of the first power module. , the first end of the third switching tube is connected to the anode of the flashlight module, the second end of the third switching tube is connected to the first end of the fourth switching tube and the first end of the first power supply module The two terminals are connected, and the second end of the second switching tube, the second end of the fourth switching tube, the negative pole of the flashlight module and the negative pole of the input power supply are all grounded;
    其中,所述微处理器,用于在所述输入电源的电压大于电压门限值的情况下,控制所述第三开关管导通、且控制所述第四开关管断开;并在所述第三开关管导通、且所述第四开关管断开的情况下:Wherein, the microprocessor is configured to control the third switching tube to turn on and control the fourth switching tube to turn off when the voltage of the input power supply is greater than a voltage threshold value; and When the third switch tube is turned on and the fourth switch tube is turned off:
    在所述第一时间段,通过控制所述第一开关管导通、且控制所述第二开关管断开,驱动所述输入电源为所述第一电源模块充电,并驱动所述输入电源为所述闪光灯模块供电;或者,During the first period of time, by controlling the first switch to be turned on and the second switch to be turned off, the input power is driven to charge the first power module, and the input power is driven powering said flash module; or,
    在所述第二时间段,通过控制所述第一开关管断开、且控制所述第二开关管导通,驱动所述第一电源模块为所述闪光灯模块供电。In the second time period, by controlling the first switch tube to be turned off and the second switch tube to be turned on, the first power supply module is driven to supply power to the flashlight module.
  3. 根据权利要求1所述的闪光灯电路,其中,所述闪光灯电路还包括与所述驱动芯片连接的第二电源模块;The flash circuit according to claim 1, wherein the flash circuit further comprises a second power module connected to the driving chip;
    所述驱动芯片,还用于在所述输入电源的电压小于或等于电压门限值的情况下:在一个升压周期内的第三时间段,驱动所述输入电源为所述第一电源模块充电,并驱动所述第二电源模块为所述闪光灯模块供电;在所述一个升压周期内的第四时间段,驱动所述输入电源和所述第一电源模块为所述闪光灯模块供电,并驱动所述输入电源和所述第一电源模块为所述第二电源模块充电。The driver chip is further configured to: when the voltage of the input power is less than or equal to the voltage threshold value: in a third period of time within a boost cycle, drive the input power as the first power module charging, and driving the second power supply module to supply power to the flashlight module; driving the input power supply and the first power supply module to supply power to the flashlight module during a fourth period of time in the one boost cycle, And drive the input power supply and the first power supply module to charge the second power supply module.
  4. 根据权利要求3所述的闪光灯电路,其中,所述驱动芯片包括微处理器、第一开关管、第二开关管、第三开关管和第四开关管;The flashlight circuit according to claim 3, wherein the driving chip comprises a microprocessor, a first switching tube, a second switching tube, a third switching tube and a fourth switching tube;
    所述微处理器分别与所述第一开关管的控制端、所述第二开关管的控制端、所述第三开关管的控制端和所述第四开关管的控制端连接;所述第一开关管的第一端与所述输入电源的正极连接,所述第一开关管的第二端与所述第二开关管的第一端和所述第一电源模块的第一端连接,所述第三开关管的第一端与所述闪光灯模块的正极和所述第二电源模块的正极连接, 所述第三开关管的第二端与所述第四开关管的第一端和所述第一电源模块的第二端连接,所述第二开关管的第二端、所述第四开关管的第二端、所述闪光灯模块的负极、所述输入电源的负极和所述第二电源模块的负极均接地;The microprocessor is respectively connected to the control terminal of the first switch tube, the control terminal of the second switch tube, the control terminal of the third switch tube and the control terminal of the fourth switch tube; The first end of the first switch tube is connected to the positive pole of the input power supply, and the second end of the first switch tube is connected to the first end of the second switch tube and the first end of the first power module. , the first end of the third switching tube is connected to the anode of the flashlight module and the anode of the second power supply module, The second end of the third switch tube is connected to the first end of the fourth switch tube and the second end of the first power module, the second end of the second switch tube, the fourth switch tube The second end of the tube, the negative pole of the flashlight module, the negative pole of the input power supply and the negative pole of the second power supply module are all grounded;
    其中,所述微处理器,用于在所述输入电源的电压小于或等于电压门限值的情况下,控制所述第一开关管导通且控制所述第二开关管断开,并在所述第一开关管导通且所述第二开关管断开的情况下:Wherein, the microprocessor is configured to control the first switching tube to be turned on and the second switching tube to be turned off when the voltage of the input power supply is less than or equal to a voltage threshold value, and When the first switch tube is turned on and the second switch tube is turned off:
    在所述第三时间段,通过控制所述第三开关管断开、且控制所述第四开关管导通,驱动所述输入电源为所述第一电源模块充电,并驱动所述第二电源模块为所述闪光灯模块供电;或者,In the third time period, by controlling the third switch tube to be turned off and the fourth switch tube to be turned on, the input power supply is driven to charge the first power module, and the second A power module supplies power to the flash module; or,
    在所述第四时间段,通过控制所述第三开关管导通、且控制所述第四开关管断开,驱动所述输入电源和所述第一电源模块为所述闪光灯模块供电,并驱动所述输入电源和所述第一电源模块为所述第二电源模块充电。In the fourth time period, by controlling the third switching tube to be turned on and the fourth switching tube to be turned off, the input power supply and the first power supply module are driven to supply power to the flashlight module, and Driving the input power supply and the first power supply module to charge the second power supply module.
  5. 根据权利要求2或4所述的闪光灯电路,其中,所述驱动芯片还包括第一电流源和第二电流源;所述闪光灯模块包括第一闪光灯和第二闪光灯;The flash circuit according to claim 2 or 4, wherein the driver chip further includes a first current source and a second current source; the flash module includes a first flash and a second flash;
    所述第一电流源的正极和所述第二电流源的正极均与所述第三开关管的第一端连接,所述第一电流源的负极与所述第一闪光灯的正极连接,所述第二电流源的负极与所述第二闪光灯的正极连接;所述第一闪光灯的正极和所述第二闪光灯的正极均为所述闪光灯模块的正极,所述第一闪光灯的负极和所述第二闪光灯的负极均接地。Both the positive pole of the first current source and the positive pole of the second current source are connected to the first end of the third switching tube, and the negative pole of the first current source is connected to the positive pole of the first flashlight, so The negative pole of the second current source is connected to the positive pole of the second flashlight; the positive pole of the first flashlight and the positive pole of the second flashlight are both positive poles of the flashlight module, and the negative pole of the first flashlight is connected to the positive pole of the second flashlight The negative poles of the second flash lamps are all grounded.
  6. 一种电子设备,所述电子设备包括:如权利要求1至5中任一项所述的闪光灯电路。An electronic device, comprising: the flash circuit according to any one of claims 1 to 5.
  7. 一种闪光灯控制方法,应用于如权利要求1至5中任一项所述的闪光灯电路,所述方法包括:A flashlight control method, applied to the flashlight circuit according to any one of claims 1 to 5, the method comprising:
    在所述闪光灯电路中的输入电源的电压大于电压门限值的情况下:In the case where the voltage of the input power supply in the flash circuit is greater than a voltage threshold:
    在一个降压周期内的第一时间段,通过所述输入电源为所述闪光灯电路中的第一电源模块充电,并为所述闪光灯电路中的闪光灯模块供电;During a first period of time in a step-down cycle, charging a first power module in the flash circuit through the input power supply, and supplying power to a flash module in the flash circuit;
    在所述一个降压周期内的第二时间段,通过所述第一电源模块为所述闪光灯模块供电。During the second period of time in the one step-down cycle, the first power supply module supplies power to the flashlight module.
  8. 根据权利要求7所述的方法,其中,所述在一个降压周期内的第一时间段,通过所述输入电源为所述闪光灯电路中的第一电源模块充电,并为所述闪光灯电路中的闪光灯模块供电,包括:The method according to claim 7, wherein, during the first period of time in a step-down cycle, the input power is used to charge the first power module in the flash circuit and to charge the power module in the flash circuit. The flash module power supply, including:
    在控制所述闪光灯电路中的第三开关管导通、且控制所述闪光灯电路中的第四开关管断开的情况下:In the case of controlling the third switch tube in the flash lamp circuit to be turned on and controlling the fourth switch tube in the flash lamp circuit to be turned off:
    在所述第一时间段,通过控制所述闪光灯电路中的第一开关管导通、且控制所述闪光灯电路中的第二开关管断开,以使所述输入电源为所述第一电源模块充电,并为所述闪光灯模块供电。In the first time period, by controlling the first switch tube in the flash circuit to be turned on and controlling the second switch tube in the flash circuit to be turned off, the input power is the first power supply The module charges and supplies power to the flash module.
  9. 根据权利要求7所述的方法,其中,所述在所述一个降压周期内的第二时间段,通过所述第一电源模块为所述闪光灯模块供电,包括: The method according to claim 7, wherein, in the second period of time in the step-down cycle, supplying power to the flashlight module through the first power supply module includes:
    在控制所述闪光灯电路中的第三开关管导通、且控制所述闪光灯电路中的第四开关管断开的情况下:In the case of controlling the third switch tube in the flash lamp circuit to be turned on and controlling the fourth switch tube in the flash lamp circuit to be turned off:
    在所述第二时间段,通过控制所述闪光灯电路中的第一开关管断开、且控制所述闪光灯电路中的第二开关管导通,以使所述第一电源模块为所述闪光灯模块供电。In the second period of time, by controlling the first switch tube in the flash circuit to be turned off and controlling the second switch tube in the flash circuit to be turned on, the first power supply module can be used for the flash Module power supply.
  10. 根据权利要求7所述的方法,其中,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    在所述输入电源的电压小于或等于所述电压门限值的情况下,控制所述闪光灯电路中的第一开关管导通且控制所述闪光灯电路中的第二开关管断开,并在所述第一开关管导通且所述第二开关管断开的情况下:When the voltage of the input power supply is less than or equal to the voltage threshold value, control the first switching tube in the flash circuit to turn on and control the second switching tube in the flash circuit to turn off, and When the first switch tube is turned on and the second switch tube is turned off:
    在一个升压周期内的第三时间段,通过所述输入电源为所述第一电源模块充电,并驱动所述闪光灯电路中的第二电源模块为所述闪光灯模块供电;In a third period of time within a boost cycle, charging the first power module through the input power supply, and driving a second power module in the flash circuit to supply power to the flash module;
    在所述一个升压周期内的第四时间段,通过所述输入电源和所述第一电源模块为所述闪光灯模块供电,并为所述第二电源模块充电。In the fourth period of time in the one boost cycle, the input power supply and the first power module supply power to the flashlight module and charge the second power module.
  11. 根据权利要求10所述的方法,其中,所述在一个升压周期内的第三时间段,通过所述输入电源为所述第一电源模块充电,并驱动所述闪光灯电路中的第二电源模块为所述闪光灯模块供电,包括:The method according to claim 10, wherein, in the third period of time within a boost cycle, the input power supply is used to charge the first power supply module and drive the second power supply in the flash circuit The module powers the flash module, including:
    在所述第三时间段,通过控制所述闪光灯电路中的第三开关管断开、且控制所述闪光灯电路中的第四开关管导通,以使所述输入电源为所述第一电源模块充电,并使所述第二电源模块为所述闪光灯模块供电。In the third time period, by controlling the third switch tube in the flash circuit to be turned off and controlling the fourth switch tube in the flash circuit to be turned on, the input power is the first power supply charging the module, and enabling the second power supply module to supply power to the flashlight module.
  12. 根据权利要求10所述的方法,其中,所述在所述一个升压周期内的第四时间段,通过所述输入电源和所述第一电源模块为所述闪光灯模块供电,并为所述第二电源模块充电,包括:The method according to claim 10, wherein, in the fourth period of time in the boost cycle, the input power supply and the first power supply module are used to supply power to the flashlight module, and to supply power to the Charging the second power module, including:
    在所述第四时间段,通过控制所述闪光灯电路中的第三开关管导通、且控制所述闪光灯电路中的第四开关管断开,以使所述输入电源和所述第一电源模块为所述闪光灯模块供电,并使所述输入电源和所述第一电源模块为所述第二电源模块充电。In the fourth time period, by controlling the third switch tube in the flash circuit to be turned on and controlling the fourth switch tube in the flash circuit to be turned off, the input power and the first power supply The module supplies power to the flashlight module, and enables the input power supply and the first power module to charge the second power module.
  13. 一种电子设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求7-12中任一项所述的闪光灯控制方法的步骤。An electronic device, comprising a processor and a memory, the memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, any one of claims 7-12 is implemented The steps of the flash control method described in the item.
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求7-12中任一项所述的闪光灯控制方法的步骤。A readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the flashlight control method according to any one of claims 7-12 are realized.
  15. 一种计算机程序产品,所述计算机程序产品被至少一个处理器执行以实现如权利要求7-12中任一项所述的闪光灯控制方法。A computer program product, the computer program product is executed by at least one processor to implement the flashlight control method according to any one of claims 7-12.
  16. 一种电子设备,包括所述电子设备被配置成用于执行如权利要求7-12中任一项所述的闪光灯控制方法。An electronic device, comprising that the electronic device is configured to execute the flashlight control method according to any one of claims 7-12.
  17. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求7-12中任一项所述的闪光灯控制方法。 A chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is used to run programs or instructions, and realize the flashlight according to any one of claims 7-12 Control Method.
PCT/CN2023/073173 2022-01-25 2023-01-19 Flash lamp circuit, control method, electronic device, and readable storage medium WO2023143381A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210087146.9 2022-01-25
CN202210087146.9A CN114442402B (en) 2022-01-25 2022-01-25 Flash lamp circuit, control method, electronic device, and readable storage medium

Publications (1)

Publication Number Publication Date
WO2023143381A1 true WO2023143381A1 (en) 2023-08-03

Family

ID=81370283

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/073173 WO2023143381A1 (en) 2022-01-25 2023-01-19 Flash lamp circuit, control method, electronic device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN114442402B (en)
WO (1) WO2023143381A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114442402B (en) * 2022-01-25 2024-05-03 维沃移动通信有限公司 Flash lamp circuit, control method, electronic device, and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050174096A1 (en) * 2004-02-05 2005-08-11 Yu Donald C.L. Photoflash capacitor charger and method thereof
CN101472365A (en) * 2007-12-27 2009-07-01 佛山普立华科技有限公司 Flash control circuit
CN106411131A (en) * 2016-11-29 2017-02-15 上海艾为电子技术股份有限公司 Switch control circuit and switching power supply
CN206178316U (en) * 2016-10-14 2017-05-17 深圳市品色科技有限公司 Flash lamp module and flashlight power module
CN108811279A (en) * 2018-06-29 2018-11-13 上海与德科技有限公司 The driving method and electronic equipment of flash lamp
CN111601422A (en) * 2020-05-27 2020-08-28 维沃移动通信有限公司 Starting circuit and electronic equipment
CN112234704A (en) * 2020-10-12 2021-01-15 维沃移动通信有限公司 Flash lamp power supply switching circuit, flash lamp control method and electronic equipment
CN114442402A (en) * 2022-01-25 2022-05-06 维沃移动通信有限公司 Flash lamp circuit, control method, electronic device and readable storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI242903B (en) * 2004-11-22 2005-11-01 Yobon Technologies Inc Photoflash capacitor charger and method thereof
EP2651185B1 (en) * 2012-04-13 2017-11-01 ams AG Flash driver to limit a load current of a flash and method to limit a load current of a flash driver
CN103607822B (en) * 2013-11-25 2015-08-12 广东欧珀移动通信有限公司 A kind of method of overheat protector of photoflash lamp of terminal and device
CN106353953B (en) * 2016-09-28 2019-08-16 深圳市品色科技有限公司 Flash lamp module and flash generator mould group
CN209765239U (en) * 2019-06-03 2019-12-10 深圳市神牛摄影器材有限公司 LED flash lamp for photography
CN210536978U (en) * 2019-08-07 2020-05-15 杭州海康威视数字技术股份有限公司 Flash lamp booster circuit and flash lamp
CN111031633B (en) * 2020-01-09 2021-09-24 Oppo广东移动通信有限公司 Flash lamp driving circuit
CN112153784B (en) * 2020-10-20 2022-08-12 维沃移动通信有限公司 Control circuit and electronic device
CN214544872U (en) * 2021-02-07 2021-10-29 Tcl通力电子(惠州)有限公司 LED drive protection circuit and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050174096A1 (en) * 2004-02-05 2005-08-11 Yu Donald C.L. Photoflash capacitor charger and method thereof
CN101472365A (en) * 2007-12-27 2009-07-01 佛山普立华科技有限公司 Flash control circuit
CN206178316U (en) * 2016-10-14 2017-05-17 深圳市品色科技有限公司 Flash lamp module and flashlight power module
CN106411131A (en) * 2016-11-29 2017-02-15 上海艾为电子技术股份有限公司 Switch control circuit and switching power supply
CN108811279A (en) * 2018-06-29 2018-11-13 上海与德科技有限公司 The driving method and electronic equipment of flash lamp
CN111601422A (en) * 2020-05-27 2020-08-28 维沃移动通信有限公司 Starting circuit and electronic equipment
CN112234704A (en) * 2020-10-12 2021-01-15 维沃移动通信有限公司 Flash lamp power supply switching circuit, flash lamp control method and electronic equipment
CN114442402A (en) * 2022-01-25 2022-05-06 维沃移动通信有限公司 Flash lamp circuit, control method, electronic device and readable storage medium

Also Published As

Publication number Publication date
CN114442402A (en) 2022-05-06
CN114442402B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
EP3192065B1 (en) Asymmetric multiphase boost for display backlights
KR102207502B1 (en) Wireless charging receiving device, charging system and terminal
WO2023143381A1 (en) Flash lamp circuit, control method, electronic device, and readable storage medium
US20120280663A1 (en) Apparatus and method for controlling charging current in device using rechargeable battery
US11502535B2 (en) Charging circuit for electronic device, charging method, and electronic device
TW201222513A (en) Method and apparatus for supplying power to a display apparatus
CN101040422A (en) Switching power supply control circuit, switching power supply device and electronic apparatus employing the same
JP2003152224A (en) High-efficiency led driving system
US10283076B1 (en) Operating multiple DC-to-DC converters efficiently by using predicted load information
WO2022143726A1 (en) Charging system, electronic device and charging control method therefor
TW201017387A (en) Power management method for a portable computer system and related power supply device and portable computer system
WO2023124155A1 (en) Backlight power supply, display apparatus, and electronic device
WO2022143380A1 (en) Charging conversion device, and charging control method
CN101308628A (en) Backlight units and display devices and electronic system
WO2012051817A1 (en) Backlight circuit control method, backlight circuit and booster circuit
JP2005026431A (en) Light emitting diode driving circuit
CN117750576A (en) Power management circuit, circuit control method, driving chip and intelligent terminal
WO2014116823A2 (en) Boost converter topology for high efficiency and low battery voltage support
US20120062183A1 (en) Electronic device and charging method thereof
CN114286467B (en) Flash lamp circuit, control method, electronic device, and readable storage medium
WO2022242347A1 (en) Wireless charging method and apparatus, and storage medium
JP2004022929A (en) Dc-dc step-up method
CN112332472B (en) Charging circuit, electronic device and flash lamp control method
JP2005011895A (en) Led driving circuit
WO2021093708A1 (en) Wireless charging apparatus, device to be charged, charging system and method, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23746260

Country of ref document: EP

Kind code of ref document: A1