CN113541277B - Control chip and bluetooth headset charging device - Google Patents
Control chip and bluetooth headset charging device Download PDFInfo
- Publication number
- CN113541277B CN113541277B CN202111085433.8A CN202111085433A CN113541277B CN 113541277 B CN113541277 B CN 113541277B CN 202111085433 A CN202111085433 A CN 202111085433A CN 113541277 B CN113541277 B CN 113541277B
- Authority
- CN
- China
- Prior art keywords
- module
- switch
- hall
- state
- control
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0047—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0047—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
- H02J7/0048—Detection of remaining charge capacity or state of charge [SOC]
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0068—Battery or charger load switching, e.g. concurrent charging and load supply
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The application provides a control chip, bluetooth headset charging device, this control chip includes: the control module is connected with the key detection circuit and the first drive circuit of the first pin, and connected with the Hall detection circuit and the second drive circuit of the second pin; the control module is used for enabling the key detection circuit and the first driving circuit corresponding to the first light emitting diode module in each non-overlapping time period of the first period, and enabling the Hall detection circuit and the second driving circuit corresponding to the second light emitting diode module in each non-overlapping time period of the second period. This application accessible two pins realize that key-press detects, hall switch detects and the lighting of charge-discharge warning light, are favorable to saving control chip's cost.
Description
Technical Field
The application relates to the technical field of electronics, especially, relate to a control chip and bluetooth headset charging device.
Background
The bluetooth headset charging bin is a device for charging a wireless bluetooth headset. At present, common bluetooth headset storehouse of charging is by the button, hall switch, the electric quantity pilot lamp that charges, the electric quantity pilot lamp that discharges, bluetooth headset storehouse of charging control chip, parts such as battery are constituteed. When designing bluetooth headset storehouse control chip that charges usually, button detection, hall switch detect, charge pilot lamp and discharge the pilot lamp and all can occupy a pin respectively, and the cost of chip package can't obtain effectual optimization, and system's cost also increases thereupon.
Disclosure of Invention
The application provides a control chip and bluetooth headset charging device to the problem that traditional control chip is with high costs is solved in phase.
In a first aspect, an embodiment of the present application provides a control chip, which is applied to a charging device of a bluetooth headset, and includes: the device comprises a control module, a key detection circuit, a Hall detection circuit, a first drive circuit, a second drive circuit, a first pin and a second pin;
the control module is respectively connected with a control port of the key detection circuit, a control port of the first drive circuit, a control port of the second drive circuit and a control port of the Hall detection circuit, a first end of the key detection circuit and a first end of the first drive circuit are connected with the first pin, the first pin is used for connecting the first light-emitting diode module and the key, the first end of the Hall detection circuit and the first end of the second drive circuit are connected with the second pin, and the second pin is used for connecting the second light-emitting diode module and the Hall switch;
the control module is used for enabling the key detection circuit in a first time period of each first cycle and detecting the state of the key through the key detection circuit;
the control module is further configured to enable the first driving circuit in a second time period of each first cycle, and control the first driving circuit to light the first light emitting diode module when the first driving circuit is in an enabled state and the charging device is in a first state;
the control module is further used for enabling the Hall detection circuit in a third time period of each second period, and detecting the state of the Hall switch through the Hall detection circuit;
the control module is further configured to enable the second driving circuit in a fourth time period of each second period, and control the second driving circuit to light the second light emitting diode module when the second driving circuit is in an enabled state and the charging device is in the second state;
wherein the first time period and the second time period do not overlap, and the third time period and the fourth time period do not overlap; the first state is any one of a charged state and a discharged state, and the second state is the other one of the charged state and the discharged state except for the first state.
In a second aspect, the present application provides a charging apparatus for a bluetooth headset, including the control chip according to the first aspect.
It can be seen that, in the embodiment of the present application, the key detection circuit and the first driving circuit share one pin, the hall detection circuit and the second driving circuit share one pin, and the control module respectively enables the key detection circuit and the first driving circuit at different time periods of the first period, so that the key detection and the lighting control of the first light emitting diode module can be realized through one pin, and the hall detection circuit and the second driving circuit can be respectively enabled at different time periods of the second period, so that the hall detection and the lighting control of the second light emitting diode module can be realized through one pin. That is to say, control chip accessible two pins realize that key-press detects, hall switch detect and the lighting of charge-discharge warning light, are favorable to saving control chip's cost.
Drawings
FIG. 1 is a schematic circuit diagram of a control chip provided in the present application;
FIG. 2 is a schematic circuit diagram of a key detection circuit and a first driving circuit provided in the present application;
FIG. 3 is a schematic circuit diagram of a Hall detection circuit and a second driving circuit provided in the present application;
FIG. 4 is a schematic circuit diagram of another key detect circuit and a first driver circuit provided in the present application;
FIG. 5 is a schematic circuit diagram of another Hall detection circuit and a second driving circuit provided in the present application;
FIG. 6 is a circuit schematic of another key detect circuit provided herein;
FIG. 7 is a circuit schematic of another first driver circuit provided herein;
FIG. 8 is a circuit schematic of another second driver circuit provided in the present application;
FIG. 9 is a schematic circuit diagram of another control chip provided in the present application;
FIG. 10 is a graph illustrating an example of a distribution of first time periods and second time periods in a first cycle provided herein;
fig. 11 is a diagram illustrating a distribution example of the third period and the fourth period in the second period provided in the present application.
The present application is further described with reference to the following drawings and examples.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is to be understood that the terminology used in the embodiments of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
Before describing specific embodiments, some terms in the embodiments of the present application are explained as follows:
the Hall switch detects that the Hall switch can convert the information of opening and closing the cover of the Bluetooth headset charging device (such as a Bluetooth headset charging bin) into high and low level information and output the high and low level information to a control chip in the Bluetooth headset charging device, and the control chip detects that the level information of the Hall switch is effective level information and can enable the Bluetooth headset charging device to be switched to a discharging state.
Example 1:
referring to fig. 1, the present embodiment provides a control chip applied to a charging device of a bluetooth headset, including: the device comprises a control module, a key detection circuit, a Hall detection circuit, a first drive circuit, a second drive circuit, a first pin and a second pin;
the control module is respectively connected with a control port of the key detection circuit, a control port of the first drive circuit, a control port of the second drive circuit and a control port of the Hall detection circuit, a first end of the key detection circuit and a first end of the first drive circuit are connected with the first pin, the first pin is used for connecting the first light-emitting diode module and the key, the first end of the Hall detection circuit and the first end of the second drive circuit are connected with the second pin, and the second pin is used for connecting the second light-emitting diode module and the Hall switch;
the control module is used for enabling the key detection circuit in a first time period of each first cycle and detecting the state of the key through the key detection circuit;
the control module is further configured to enable the first driving circuit in a second time period of each first cycle, and control the first driving circuit to light the first light emitting diode module when the first driving circuit is in an enabled state and the charging device is in a first state;
the control module is further used for enabling the Hall detection circuit in a third time period of each second period, and detecting the state of the Hall switch through the Hall detection circuit;
the control module is further configured to enable the second driving circuit in a fourth time period of each second period, and control the second driving circuit to light the second light emitting diode module when the second driving circuit is in an enabled state and the charging device is in the second state;
wherein the first time period and the second time period do not overlap, and the third time period and the fourth time period do not overlap; the first state is any one of a charged state and a discharged state, and the second state is the other one of the charged state and the discharged state except for the first state.
The first period and the second period may overlap or not overlap, and are not particularly limited herein.
In other words, only one of the two circuits sharing one pin in the same period is enabled, and the circuit which is not enabled is in an invalid state by default and cannot work. For example, the key detection circuit is enabled during the first time period, and the first driving circuit is in an inactive state (i.e., the first driving circuit is turned off), whereas the key detection circuit is enabled during the second time period and is in an inactive state. And enabling and disabling the Hall detection circuit and the second driving circuit in the second period.
In a specific implementation, the control chip may further include a third pin, where the third pin is used to connect to a charging adapter, and the control module is connected to the third pin, and determines whether the charging device is in a charging state by detecting whether the third pin has the charging adapter connected thereto; the control module may further determine whether the charging device is in a discharging state according to the detected state of the key, or the control module may determine whether the charging device is in the discharging state according to the detected state of the hall switch, specifically, when the control module detects that the third pin is not connected to the adapter, and the key is in a first preset state (for example, when the key is pressed), it determines that the charging device is in the discharging state, or when the control module detects that the third pin is not connected to the adapter, and the hall switch is in the preset state (for example, the output voltage of the hall switch is within a preset threshold range), it determines that the charging device is in the discharging state.
The control module can periodically control the first driving circuit or the second driving circuit within a specific time period based on the state of the charging device to light the first light emitting diode module or the second light emitting diode module. Since the first and second led modules are periodically turned on in the corresponding states, the user can see that the led modules are continuously turned on under the persistence of vision effect of the human. For example, taking the first state as a charging state and the second state as a discharging state as an example, when the charging device is in the charging state, the first driving circuit lights the first light emitting diode module in the second time period of each first cycle, that is, when the charging device is in the charging state, the user may see that the first light emitting diode module is in the continuously lit state, the first light emitting diode module functions as a charging indicator, and when the charging device is in the discharging state, the second driving circuit lights the second light emitting diode module in the fourth time period of each second cycle, that is, when the charging device is in the discharging state, the user may see that the second light emitting diode module is in the continuously lit state, and the second light emitting diode module functions as a discharging indicator.
In the specific implementation, the control module can always store the state result of the charging device determined for the last time, and the control module can determine whether to control the first driving circuit or the second driving circuit to light the corresponding light emitting diode module through the stored state of the charging device in the second time period and the fourth time period.
It can be seen that, in the embodiment of the present application, the key detection circuit and the first driving circuit share one pin, the hall detection circuit and the second driving circuit share one pin, and the control module respectively enables the key detection circuit and the first driving circuit at different time periods of the first period, so that the key detection and the lighting control of the first light emitting diode module can be realized through one pin, and the hall detection circuit and the second driving circuit are respectively enabled at different time periods of the second period, so that the hall detection and the lighting control of the second light emitting diode module can be realized through one pin. That is to say, control chip accessible two pins realize that key-press detects, hall switch detect and the lighting of charge-discharge warning light, are favorable to saving control chip's cost.
In one possible example, referring to fig. 2, the key detection circuit includes: the key detection module, the first comparator module and the first switch module; the first drive circuit comprises a second switch module; the control module is connected with the control port of the key detection module, the control port of the first switch module and the control port of the second switch module; the input voltage of the first end of the first switch module is a first input voltage, the input voltage of the first end of the second switch module is a second input voltage, the second end of the first switch module, the second end of the second switch module and the first input end of the first comparator module are combined and then connected with the first pin, the input voltage of the second input end of the first comparator module is a third input voltage, and the output end of the first comparator module is connected with the first end of the key detection module;
the key detection module is used for determining the state of the key according to the output of the first comparator module, and the control module is used for enabling the key detection module in the first time period, controlling the first switch module to be conducted and detecting the state of the key through the key module; the control module is further configured to enable the second switch module in the second time period, and control the second switch module to be turned on when the second switch module is in an enabled state and the charging device is in the first state.
In a specific implementation, the switch module may be a MOS transistor (field effect transistor) or the like, and the comparator module may be a voltage comparator.
When the control module enables the key detection module and controls the first switch module to be switched on in a first time period, the control module can also control the second switch module to be switched off at the same time so as to avoid the influence of second input voltage on key detection; correspondingly, when the control module controls the second switch module to be switched on in the second time period, the control module can also simultaneously control the first switch module to be switched off so as to avoid the first input voltage error from influencing the working state of the first light emitting diode module.
In the first time period, when the first switch module is turned on, the voltage of the first input end of the first comparator module is pulled to the voltage value of the first input voltage, at this time, if the key is pressed, the voltage of the first input end of the first comparator module is pulled to be lower than the first input voltage, by setting the value of the third input voltage, whether the key is pressed or not can be judged according to the output result of the first comparator module, for example, the value of the third input voltage is set to be equal to the value of the first input voltage, after the key is pressed, the output voltage of the first comparator module can be changed, and the key detection module can determine the state of the key according to the output voltage of the first comparator module.
In the second time period, when the second switch module is turned on, in order to ensure that the first light emitting diode module is lighted, the value of the second input voltage should be set to be greater than the turn-on voltage of the first light emitting diode module.
Therefore, in this example, the key detection circuit and the first driving circuit multiplex the first pin in a time-sharing manner, and the key detection function and the lighting control of one indicator lamp can be realized through one pin, which is beneficial to saving the cost of a control chip.
In one possible example, referring to fig. 3, the hall detection circuit includes: the second driving circuit comprises a third switch module; the control module is connected with a control port of the Hall detection module and a control port of the third switch module; the input voltage of the first end of the third switch module is a fourth input voltage, the second end of the third switch module and the first input end of the second comparator module are combined and then connected with the second pin, the input voltage of the second input end of the second comparator module is a fifth input voltage, and the output end of the second comparator module is connected with the first end of the Hall detection module;
the Hall detection module is used for determining the state of the Hall switch according to the output of the second comparator module, the control module is used for enabling the Hall detection module in the third time period, and the state of the Hall switch is detected through the Hall detection module; the control module is further configured to enable the third switch module in the fourth time period, and control the third switch module to be turned on when the third switch module is in an enabled state and the charging device is in the second state.
When the control module enables the Hall detection module in the third time period, the control module can also control the third switch module to be switched off at the same time so as to avoid the influence of the fourth input voltage on the detection of the Hall switch.
In a specific implementation, for a bluetooth headset charging device such as a bluetooth headset charging bin, the hall switch outputs a specific voltage value according to states of opening and closing the charging bin, for example, when the charging bin is opened, the output voltage of the hall switch is a first preset voltage, and when the charging bin is closed, the output voltage of the hall switch is a second preset voltage. Based on the chip setting shown in fig. 3, by setting the fifth input voltage value, the hall detection module may determine the output voltage of the hall switch (i.e., determine the state of the hall switch) according to the output voltage of the second comparator module in the third time period, specifically, the fifth input voltage value may be set to a value between the first preset voltage and the second preset voltage, that is, the fifth input voltage value is greater than the smaller voltage value of the first preset voltage and the second preset voltage and is less than the larger voltage value of the first preset voltage and the second preset voltage.
Therefore, in this example, the hall detection circuit and the second driving circuit multiplex the second pin in a time-sharing manner, and the hall switch detection function and the lighting control of one indicator lamp can be realized through one pin, which is beneficial to saving the cost of the control chip.
In one possible example, referring to fig. 4, the anode of the first led module and the first end of the key are combined and then connected to the first pin, and the cathode of the first led module and the second end of the key are grounded; the voltage value of the first input voltage is smaller than the conduction voltage value of the first light emitting diode module, and the voltage value of the second input voltage is larger than the conduction voltage value of the first light emitting diode module.
The voltage value of the first input voltage is smaller than the turn-on voltage of the first light emitting diode module, namely, in the first time period of each cycle, the control module enables the first switch module, and when the voltage of the first pin is pulled to the voltage value of the first input voltage, the first switch module is not affected, so that the first light emitting diode module is lighted wrongly.
The voltage value of the second input voltage is greater than the conduction voltage value of the first light emitting diode module, so that it can be ensured that the first driving circuit can light the first light emitting diode module if the charging device is in the first state in the second time period of each first cycle.
Therefore, in this example, the voltage value of the first input voltage is smaller than the turn-on voltage value of the first light emitting diode module, and the voltage value of the second input voltage is larger than the turn-on voltage value of the first light emitting diode module, which is beneficial to avoiding the first input voltage causing the first light emitting diode module to be lighted incorrectly in the first time period of the first cycle, and improving the reliability of the system operation.
In one possible example, referring to fig. 5, the control chip further includes a first resistor, a first end of the first resistor, a first input end of the second comparator module, and a second end of the third switch module are combined and then connected to the second pin, and a second end of the first resistor is grounded; the output end of the Hall switch is connected with the first end of a second resistor, the second end of the second resistor and the anode of the second light-emitting diode module are combined and then connected with the second pin, and the cathode of the second light-emitting diode module is grounded; the resistance value of the first resistor, the resistance value of the second resistor and the output voltage value of the Hall switch meet the following conditions: and in the third time period, under the action of the output voltage of the Hall switch, the second light emitting diode module is in a non-conduction state.
For the hall switch, the output voltage of the hall switch during operation may be two different voltage values (a first preset voltage and a second preset voltage), and in the third time period, under the action of the output voltage of the hall switch, the state of the second light emitting diode module being non-conductive means: no matter the output voltage of the Hall switch is the first preset voltage or the second preset voltage, the second light-emitting diode module cannot be conducted in the third time period.
Because the output end of the hall switch is not directly connected with the second pin but connected with the second resistor, the fourth input voltage in the second driving circuit can not influence the output of the hall switch under the isolation action of the second resistor.
In this example, the output end of the hall switch is connected to the second resistor, and the resistance value of the first resistor, the resistance value of the second resistor and the output voltage value of the hall switch satisfy the following conditions: in the third time period, under the action of the output voltage of the Hall switch, the second light emitting diode module is in a non-conduction state, so that the working reliability of the system is ensured.
In one possible example, the resistance value of the first resistor, the resistance value of the second resistor, and the output voltage value of the hall switch satisfy the following condition:
V*R1/(R1+R2)<Vth;
wherein, V is the output voltage of the hall switch, R1 is the resistance value of the first resistor, R2 is the resistance value of the second resistor, and Vth is the on-voltage value of the second led module.
Specifically, the output voltage V of the first hall switch may include: the voltage value of the first preset voltage Vh is greater than that of the second preset voltage Vl. Then Vh and Vl should satisfy the following condition:
Vh*R1/(R1+R2)<Vth;
Vl*R1/(R1+R2)<Vth;
in addition, the output voltage of the hall switch, the resistance value of the first resistor, the resistance value of the second resistor, and the voltage value of the fifth input voltage should specifically satisfy the following conditions:
Vref<Vh*R1/(R1+R2);
Vref>Vl*R1/(R1+R2);
where Vref is the voltage value of the fifth input voltage. Through the setting of each voltage value and resistance value, the function of detecting the state of the Hall switch can be realized, and the mutual influence between the Hall detection circuit and the second drive circuit can be avoided.
In this example, the resistance value of the first resistor, the resistance value of the second resistor, and the output voltage value of the hall switch satisfy specific conditions, which is beneficial to ensuring that the output voltage of the hall switch does not erroneously affect the lighting of the second light emitting diode in the third time period.
In one possible example, referring to fig. 6, the key detection circuit further includes a third resistor, the first end of the first switch module is connected to the first end of the third resistor, and the first end of the third resistor is connected to the first power supply module.
In specific implementation, the key may be a switch with one end grounded and the other end connected with the first pin, when the key is pressed, the switch is closed, at this time, the voltage of the first pin is pulled down to the ground, and current is limited by adding a third resistor, so that the first power supply module is prevented from being pulled down to the ground after the key is pressed.
Therefore, in this example, the third resistor is disposed between the first power supply module and the first switch module, which is beneficial to ensuring the circuit safety.
In one possible example, referring to fig. 7, the first driving circuit further includes a first current source, and an output port of the first current source is connected to the first terminal of the second switch module.
Therefore, in this example, the first end of the second switch module is connected to the constant current source, which is beneficial to ensuring that the driving current is controllable when the first driving circuit works, and improving the working reliability of the system.
In one possible example, referring to fig. 8, the second driving circuit further includes a second current source, an output port of which is connected to the first terminal of the third switching module.
Therefore, in this example, the first end of the third switch module is connected to the constant current source, which is beneficial to ensuring that the driving current is controllable when the second driving circuit works, and improving the working reliability of the system.
The following description is made with reference to specific examples.
Referring to fig. 9, the control chip in fig. 9 includes: the device comprises a control module, a KEY detection module, a HALL detection module, a first comparator C1, a second comparator C2, a first switch S1, a second switch S2, a third switch S3, a first current source I1, a second current source I2, a first resistor R01, a second resistor R02, a third resistor R03, a first pin (illustrated as a pin KEY) and a second pin (illustrated as a pin HALL);
wherein, the control module is respectively connected with the control port of the key detection module, the control port of the hall detection module, the control port of the first switch S1, the control port of the second switch S2, and the control port of the third switch S3, the first end of the first switch S1 is connected with the first end of the third resistor R03, the input voltage of the second end of the third resistor R03 is VCC2, the first end of the second switch S2 is connected with the first current source I1, the output voltage of the first current source I1 is VCC1, the first end of the third switch S3 is connected with the second current source I2, the output voltage of the second current source I2 is VCC3, the first end of the key detection module is connected with the output end of the first comparator C1, the first input end of the first comparator C1, the second end of the first switch S1, and the second end of the second switch S2 are connected with the first pin after being combined, the first end of the hall detection module is connected with the output end of the second comparator C2, a first input end of the second comparator C2, a second end of the third switch S3, and a first end of the first resistor R01 are connected to a second pin after being combined, an input voltage of a second input end of the first comparator C1 is Vref1, and an input voltage of a second input end of the second comparator C2 is Vref 2;
the first pin KEY is used for connecting the first light emitting diode D1 and the KEY, the second pin HALL is used for connecting the second light emitting diode D2 and the HALL switch, specifically, the anode of the first light emitting diode D1 and the first end of the KEY are combined and then connected with the first pin KEY, the cathode of the first light emitting diode D1 is grounded, the second end of the KEY is grounded, the output end of the HALL switch is connected with the first end of the second resistor R02, the second end of the second resistor R02 and the anode of the second light emitting diode D2 are combined and then connected with the second pin HALL, and the cathode of the second light emitting diode D2 is grounded.
Taking the first state as a charging state and the second state as a discharging state, that is, the first light emitting diode D1 is a charging lamp and the second light emitting diode D2 is a discharge lamp as an example, the operation flow of each component of the control chip is as follows:
the minimum on-state voltage of the first led D1 is Vth1, the minimum on-state voltage of the second led D2 is Vth, the voltage of the first pin KEY is V1, and the voltage of the second pin HALL is V2.
The KEY detection function and the charge lamp multiplexing timing on the first pin KEY, that is, the distribution of the first period (T1 period) and the second period (T2 period) in the first period T1 are as shown in fig. 10, and the high level is taken as the enable state and the low level is taken as the disable state as an example.
During the time period t1, the control module enables the first switch S1 and the key detect module, disables the second switch S2, i.e., turns off the first driver circuit, and enables the key detect circuit. During the time period t1, the first pin KEY is pulled up to VCC2, and VCC2< Vth1, at which time the charge lamp will not be illuminated. If a KEY is pressed, the voltage V1 on the first pin KEY is pulled to be less than Vref1, and the KEY detection circuit detects the KEY press.
During the time period t2, the control module enables the second switch S2, disables the first switch S1 and the key detect module, i.e., turns off the key detect circuit, and enables the first driver circuit. During the time period t2, when the constant current source I1 is turned on, the first pin KEY is driven to the high level VCC1, and VCC1> Vth1, and the first light emitting diode D1 (i.e., the charging lamp) is turned on. When the charging device is in the charging state, the first light emitting diode D1 is turned on once every t2 time period of the first cycle, and the human eye sees that the first light emitting diode D1 is in a continuously turned on state due to the human persistence effect.
The HALL detection function on the second pin HALL and the distribution of the third period (T3 period described below) and the fourth period (T4 period described below) in the second period T2, which is the discharge lamp multiplexing timing, are illustrated in fig. 11, and the high level is taken as the enable state and the low level is taken as the disable state, for example.
During the time period t4, the control module enables the third switch S3 to deactivate the Hall sensing module, i.e., turn off the Hall sensing circuit and enable the second drive circuit. The second driving circuit will drive the voltage of the second pin HALL to a high level, and VCC3> Vth, and the second light emitting diode D2 (i.e. the discharge lamp) lights up. When the first resistor R01 and the second resistor R02 are large enough, and the current flowing through the first resistor R01 and the second resistor R02 is much smaller than the current flowing through the second led D2, the hall switch output voltage V3 hardly affects the voltage of V2, and does not affect the lighting of the second led D2. And the hall switch output voltage V3 is not affected by V2 due to the isolation of the second resistor R02. When the charging device is in the discharging state, the second light emitting diode D2 is turned on once every time period t4 of the second period, and the human eye sees that the second light emitting diode D2 is in a state of being constantly turned on due to the human persistence of vision.
During the time period t3, the control module deactivates the third switch S3, enabling the HALL sensing module, i.e., enabling the HALL sensing circuit, turning off the second drive circuit, while the second pin HALL is driven only by the HALL switch. In the time period t3, the second comparator C2 compares the high and low level information output by the hall switch and outputs the information to the hall detection module. When the hall switch is driven to the high level VH, the resistances of the first resistor R01 and the second resistor R02 are selected to make V2< Vth, the second light emitting diode D2 is not turned on, the current of the second light emitting diode D2 is very small, the voltage of V2 is hardly affected by the second light emitting diode D2, and at this time, V2= VH × R01/(R01+ R02). The reference level (i.e., the input voltage at the second input terminal) Vref2< VH × R01/(R01+ R02) of the second comparator C2, and when the hall switch output voltage is VH, the second comparator C2 outputs a high level. When the hall switch is driven to the low level VL, the second light emitting diode D2 is also not turned on, and V2= VL R01/(R01+ R02). The reference level Vref2> VL R01/(R01+ R02) of the second comparator C2, and when the hall switch output voltage is VL, the second comparator C1 outputs a low level.
Example 2:
the embodiment provides a charging device for a bluetooth headset, which comprises the control chip as described in embodiment 1.
Therefore, in the bluetooth headset charging device that this application provided, two pins of control chip accessible realize that key detection, hall switch detect and the illumination of charge-discharge warning light, are favorable to saving control chip and bluetooth headset charging device's cost.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.
Claims (5)
1. The utility model provides a control chip, is applied to bluetooth headset's charging device which characterized in that includes: the device comprises a control module, a key detection circuit, a Hall detection circuit, a first drive circuit, a second drive circuit, a first pin and a second pin;
the control module is respectively connected with a control port of the key detection circuit, a control port of the first drive circuit, a control port of the second drive circuit and a control port of the Hall detection circuit, a first end of the key detection circuit and a first end of the first drive circuit are connected with the first pin, the first pin is used for connecting the first light-emitting diode module and the key, the first end of the Hall detection circuit and the first end of the second drive circuit are connected with the second pin, and the second pin is used for connecting the second light-emitting diode module and the Hall switch;
the control module is used for enabling the key detection circuit in a first time period of each first cycle and detecting the state of the key through the key detection circuit;
the control module is further configured to enable the first driving circuit in a second time period of each first cycle, and control the first driving circuit to light the first light emitting diode module when the first driving circuit is in an enabled state and the charging device is in a first state;
the control module is further used for enabling the Hall detection circuit in a third time period of each second period, and detecting the state of the Hall switch through the Hall detection circuit;
the control module is further configured to enable the second driving circuit in a fourth time period of each second period, and control the second driving circuit to light the second light emitting diode module when the second driving circuit is in an enabled state and the charging device is in the second state;
wherein the first time period and the second time period do not overlap, and the third time period and the fourth time period do not overlap; the first state is any one of a charged state and a discharged state, and the second state is the other one of the charged state and the discharged state except for the first state;
wherein, the button detection circuitry includes: the key detection module, the first comparator module and the first switch module; the first drive circuit comprises a second switch module; the control module is connected with the control port of the key detection module, the control port of the first switch module and the control port of the second switch module; the input voltage of the first end of the first switch module is a first input voltage, the input voltage of the first end of the second switch module is a second input voltage, the second end of the first switch module, the second end of the second switch module and the first input end of the first comparator module are combined and then connected with the first pin, the input voltage of the second input end of the first comparator module is a third input voltage, and the output end of the first comparator module is connected with the first end of the key detection module; the key detection module is used for determining the state of the key according to the output of the first comparator module, and the control module is used for enabling the key detection module in the first time period, controlling the first switch module to be conducted and detecting the state of the key through the key detection module; the control module is further configured to enable the second switch module in the second time period, and control the second switch module to be turned on when the second switch module is in an enabled state and the charging device is in the first state;
the hall detection circuit includes: the second driving circuit comprises a third switch module; the control module is connected with a control port of the Hall detection module and a control port of the third switch module; the input voltage of the first end of the third switch module is a fourth input voltage, the second end of the third switch module and the first input end of the second comparator module are combined and then connected with the second pin, the input voltage of the second input end of the second comparator module is a fifth input voltage, and the output end of the second comparator module is connected with the first end of the Hall detection module; the Hall detection module is used for determining the state of the Hall switch according to the output of the second comparator module, the control module is used for enabling the Hall detection module in the third time period, and the state of the Hall switch is detected through the Hall detection module; the control module is further configured to enable the third switch module in the fourth time period, and control the third switch module to be turned on when the third switch module is in an enabled state and the charging device is in the second state;
the anode of the first light-emitting diode module and the first end of the key are combined and then connected with the first pin, and the cathode of the first light-emitting diode module and the second end of the key are grounded; the voltage value of the first input voltage is smaller than the conduction voltage value of the first light emitting diode module, and the voltage value of the second input voltage is larger than the conduction voltage value of the first light emitting diode module;
the control chip further comprises a first resistor, a first end of the first resistor, a first input end of the second comparator module and a second end of the third switch module are combined and then connected with the second pin, and a second end of the first resistor is grounded; the output end of the Hall switch is connected with the first end of a second resistor, the second end of the second resistor and the anode of the second light-emitting diode module are combined and then connected with the second pin, and the cathode of the second light-emitting diode module is grounded; the resistance value of the first resistor, the resistance value of the second resistor and the output voltage value of the Hall switch meet the following conditions: in the third time period, under the action of the output voltage of the Hall switch, the second light emitting diode module is in a non-conduction state; the second resistor is used for isolating the Hall switch from the second driving circuit;
wherein the resistance value of the first resistor, the resistance value of the second resistor and the output voltage value of the Hall switch satisfy the following conditions:
V*R1/(R1+R2)<Vth;
wherein, V is the output voltage of the hall switch, R1 is the resistance value of the first resistor, R2 is the resistance value of the second resistor, and Vth is the on-voltage value of the second led module;
wherein, the output voltage of the Hall switch includes: the voltage value of the first preset voltage Vh is greater than that of the second preset voltage Vl;
wherein Vh and Vl satisfy the following conditions:
Vh*R1/(R1+R2)<Vth;
Vl*R1/(R1+R2)<Vth;
the Vh and Vl, the resistance value of the first resistor, the resistance value of the second resistor, and the voltage value of the fifth input voltage satisfy the following conditions:
Vref<Vh*R1/(R1+R2);
Vref>Vl*R1/(R1+R2);
wherein Vref is a voltage value of the fifth input voltage.
2. The control chip of claim 1, wherein the key detection circuit further comprises a third resistor, the first terminal of the first switch module is connected to the first terminal of the third resistor, and the second terminal of the third resistor is connected to the first power supply module.
3. The control chip of claim 1, wherein the first driving circuit further comprises a first current source, and an output port of the first current source is connected to the first terminal of the second switch module.
4. The control chip of claim 1, wherein the second driving circuit further comprises a second current source, and an output port of the second current source is connected to the first terminal of the third switching module.
5. A charging device for a Bluetooth headset, comprising a control chip according to any one of claims 1 to 4.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111085433.8A CN113541277B (en) | 2021-09-16 | 2021-09-16 | Control chip and bluetooth headset charging device |
CN202210116551.9A CN115833288A (en) | 2021-09-16 | 2021-09-16 | Control chip and related earphone charging device |
PCT/CN2022/115888 WO2023040654A1 (en) | 2021-09-16 | 2022-08-30 | Control chip and bluetooth headset charging device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111085433.8A CN113541277B (en) | 2021-09-16 | 2021-09-16 | Control chip and bluetooth headset charging device |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210116551.9A Division CN115833288A (en) | 2021-09-16 | 2021-09-16 | Control chip and related earphone charging device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113541277A CN113541277A (en) | 2021-10-22 |
CN113541277B true CN113541277B (en) | 2022-01-04 |
Family
ID=78123241
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210116551.9A Pending CN115833288A (en) | 2021-09-16 | 2021-09-16 | Control chip and related earphone charging device |
CN202111085433.8A Active CN113541277B (en) | 2021-09-16 | 2021-09-16 | Control chip and bluetooth headset charging device |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210116551.9A Pending CN115833288A (en) | 2021-09-16 | 2021-09-16 | Control chip and related earphone charging device |
Country Status (2)
Country | Link |
---|---|
CN (2) | CN115833288A (en) |
WO (1) | WO2023040654A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115833288A (en) * | 2021-09-16 | 2023-03-21 | 深圳英集芯科技股份有限公司 | Control chip and related earphone charging device |
CN116528105B (en) * | 2023-07-03 | 2023-10-13 | 紫光同芯微电子有限公司 | Self-starting discharging circuit and charging method for earphone charging bin |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6507173B1 (en) * | 2001-06-22 | 2003-01-14 | 02 Micro International Limited | Single chip power management unit apparatus and method |
US8988902B2 (en) * | 2011-11-15 | 2015-03-24 | Dialog Semiconductor, Inc. | Power converter controller IC having pins with multiple functions |
CN103218336B (en) * | 2013-02-27 | 2016-04-06 | 珠海市杰理科技有限公司 | SD/MMC card and IIC from the opertaing device of machine, its control method and control system |
CN204947669U (en) * | 2015-09-10 | 2016-01-06 | 深圳英集芯科技有限公司 | A kind of pin multiplexing circuit for portable power source |
CN105187971B (en) * | 2015-09-24 | 2019-02-15 | 青岛歌尔声学科技有限公司 | A kind of earphone charging opening device, system and method |
CN211128141U (en) * | 2020-03-17 | 2020-07-28 | 广州由我科技股份有限公司 | Charging bin and Bluetooth headset with headset function controlled through charging bin |
CN212519375U (en) * | 2020-06-24 | 2021-02-09 | 广州由我科技股份有限公司 | Bluetooth headset charging system |
CN112188666A (en) * | 2020-11-06 | 2021-01-05 | 珠海昇生微电子有限责任公司 | Multi-LED driving and multi-key pin multiplexing circuit and control method thereof |
CN112986689B (en) * | 2021-04-20 | 2021-08-06 | 珠海智融科技有限公司 | Detection circuit and method for chip configuration pins |
CN115833288A (en) * | 2021-09-16 | 2023-03-21 | 深圳英集芯科技股份有限公司 | Control chip and related earphone charging device |
-
2021
- 2021-09-16 CN CN202210116551.9A patent/CN115833288A/en active Pending
- 2021-09-16 CN CN202111085433.8A patent/CN113541277B/en active Active
-
2022
- 2022-08-30 WO PCT/CN2022/115888 patent/WO2023040654A1/en unknown
Also Published As
Publication number | Publication date |
---|---|
CN113541277A (en) | 2021-10-22 |
WO2023040654A1 (en) | 2023-03-23 |
CN115833288A (en) | 2023-03-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113541277B (en) | Control chip and bluetooth headset charging device | |
CN104219840B (en) | LED switch color temperature regulation controller and LED drive circuit | |
EA010990B1 (en) | Improved circuitry for portable lighting device and portable rechargeable electronic devices | |
EP2881286B1 (en) | Direction-indication device | |
CN101299287A (en) | Danger warning system with led | |
TWI713280B (en) | Charging power supply circuit for portable electronic device and portable electronic device | |
JP2004122913A (en) | Vehicle lighting fixture | |
US10195991B2 (en) | Abnormality detection device | |
EP3264864B1 (en) | Led drive circuit | |
US11350505B2 (en) | Lighting circuit | |
TWI451650B (en) | Short protection control circuits and related control methods | |
CN103039124B (en) | For the light source of motor vehicles | |
CN107404786B (en) | Lighting device and lighting fixture | |
JP2013189070A (en) | Control device for lighting led and detecting disconnection thereof | |
US8115396B2 (en) | Light emitting diode lamp protecting circuit | |
JP7503177B2 (en) | Lamp Control Equipment | |
CN113708427B (en) | Charging power supply circuit for portable electronic device and portable electronic device | |
CA2919351C (en) | Direction indicator system and direction indicator device | |
CN216901391U (en) | Photosensitive control circuit and electric appliance | |
CN209861212U (en) | Key multiplexing circuit | |
CN215120158U (en) | Charging state detection circuit and electronic device | |
TWI474760B (en) | Led lamp | |
CN202152927U (en) | Flashlight capable of adjusting light | |
CN108207053A (en) | driving circuit | |
JP6221807B2 (en) | LED lighting circuit and charger using the same |
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 |