Charging circuit and its implementation of being used for the mobile terminal calibration testing
Technical field
The present invention relates to the factory calibrated measuring technology of mobile terminal, particularly a kind of charging circuit and its implementation for the mobile terminal calibration testing.
Background technology
As everyone knows, mobile phone need to carry out some calibration operations in factory before dispatching from the factory, for example: ADC (Analog-to-Digital Converter, A/D converter) calibration and RF (Radio Frequency, radio frequency) calibration.
These calibration operations generally provide the software of specialty to complete by production firm, and when calibration testing, mobile phone need to pass through USB (Universal Serial Bus, USB) and be connected on computer, communicates with computer.
In the USB line olive of standard, four lines are arranged, be respectively D+ (Data+, the positive voltage data wire), D-(Data-, negative voltage is to data wire), VCC (supply power voltage of Cadence Virtual Component Co-design, circuit) and GND (Ground, ground connection).Wherein, D+ and D-are used for carrying out transfer of data, and VCC and GND are used for to the power devices that is connected on USB.
At present, mobile phone generally charges by USB or charger, thus when the mobile phone that inserts the USB line with after computer is connected, just can enter charge mode.So when mobile phone was carried out calibration testing, USB can affect the voltage between mobile phone board to cell-phone charging, thereby have influence on the accuracy that ADC calibrates.Simultaneously, when RF calibrates, need to be aligned in the parameter of RF under different power voltage, and if when calibration USB to cell-phone charging, can affect equally the accuracy of calibration.
In order to address this problem, traditional processing mode is generally controlled by changing hardware: the two line VCC and the GND that are used for power supply in USB cable are cut off, reach when not affecting data communication also not to cell-phone charging and power supply with this.But this mode has obviously been destroyed USB line olive, and when a large amount of mobile phones need to be calibrated simultaneously by factory, the economic loss of bringing was a no small number.
Thereby existing mobile terminal calibration detection technique is still waiting to improve and improve.
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 charging circuit for the mobile terminal calibration testing and its implementation, can under the condition of not destroying the USB line, carry out calibration testing to mobile terminal.
In order to achieve the above object, the present invention has taked following technical scheme:
A kind of charging circuit for the mobile terminal calibration testing, described mobile terminal has a USB port, and described charging circuit is arranged on the mainboard of mobile terminal, and it comprises PMIC module and charging module; Wherein, be provided with charging control unit and supply control unit in described PMIC module; The first input end of described charging module connects described charging control unit, and the second input connects described supply control unit, and the 3rd input connects described USB port, and the output of described charging module connects the power supply circuits of mobile terminal.
Described charging circuit for the mobile terminal calibration testing, wherein, described charging module comprises triode, resistance, metal-oxide-semiconductor and battery; The base stage of described charging control unit connecting triode, the emitter of triode connects USB port, and collector electrode connects the source electrode of metal-oxide-semiconductor by described resistance, and the grid of described metal-oxide-semiconductor connects described supply control unit, and drain electrode connects battery; The power supply circuits of described mobile terminal connect the source electrode of metal-oxide-semiconductor.
Described charging circuit for the mobile terminal calibration testing, wherein, metal-oxide-semiconductor is the P channel MOS tube.
Described charging circuit for the mobile terminal calibration testing, wherein, triode is the PNP triode.
Described charging circuit for the mobile terminal calibration testing, wherein, described mobile terminal is mobile phone.
A kind of method for the mobile terminal calibration testing, wherein, described method comprises the following steps:
In A, the USB port with USB line insertion mobile terminal;
B, judge by the PMIC module whether mobile terminal is in the calibration testing pattern; If so, execution in step C; Otherwise, execution in step D;
C, by the metal-oxide-semiconductor in PMIC module interrupt notification supply control unit conducting charging module, simultaneously by the triode in PMIC module interrupt notification charging control unit charge closing module;
D, by the described triode of PMIC module interrupt notification charging control unit conducting, simultaneously by the described metal-oxide-semiconductor of PMIC module interrupt notification charging control unit conducting.
A kind of charging circuit for the mobile terminal calibration testing, described mobile terminal has a USB port, and described charging circuit is arranged on the mainboard of mobile terminal, and it comprises PMIC module and charging module; Wherein, be provided with charging control unit and supply control unit in described PMIC module; The first input end of described charging module connects described charging control unit, and the second input connects described supply control unit, and the 3rd input connects described USB port, and the output of described charging module connects the power supply circuits of mobile terminal.
Described charging circuit for the mobile terminal calibration testing, wherein, described charging module comprises triode, resistance, metal-oxide-semiconductor and battery; Described charging control unit is connected with the base stage of described triode, the emitter of triode connects USB port, collector electrode connects the source electrode of metal-oxide-semiconductor by described resistance, the grid of described metal-oxide-semiconductor connects described supply control unit, drain electrode connects battery, and the source electrode of described metal-oxide-semiconductor connects the power supply circuits of mobile terminal.
Described charging circuit for the mobile terminal calibration testing, wherein, metal-oxide-semiconductor is the P channel MOS tube.
Described charging circuit for the mobile terminal calibration testing, wherein, triode is the PNP triode.
Described charging circuit for the mobile terminal calibration testing, wherein, described mobile terminal is mobile phone.
A kind of method for the mobile terminal calibration testing, wherein, described method comprises the following steps:
In A, the USB port with USB line insertion mobile terminal;
B, whether be in the calibration testing pattern by what the PMIC module judged mobile terminal; If so, execution in step C; Otherwise, execution in step D;
C, by the metal-oxide-semiconductor in PMIC module interrupt notification supply control unit conducting charging module, notify simultaneously the triode in charging control unit charge closing module;
D, by the described triode of PMIC module interrupt notification charging control unit conducting, notify simultaneously the charging control unit conducting described metal-oxide-semiconductor.
charging circuit and its implementation for the mobile terminal calibration testing provided by the invention, owing to having adopted at PMIC module (project management integrate circuit, charging control unit and supply control unit are set power management chip), when mobile terminal is in normal charge mode, charging control unit and supply control unit are controlled respectively triode and metal-oxide-semiconductor (the metal oxid semiconductor in charging module, field-effect transistor) conducting is charged to mobile terminal, when mobile terminal is in the calibration testing pattern, the metal-oxide-semiconductor conducting of being controlled in charging circuit by supply control unit makes battery to the whole circuit supply of mobile terminal, close by the triode that charging control unit is controlled in charging circuit, thereby closed the power supply/charge path in UBS, USB is not charged to mobile terminal, thereby make mobile terminal when calibration testing, need not destroy UBS line olive, economic loss when having reduced the mobile terminal calibration testing.
Description of drawings
Fig. 1 is the structured flowchart of the charging circuit of mobile terminal calibration testing of the present invention;
Fig. 2 is the circuit theory diagrams of the charging circuit of mobile terminal calibration testing of the present invention;
Fig. 3 is the method flow diagram of mobile terminal calibration testing of the present invention.
Embodiment
Usually the power supply of mobile terminal has two kinds of approach, namely by external charger (USB or seat fill) or powered battery, these two kinds of supply power modes are generally controlled by the software of mobile terminal, even the battery powered mode of some platform can not be by software control, but the mode of USB power supply/charge must be by software control, because realize that charge function must want to control the size of current of charging, and the size of charging current is controlled by software generally.
The invention provides a kind of charging circuit for the mobile terminal calibration testing and its implementation, cut off the path of USB charging/power supply by charging control unit, with the impact on calibration testing of the charging voltage of eliminating USB.After charging control unit is cut off the charging of USB/power supply behavior, then control battery by supply control unit and power to mobile terminal.
For making purpose of the present invention, technical scheme and effect clearer, clear and definite, the present invention is described in more detail referring to the accompanying drawing examples.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
See also Fig. 1 and Fig. 2, the present invention comprises the power supply circuits 140 of PMIC module 110, USB port 120, charging module 130 and mobile terminal for the charging circuit of mobile terminal calibration testing.Described charging circuit is arranged on the mainboard of mobile terminal.
Wherein, be provided with charging control unit 111 and supply control unit 112 in described PMIC module 110 modules.In the present embodiment, the function of described charging control unit 111 and supply control unit 112 interrupts controlling by PMIC module 110.
Described charging control unit 111 is used for controlling the charging of mobile terminal after USB inserts, when mobile terminal is in normal charge mode, thereby control the charging module conducting to the mobile terminal charging, when mobile terminal is in the calibration testing pattern, mobile terminal is not charged.Thereby described supply control unit 112 is used for keeping the mobile terminal normal boot-strap to whole mobile terminal power supply.
The first input end of described charging module 130 is connected with charging control unit 111, the second input of charging module 130 is connected with supply control unit 112, the 3rd input of charging module 130 is connected with described USB port 120, and the output of described charging module 130 connects the power supply circuits 140 of mobile terminal.
Please continue to consult Fig. 2, described charging module 130 comprises triode Q1, resistance R 1, metal-oxide-semiconductor M1 and battery Bat.Described mobile terminal is mobile phone, and wherein, described triode Q1 is the PNP triode, and resistance R 1 is that a charging detects resistance, and metal-oxide-semiconductor M1 is that P links up metal-oxide-semiconductor.USB port is connected to cell phone charging circuit by triode Q1, and battery is connected with the whole circuit of mobile terminal by metal-oxide-semiconductor M1.
Wherein, charging control unit 111 is connected with the base stage of triode Q1, and the emitter of triode Q1 is connected with USB port 120, and the collector electrode of triode connects the source electrode of metal-oxide-semiconductor M1 by resistance R 1; The grid of described metal-oxide-semiconductor M1 connects described supply control unit 112, and the drain electrode of metal-oxide-semiconductor M1 is connected with the positive pole of battery, and the power supply circuits 140 of mobile terminal are connected with the source electrode of described metal-oxide-semiconductor M1.
In the present embodiment, described charging control unit 111 is interrupted by PMIC module 110, controls triode Q1 conducting or closes, and supply control unit 112 interrupts by PMIC module 110, controls the metal-oxide-semiconductor conducting or closes.
Below the present invention is used for the charging circuit of mobile terminal calibration testing operation principle be described in detail:
After PMIC module 110 detects USB insertion mobile terminal, by the PMIC module 110 residing states of judgement mobile terminal, when mobile terminal is in normal charge mode, described charging control unit 111 and supply control unit 112 are controlled triode Q1 and metal-oxide-semiconductor M1 conducting simultaneously, and the charging mobile terminal enters the normal terminal pattern; When mobile terminal is in the calibration detecting pattern, control metal-oxide-semiconductor M1 conducting by supply control unit 112, control triode Q1 by charging control unit 111 simultaneously and close, thereby the power supply circuits of shutoff USB make mobile terminal battery-powered.
Based on the above-mentioned charging circuit that is used for the mobile terminal calibration testing, the embodiment of the present invention is also corresponding provides a kind of method for the mobile terminal calibration testing, sees also Fig. 3, and described method comprises the following steps:
In S101, the USB port with USB line insertion mobile terminal;
In the present embodiment, detect the USB line by the PMIC module and whether insert movement, the USB line is connected to by triode in the charging circuit of mobile terminal after inserting mobile terminal.
S102, judge by the PMIC module whether mobile terminal is in the calibration testing pattern; If so, execution in step S103; Otherwise, execution in step S104;
S103, by the metal-oxide-semiconductor in PMIC module interrupt notification supply control unit conducting charging module, simultaneously by the triode in PMIC module interrupt notification charging control unit charge closing module;
When PMIC module judgement mobile terminal is in calibration mode, triggered the grid of metal-oxide-semiconductor by PMIC module interrupt notification supply control unit, make the metal-oxide-semiconductor conducting, this moment, mobile terminal was battery-powered, PMIC module interrupt notification charging control unit is controlled triode is closed simultaneously, thereby closed the power supply/charge path of USB, make the USB can not power supply/charge, and mobile terminal is battery-powered, so can be because of the calibration operation of the voltage influence mobile terminal of USB charging, make charging circuit except not charging, other function is the same with normal mode.
S104, by the described triode of PMIC module interrupt notification charging control unit conducting, simultaneously by the described metal-oxide-semiconductor of PMIC module interrupt notification charging control unit conducting.
when the PMIC module detects when being in normal charge mode, by open close at charging control unit and supply control unit in the PMIC module, make the base stage of charging control unit trigger triode make the triode conducting, thereby allow the whole circuit supply of USB to mobile terminal, and mobile terminal is charged, the grid of the metal-oxide-semiconductor of supply control unit triggering simultaneously makes the metal-oxide-semiconductor conducting, allow battery can receive the charging current of USB, and configure this charging current etc., make mobile terminal enter charged state, and the state different according to electric current carries out the switching of charged state, until the full battery of punching.
in sum, charging circuit and its implementation for the mobile terminal calibration testing provided by the invention, owing to having adopted, charging control unit and supply control unit are set in the PMIC module, when mobile terminal is in normal charge mode, triode and metal-oxide-semiconductor conducting that charging control unit and supply control unit are controlled respectively in charging module are charged to mobile terminal, when mobile terminal is in the calibration testing pattern, the metal-oxide-semiconductor conducting of being controlled in charging circuit by supply control unit makes battery to the whole circuit supply of mobile terminal, close by the triode that charging control unit is controlled in charging circuit, thereby closed the power supply/charge path in UBS, USB is not charged to mobile terminal, thereby make mobile terminal when calibration testing, accuracy when having guaranteed mobile terminal ADC calibration and RF calibration, and need not destroy UBS line olive, economic loss when having reduced the mobile terminal calibration testing.
Be understandable that, for those of ordinary skills, can be equal to replacement or change according to technical scheme of the present invention and inventive concept thereof, and all these changes or replacement all should belong to the protection range of the appended claim of the present invention.