Summary of the invention
In view of above-mentioned the deficiencies in the prior art part, the object of the present invention is to provide a kind of by the mobile terminal by key control illumination functions, the illumination functions of mobile terminal is opened by hardware, and the brightness of illumination is regulated by hardware mode, illumination functions is opened by software to solve prior art, cause power consumption large, the problem of brightness of illumination cannot be regulated.
In order to achieve the above object, this invention takes following technical scheme:
By by the mobile terminal of key control illumination functions, it comprise LED group, for control the light on and off of LED illumination key, for increasing the blast key of LED brightness, subtract sunk key, button connector, power management chip, central processing unit and switch control module for reducing LED brightness; Described blast key, subtract sunk key with illumination key be connected respectively button connector UP_KEY end, DN_KEY end and FLSH_DRV_N end, KEYSCAN end, the UP_KEY end of described button connector hold with DN_KEY the GPIO31 mouth, GPIO36 mouth and the GPIO37 mouth that are connected central processing unit respectively, the VPH_PWR of described button connector hold connecting valve control module the 1st end, also by the 2nd end of LED group connecting valve control module, the 3rd end of switch control module connects the FLSH_DRV_N end of power management chip; The FLSH_DRV_N end of button connector also connects the FLSH_DRV_N end of power management chip; The input of described LED group connects the battery of mobile terminal; The VREG_MSME end of described power management chip connects the VREG_MSME end of central processing unit.
Described passes through to press in the mobile terminal of key control illumination functions, described LED group comprises the first LED and the second LED, described first LED and the positive pole of the second LED are all connected the VPH_PWR end of button connector, the 1st end of battery and switch control module, the 2nd end of the equal connecting valve control module of negative pole of the first LED and the second LED.
The described mobile terminal by pressing key control illumination functions, also comprises the first protection module, and the input of described first protection module connects the KEY1_VREG_MSME end of central processing unit, and output connects the input of battery and LED group.
The described mobile terminal by pressing key control illumination functions, also comprises the second protection module, and the input of described second protection module connects the KEY3_VREG_MSME end of central processing unit, and output connects the FLSH_DRV_N end of power management chip.
Described by by the mobile terminal of key control illumination functions, described blast key, subtract sunk key and illumination key is arranged on the side of mobile terminal.
Described passes through to press in the mobile terminal of key control illumination functions, described LED group also comprises the first resistance and the second resistance, one end of described first resistance connects the positive pole of the first LED, and the other end of the first resistance connects the 1st end of the VPH_PWR end of button connector, battery and switch control module; One end of second resistance connects the positive pole of the second LED, and the other end of the second resistance connects the 1st end of the VPH_PWR end of button connector, battery and switch control module.
The described mobile terminal by pressing key control illumination functions, also comprises the first TVS pipe, the second TVS pipe and the 3rd TVS pipe, and one end of described first TVS pipe connects the KEYSCAN end of button connector, the other end ground connection of the first TVS pipe; One end of second TVS pipe connects the UP_KEY end of button connector, the other end ground connection of the second TVS pipe; One end of 3rd TVS pipe connects the DN_KEY end of button connector, the other end ground connection of the 3rd TVS pipe.
The described mobile terminal by pressing key control illumination functions, also comprises the 4th TVS pipe, and one end of described 4th TVS pipe connects the FLSH_DRV_N end of button connector and the FLSH_DRV_N end of power management chip, the other end ground connection of the 4th TVS pipe.
Described passes through to press in the mobile terminal of key control illumination functions, described switch control module comprises NPN triode, the base stage of described NPN triode connects the VPH_PWR end of the input of LED group, battery and button connector, and the collector electrode of NPN triode connects the output of LED group; The emitter of NPN triode connects FLSH_DRV_N end, this emitter also ground connection of power management chip.
The described mobile terminal by pressing key control illumination functions, also comprises the first electric capacity, and one end of described first electric capacity connects the VREG_MSME end of power management chip, the other end ground connection of the first electric capacity.
Compared to prior art, provided by the invention by the mobile terminal by key control illumination functions, open or the illumination functions of turning-off mobile terminal by increasing illumination key on mobile terminals, after illumination functions is opened, powered to LED separately by battery, without the need to opening the screen of mobile terminal, save battery electric quantity, and by blast key with subtract sunk key and regulate brightness of illumination, brightness of illumination is reduced when not needing the brightest state, further reduce the power consumption of mobile terminal, extend the stand-by time of mobile terminal, and easy to operate.
Embodiment
The invention provides a kind of by the mobile terminal by key control illumination functions, for making object of the present invention, technical scheme and effect clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Provided by the invention by the mobile terminal by key control illumination functions, comprise LED group 10, blast key KEY1, illumination key KEY2, subtract sunk key KEY3, button connector J1, central processing unit U1, power management chip U2 and switch control module 20.Wherein, the model of described central processing unit U1 is MSM7227A, and power management chip U2 adopts model to be PM7540 integrated chip.Described illumination key KEY2 is for controlling the light on and off of LED, and blast key KEY1, for increasing LED brightness, subtracts sunk key KEY3 for reducing LED brightness.
For the ease of user operation, described illumination key KEY2, blast key KEY1 and subtract sunk key KEY3 and to be arranged on the side of mobile terminal (namely throw light on key KEY2, blast key KEY1 and subtract the side switch that sunk key KEY3 is mobile terminal), and described illumination key KEY2 can be arranged on centre, blast key KEY1 is positioned at the top of illumination key KEY2, subtracts the below that sunk key KEY3 is positioned at illumination key KEY2.
Described blast key KEY1, subtract sunk key KEY3 and illumination key KEY2 and be connected the UP_KEY end of button connector J1, DN_KEY end and FLSH_DRV_N end respectively, the KEYSCAN end of described button connector J1, UP_KEY end and DN_KEY end are connected the GPIO31 mouth of central processing unit U1, GPIO36 mouth and GPIO37 mouth respectively.The VPH_PWR of button connector J1 hold connecting valve control module 20 the 1st end, also by the 2nd end of LED group 10 connecting valve control module 20,3rd end of switch control module 20 connects FLSH_DRV_N end (i.e. H1 pin) of power management chip U2, and the input of described LED group 10 connects the battery of mobile terminal.
The FLSH_DRV_N end of described button connector J1 also connects the FLSH_DRV_N end of power management chip U2, the VREG_MSME end that VSS holds ground connection, VREG_MSME end connects central processing unit U1 of described power management chip U2, held by the VREG_MSME of power management chip U2 and 1.8V voltage is provided, held to the KEYSCAN of button connector J1 by central processing unit U1, UP_KEY holds and DN_KEY end is powered.The UP_KEY end of described button connector J1 and the voltage of DN_KEY end are 1.8V, when side switch does not work, the voltage of the KEYSCAN end of described button connector J1 is about 38mV, when side switch works, there is provided 1.8V voltage by central processing unit U1 to KEYSCAN end, make the voltage of side switch sweep signal be 1.8V.Battery is that illumination key KEY2, the input of LED group 10 and the 1st end of switch control module 20 are powered simultaneously.
When needing the illumination functions opening mobile terminal, only need press illumination key KEY2, after illumination key KEY2 presses, driving voltage is provided by power management chip U2, thered is provided the output of drive singal driving LED lamp group 10 by the FLSH_DRV_N end of power management chip U2, lightening LED lamp group 10, now the voltage of LED group 10 is directly provided by battery, do not affect the work of other module of mobile terminal, decrease the load of power management chip U2 simultaneously.Now, if need to increase brightness of illumination, only need press voltage-drop loading that the UP_KEY of button connector J1 hold by the blast key KEY1 input to LED group 10, the pressure drop of increase LED group 10, makes the brightness of LED group 10 brighten; If need to reduce brightness of illumination, only need press and subtract sunk key KEY3, the voltage-drop loading held by the DN_KEY of button connector J1, to the output of LED group 10, reduces the pressure drop of LED group 10, makes the brightness of LED group 10 dimmed.
Please continue to refer to Fig. 1, in the embodiment of the present invention, described LED group 10 comprises the first LED D1 and the second LED D2, the positive pole of described first LED D1 and the second LED D2, the i.e. input of described LED module, all connects the 1st end of the VPH_PWR end of button connector J1, battery and switch control module 20, the negative pole of the first LED D1 and the second LED D2, the i.e. output of LED module, the 2nd end of equal connecting valve control module 20.
And it is in order to protect blast key KEY1 and subtract sunk key KEY3, provided by the invention by also comprising the first protection module 30 and the second protection module 40 by the mobile terminal of key control illumination functions.The input of described first protection module 30 connects the KEY1_VREG_MSME end of central processing unit U1, and output connects the input of battery and LED group 10, prevents the electric current of battery from pouring in down a chimney and holds to the UP_KEY of button connector J1.The input of described second protection module 40 connects the KEY3_VREG_MSME end of central processing unit U1, and output connects the FLSH_DRV_N end of power management chip U2, and the electric current preventing power management chip U2 from exporting pours in down a chimney to be held to the DN_KEY of button connector J1.
Wherein, described first protection module 30 comprises the first diode D3; the positive pole (i.e. the input of the first protection module 30) of described first diode D3 connects the KEY1_VREG_MSME end of central processing unit U1, and the negative pole (i.e. the output of the first protection module 30) of the first diode D3 connects the input of battery and LED group 10.Described second protection module 40 comprises the second diode D4; the positive pole (i.e. the input of the second protection module 40) of described second diode D4 connects the KEY3_VREG_MSME end of central processing unit U1, and the negative pole (i.e. the output of the second protection module 40) of the second diode D4 connects the FLSH_DRV_N end of power management chip U2.
Please continue to refer to Fig. 1, described LED group 10 also comprises the first resistance R1 and the second resistance R2, and the first resistance R1 and the second resistance R2 is current-limiting resistance, is respectively used to prevent the electric current of the first LED D1 and the second LED D2 too high.Wherein, one end of described first resistance R1 connects the positive pole of the first LED D1, and the other end of the first resistance R1 connects the 1st end of the VPH_PWR end of button connector J1, battery and switch control module 20; One end of second resistance R2 connects the positive pole of the second LED D2, and the other end of the second resistance R2 connects the 1st end of the VPH_PWR end of button connector J1, battery and switch control module 20.
Wherein, described switch control module 20 comprises NPN triode Q1, the base stage (i.e. the 1st end of switch control module 20) of described NPN triode Q1 connects the VPH_PWR end of the input of LED group 10, battery and button connector J1, and the collector electrode (i.e. the 2nd end of switch control module 20) of NPN triode Q1 connects the output of LED group 10; The emitter (i.e. the 3rd end of switch control module 20) of NPN triode Q1 connects FLSH_DRV_N end, this emitter also ground connection of power management chip U2.
In order to prevent mobile terminal to be subject to electrostatic interference, mobile terminal provided by the invention also comprises four Anti-static devices, is respectively: the first TVS pipe ESD1, the second TVS pipe ESD2, the 3rd TVS pipe ESD3 and the 4th TVS pipe ESD4.First TVS pipe ESD1, the second TVS pipe ESD2, the 3rd TVS pipe ESD3 and the 4th TVS pipe ESD4 are two-way TVS pipe.
Wherein, the first TVS pipe ESD1, the second TVS pipe ESD2 and the 3rd TVS pipe ESD3 are respectively used to prevent that the KEYSCAN of button connector J1 from holding, UP_KEY end and DN_KEY end by electrostatic interference, and prevent electrostatic breakdown central processing unit U1.One end of first TVS pipe ESD1 connects the KEYSCAN end of button connector J1, the other end ground connection of the first TVS pipe ESD1; One end of second TVS pipe ESD2 connects the UP_KEY end of button connector J1, the other end ground connection of the second TVS pipe ESD2; One end of 3rd TVS pipe ESD3 connects the DN_KEY end of button connector J1, the other end ground connection of the 3rd TVS pipe ESD3.
Described 4th TVS pipe ESD4 by electrostatic interference, and prevents electrostatic breakdown power management chip U2 for the signal that prevents the FLSH_DRV_N of button connector J1 and hold.One end of 4th TVS pipe ESD4 connects the FLSH_DRV_N end of button connector J1 and the FLSH_DRV_N end of power management chip U2, other end ground connection.
Please again consult Fig. 1, mobile terminal provided by the invention also comprises the first electric capacity C1, the second electric capacity C2 and the 3rd electric capacity C3, for the low-frequency interference signal in filtering voltage, wherein the capacitance of the first electric capacity C1 and the 3rd electric capacity C3 is 0.1uF, and the capacitance of the second electric capacity C2 is 4.7uF.
Wherein, one end of described first electric capacity C1 connects the VREG_MSME end of power management chip U2, the other end ground connection of the first electric capacity C1.One end of second electric capacity C2 connects the VPH_PWR end of battery and button connector J1, the other end ground connection of the second electric capacity C2.One end of 3rd electric capacity C3 connects the VREG_MSME end of central processing unit U1, the other end ground connection of the 3rd electric capacity C3.
Should be noted that: the VREG_MSME end of central processing unit U1, KEY1_VREG_MSME hold and KEY3_VREG_MSME end, the FLSH_DRV_N end of power management chip U2, VREG_MSME end are the function port of chip, the corresponding port of corresponding chip when embody rule.
Is mobile phone below with mobile terminal, the resistance of described first resistance R1 and the second resistance R2 is 100 Ω for Application Example, and composition graphs 1 is described in detail to technical scheme of the present invention:
When the key KEY2 that throws light on presses, the signal FLSH_DRV_N that the signal of illumination key KEY2 sends sends driving request to power management chip U2, the negative pole of the first LED D1 and the second LED D2 is driven by power management chip U2, because cell voltage VBATT is greater than the voltage of drive singal FLSH_DRV_N, then the base voltage of NPN triode Q1 is greater than the voltage of emitter, and base voltage is greater than collector voltage, NPN triode Q1 conducting, LED group 10 is lighted.Now, if the supply power voltage of battery is 3.9V, then the forward current of the first LED D1 and the second LED D2 is 39mA, and the 90mA(being no more than regulation specifically refers to the specifications of cell phone LED), mobile phone can be protected normally to work.
When blast key KEY1 presses, the 1.8V voltage signal that the GPIO36 mouth of central processing unit U1 provides is added in the positive pole of the first LED D1 and the second LED D2 by the first diode D3, and the positive pole of the first LED D1 and the second LED D2 is driven together with the voltage signal of battery, now, driving voltage can reach more than 4.2V (that is: 1.8V+3.9V>4.2V), drive current reaches (3.9V+1.8V)/100=57mA, be no more than the forward Limited Current 90mA of the first LED D1 and the second LED D2, brightness of illumination can reach maximum.
When subtracting sunk key KEY3 and pressing, the voltage signal of the 1.8V that the GPIO37 of central processing unit U1 provides is added in the negative pole of LED by the second diode D4, the forward voltage signal of the first LED D1 and the second LED D2 is driven to be less than 2.9V(namely: 3.9V-1.8V<2.9V), the drive current of the first LED D1 and the second LED D2 is (3.9V-1.8V)/100=21mA, be no more than 90mA, the brightness of illumination of mobile phone is reduced to minimum gradually.
Visible, the present invention only need by blast key KEY1 and subtract that sunk key KEY3 realizes mobile phone brightness of illumination brighten with dimmed, do not affect the work of power management chip U2 and central processing unit U1 in other modules of mobile phone.Simultaneously when realizing illumination, directly being powered by battery, power management chip U2 process LDO(low dropout regulator can be reduced, low pressure difference linear voltage regulator) live load of voltage signal, do not need power management chip U2 to power separately to LED group.
Be understandable that, for those of ordinary skills, can be equal to according to technical scheme of the present invention and inventive concept thereof and replace or change, and all these change or replace the protection range that all should belong to the claim appended by the present invention.