The utility model content
For this reason, the utility model provides a kind of mobile phone with camera function, and it comprises wireless transceiver and display, the CPU that is connected with display with described wireless transceiver, and comprise:
Preposition camera is connected with described CPU;
Photoflash controller is connected with described CPU;
Preposition photoflash lamp is connected with described photoflash controller.
The utility model is optional, and described photoflash controller is switching circuit or drives chip.
The utility model is optional, and described driving chip comprises the driving chip, and described driving chip comprises VIN pin, VOUT pin, GND pin, PGND pin, SGND pin, the anodal pin of striding capacitance, striding capacitance negative pole pin;
Described GND pin, PGND pin and SGND pin be ground connection simultaneously; Be connected in series striding capacitance between the anodal pin of described striding capacitance and the described striding capacitance negative pole pin; Described VIN pin is connected with power supply, and described VOUT pin is connected with the positive pole of described preposition photoflash lamp, the minus earth of described preposition photoflash lamp.
The utility model is optional, and described driving chip also comprises the control pin, and described control pin is connected with described CPU, with the break-make of controlling described driving chip and the size of electric current.
The utility model is optional, and described driving chip also comprises pattern control pin, and described pattern control pin is connected with described CPU, makes described driving chip can control described preposition photoflash lamp and realizes flashlight pattern and Flash Mode.
The utility model is optional, and described pattern control pin and described control pin pass through grounding through resistance respectively.
The utility model is optional, and described driving chip also comprises Flash Mode voltage control pin, to control the voltage that described preposition photoflash lamp is worked under Flash Mode.
The utility model is optional, and described battery supply connects through being connected into the VIN pin of described driving chip behind first voltage stabilizing element again; Be connected with second voltage stabilizing element between the VOUT pin of described driving chip and the described preposition photoflash lamp positive pole.
The utility model is optional, and described first voltage stabilizing element and/or described second voltage stabilizing element are capacitor.
The utility model is optional, and the negative pole of described preposition photoflash lamp is through ground connection after described Current Control feedback pin and the current-limiting resistance.
The utility model is optional, and described preposition photoflash lamp is parallel with voltage stabilizing element, and described voltage stabilizing element is voltage stabilizing didoe more preferably.
The utility model is optional, and described preposition photoflash lamp and/or described rearmounted photoflash lamp are LED or organic electroluminescent LED lamp.
Compared with prior art, the utlity model has following advantage:
Mobile phone with camera function provided by the utility model makes this mobile phone when having made preposition camera owing to have preposition photoflash lamp, also can open photoflash lamp and auxiliary camera function such as replenish.Thereby make the user that more experience be arranged.
Mobile phone with camera function provided by the utility model, its preposition photoflash lamp has the driving microarray biochip, and this driving chip makes preposition photoflash lamp to carry out work with flashlight pattern and Flash Mode, makes that its range of application is more extensive.
Embodiment
Embodiment one
Please refer to Fig. 1, the mobile phone with camera function that present embodiment provides, it comprises wireless transceiver and display, and the CPU (Central Processing Unit, central processing unit) that is connected with display with described wireless transceiver.Described display can be LCDs (LiquidCrystal Display, LCD), also can be active matrix organic light-emitting diode display screen (Active Matrix/OrganicLight Emitting Diode, AMOLED), organic light-emitting diode (OLED) display screen (OrganicLight-Emitting Diode, OLED), light emitting diode (LED) display screen (Light-Emitting Diode, LED), low temperature polycrystalline silicon display screen (Low Temperature Poly-silicon, LTPS) etc., and this display screen can be integrated with resistance-type, touch controllable functions such as condenser type form the touch-control display screen.This wireless transceiver can be built-in antenna of mobile phone, also can be devices such as bluetooth.This mobile phone with camera function also includes preposition camera, preposition photoflash lamp, and photoflash controller.In the present embodiment, photoflash controller can or drive chip for switching circuit.And preferred, described CPU inside includes camera controller (not shown), and described camera controller is used for the described preposition camera of control, and described CPU is by connecting described switching circuit or the described preposition photoflash lamp of described driving chip controls.
Present embodiment is preferred, and described camera controller connects described photoflash controller.Like this, just can whether open at the situation preposition photoflash lamp of making decision of the feedback in advance that obtains the camera controller, certainly can directly not be connected between photoflash controller and the camera controller yet, but feeding back the information whether the camera controller is opened by CPU to photoflash controller, the utility model does not limit this.The mobile phone with camera function that present embodiment provides makes when this mobile phone is put camera before use owing to have preposition photoflash lamp, also can open photoflash lamp and assist shooting, thereby make the user that better experience be arranged.
Please refer to Fig. 2, the driving chip circuit figure that Fig. 2 provides for present embodiment.As can be seen from the figure, described driving chip 210 comprises VIN pin, VOUT pin, GND pin, PGND pin, SGND pin, striding capacitance positive pole (CP) pin, striding capacitance negative pole (CN) pin.Described GND pin, PGND pin and SGND pin be ground connection simultaneously.Serial connection striding capacitance C1 between the anodal pin of described striding capacitance and the described striding capacitance negative pole pin.Described VIN pin is connected with power supply (VBAT_BB) end, and described VOUT pin is connected the minus earth of described preposition photoflash lamp 220 with the positive pole of described preposition photoflash lamp 220.In the present embodiment, preposition photoflash lamp 220 is preferably LED or organic electroluminescent LED.
In the present embodiment, described driving chip 210 also comprises control pin (EN), described control pin is connected (in Fig. 2, the link of EN pin is for connecting the FLASH_EN end that from CPU) with described CPU, with the break-make of controlling described driving chip 210 and the size of electric current.When low level, described control pin can turn-off described driving chip 210.
In the present embodiment, described driving chip 210 also comprises pattern control (FLASH) pin.Described pattern control pin is connected (in Fig. 2, the link of FLASH pin is held for connect the EINT1_FLASH that from CPU) with described CPU, make described driving chip 210 can control described preposition photoflash lamp 220 and realize flashlight pattern and Flash Modes.The mobile phone with camera function that present embodiment provides drives chip 210 and can control described preposition photoflash lamp 220 and realize flashlight pattern and Flash Modes, and the range of application of mobile phone that makes this have camera function is more extensive.
In the present embodiment, when pattern control pin receives high level, drive chip 210 and be operated in Flash Mode; When pattern control pin receives low level, drive chip 210 and be operated in the flashlight pattern.And when being operated in the flashlight pattern, the voltage that can determine Current Control feedback (FB) pin of foregoing control (EN) pin.Preferred in the present embodiment, described pattern control pin and described control pin pass through grounding through resistance respectively.Concrete, as shown in Figure 2, the resistance R 1 back ground connection that pattern control pin connects, and the control pin connects resistance R 2 back ground connection.Preferred in the present embodiment, described driving chip 210 also comprises Flash Mode voltage control pin, to control the voltage that described preposition photoflash lamp 220 is worked under Flash Mode.
Preferred in the present embodiment, described battery supply connects through being connected into the VIN pin of described driving chip 210 behind first voltage stabilizing element again; Be connected with second voltage stabilizing element between the VOUT pin of described driving chip 210 and described preposition photoflash lamp 220 positive poles.Show that in Fig. 2 described first voltage stabilizing element is capacitor C2 (this electric capacity also is called electrical power by-pass electric capacity), described second voltage stabilizing element is capacitor C3.
Preferred in the present embodiment, the negative pole of described preposition photoflash lamp 220 is through ground connection after described Current Control feedback pin and the current-limiting resistance.Concrete, please refer to Fig. 2, this moment preposition photoflash lamp 220 negative pole through resistance R 4 ground connection, and Current Control feedback (RESET) pin is by resistance R 3 ground connection.
In the present embodiment, can under stable voltage, work in order to guarantee described preposition photoflash lamp 220, can also be in parallel with preposition photoflash lamp 220 with a voltage stabilizing element.As shown in Figure 2, present embodiment is concrete, and described preposition photoflash lamp 220 is parallel with voltage stabilizing didoe D1.Like this, in case voltage is too big, voltage stabilizing didoe D1 is reversed puncture, and the resistance of voltage stabilizing didoe D1 sharply descends, and makes electric current all flow through from voltage stabilizing didoe D1, thereby has protected preposition photoflash lamp 220.
Embodiment two
Please refer to Fig. 3, the mobile phone with camera function that present embodiment provides has in having embodiment one each part of mobile phone of camera function, also comprise rearmounted camera, rearmounted photoflash lamp, and comprise display, memory and wireless transceiver.If as functional mobile phone, the mobile phone with camera function shown in Figure 3 can also comprise keyboard (not shown), and this keyboard is connected with CPU.The content of present embodiment and embodiment one same section can be with reference to the description in above-described embodiment one.In the present embodiment, keyboard both can be mechanical keyboard (when for example this mobile phone is functional mobile phone), also can be keyboard (when for example this mobile phone is smart mobile phone) shown on the touch-control display screen.Memory both can be single-chips such as NAND Flash Memory chip, EMMC chip, NOR Flash Memory chip, also can be combined chips (Combo Flash or MCP Flash) such as NAND+SDRAM/NOR+SDRAM.Described rearmounted photoflash lamp can be LED or OLED.
Preferred in the present embodiment, this mobile phone comprises external camera controller (to be built in CPU different with embodiment one camera controller), described CPU controls described rearmounted camera by described camera controller, like this, just can save a camera controller.Same, described CPU is by described switching circuit and/or the described rearmounted photoflash lamp of described driving chip controls, and is same, and preposition photoflash lamp and rearmounted photoflash lamp share a switching circuit and/or drive chip, have just saved a switching circuit and/or have driven chip.But in this case, switching circuit need have the switch that is connected with rearmounted photoflash lamp with preposition photoflash lamp respectively, with the situation of avoiding preposition photoflash lamp and rearmounted photoflash lamp to open simultaneously.Same, driving chip needs that also the circuit of controlling preposition photoflash lamp and rearmounted photoflash lamp is respectively arranged, with the situation that prevents that preposition photoflash lamp and rearmounted photoflash lamp from opening simultaneously.
Please refer to Fig. 4, Fig. 4 has the workflow diagram of the mobile phone of camera function for embodiment two.As can be seen from Figure 4, in a workflow, can comprise each step of following S400 to S490.Need to prove that present embodiment is named step with S400 to S490, purpose is in order to distinguish each step to be described, rather than limits the sequencing of each step, and under user's different operating, each step sequencing can be made corresponding the change.
S400, CPU receive the camera enabled instruction.
According to user's operation, for example user's the pressing or clicking of respective keys on cell phone keyboard or handset touch panel, CPU can receive the camera enabled instruction.
S410 judges that starting preposition camera still is rearmounted camera.
CPU is after receiving the camera enabled instruction, and the camera controller can judge that further the user will use preposition camera or rearmounted camera according to user's operation.
Whether S420 receives the luminous instruction of preposition photoflash lamp.
If the user will use preposition camera to take, then the control of camera controller starts preposition camera.After starting preposition camera, CPU can select whether needs are opened preposition photoflash lamp according to the light condition of user or mobile phone environment for use.This moment, CPU was in the state that further judges whether to receive the luminous instruction of preposition photoflash lamp.
S430, CPU send the preposition camera of startup and instruct to the camera controller, and the camera controller is controlled preposition camera and obtained image.
If the final judgement of CPU does not receive the luminous instruction of photoflash lamp, then send the preposition camera of startup and instruct to the camera controller, the camera controller is controlled preposition camera and is obtained image, makes preposition camera finish shooting.
S440, CPU send the preposition camera of startup and instruct to the camera controller, and the preposition photoflash lamp of transmission startup instructs to photoflash controller.
In step S420, if confirm that "Yes" receives the luminous instruction of preposition photoflash lamp, then the preposition camera of CPU transmission startup instructs to the camera controller, and the preposition photoflash lamp of transmission startup instructs to photoflash controller.
S450, photoflash controller control preposition photoflash lamp flash of light, and the camera controller is controlled preposition camera and obtained image simultaneously.
On the basis of step S440, photoflash controller is controlled preposition photoflash lamp flash of light, and the camera controller is controlled preposition camera and obtained image simultaneously.
Whether S460 receives the luminous instruction of rearmounted photoflash lamp.
If the user will use rearmounted camera to take, then the control of camera controller starts rearmounted camera.After starting rearmounted camera, CPU can select whether needs are opened rearmounted photoflash lamp according to the light condition of user or mobile phone environment for use.This moment, CPU was in the state that further judges whether to receive the luminous instruction of rearmounted photoflash lamp.
S470, CPU send the rearmounted camera of startup and instruct to the camera controller, and the camera controller is controlled rearmounted camera and obtained image.
If the final judgement of CPU does not receive the luminous instruction of photoflash lamp, then send the rearmounted camera of startup and instruct to the camera controller, the camera controller is controlled rearmounted camera and is obtained image, makes rearmounted camera finish shooting.
S480, CPU send the rearmounted camera of startup and instruct to the camera controller, and the rearmounted photoflash lamp of transmission startup instructs to photoflash controller.
In step S460, if confirm that "Yes" receives the luminous instruction of rearmounted photoflash lamp, then the rearmounted camera of CPU transmission startup instructs to the camera controller, and the rearmounted photoflash lamp of transmission startup instructs to photoflash controller.
S490, photoflash controller control rearmounted photoflash lamp flash of light, and the camera controller is controlled rearmounted camera and obtained image simultaneously.
On the basis of step S480, photoflash controller is controlled rearmounted photoflash lamp flash of light, and the camera controller is controlled rearmounted camera and obtained image simultaneously.
Software realization mode
Please refer to Fig. 5, Fig. 5 has the software realization mode of the mobile phone of camera function for present embodiment.Present embodiment is preferred, and described mobile phone with camera function is smart mobile phone, and it has the touch-control display screen.Present embodiment is named step with S500 to S590, and purpose is in order to distinguish each step to be described, rather than limits the sequencing of each step, and under user's different operating, each step sequencing can be made corresponding the change.
S500 enters camera programm.
As shown in Figure 5, at first, CPU receives the user in the action of touch-control display screen click camera icon, and mobile phone enters camera programm.
S510 uses program response user operation.
After mobile phone enters camera programm, camera application program (Camera Application) response user operation, preview (Preview) action is carried out in the operation that for example responds the user.
S520, HAL see through ioctl operation V4L2.
After preview, (Hardware Abstraction Layer HAL) sees through ioctl operation V4L2 (video 4 linux 2) step to enter hardware abstraction layer.
S530 opens hardware and finishes initialization.
After the above-mentioned S520 step, the smart mobile phone with camera function is opened hardware and is finished initialization.
S540 judges whether to take pictures.
After hardware initialization was finished, CPU judged whether the user clicks and takes pictures.
S550, the camera preview.
In step S540 click is taken pictures, if the user selects "No", then only carry out camera preview (Camera Previewing), at this moment, further, can enter functions such as browsing photo or camera arrange.
S560, CPU receive the camera enabled instruction.
In step S540 click was taken pictures, if the user selects "Yes", then CPU received the camera enabled instruction.This step can be with reference to the S400 step among the figure 4.
S570 judges employed camera.
After step S560, the utilization program is judged, to determine employed camera.
S580 starts rearmounted camera.
If in step S570, mobile phone is judged the instruction that obtains using rearmounted camera, then enters to start rearmounted camera.
S590 starts preposition camera.
If in step S570, mobile phone is judged the instruction that obtains using preposition camera, then enters to start preposition camera.
Present embodiment is from step S560, and workflow afterwards can be mated with workflow shown in Figure 4, and confirms whether to use preposition photoflash lamp from these workflows.Thereby more detailed process can be with reference to the content relevant with Fig. 4.
The above only is specific embodiment of the utility model; purpose is in order to make those skilled in the art better understand spirit of the present utility model; yet protection range of the present utility model is not limited range with the specific descriptions of this specific embodiment; any those skilled in the art is in the scope that does not break away from the utility model spirit; can make an amendment specific embodiment of the utility model, and not break away from protection range of the present utility model.