CN109085408B - Battery voltage detection circuit, method for maintaining CDMA communication waveform, and medium - Google Patents

Battery voltage detection circuit, method for maintaining CDMA communication waveform, and medium Download PDF

Info

Publication number
CN109085408B
CN109085408B CN201810980139.5A CN201810980139A CN109085408B CN 109085408 B CN109085408 B CN 109085408B CN 201810980139 A CN201810980139 A CN 201810980139A CN 109085408 B CN109085408 B CN 109085408B
Authority
CN
China
Prior art keywords
battery voltage
voltage
resistor
mobile terminal
cdma
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
CN201810980139.5A
Other languages
Chinese (zh)
Other versions
CN109085408A (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201810980139.5A priority Critical patent/CN109085408B/en
Publication of CN109085408A publication Critical patent/CN109085408A/en
Application granted granted Critical
Publication of CN109085408B publication Critical patent/CN109085408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/0084Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring voltage only
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05FSYSTEMS FOR REGULATING ELECTRIC OR MAGNETIC VARIABLES
    • G05F1/00Automatic systems in which deviations of an electric quantity from one or more predetermined values are detected at the output of the system and fed back to a device within the system to restore the detected quantity to its predetermined value or values, i.e. retroactive systems
    • G05F1/10Regulating voltage or current

Abstract

The invention discloses a battery voltage detection circuit, a method and a medium for maintaining CDMA communication waveforms, wherein the method comprises the steps that a central processing unit detects a first voltage V1 of a junction point between a battery voltage related resistor RM and a first resistor R1 at regular time, obtains a battery voltage value of a mobile terminal according to a relation table of the battery voltage related resistor RM and the voltage V1, monitors the battery voltage condition through a battery voltage detector, and adjusts the reference voltage of CDMA according to the battery voltage, so that the CDMA reference voltages are different when different battery voltages exist, the CDMA waveforms are kept, the communication requirements are met, and the communication success rate is improved.

Description

Battery voltage detection circuit, method for maintaining CDMA communication waveform, and medium
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a battery voltage detection circuit, a method and a medium for maintaining a CDMA communication waveform.
Background
With the development of mobile communication and the improvement of the living standard of people, CDMA becomes the main mobile communication technology in China, and because CDMA adopts pure digital communication, the requirement for the waveform during communication is more strict, compared with the traditional GSM communication, if the edge and level of the communication waveform have certain difference with the actually required waveform, communication failure can be caused. Because the mobile terminal is powered by a battery, when the voltage of the battery is high or low, the reference level of the CDMA of the mobile terminal is different, which easily causes the waveform difference to cause communication failure. In the prior art, a method for detecting the battery voltage of the mobile terminal is adopted to stabilize the battery voltage, the battery voltage is obtained at regular time, and a corresponding voltage value is calculated through an ADC. However, the battery voltage is acquired regularly, and a timer is required for polling, so that the efficiency is not high, and the communication success rate is low.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The present invention provides a battery voltage detection circuit, a method for maintaining CDMA communication waveform, and a medium thereof, aiming at automatically adjusting the reference voltage of CDMA according to the battery voltage condition of the current mobile terminal, so that the reference voltage of CDMA changes along with the change of the battery voltage, thereby maintaining the CDMA waveform, satisfying the communication requirement, increasing the communication success rate, and facilitating the user.
The technical scheme adopted by the invention for solving the technical problem is as follows:
the invention provides a battery voltage detection circuit, which is applied to a mobile terminal and comprises:
the sensing assembly comprises a battery voltage associated Resistor (RM), a first resistor (R1), a second resistor (R2), a third resistor (R3), a first variable resistor (Ra) and a second variable resistor (Rb), wherein one end of the battery voltage associated Resistor (RM) is connected with a fixed voltage Vref, the other end of the battery voltage associated Resistor (RM) is Grounded (GND) through the first resistor (R1), two ends of the first variable resistor (Ra) and the second resistor (R2) are respectively connected with a power supply voltage (Vref) and a Ground (GND) after being connected in series, and two ends of the second variable resistor (Rb) and the third resistor (R3) are respectively connected with the power supply voltage (Vref) and the Ground (GND) after being connected in series;
a first comparator comprising a first input pin (IN1), a second input pin (IN2) and a first output pin (OUT1), the first input pin (IN1) being connected to a node (A) between the battery voltage dependent Resistor (RM) and the first resistor (R1), the second input pin (IN2) being connected to a node (B) between the first variable resistor (Ra) and the second resistor (R2);
a second comparator comprising a third input pin (IN3), a fourth input pin (IN4) and a second output pin (OUT2), the third input pin (IN3) being connected to a node (C) between the second variable resistor (Rb) and the third resistor (R3), the fourth input pin (IN4) being connected to a node (a) between the battery voltage dependent Resistor (RM) and the first resistor (R1); and
the central processing unit comprises a setter and a battery voltage detector, wherein the setter is connected to the battery voltage detector, the setter is connected to the first variable resistor (Ra) and the second variable resistor (Rb), the battery voltage detector is connected to the first output pin (OUT1) and the second output pin (OUT2) and is used for acquiring level signals output by the first output pin (OUT1) and the second output pin (OUT2), and the setter changes the resistance values of the first variable resistor (Ra) and the second variable resistor (Rb) according to the level signals acquired by the battery voltage detector.
The sensing assembly is respectively connected with the first comparator and the second comparator, and the central processing unit respectively connected with the first comparator and the second comparator is connected with the sensing assembly.
The battery voltage detection circuit, wherein the battery voltage is related to a first voltage (V1) at a junction (a) between the Resistor (RM) and the first resistor (R1), V1= Vref × R1/(RM + R1).
The battery voltage detection circuit, wherein the battery voltage dependent Resistance (RM) is negatively correlated with the battery voltage.
The invention also provides a method for maintaining the CDMA communication waveform of the mobile terminal by applying the battery voltage detection circuit, which comprises the following steps:
directly acquiring a value of a first voltage (V1) at a node between a battery voltage correlation Resistance (RM) and a first resistance (R1) when the mobile terminal is turned on;
determining a value of a battery voltage of the mobile terminal at power-on (T0) from the first voltage (V1);
adjusting the resistances of the first and second variable resistors (Ra, Rb) such that the second voltage (V2), V2= V (T0+1), the third voltage (V3) at node (C), V3= V (T0-1) at node (B), where V (T0) represents the voltage at node (a) between the battery voltage-dependent Resistor (RM) and the first resistor (R1) at a battery voltage of T0;
and acquiring a level signal acquired by the battery voltage detector, detecting whether the level signal is a high level, and if so, adjusting the reference voltage of the CDMA or adjusting the resistance values of the first variable resistor (Ra) and the second variable resistor (Rb) through a setter.
The method for maintaining the CDMA communication waveform of the mobile terminal, wherein the step of acquiring the level signal acquired by the battery voltage detector, detecting whether the level signal is a high level, if so, adjusting the reference voltage of the CDMA, or adjusting the resistance values of the first variable resistor (Ra) and the second variable resistor (Rb) through the setter specifically includes:
the battery voltage detector acquires a level signal and detects whether the level signal is a high level;
determining an output source of a high level;
if the high level is output by the first output pin (OUT1), it indicates that the battery voltage of the mobile terminal is greater than T0+1, and the reference voltage of CDMA is reduced, or the resistance values of the first variable resistor (Ra) and the second variable resistor (Rb) are increased; if the high level is outputted from the first output pin OUT2, it indicates that the battery voltage of the mobile terminal is less than T0-1, the reference voltage of CDMA is increased, or the resistance values of the first variable resistor (Ra) and the second variable resistor (Rb) are decreased.
The method for maintaining the CDMA communication waveform of the mobile terminal, wherein if the high level is outputted from the first output pin (OUT1), it indicates that the battery voltage of the mobile terminal is greater than T0+1, and the adjusting down the reference voltage of CDMA or increasing the resistance of the first variable resistor (Ra) and the second variable resistor (Rb) specifically comprises:
if T0+1 is within the preset range of the battery voltage, the reference voltage of CDMA is adjusted down, otherwise, T0= T0+1, V2= V (T0+1), V3= V (T0-1), thereby increasing the resistance values of the first variable resistor (Ra) and the second variable resistor (Rb);
the method for maintaining the CDMA communication waveform of the mobile terminal, wherein if the high level is outputted from the first output pin OUT2, it indicates that the battery voltage of the mobile terminal is less than T0-1, and the step of increasing the reference voltage of CDMA, or decreasing the resistance of the first variable resistor (Ra) and the second variable resistor (Rb) specifically comprises:
if T0-1 is within the preset range of the battery voltage, the reference voltage of CDMA is adjusted up, otherwise, T0= T0-1, V2= V (T0+1), and V3= V (T0-1), thereby reducing the resistances of the first variable resistor (Ra) and the second variable resistor (Rb).
The method for maintaining the CDMA communication waveform of the mobile terminal, wherein the determining the value (T0) of the battery voltage of the mobile terminal at power-on according to the first voltage (V1) specifically comprises:
reading a memory storing a correspondence table of a battery voltage, a voltage at a node between a battery voltage-related Resistance (RM) and a first resistance (R1), and determining a value of the battery voltage of the mobile terminal at power-on (T0).
The invention also provides a mobile terminal which is characterized by comprising
A battery voltage detection circuit, which is the above battery voltage detection circuit; and
and a memory connected to the central processing unit, wherein the memory stores a corresponding relation table of the battery voltage, the voltage at the junction point between the battery voltage related Resistor (RM) and the first resistor (R1) and a program for maintaining the CDMA communication waveform of the mobile terminal, and the program for maintaining the CDMA communication waveform of the mobile terminal is executed by the central processing unit to realize the method for maintaining the CDMA communication waveform of the mobile terminal.
The present invention also provides a machine-readable storage medium having stored thereon a computer program which, when executed by a central processing unit, implements the above-described method of maintaining a CDMA communication waveform of a mobile terminal.
Has the advantages that:
the invention discloses a battery voltage detection circuit, a method and a medium for maintaining CDMA communication waveforms, wherein the method comprises the steps that a central processing unit detects the voltage V1 of a node between a battery voltage related resistor RM and a first resistor R1 at regular time through the battery voltage detection circuit, obtains the battery voltage value of a mobile terminal according to a battery voltage and voltage V1 relation table of the battery voltage related resistor RM, monitors the battery voltage condition through a battery voltage detector, and adjusts the reference voltage of CDMA according to the battery voltage, so that the CDMA reference voltages are different when different battery voltages exist, the CDMA waveforms are maintained, the communication requirements are met, and the communication success rate is improved.
Drawings
Fig. 1 is a block diagram illustrating a battery voltage detection circuit of a mobile terminal according to the present invention;
FIG. 2 is a flow chart of a method of maintaining a CDMA communication waveform of a mobile terminal according to the present invention applied to a battery voltage detection circuit;
fig. 3 is a functional block diagram of a mobile terminal according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention is based on CDMA technology to realize the technical scheme of the invention.
CDMA (Code Division Multiple Access) technology is used in wireless communications, and allows all users to use the entire frequency band (1.2288Mhz) simultaneously, and considers signals from other users as noise, completely without considering signal collision. The speech coding technique provided in CDMA has better speech quality than current GSM, and can reduce the noise of surrounding environment when the user talks, so that the speech is clearer. In terms of safety performance, CDMA not only has a good authentication system, but also distinguishes users by codes due to the transmission characteristics of CDMA, and the anti-theft listening capability is greatly enhanced.
Example one
Referring to fig. 1, fig. 1 is a block diagram illustrating a battery voltage detection circuit of a mobile terminal according to the present invention, and as shown in fig. 1, the battery voltage detection circuit is applied to the mobile terminal, and the battery voltage detection circuit includes:
the sensing assembly 100 comprises a battery voltage related resistor RM, a first resistor R1, a second resistor R2, a third resistor R3, a first variable resistor Ra and a second variable resistor Rb, wherein one end of the battery voltage related resistor RM is connected with a fixed power supply voltage Vref, the other end of the battery voltage related resistor RM is grounded GND through the first resistor R1, two ends of the first variable resistor Ra and the second resistor R2 are respectively connected with the power supply voltage Vref and the ground GND after being connected in series, and two ends of the second variable resistor Rb and the third resistor R3 are respectively connected with the power supply voltage Vref and the ground GND after being connected in series;
a first comparator 300, said first comparator 300 comprising a first input pin IN1, a second input pin IN2, and a first output pin OUT1, said first input pin IN1 being connected to a node a between the battery voltage dependent resistor RM and a first resistor R1, the voltage at a being represented by V1, said second input pin IN2 being connected to a node B between the first variable resistor Ra and a second resistor R2, the voltage at B being represented by V2;
a second comparator 400, said second comparator 400 comprising a third input pin IN3, a fourth input pin IN4, and a second output pin OUT2, said third input pin IN3 being connected to a node C between the second variable resistor Rb and the third resistor R3, at which point C the voltage is represented by V3, said fourth input pin IN4 being connected to a node a between the battery voltage-dependent resistor RM and the first resistor R1, at which point a the voltage is represented by V1; and
the cpu 200 includes a setter 201 and a battery voltage detector 202, the setter 201 is connected to the first variable resistor Ra and the second variable resistor Rb, the battery voltage detector 202 is connected to the first output pin OUT1 of the first comparator 300 and the second output pin OUT2 of the second comparator 400, and is configured to obtain a level signal output by the first output pin OUT1 and the second output pin OUT2, and the setter 201 changes the resistance values of the first variable resistor Ra and the second variable resistor Rb according to the level signal obtained by the battery voltage detector 202, so as to adjust the voltage levels of V2 and V3.
In fig. 1, the sensing element 100 is respectively connected to the first comparator 300 and the second comparator 400, and the central processing unit 200 respectively connected to the first comparator 300 and the second comparator 400 is connected to the sensing element 100.
Specifically, the first comparator 300 and the second comparator 400 have the same structure, and each of the first comparator 300 and the second comparator 400 includes two input pins IN1, IN2 (or IN3, IN4) and one output pin OUT1 (OUT2), when the voltage of the first input pin IN1, i.e., the voltage of V1, is greater than the voltage of the second input pin IN2, i.e., the voltage of V2, the first output pin OUT1 outputs a high level, otherwise the first output pin OUT1 outputs a low level or
When the voltage of the third input pin IN3, i.e., the voltage of V3, is greater than the voltage of the fourth input pin IN4, i.e., the voltage of V1, the second output pin OUT2 outputs a high level; otherwise, the second output pin OUT2 outputs a low level.
At this time, the battery voltage detector 202 informs the setter to make corresponding settings according to the level signals output by the first output pin OUT1 and the second output pin OUT2, so as to adjust the voltages V2 and V3 of the node B and the node C by changing the resistance values of the first variable resistor Ra and the second variable resistor Rb through the setter, thereby monitoring the battery voltage of the mobile terminal, so that a corresponding response is made when the battery voltage is too high or too low, for example, the reference voltage of CDMA is adjusted according to the battery voltage, thereby realizing that the reference voltage of CDMA is different at different battery voltages, so as to maintain the waveform of CDMA. Specifically, the reference voltage of the CDMA is adjusted up when the battery voltage is too low, and the reference voltage of the CDMA is adjusted down when the battery voltage is too high.
As shown in fig. 1, the first resistor R1, the second resistor R2 and the third resistor R3 are resistors with fixed resistance values, the first variable resistor Ra and the second variable resistor Rb are resistors with non-fixed resistance values, and are controlled by the setter 201, the battery voltage-related resistor RM is a negative battery voltage coefficient, that is, the battery voltage-related resistor RM is negatively correlated with the battery voltage, and the first voltage V1 value at different battery voltages can be obtained from the relationship between the battery voltage and the resistance value of the battery voltage-related resistor RM provided by the resistor supplier, and the value of V1 is obtained by calculating V1= Vref R1/(RM + R1), and it is understood from this expression that the larger the battery voltage is, the larger the voltage of V1 is.
In the present invention, the mobile terminal stores a correspondence table of the battery voltage correlation resistance RM and the first voltage V1 at the node a between the first resistances R1. The correspondence table records each integer mobile terminal battery voltage T and the value of the first voltage V1 at the node a corresponding to the integer mobile terminal battery voltage T, for example, when the battery voltage is T, the voltage value of V1 in the correspondence table is represented by V (T).
Specifically, fig. 2 illustrates a method for maintaining a CDMA communication waveform of a mobile terminal, which is applied to a battery voltage detection circuit, by using the above-mentioned battery voltage detection circuit to implement the steps of the method for maintaining a CDMA communication waveform of a mobile terminal, and as shown in fig. 2, the method comprises the following steps:
s100, when the mobile terminal is turned on, directly obtaining a voltage at a node between the battery voltage correlation resistor RM and the first resistor R1, i.e. a first voltage V1 at a.
Specifically, after the mobile terminal is started, the battery voltage detection circuit detects the initial voltage V1 at the node a for determining the initial battery voltage of the mobile terminal by querying the correspondence table of the voltages at the nodes between the battery voltage correlation resistor RM and the first resistor R1.
S200, determining the battery voltage T0 of the mobile terminal when the mobile terminal is started according to the first voltage V1;
specifically, after the mobile terminal is started, the initial voltage detected at a in step S100, that is, the value of the first voltage V1, is obtained, the memory is read, the relationship between the battery voltage of the mobile terminal and the first voltage V1 is searched according to the correspondence table, the value of the battery voltage of the mobile terminal when the mobile terminal is started is obtained, and the value is represented by T0.
S300, the resistances of the first and second variable resistors Ra and Rb are adjusted such that the second voltage V2= V (T0+1) at the node B and the third voltage V3= V (T0-1) at the node C, where V (T0) represents the value of the first voltage V1 at the node between the battery voltage-dependent resistor RM and the first resistor R1 when the battery voltage is T0.
Specifically, the value of the battery voltage when the mobile terminal is turned on is obtained, and the values of the first resistor R1, the second resistor R2, and the voltage Vref (i.e., the power supply voltage or the power supply voltage) are obtained, and then according to the characteristic that the current of the series circuit is equal to the voltage of the parallel circuit, the values of the first variable resistor Ra and the second variable resistor Rb are adjusted by the setter 201 in the battery voltage detection circuit, so that the second voltage V2= V (T0+1) at the node B, and the third voltage V3= V (T0-1) at the node C, that is, the first variable resistor:
a second variable resistance:
wherein V (T0+1) represents a value of the first voltage V1 when the battery voltage is T0+1 in the correspondence table; v (T0-1) represents the value of the first voltage V1 when the battery voltage is T0-1 in the correspondence table.
And S400, acquiring a level signal acquired by the battery voltage detector, detecting whether the level signal is a high level, and if so, adjusting the reference voltage of the CDMA or adjusting the resistance values of the first variable resistor Ra and the second variable resistor Rb through a setter.
Specifically, after the mobile terminal is started for a period of time, when the battery voltage detector receives that the first output pin OUT1 of the first comparator 300 outputs a high level, indicating that the battery voltage T0 (at a) of the mobile terminal is greater than the battery voltage T0+1 (at B), and detecting whether the value of the battery voltage T0+1 is within a preset range of the mobile terminal, if so, turning down the reference voltage of CDMA, and if not, making T0= T0+1, and automatically adjusting the resistance values of the first variable resistor Ra and the second variable resistor Rb by the setter 201, so that V2= V (T0+1), V3= V (T0-1), and at this time,
first variable resistance:
a second variable resistance:
(ii) a Or
When the battery voltage detector receives a high level output from the second output pin OUT2 of the second comparator 400, it indicates that the battery voltage T0 (at a) of the mobile terminal is less than the battery voltage T0-1 (at C), and it detects whether the value of the battery voltage T0-1 is within a preset range of the mobile terminal, if so, the reference voltage of CDMA is increased, if not, T0= T0-1, the resistances of the first variable resistor Ra and the second variable resistor Rb are automatically adjusted by the setter 201, such that V2= V (T0+1), V3= V (T0-1),
at this time, the first variable resistor:
a second variable resistance:
that is, step S400 specifically includes the following steps:
s401, acquiring a level signal acquired by a battery voltage detector, and detecting whether the level signal is a high level;
s402, determining a high-level output source;
s403, if the high level is outputted from the first output pin OUT1, it indicates that the battery voltage of the mobile terminal is greater than T0+1, and the reference voltage of CDMA is decreased, or the resistance values of the first variable resistor Ra and the second variable resistor Rb are increased; or
S404, if the high level is outputted from the first output pin OUT2, it indicates that the battery voltage of the mobile terminal is less than T0-1, the reference voltage of CDMA is increased, or the resistances of the first variable resistor Ra and the second variable resistor Rb are decreased.
Wherein, step S403 specifically includes: if T0+1 is within the preset range of the battery voltage, the reference voltage of CDMA is adjusted down, otherwise, T0= T0+1, V2= V (T0+1), V3= V (T0-1), so as to increase the resistance values of the first variable resistor Ra and the second variable resistor Rb;
step S404 specifically includes: if T0-1 is within the preset range of the battery voltage, the reference voltage of CDMA is adjusted up, otherwise, T0= T0-1, V2= V (T0+1), and V3= V (T0-1), thereby reducing the resistances of the first variable resistor Ra and the second variable resistor Rb.
Example two
As shown in fig. 3, the mobile terminal of the embodiment of the present invention may be a mobile phone (or a tablet), where the mobile terminal of the embodiment of the present invention includes a battery voltage detection circuit (not shown in the figure), a central processing unit 200, and a memory 500 connected to the central processing unit 200;
the battery voltage detection circuit is the battery voltage detection circuit in the first embodiment.
The memory 500 stores a corresponding relationship table of the battery voltage, the voltage at the node between the battery voltage correlation resistor RM and the first resistor R1, and a CDMA communication waveform maintaining program of the mobile terminal, which is executed by the central processing unit 200 to implement the method for maintaining the CDMA communication waveform of the mobile terminal, specifically, the steps S100 to S400.
The Central Processing Unit 200 (CPU) is used for executing program codes stored in the memory 500 or Processing data, such as executing a program for maintaining CDMA communication waveforms of the mobile terminal.
EXAMPLE III
The present invention also provides a machine-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a central processing unit, implements the method for maintaining the CDMA communication waveform of the mobile terminal described in the above steps S100 to S400; as described above.
In summary, the present invention provides a battery voltage detection circuit, a method for maintaining CDMA communication waveforms and a medium thereof, wherein the battery voltage detection circuit comprises an inductive component, a first comparator, a second comparator and a central processing unit, and is applied to a mobile terminal for implementing the method for maintaining CDMA communication waveforms of the mobile terminal, the method comprises the steps of the central processing unit detecting a first voltage V1 at a node between a battery voltage associated resistor RM and a first resistor R1 through the battery voltage detection circuit at regular time, obtaining a battery voltage value of the mobile terminal according to a relation table between the battery voltage of the battery voltage associated resistor RM and the first voltage V1, then monitoring a battery voltage condition through a battery voltage detector, adjusting CDMA reference voltages according to the battery voltage level, thereby implementing that CDMA reference voltages are different when different battery voltages are used for maintaining CDMA waveforms, the communication requirement is met, and the communication success rate is improved.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (9)

1. A battery voltage detection circuit applied to a mobile terminal, comprising:
the sensing assembly comprises a battery voltage related resistor RM, a first resistor R1, a second resistor R2, a third resistor R3, a first variable resistor Ra and a second variable resistor Rb, wherein one end of the battery voltage related resistor RM is connected with a fixed voltage Vref, the other end of the battery voltage related resistor RM is grounded GND through the first resistor R1, two ends of the first variable resistor Ra and the second resistor R2 are respectively connected with a power supply voltage Vref and a ground GND after being connected in series, and two ends of the second variable resistor Rb and the third resistor R3 are respectively connected with the power supply voltage Vref and the ground GND after being connected in series;
a first comparator including a first input pin IN1, a second input pin IN2, and a first output pin OUT1, the first input pin IN1 being connected to a node a between the battery voltage dependent resistor RM and the first resistor R1, the second input pin IN2 being connected to a node B between the first variable resistor Ra and the second resistor R2;
a second comparator including a third input pin IN3, a fourth input pin IN4, and a second output pin OUT2, the third input pin IN3 being connected to a node C between the second variable resistor Rb and the third resistor R3, the fourth input pin IN4 being connected to a node a between the battery voltage correlation resistor RM and the first resistor R1; and
the central processing unit comprises a setter and a battery voltage detector, wherein the setter is connected to the battery voltage detector, the setter is connected to the first variable resistor Ra and the second variable resistor Rb, the battery voltage detector is connected to the first output pin OUT1 and the second output pin OUT2 and is used for acquiring level signals output by the first output pin OUT1 and the second output pin OUT2, and the setter changes the resistance values of the first variable resistor Ra and the second variable resistor Rb according to the level signals acquired by the battery voltage detector to adjust the voltage of a node B and the voltage of a node C so as to monitor the battery voltage of the mobile terminal, so that the reference voltage of CDMA is increased when the battery voltage is too low, and the reference voltage of CDMA is decreased when the battery voltage is too high so as to keep the waveform of CDMA;
the sensing assembly is respectively connected with the first comparator and the second comparator, and the central processing unit respectively connected with the first comparator and the second comparator is connected with the sensing assembly.
2. The battery voltage detection circuit according to claim 1, wherein the first voltage V1, V1-Vref R1/(RM + R1) at a node a between the battery voltage correlation resistor RM and the first resistor R1.
3. The battery voltage detection circuit according to claim 2, wherein the battery voltage dependent resistance RM is inversely related to the battery voltage.
4. A method for maintaining CDMA communication waveforms of a mobile terminal using the battery voltage detection circuit of claim 1, comprising the steps of:
when the mobile terminal is turned on, directly acquiring the value of a first voltage V1 at the node between the battery voltage correlation resistor RM and the first resistor R1;
determining a value T0 of a battery voltage of the mobile terminal at power-on according to the first voltage V1;
adjusting the resistances of the first and second variable resistors Ra and Rb such that the second voltage V2, V2 ═ V (T0+1) at node B, the third voltage V3, V3 ═ V (T0-1) at node C, where VT0 represents the voltage at node a between the battery voltage-dependent resistor RM and the first resistor R1 when the battery voltage is T0;
acquiring a level signal acquired by a battery voltage detector, detecting whether the level signal is a high level, if so, adjusting a reference voltage of the CDMA, or adjusting resistance values of a first variable resistor Ra and a second variable resistor Rb through a setter;
the step of acquiring a level signal acquired by the battery voltage detector, detecting whether the level signal is a high level, if so, adjusting a reference voltage of the CDMA, or adjusting resistance values of the first variable resistor Ra and the second variable resistor Rb by the setter specifically includes:
the battery voltage detector acquires a level signal and detects whether the level signal is a high level;
determining an output source of a high level;
if the high level is outputted from the first output pin OUT1, it indicates that the battery voltage of the mobile terminal is greater than T0+1, the reference voltage of CDMA is reduced, or the resistance values of the first variable resistor Ra and the second variable resistor Rb are increased; if the high level is outputted from the second output pin OUT2, it indicates that the battery voltage of the mobile terminal is less than T0-1, the reference voltage of CDMA is increased, or the resistance values of the first variable resistor Ra and the second variable resistor Rb are decreased.
5. The method of claim 4, wherein if the high level is outputted from the first output pin OUT1, it indicates that the battery voltage of the mobile terminal is greater than T0+1, and the step of lowering the reference voltage of CDMA or increasing the resistance of the first and second variable resistors Ra and Rb comprises:
if T0+1 is within the preset range of the battery voltage, the reference voltage of CDMA is adjusted down, otherwise, T0 is made equal to T0+1, V2 is made equal to V (T0+1), and V3 is made equal to V (T0-1), so as to increase the resistances of the first variable resistor Ra and the second variable resistor Rb.
6. The method of claim 4, wherein if the high level is outputted from the second output pin OUT2, it indicates that the battery voltage of the mobile terminal is less than T0-1, and the step of increasing the reference voltage of CDMA or decreasing the resistances of the first and second variable resistors Ra and Rb comprises:
if T0-1 is within the preset range of the battery voltage, the reference voltage of CDMA is increased, otherwise, T0 is T0-1, V2 is V (T0+1), and V3 is V (T0-1), so as to reduce the resistances of the first variable resistor Ra and the second variable resistor Rb.
7. The method of claim 4, wherein the determining the value T0 of the battery voltage of the mobile terminal at power-on according to the first voltage V1 specifically comprises:
and reading a memory for storing a correspondence table of the battery voltage, the battery voltage-associated resistance RM, and the voltage at the node between the first resistances R1, and determining the value T0 of the battery voltage of the mobile terminal at the time of power-on.
8. A mobile terminal, comprising
A battery voltage detection circuit according to any one of claims 1 to 3; and
a memory connected to the central processing unit, the memory storing a correspondence table of the battery voltage, the voltage at the node between the battery voltage correlation resistor RM and the first resistor R1, and a program for maintaining the CDMA communication waveform of the mobile terminal, the program being executed by the central processing unit for implementing the method for maintaining the CDMA communication waveform of the mobile terminal according to any one of claims 4 to 7.
9. A machine readable storage medium having stored thereon a computer program which, when executed by a central processing unit, implements the method of maintaining a CDMA communication waveform for a mobile terminal of any one of claims 4-7.
CN201810980139.5A 2018-08-27 2018-08-27 Battery voltage detection circuit, method for maintaining CDMA communication waveform, and medium Active CN109085408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810980139.5A CN109085408B (en) 2018-08-27 2018-08-27 Battery voltage detection circuit, method for maintaining CDMA communication waveform, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810980139.5A CN109085408B (en) 2018-08-27 2018-08-27 Battery voltage detection circuit, method for maintaining CDMA communication waveform, and medium

Publications (2)

Publication Number Publication Date
CN109085408A CN109085408A (en) 2018-12-25
CN109085408B true CN109085408B (en) 2020-11-13

Family

ID=64794847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810980139.5A Active CN109085408B (en) 2018-08-27 2018-08-27 Battery voltage detection circuit, method for maintaining CDMA communication waveform, and medium

Country Status (1)

Country Link
CN (1) CN109085408B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2432556Y (en) * 2000-06-16 2001-05-30 侯云才 Current-collecting pipe liquid flow sensor
CN2594086Y (en) * 2003-01-13 2003-12-24 徐俊亚 Precisive inspecting alarm for status of automotive electric power system
CN1592130A (en) * 2003-08-25 2005-03-09 夏普株式会社 CDMA receiving apparatus, method, program and recording medium
CN1882843A (en) * 2003-12-04 2006-12-20 保诚电子工程有限公司 Battery cell voltage and impedance measuring circuit
CN101371147A (en) * 2006-01-12 2009-02-18 日产自动车株式会社 Voltage detection device and voltage detection method
CN101686477A (en) * 2008-09-24 2010-03-31 华为技术有限公司 Method for detecting frequency errors of sampling clock, device and system thereof
CN201509235U (en) * 2009-09-25 2010-06-16 宇龙计算机通信科技(深圳)有限公司 Headphone detection circuit of mobile terminal and mobile terminal thereof
CN202196148U (en) * 2011-08-15 2012-04-18 东莞市立迪电子科技有限公司 Automatic deduction relevance resistance circuit of a circuit board
CN103293488A (en) * 2012-02-28 2013-09-11 鸿富锦精密工业(武汉)有限公司 Power supply testing system
CN104734714A (en) * 2015-03-18 2015-06-24 西北核技术研究所 Signal conditioning method and signal conditioning system of unipolar fast pulse in radiation detection
KR101619477B1 (en) * 2014-12-09 2016-05-10 현대오트론 주식회사 Apparatus and method for measuring isolation resistance using oscillator
CN107179441A (en) * 2017-04-28 2017-09-19 上海与德科技有限公司 The detection circuit of mobile terminal and the module classification method based on detection circuit

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2432556Y (en) * 2000-06-16 2001-05-30 侯云才 Current-collecting pipe liquid flow sensor
CN2594086Y (en) * 2003-01-13 2003-12-24 徐俊亚 Precisive inspecting alarm for status of automotive electric power system
CN1592130A (en) * 2003-08-25 2005-03-09 夏普株式会社 CDMA receiving apparatus, method, program and recording medium
CN1882843A (en) * 2003-12-04 2006-12-20 保诚电子工程有限公司 Battery cell voltage and impedance measuring circuit
CN101371147A (en) * 2006-01-12 2009-02-18 日产自动车株式会社 Voltage detection device and voltage detection method
CN101686477A (en) * 2008-09-24 2010-03-31 华为技术有限公司 Method for detecting frequency errors of sampling clock, device and system thereof
CN201509235U (en) * 2009-09-25 2010-06-16 宇龙计算机通信科技(深圳)有限公司 Headphone detection circuit of mobile terminal and mobile terminal thereof
CN202196148U (en) * 2011-08-15 2012-04-18 东莞市立迪电子科技有限公司 Automatic deduction relevance resistance circuit of a circuit board
CN103293488A (en) * 2012-02-28 2013-09-11 鸿富锦精密工业(武汉)有限公司 Power supply testing system
KR101619477B1 (en) * 2014-12-09 2016-05-10 현대오트론 주식회사 Apparatus and method for measuring isolation resistance using oscillator
CN104734714A (en) * 2015-03-18 2015-06-24 西北核技术研究所 Signal conditioning method and signal conditioning system of unipolar fast pulse in radiation detection
CN107179441A (en) * 2017-04-28 2017-09-19 上海与德科技有限公司 The detection circuit of mobile terminal and the module classification method based on detection circuit

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Spectral efficiency of random CDMA with constant envelope modulation;Ralf Müller;《International Journal of Electronics and Communications》;20110831;第65卷(第8期);全文 *
智能调度中心架构研究;温柏坚;《广东电力》;20120531;第25卷(第5期);全文 *

Also Published As

Publication number Publication date
CN109085408A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
AU2017215235B2 (en) Adapter and charging control method
US10379732B2 (en) Method for adjusting screen brightness and user terminal
KR101563422B1 (en) Non-linear control for a voltage regulator
JP6442081B2 (en) Application recommendation method, server, and computer-readable medium
CN103281436B (en) Method for adjusting brightness of mobile terminal screen and mobile terminal
US9753827B2 (en) Method and apparatus for identifying external device
EP2901244B1 (en) Low dropout regulator with hysteretic control
EP2215821B1 (en) Method and apparatus for alert control
EP2887492A2 (en) Method and apparatus for charging a battery
KR20180061279A (en) Loudspeaker protection circuits and methods
US8332668B2 (en) Method and system for discovering a power source on a peripheral bus
JP5351872B2 (en) Method for predicting remaining capacity and execution time of battery device
JP2015233308A (en) Battery power monitoring and audio signal attenuation
US8217639B2 (en) System for supplying and receiving power, power supply device and method thereof
KR101484830B1 (en) Portable electronic device power manager with current limit feedback control loop modification for stabilizing an external power supply
CN1894944B (en) Accessory identification algorithm for system connector
US9668076B2 (en) Microphone headset failure detecting and reporting
US8154245B2 (en) Systems and methods for charging a chargeable USB device
JP2656734B2 (en) Optical receiving circuit
US8041056B2 (en) Voltage supply circuit and microphone unit comprising the same
US9153999B2 (en) Circuits and methods for automatic power source detection
JP3318554B2 (en) USB (Universal Serial Bus) Cable and Method of Charging External Device with USB Cable
US20160164324A1 (en) Portable device capable of controlling output characteristics of adaptor, and corresponding method
US7046082B2 (en) Electronic device having sound output module
US9866055B2 (en) Automatic scheme to detect multi-standard charger types

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant