CN101135720B - System for detecting battery electric quantity and mobile phone thereof - Google Patents

System for detecting battery electric quantity and mobile phone thereof Download PDF

Info

Publication number
CN101135720B
CN101135720B CN2006101280058A CN200610128005A CN101135720B CN 101135720 B CN101135720 B CN 101135720B CN 2006101280058 A CN2006101280058 A CN 2006101280058A CN 200610128005 A CN200610128005 A CN 200610128005A CN 101135720 B CN101135720 B CN 101135720B
Authority
CN
China
Prior art keywords
voltage
order
resistance
electric device
charge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2006101280058A
Other languages
Chinese (zh)
Other versions
CN101135720A (en
Inventor
董昱甫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wistron Corp
Original Assignee
Wistron Corp
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 Wistron Corp filed Critical Wistron Corp
Priority to CN2006101280058A priority Critical patent/CN101135720B/en
Publication of CN101135720A publication Critical patent/CN101135720A/en
Application granted granted Critical
Publication of CN101135720B publication Critical patent/CN101135720B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Tests Of Electric Status Of Batteries (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

The hand-held electronic device uses a control judgment module to control the pulse width modulation signal of the hand-held electronic device, and uses a charging-discharging unit and a comparison unit to detect the battery power state of the hand-held electronic unit.

Description

Detect battery electric quantity system and portable electric device thereof
Technical field
The invention relates to a kind of detection battery electric quantity system and portable electric device thereof, but and particularly detect the battery electric quantity of portable electric device, and can promote detection battery electric quantity system and the portable electric device thereof that circuit design is used elasticity and can be reduced cost of manufacture relevant for a kind of multistage.
Background technology
Flourish along with portable electric device (hand-held electronic device) now, for example: HPC, electronic dictionary, PDA, iPod ... Deng, it needs the next main source as its systematic electricity of battery (battery) usually, just become the work that each portable electric device must be done so detect battery electric quantity, to remind the battery electric quantity state of the employed portable electric device of user.Generally speaking, when portable electric device has detected battery electric quantity, except testing result can be shown to the user watch (for example can show " electric power remains 50% "), perhaps judge the battery electric quantity of portable electric device and cross when low, can also forbid or limit the user and continue to use portable electric device when testing result.
Come to be broadly divided into following two kinds of technological means and to detect in order to detect the technological means of its battery electric quantity state with portable electric device now, it comprises: 1. use analog-digital converter (analogto digital converter, ADC); And 2. working voltage detecting device (voltage detector).And, its circuit operation principles and the battery electric quantity that how to detect portable electric device will be described individually below for two kinds of technological means of the battery electric quantity that will be illustrated more clearly in above-mentioned mentioned detection portable electric device.
Fig. 1 illustrates the circuit diagram that detects the battery electric quantity of portable electric device for known use analog-digital converter (ADC).Please refer to Fig. 1, can find out by the disclosed portable electric device 100 of Fig. 1, battery 103 is in order to output electric weight V_BATT, providing portable electric device system 101 to be used as its systematic electricity, and its circuit operation principle of battery 103 electric weight V_BATT that detects portable electric device 100 is for what follows:
At first, if the selected analog-digital converter of deviser 105 is n position (n is a positive integer), so what can learn is that the resolution of this analog-digital converter 105 is 1/2^n.And, must set reference voltage Vref at analog-digital converter 105 earlier in order to be convenient to detect the electric weight V_BATT state of battery 103, this reference voltage Vref is the systematic electricity of portable electric device system 101.
So according to as can be known above-mentioned, analog-digital converter 105 can be divided into the 2^n part to reference voltage Vref, and the electric weight V_BATT of battery 103 can dividing potential drop by resistance R 1 and R2 after, provide and detect voltage BATT_D to analog-digital converter 105.Afterwards, analog-digital converter 105 can after belonging to which part of above-mentioned reference voltage Vref, can be known battery 103 electric weight V_BATT states by the above-mentioned detection voltage BATT_D of analysis.
And, below will exemplify an example and illustrate in order more to clearly demonstrate the above-mentioned technological means of utilizing the battery 103 electric weight V_BATT that analog-digital converter 105 detects portable electric device 100:
If above-mentioned selected analog-digital converter 105 is 8, so its resolution is 1/256, and default portable electric device system 101, be 3.0V (that is electric weight V_BATT of battery 103) for example, so the reference voltage Vref that analog-digital converter 105 sets also is 3.0V for the required system voltage of HPC.
According to as can be known above-mentioned, reference voltage Vref can be divided into 256 parts, so after battery 103 electric weight V_BATT are via resistance R 1 and R2 dividing potential drop, when if the detection voltage BATT_D of gained is 1.5V, after analyzing by analog-digital converter 105 again this moment, also can analyze battery 103 electric weight V_BATT is the 128th parts that belong to reference voltage Vref, so the numerical value of the digital signal DS that analog-digital converter 105 is exported can be expressed as 80H, battery 103 electric weight V_BATT states remain 50% electric power so can know by inference at this moment.In addition, resistance R 1 and R2 and the non-limiting element that will use, the deviser is no more than the reference voltage Vref of analog-digital converter 105 as long as confirm battery 103 electric weight V_BATT, can not need use the voltage division processing of resistance R 1 and R2.
And what deserves to be mentioned is, portable electric device 100 can be according to the logic state of digital signal DS, and inform user's battery 103 electric weight V_BATT states instantly, perhaps cross when low as battery 103 electric weight V_BATT, except the peripheral hardware circuit that can close high power consumption power, can also forbid or limit the user and continue to use portable electric device 100.In addition, when the technological means of utilization analog-digital converter 105 detected the battery 103 electric weight V_BATT states of portable electric device 100, it must could detect its battery 103 electric weight V_BATT states by the CPU of portable electric device 100.
Fig. 2 illustrates the circuit diagram that detects the battery electric quantity of portable electric device for known working voltage detecting device.Please refer to Fig. 2, can find out by the disclosed portable electric device 200 of Fig. 2 (for example being HPC), battery 203 is in order to output electric weight V_BATT, providing portable electric device system 201 to be used as its systematic electricity, and its circuit operation principle of battery 203 electric weight V_BATT that detects portable electric device 200 is for what follows:
At first, battery 203 electric weight V_BATT are after the resistance dividing potential drop design by resistance R 1, R2 and R3, by this and the high limit voltage value V of decision voltage-level detector 205 HTHWith low limit voltage value V LTHSo when battery 203 electric weight V_BATT are lower than limit voltage value V LTHThe time, the digital signal DS that voltage-level detector 205 is exported for example is logic low state, and causes portable electric device 200 to close the peripheral hardware circuit of high power consumption power automatically, does not perhaps ban use of the person to continue to use portable electric device 200; Otherwise, when battery 203 electric weight V_BATT are higher than high limit voltage value V HTHThe time, the digital signal DS that voltage-level detector 205 is exported is for example for logic-high state, and to cause portable electric device 200 be to be in the general work pattern.
And what deserves to be mentioned is, in the disclosed circuit diagram of Fig. 2, resistance R 4 and R5 are higher than the logic high of CPU in order to the logic high of avoiding voltage-level detector 205 and the voltage division processing taked, but as long as the deviser is when confirming that the logic high of voltage-level detector 205 can not be higher than the logic high of CPU, and resistance R 4 and R5 are the element of non-limiting use.In addition, when the technological means of utilization voltage-level detector 205 detected the battery 203 electric weight V_BATT states of portable electric device 200, it did not need just can detect its battery 203 electric weight V_BATT states by the CPU of portable electric device 200.
In sum, in above-mentioned two kinds of technological means describing the battery electric quantity that detects portable electric device, if select the technology of analog-digital converter (ADC) for use, though it can accurately detect the battery electric quantity of portable electric device, cost of manufacture also promotes thereupon.In addition, if select the technology of voltage-level detector (voltagedetector) for use, though its cost of manufacture is comparatively cheap, after confirming, can't revise by the hardware of portable electric device, so design uses elasticity not high.
Summary of the invention
In view of this, purpose of the present invention has just provided a kind of detection battery electric quantity system and portable electric device thereof, it is by utilizing pulse-length modulation (PWM) signal of control judge module with control portable electric device system, and cooperation charge/discharge unit and comparing unit, reach the battery electric quantity state that multistage detects portable electric device, so not only can reduce its cost of manufacture, and need not change its hardware circuit, only need via behind the program code (code) that changes the control judge module, promptly can be applicable to portable electric device now, use elasticity and promote design widely.
Detection battery electric quantity provided by the present invention system, it is applicable to portable electric device, and this portable electric device comprises the portable electric device system, it has pulse width modulating signal, and detection battery electric quantity of the present invention system comprises charge/discharge unit, comparing unit and control judge module.Charge/discharge unit is in order to foundation pulse width modulating signal state, and charge or discharge accordingly and output charge and discharge voltage, and wherein the work period of pulse width modulating signal is discharging and recharging the time cycle less than charge/discharge unit.
Comparing unit couples charge/discharge unit, this comparing unit in order to the system voltage of portable electric device system relatively and charge/discharge unit export charge and discharge voltage after, and output detection voltage.The control judge module is in order to gating pulse bandwidth modulation signals state, and the detection voltage of exporting according to comparing unit, to judge the battery electric quantity state of portable electric device.
From another viewpoint, the invention provides a kind of portable electric device, it comprises the portable electric device system, and this portable electric device system has pulse width modulating signal, and portable electric device of the present invention comprises battery and detects the battery electric quantity system.Wherein, battery is in order to provide the system voltage of portable electric device system, detect the battery electric quantity system and then couple this battery, in order to detecting this battery electric quantity state, and this detects battery electric quantity system and comprises charge/discharge unit, comparing unit and control judge module.Charge/discharge unit is in order to foundation pulse width modulating signal state, and charge or discharge accordingly and output charge and discharge voltage, and wherein the work period of pulse width modulating signal is discharging and recharging the time cycle less than charge/discharge unit.
Comparing unit couples charge/discharge unit, this comparing unit in order to the system voltage of portable electric device relatively and charge/discharge unit export charge and discharge voltage after, and output detection voltage.The control judge module is in order to gating pulse bandwidth modulation signals state, and the detection voltage of exporting according to comparing unit, to judge the battery electric quantity state of portable electric device.
In the invention described above preferred embodiment, charge/discharge unit comprises first resistance and first electric capacity.Wherein, first resistance has first end and second end, and wherein first end is in order to the received pulse bandwidth modulation signals, and second end then charges and discharge the voltage that charges and discharge that the unit exports in order to output.First electric capacity has first end and second end, and wherein first end is second end that couples first resistance, and second end is ground connection then.
In the invention described above preferred embodiment, comparing unit comprises comparer, and its positive input terminal is in order to receiving the system voltage that battery provided, and its negative input end charges and discharge the voltage that charges and discharge that the unit exports in order to reception, and its output terminal is then exported detection voltage.
The invention provides a kind of detection battery electric quantity system, be suitable for portable electric device, wherein this portable electric device comprises the portable electric device system, it has pulse width modulating signal, and this detection battery electric quantity system comprises: charge/discharge unit, in order to according to this pulse width modulating signal state, and charge or discharge accordingly and output charge and discharge voltage, and wherein the work period of this pulse width modulating signal is the time cycle that discharges and recharges less than this charge/discharge unit; Comparing unit couples this charge/discharge unit, charge and discharge voltage in order to the system voltage of this portable electric device system relatively and this after, and output detects voltage; And the control judge module, it is in order to controlling this pulse width modulating signal state, and detects voltage according to this, to judge the battery electric quantity state of this portable electric device.
The present invention also provides a kind of portable electric device, it comprises the portable electric device system, and this portable electric device system has pulse width modulating signal, and this portable electric device comprises: battery, in order to the system voltage of this portable electric device system to be provided; And detection battery electric quantity system, it couples this battery, in order to detect this battery electric quantity state, and this detection battery electric quantity system comprises: charge/discharge unit, in order to according to this pulse width modulating signal state, and charge or discharge accordingly and output charge and discharge voltage, and wherein the work period of this pulse width modulating signal is the time cycle that discharges and recharges less than this charge/discharge unit; Comparing unit couples this charge/discharge unit, charge and discharge voltage in order to this system voltage relatively and this after, and output detects voltage; And the control judge module, it is in order to controlling this pulse width modulating signal state, and detects voltage according to this, to judge this battery electric quantity state.
Detection battery electric quantity provided by the present invention system, can be applied in the portable electric device now, because this detects the battery electric quantity system and controls the work period of the pulse width modulating signal of portable electric device system by the control judge module, and the time cycle design of discharging and recharging that will charge and discharge the unit must be less than the work period of pulse width modulating signal, so again via the system voltage of comparing unit comparison portable electric device system with charge and discharge that the unit exports charge and discharge voltage after, and output detects voltage, then utilize the control judge module to judge that this detects the state of voltage again, to learn the battery electric quantity of portable electric device.By this, not only can reach outside the state of multistage detection hand-held battery electric weight, and can reduce its cost of manufacture, and need not change its hardware circuit, only need via behind the program code that changes the control judge module, promptly can be applicable to portable electric device now, use elasticity and promote design widely.
For above and other objects of the present invention, feature and advantage can be become apparent, preferred embodiment of the present invention cited below particularly, and cooperate appended graphicly, be described in detail below.
Description of drawings
Fig. 1 illustrates the circuit diagram that detects the battery electric quantity of portable electric device for known use analog-digital converter.
Fig. 2 illustrates the circuit diagram that detects the battery electric quantity of portable electric device for known working voltage detecting device.
Fig. 3 illustrates the calcspar into the portable electric device of preferred embodiment of the present invention.
Fig. 4 illustrates the circuit diagram into the detection battery electric quantity system of preferred embodiment of the present invention.
Fig. 5 and Fig. 6 illustrate pulse width modulating signal and the corresponding oscillogram that charges and discharge voltage thereof that the portable electric device system for preferred embodiment of the present invention is provided.
[main element label declaration]
100,200,300: portable electric device
101,201,301: the portable electric device system
103,203,303: battery
105: analog-digital converter
205: voltage-level detector
305: detect the battery electric quantity system
307: display unit
401: charge/discharge unit
403: the voltage limit unit
405: comparing unit
407: the control judge module
UOP: voltage follower
COP: comparer
R1, R2, R3, R4, R5: resistance
C1, C2: electric capacity
Embodiment
Fig. 3 illustrates the calcspar into the portable electric device of preferred embodiment of the present invention.Please refer to Fig. 3, (for example can be HPC, electronic dictionary, PDA, iPod by the disclosed portable electric device 300 of Fig. 3 ... Deng) in comprise portable electric device system 301, battery 303, detect battery electric quantity system 305 and display unit 307.Wherein, portable electric device system 301 has pulse width modulating signal (pulse width modulation, PWM) PWM_IN, battery 303 are then in order to provide electric weight V_BATT to portable electric device system 301, to be used as the system voltage of portable electric device system 301.
Detect battery electric quantity system 305 in order to detect battery 303 electric weight V_BATT states, and output detects voltage DS to portable electric device system 301, portable electric device system 301 provides according to this to display unit 307 again, it is shown detect the result that battery electric quantity system 305 is detected, so use the user of portable electric device 300 to know battery 303 electric weight V_BATT states instantly to inform.
Fig. 4 illustrates the circuit diagram into the detection battery electric quantity system 305 of present embodiment.Please merge with reference to Fig. 3 and Fig. 4, detect battery electric quantity system 305 and comprise charge/discharge unit 401, voltage follower UOP, second capacitor C 2, voltage limit unit 403, comparing unit 405 and control judge module 407.Wherein, charge/discharge unit 401 is made up of first resistance R 1 and first capacitor C 1, and this charge/discharge unit 401 is the work periods according to pulse width modulating signal PWM_IN, and charge or discharge accordingly according to this and output charge and discharge voltage PWM_RC.
Accept and above-mentionedly more clearly say, when pulse width modulating signal PWM_IN can charge during for high level in the work period (dutycycle), charge and discharge voltage PWM_RC with what obtain charging, and can discharge during for low level in the work period (duty cycle) at wave width modulation signal PWM_IN, charge and discharge voltage PWM_RC with what obtain discharging.
In present embodiment, the work period of pulse width modulating signal PWM_IN must be less than discharging and recharging the time cycle that resistance R 1 and capacitor C 1 are constituted, so what can know by inference is, pulse width modulating signal PWM_IN in the work period for high level via resistance R 1 when capacitor C 1 is charged, it can cause capacitor C 1 not just discharge of full charging lotus as yet, and when pulse width modulating signal PWM_IN discharged via resistance R 1 for low level capacitor C 1 in the work period, it can cause capacitor C 1 not put just charging of electric charge as yet.
In addition, in present embodiment, resistance R 1 for example can be 100K Ω, and capacitor C 1 for example can be 0.1uF, but do not limit the capacitance of the resistance value and the capacitor C 1 of its resistance R 1 at this, the deviser is when visual actual demand and meet above-mentioned qualifications (that is the work period of pulse width modulating signal PWM_IN must less than discharging and recharging the time cycle that resistance R 1 and capacitor C 1 are constituted), and the capacitor C 1 of the resistance R 1 that adopts other resistance and other appearance value substitutes it.
And it will be further appreciated that, the pulse width modulating signal PWM_IN that the portable electric device system 301 of present embodiment is provided, its frequency size gets final product for surpassing 1KHz, if but its frequency heals when high, for example be 1Mttz, it exceeds with 301 highest frequency value that can provide of portable electric device system, and the ripple that charges and discharge voltage PWM_RC (ripple) phenomenon that charge/discharge unit 401 is exported will be reduced widely.
Fig. 5 and Fig. 6 illustrate pulse width modulating signal PWM_IN and the corresponding oscillogram that charges and discharge voltage PWM_RC thereof that the portable electric device system 301 for present embodiment is provided, and wherein the horizontal ordinate of oscillogram and ordinate are represented time and voltage respectively.Please merge with reference to Fig. 3~6, in the disclosed oscillogram 500 of Fig. 5 and Fig. 6 and 600, it comprises the oscillogram that charges and discharge voltage PWM_RC that charge/discharge unit 401 is exported, and the pulse width modulating signal PWM_IN oscillogram that provided of portable electric device system 301.At first, please merge earlier with reference to Fig. 3~Fig. 5, its work period D for the pulse width modulating signal PWM_IN that portable electric device system 301 is provided maintains at 100% o'clock, again via behind the charge/discharge unit 401, the corresponding output of 401 of charge/discharge units charge and discharge voltage PWM_RC oscillogram.
Then, please merge with reference to Fig. 3, Fig. 4 and Fig. 6, its work period D for the pulse width modulating signal PWM_IN that portable electric device system 301 is provided maintains at 33% o'clock, again via behind the charge/discharge unit 401, the corresponding output of 401 of charge/discharge units charge and discharge voltage PWM_RC oscillogram.Wherein, the work period D of above-mentioned said pulse width modulating signal PWM_IN, it is the high level time of pulse width modulating signal PWM_IN in time one-period, at occupied proportional numerical value of time work period of whole pulse width modulating signal PWM_IN.
For instance, oscillogram by the disclosed pulse width modulating signal PWM_IN of Fig. 6 can be found out, in the complete work period T of a pulse width modulating signal PWM_IN, can be divided into high level work period time T 1 and low level work period time T 2, so as can be known be, high level work period time T 1 divided by (that is T1/T) behind the work period T, can be known the work period D of pulse width modulating signal PWM_IN.
Please continue with reference to Fig. 3 and Fig. 4, the receiving end (+) of voltage follower UOP charges and discharge voltage PWM_RC in order to what receive that charge/discharge unit 401 exported, so again via just becoming the magnitude of voltage of a convergence DC voltage level with charging and discharging voltage PWM_RC after the capacitor C 2.In present embodiment, above-mentioned convergence DC voltage level charge and discharge voltage PWM_RC, its magnitude of voltage size is to determine according to the work period of pulse width modulating signal PWM_IN, that is in a work period, being in high level time when long more as pulse width modulating signal PWM_IN, the magnitude of voltage that charges and discharge voltage PWM_RC of its convergence DC voltage level will be big more.
In addition, in present embodiment, the capacitance of capacitor C 2 for example can be 0.1uF, but do not limit its appearance value size at this, the deviser works as visual actual demand, and replaces it with the capacitor C 2 of difference appearance value, just what deserves to be mentioned is, if when the appearance value of capacitor C 2 was increased, it suppresses the ripple that charges and discharge voltage PWM_RC (ripple) phenomenon effect that charge/discharge unit 401 exported also can be good more.
And what deserves to be mentioned is that voltage follower UOP and capacitor C 2 are selection element, that is element is used in non-qualification of the present invention.More clearly, charge/discharge unit 401 is exported charges and discharge voltage PWM_RC can directly provide to comparing unit 405, so also can make the detection battery electric quantity system 305 of present embodiment be in normal operating conditions.And the reason of adding voltage follower UOP, it is to reach coupling for the impedance that makes 405 of charge/discharge unit 401 and comparing units, and after collocation capacitor C 2, can make detection battery electric quantity system 305 more stable when running.
Then; voltage limit unit 403 is made up of second resistance R 2 and the 3rd resistance R 3; it has with this invention field knows that usually the knowledgeable is when knowing; the purpose of this voltage limit unit 403 is for suppressing the system voltage that battery 303 electric weight V_BATT can not surpass portable electric device system 301, and the dividing potential drop of being done protection is handled.In present embodiment, resistance R 2 for example can be 360K Ω, and resistance R 3 for example can be 1M Ω, but do not limit the resistance size of its resistance R 2 and R3 at this, the deviser can be according to actual demand, replaces it with the resistance R 2 and the R3 of different resistances, but what deserves to be mentioned is, when the resistance of selected resistance R 2 and R3 was big more, it can avoid the meaningless battery 303 electric weight V_BATT that lose.In addition, if when battery 303 electric weight V_BATT are no more than the system voltage of portable electric device system 301, resistance R 2 is also non-for limiting the element that uses with R3.
Comparing unit 405 comprises comparator C OP, its in order to the system voltage (that is battery 303 electric weight V_BATT) of portable electric device system 301 relatively and charge/discharge unit 401 exported charge and discharge voltage PWM_RC after, and output detects voltage DS.In present embodiment, the detection signal DS that comparing unit 405 is exported is except judging battery 303 electric weight V_BATT states in order to provide to controlling judge module 407 for it, and provide to portable electric device system 301, portable electric device system 301 provides according to this to display unit 307 again, it show to be detected outside the result that battery electric quantity system 305 detected, more can be converted into the output of aanalogvoltage (analog voltage) back, with purposes as the peripheral hardware circuit that needs aanalogvoltage input control.
And what deserves to be mentioned is, in present embodiment, when battery 303 electric weight V_BATT be lower than that charge/discharge unit 401 exported charge and discharge voltage PWM_RC the time, the detection voltage DS state that can cause comparing unit 405 to be exported is a low level voltage; But in another viewpoint, if the deviser desires to want to charge and discharge voltage PWM_RC when what battery 303 electric weight V_BATT were lower than that charge/discharge unit 401 exported, when the detection voltage DS state that can cause comparing unit 405 to be exported is high level voltage, only need the output terminal of voltage follower UOP is coupled the positive input terminal of comparator C OP, and the system voltage (that is battery 303 electric weight V_BATT) of portable electric device system 301 provided to the negative input end of comparator C OP get final product.
The pulse width modulating signal PWM_IN state that control judge module 407 is provided in order to control portable electric device system 301, and the detection voltage DS that is exported according to comparing unit 405, to judge the battery 303 electric weight V_BATT states of portable electric device 300.And in order to be illustrated more clearly in the operating process of control judge module 407, below will lift its control judge module 407 illustrates for example for software (software), but do not exceed according to this at this, the deviser works as can be according to actual demand, and when meeting following exemplify spiritual, following embodiment is done modification slightly or uses other feasible mode to substitute, precisely because still belong to scope of the present invention:
At first, framework according to the portable electric device 300 of present embodiment, when the work period D of the pulse width modulating signal PWM_IN that its control judge module 407 must be earlier provided when portable electric device system 301 by the experiment decision is X%, the voltage PWM_RC that charges and discharge that its charge/discharge unit 401 is exported is the V1 volt, and when the work period D of the pulse width modulating signal PWM_IN that is provided when portable electric device system 301 is Y%, the voltage PWM_RC that charges and discharge that its charge/discharge unit 401 is exported is the V2 volt, and the work period D of the pulse width modulating signal PWM_IN that is provided when portable electric device system 301 is when being Z%, and the voltage PWM_RC that charges and discharge that its charge/discharge unit 401 is exported is the V3 volt.Wherein, above-mentioned X, Y, and Z is the positive number smaller or equal to 100.
So according to behind the above-mentioned condition enactment, control judge module 407 can be divided into three critical points with battery 303 electric weight V_BATT, shows its battery 303 electric weight V_BATT states for display unit 307.Then, if with above-mentioned X, Y, and the Z value is set at 75,50 respectively, and 25 o'clock, the work period D that control judge module 407 at first can be controlled the pulse width modulating signal PWM_IN that portable electric device system 301 provided maintains 25%, and after testing battery electric quantity system 305 circuits stable after, control judge module 407 can read and detect voltage DS, to judge whether its state is low level, if represent that then current battery 303 electric weight V_BATT states are lower than 25%.
Accept above-mentioned, if not words, that is detection voltage DS is in high level state, represent that then current battery 303 electric weight V_BATT states are higher than 25%, and the work period D that control judge module 407 can be controlled the pulse width modulating signal PWM_IN that portable electric device system 301 provided again maintains 50%, and after battery electric quantity system 305 circuits are stablized after testing, control judge module 407 can read again and detect voltage DS, to judge whether its state is low level, if represent that then current battery 303 electric weight V_BATT states are between 25%~50%; Otherwise, if not, that is detect voltage DS and be in high level state, represent that then current battery 303 electric weight V_BATT states are higher than 50%.
Then, when current battery 303 electric weight V_BATT states are higher than 50%, can the continue work period D of the pulse width modulating signal PWM_IN that control portable electric device system 301 provided of control judge module 407 maintains 75%, and after battery electric quantity system 305 circuits are stablized after testing, control judge module 407 can read again and detect voltage DS, to judge whether its state is low level, if represent that then current battery 303 electric weight V_BATT states are between 50%~75%; Otherwise, if not, that is detect voltage DS and be in high level state, represent that then current battery 303 electric weight V_BATT states are higher than 75%.
Give an example according to above-mentioned, its as can be known display unit 307 can show 4 kinds of different batteries, 303 electric weight V_BATT states, it comprises: electric weight V_BATT>75%, 75%>electric weight V_BATT>50%, 50%>electric weight V_BATT>25%, and electric weight V_BATT<25%, use the user of portable electric device 300 to know its battery 303 electric weight V_BATT states to inform.
And what deserves to be mentioned is, the detection battery electric quantity system 305 of present embodiment does not need to control the work period D of the pulse width modulating signal PWM_IN that portable electric device system 301 provided always, to detect battery 303 electric weight V_BATT, the deviser can be in one section Preset Time build-in test, for example can so can't take portable electric device system 301 spaces for the per minute test once gets final product.In addition, when the deviser desires to want to detect more multistage battery 303 electric weight V_BATT states, do not need hardware circuit in the change its internal circuit, and after only need changing the program code (code) of control judge module 407, can reach outside this purpose, just promote design widely and use elasticity.
In sum, the present invention provides a kind of detection battery electric quantity system and portable electric device thereof.According to spirit of the present invention, have the following points advantage and narrate:
1. by adopting detection battery electric quantity of the present invention system, replacing the battery electric quantity that known employed analog-digital converter (ADC) detects portable electric device, so with the consideration of cost of manufacture, it can reduce cost of manufacture.
2. by employing detection battery electric quantity of the present invention system, to replace the battery electric quantity that known employed voltage-level detector (voltage detector) detects portable electric device, and the scope of utilization control judge module control detection battery electric quantity, and need not change its internal hardware circuit, only need via the program code (code) that changes the control judge module, so not only can reach outside the battery electric quantity of multistage detection portable electric device, and can also promote design use elasticity.
3. the pulse width modulating signal that above-mentioned portable electric device system is provided, it is except the detection battery electric quantity of the present invention system of arranging in pairs or groups, outside the battery electric quantity that detects portable electric device, can also be converted into aanalogvoltage (that is via digital analog converter DAC conversion), with purposes as the peripheral hardware circuit that needs aanalogvoltage input control.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; any those skilled in the art; without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is as the criterion when looking appended the claim scope person of defining.

Claims (14)

1. one kind is detected the battery electric quantity system, is suitable for portable electric device, and wherein this portable electric device comprises the portable electric device system, and it has pulse width modulating signal, and this detection battery electric quantity system comprises:
Charge/discharge unit, in order to according to this pulse width modulating signal state, and charge or discharge accordingly and output charge and discharge voltage, and wherein the work period of this pulse width modulating signal is the time cycle that discharges and recharges less than this charge/discharge unit;
Comparing unit couples this charge/discharge unit, charge and discharge voltage in order to the system voltage of this portable electric device system relatively and this after, and output detects voltage; And
The control judge module, it is in order to controlling this pulse width modulating signal state, and detects voltage according to this, to judge the battery electric quantity state of this portable electric device.
2. detection battery electric quantity according to claim 1 system, wherein this charge/discharge unit comprises:
First resistance has first end and second end, and wherein this first end of this first resistance is in order to receive this pulse width modulating signal, and this second end of this first resistance then charges and discharge voltage in order to export this; And
First electric capacity has first end and second end, and wherein this first end of this first electric capacity is this second end that couples this first resistance, and this second end of this first electric capacity is ground connection then.
3. detection battery electric quantity according to claim 2 system, also comprise voltage follower, it has positive input terminal, negative input end and output terminal, wherein this positive input terminal of this voltage follower couples this second end of this first resistance, and this output terminal of this negative input end of this voltage follower and this voltage follower is coupled to each other together, and this charges and discharge voltage in order to buffering output.
4. detection battery electric quantity according to claim 3 system, also comprise second electric capacity, it is in order to suppress the ripple that this charges and discharge voltage, and this second electric capacity has first end and second end, wherein this first end of this second electric capacity couples the output terminal of this voltage follower, and this second end of this second electric capacity is ground connection then.
5. detection battery electric quantity according to claim 1 system, wherein this comparing unit comprises comparer, it has positive input terminal, negative input end and output terminal, this positive input terminal of this comparing unit is in order to receive this system voltage, this negative input end of this comparing unit charges and discharge voltage in order to receive this, and this output terminal of this comparing unit is then exported this detection voltage.
6. detection battery electric quantity according to claim 5 system also comprises the voltage limit unit, and it must be less than or equal to this detection voltage in order to limit this system voltage, and this voltage limit unit comprises:
Second resistance has first end and second end, and wherein this first end of this second resistance is in order to receive this system voltage, and this second end of this second resistance then is coupled to the positive input terminal of this comparer; And
The 3rd resistance has first end and second end, and wherein this first end of the 3rd resistance couples the positive input terminal of this comparer, and this second end of the 3rd resistance is ground connection then.
7. detection battery electric quantity according to claim 1 system also comprises display unit, its battery electric quantity state in order to show that this control judge module is judged.
8. portable electric device, it comprises the portable electric device system, and this portable electric device system has pulse width modulating signal, and this portable electric device comprises:
Battery is in order to provide the system voltage of this portable electric device system; And
Detect the battery electric quantity system, it couples this battery, and in order to detecting this battery electric quantity state, and this detection battery electric quantity system comprises:
Charge/discharge unit, in order to according to this pulse width modulating signal state, and charge or discharge accordingly and output charge and discharge voltage, and wherein the work period of this pulse width modulating signal is the time cycle that discharges and recharges less than this charge/discharge unit;
Comparing unit couples this charge/discharge unit, charge and discharge voltage in order to this system voltage relatively and this after, and output detects voltage; And
The control judge module, it is in order to controlling this pulse width modulating signal state, and detects voltage according to this, to judge this battery electric quantity state.
9. portable electric device according to claim 8, wherein this charge/discharge unit comprises:
First resistance has first end and second end, and wherein this first end of this first resistance is in order to receive this pulse width modulating signal, and this second end of this first resistance then charges and discharge voltage in order to export this; And
First electric capacity has first end and second end, and wherein this first end of this first electric capacity is this second end that couples this first resistance, and this second end of this first electric capacity is ground connection then.
10. portable electric device according to claim 9, wherein this detection battery electric quantity system also comprises voltage follower, it has positive input terminal, negative input end and output terminal, wherein this positive input terminal of this voltage follower couples this second end of this first resistance, and this output terminal of this negative input end of this voltage follower and this voltage follower is coupled to each other together, and this charges and discharge voltage in order to buffering output.
11. portable electric device according to claim 10, wherein this detection battery electric quantity system also comprises second electric capacity, it is in order to suppress the ripple that this charges and discharge voltage, and this second electric capacity has first end and second end, wherein this first end of this second electric capacity couples the output terminal of this voltage follower, and this second end of this second electric capacity is ground connection then.
12. portable electric device according to claim 8, wherein this comparing unit comprises comparer, it has positive input terminal, negative input end and output terminal, this positive input terminal of this comparing unit is in order to receive this system voltage, this negative input end of this comparing unit charges and discharge voltage in order to receive this, and this output terminal of this comparing unit is then exported this detection voltage.
13. portable electric device according to claim 12, wherein this detection battery electric quantity system also comprises the voltage limit unit, and it must be less than or equal to this detection voltage in order to limit this system voltage, and this voltage limit unit comprises:
Second resistance has first end and second end, and wherein this first end of this second resistance is in order to receive this system voltage, and this second end of this second resistance then is coupled to the positive input terminal of this comparer; And
The 3rd resistance has first end and second end, and wherein this first end of the 3rd resistance couples the positive input terminal of this comparer, and this second end of the 3rd resistance is ground connection then.
14. portable electric device according to claim 8 also comprises display unit, its battery electric quantity state in order to show that this control judge module is judged.
CN2006101280058A 2006-08-31 2006-08-31 System for detecting battery electric quantity and mobile phone thereof Active CN101135720B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101280058A CN101135720B (en) 2006-08-31 2006-08-31 System for detecting battery electric quantity and mobile phone thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101280058A CN101135720B (en) 2006-08-31 2006-08-31 System for detecting battery electric quantity and mobile phone thereof

Publications (2)

Publication Number Publication Date
CN101135720A CN101135720A (en) 2008-03-05
CN101135720B true CN101135720B (en) 2010-09-15

Family

ID=39159901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101280058A Active CN101135720B (en) 2006-08-31 2006-08-31 System for detecting battery electric quantity and mobile phone thereof

Country Status (1)

Country Link
CN (1) CN101135720B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107991614A (en) * 2017-10-08 2018-05-04 刘道灵 A kind of quartz watch battery electric quantity checking device

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM439591U (en) * 2011-12-06 2012-10-21 Quan Mei Technology Co Ltd Detection and control device for vehicle start
CN105223516B (en) * 2015-10-20 2018-05-22 卧龙电气集团股份有限公司 A kind of electric quantity of lithium battery analog voltage output device
CN106842046B (en) * 2017-01-21 2022-01-07 深圳安鼎新能源技术开发有限公司 Battery capacity detection circuit
CN112114264B (en) * 2019-06-19 2024-03-08 深圳君正时代集成电路有限公司 Battery electric quantity detection system
CN112286739B (en) * 2019-07-25 2024-03-29 环达电脑(上海)有限公司 Motherboard battery detecting device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2112220U (en) * 1991-12-09 1992-08-05 肖相如 Program-controlling pulse width amplitude scr accumulator charger
CN1166711A (en) * 1996-03-08 1997-12-03 索尼公司 Electronic apparatus having function of displaying battery residual quantity and method for displaying battery residual quantity
CN1620744A (en) * 2002-02-15 2005-05-25 慎亨范 Portable charging apparatus having a charging battery built-in
CN1648921A (en) * 2005-02-17 2005-08-03 倚天资讯股份有限公司 Device and method for prolonging electronic device data storage time

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2112220U (en) * 1991-12-09 1992-08-05 肖相如 Program-controlling pulse width amplitude scr accumulator charger
CN1166711A (en) * 1996-03-08 1997-12-03 索尼公司 Electronic apparatus having function of displaying battery residual quantity and method for displaying battery residual quantity
CN1620744A (en) * 2002-02-15 2005-05-25 慎亨范 Portable charging apparatus having a charging battery built-in
CN1648921A (en) * 2005-02-17 2005-08-03 倚天资讯股份有限公司 Device and method for prolonging electronic device data storage time

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107991614A (en) * 2017-10-08 2018-05-04 刘道灵 A kind of quartz watch battery electric quantity checking device

Also Published As

Publication number Publication date
CN101135720A (en) 2008-03-05

Similar Documents

Publication Publication Date Title
CN101135720B (en) System for detecting battery electric quantity and mobile phone thereof
CN102314268B (en) Capacitance-type touch device
US7750612B2 (en) Voltage-pulse converting circuit and charge control system
CN102946131B (en) Adaptive input power charger and method for controlling input current of charger
JP3080655B2 (en) Microcontroller with analog pre-circuit for intelligent battery management
KR101654780B1 (en) Universal power interface
US11609664B2 (en) Capacitance detection circuit, sensor, chip and electronic device
CN102163109B (en) Touch sensing system, capacitance sensing device and capacitance sensing method
CN103309835A (en) Universal serial bus device and power supply method thereof
CN103023505A (en) Analog-digital converter capable of configuring multi-channel successive approximation structure
CN104993534A (en) Mobile terminal and charge control method thereof
CN114336813B (en) Charging control circuit, charging chip and charging equipment
CN110084082B (en) Electronic equipment, fingerprint identification device and finger touch detection circuit thereof
US6661204B2 (en) Battery charge monitor
CN108777574A (en) A kind of capacitance touch button circuit
CN110824380B (en) Three-phase earth fault detection circuit and three-phase earth fault detection method
CN104101779A (en) Intelligent ammeter
CN202533564U (en) Electric quantity indicating device
CN204666166U (en) Capacitor charge and discharge control module and power frequency change-over circuit
CN214755687U (en) Charge and discharge management circuit and portable power source
CN102857085A (en) Electronic device
CN101777834A (en) Automatic voltage-countering power supply device and method
CN101764604A (en) Method for achieving touch key function and device thereof
CN104600961A (en) power supply device, power supply system and method for controlling the system
CN102590596B (en) Circuit for detecting peak value of sine wave

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant