WO2023040654A1 - Control chip and bluetooth headset charging device - Google Patents

Control chip and bluetooth headset charging device Download PDF

Info

Publication number
WO2023040654A1
WO2023040654A1 PCT/CN2022/115888 CN2022115888W WO2023040654A1 WO 2023040654 A1 WO2023040654 A1 WO 2023040654A1 CN 2022115888 W CN2022115888 W CN 2022115888W WO 2023040654 A1 WO2023040654 A1 WO 2023040654A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
switch
hall
state
control
Prior art date
Application number
PCT/CN2022/115888
Other languages
French (fr)
Chinese (zh)
Inventor
甘静
Original Assignee
深圳英集芯科技股份有限公司
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 深圳英集芯科技股份有限公司 filed Critical 深圳英集芯科技股份有限公司
Publication of WO2023040654A1 publication Critical patent/WO2023040654A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J7/0048Detection of remaining charge capacity or state of charge [SOC]
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0068Battery or charger load switching, e.g. concurrent charging and load supply

Definitions

  • the present application relates to the field of electronic technology, in particular to a control chip and a Bluetooth earphone charging device.
  • the Bluetooth headset charging compartment is a device used to charge the wireless Bluetooth headset.
  • the common Bluetooth headset charging compartment is composed of buttons, Hall switch, charging power indicator, discharging power indicator, Bluetooth headset charging compartment control chip, battery and other components.
  • the button detection, Hall switch detection, charging indicator light and discharge indicator light will each occupy a pin, the cost of chip packaging cannot be effectively optimized, and the system cost will increase accordingly.
  • the application provides a control chip and a Bluetooth earphone charging device, in order to solve the problem of high cost of traditional control chips.
  • an embodiment of the present application provides a control chip, which is applied to a charging device for a Bluetooth headset, including: a control module, a button detection circuit, a Hall detection circuit, a first drive circuit, a second drive circuit, and a first pin and the second pin;
  • the control module is respectively connected to the control port of the key detection circuit, the control port of the first drive circuit, the control port of the second drive circuit and the control port of the Hall detection circuit, and the key detection circuit
  • the first end of the first drive circuit is connected to the first pin, the first pin is used to connect the first light-emitting diode module and the button, and the first end of the Hall detection circuit
  • the first end of the second driving circuit is connected to the second pin
  • the second pin is used to connect the second light emitting diode module and the Hall switch;
  • the control module is used to enable the key detection circuit in the first time period of each first cycle, and detect the state of the key through the key detection circuit;
  • the control module is further configured to enable the first driving circuit in the second time period of each first cycle, and when the first driving circuit is in an enabled state and the charging device is the first In a state, control the first driving circuit to light up the first light-emitting diode module;
  • the control module is further configured to enable the Hall detection circuit in the third time period of each second cycle, and detect the state of the Hall switch through the Hall detection circuit;
  • the control module is further configured to enable the second drive circuit in the fourth time period of each second cycle, and when the second drive circuit is in an enabled state and the charging device is the first In the second state, control the second drive circuit to light up the second light emitting diode module;
  • the first time period does not overlap with the second time period, and the third time period does not overlap with the fourth time period;
  • the first state is any one of a charging state and a discharging state
  • the second state is another one of the charging state and the discharging state except the first state.
  • the present application provides a charging device for a Bluetooth headset, including the control chip as described in the first aspect.
  • the button detection circuit and the first drive circuit share one pin
  • the Hall detection circuit and the second drive circuit share one pin
  • the control module enables The button detection circuit and the first drive circuit, so that the button detection and the lighting control of the first light-emitting diode module can be realized through one pin
  • the Hall detection circuit and the second drive circuit are respectively enabled in different time periods of the second cycle , so that the Hall detection and the lighting control of the second light-emitting diode module can be realized through one pin.
  • the control chip can realize button detection, Hall switch detection, and lighting of the charge and discharge indicator light through two pins, which is beneficial to save the cost of the control chip.
  • Fig. 1 is a schematic circuit diagram of a control chip provided by the present application.
  • Fig. 2 is a circuit schematic diagram of a button detection circuit and a first drive circuit provided by the present application
  • FIG. 3 is a circuit schematic diagram of a Hall detection circuit and a second drive circuit provided by the present application
  • FIG. 4 is a schematic circuit diagram of another key detection circuit and a first drive circuit provided by the present application.
  • FIG. 5 is a circuit schematic diagram of another Hall detection circuit and a second drive circuit provided by the present application.
  • Fig. 6 is the circuit principle diagram of another kind of button detection circuit provided by the present application.
  • FIG. 7 is a circuit schematic diagram of another first driving circuit provided by the present application.
  • FIG. 8 is a schematic circuit diagram of another second drive circuit provided by the present application.
  • Fig. 9 is a schematic circuit diagram of another control chip provided by the present application.
  • Fig. 10 is a distribution example diagram of a first time period and a second time period in a first cycle provided by the present application;
  • Fig. 11 is a distribution example diagram of a third time period and a fourth time period in a second cycle provided by the present application.
  • the Hall switch will convert the information of opening and closing the cover of the Bluetooth headset charging device (such as the Bluetooth headset charging compartment) into high and low level information, and output it to the control chip in the Bluetooth headset charging device, the control chip Detecting that the level information of the Hall switch is effective level information will cause the Bluetooth headset charging device to switch to the discharge state.
  • the Bluetooth headset charging device such as the Bluetooth headset charging compartment
  • the present embodiment provides a control chip, which is applied to a charging device for a Bluetooth headset, including: a control module, a button detection circuit, a Hall detection circuit, a first drive circuit, a second drive circuit, a first pin and the second pin;
  • the control module is respectively connected to the control port of the key detection circuit, the control port of the first drive circuit, the control port of the second drive circuit and the control port of the Hall detection circuit, and the key detection circuit
  • the first end of the first drive circuit is connected to the first pin, the first pin is used to connect the first light-emitting diode module and the button, and the first end of the Hall detection circuit
  • the first end of the second driving circuit is connected to the second pin
  • the second pin is used to connect the second light emitting diode module and the Hall switch;
  • the control module is used to enable the key detection circuit in the first time period of each first cycle, and detect the state of the key through the key detection circuit;
  • the control module is further configured to enable the first driving circuit in the second time period of each first cycle, and when the first driving circuit is in an enabled state and the charging device is the first In a state, control the first driving circuit to light up the first light-emitting diode module;
  • the control module is further configured to enable the Hall detection circuit in the third time period of each second cycle, and detect the state of the Hall switch through the Hall detection circuit;
  • the control module is further configured to enable the second drive circuit in the fourth time period of each second cycle, and when the second drive circuit is in an enabled state and the charging device is the first In the second state, control the second drive circuit to light up the second light emitting diode module;
  • the first time period does not overlap with the second time period, and the third time period does not overlap with the fourth time period;
  • the first state is any one of a charging state and a discharging state
  • the second state is another one of the charging state and the discharging state except the first state.
  • first period and the second period may or may not overlap, which is not specifically limited here.
  • the control module when the control module enables a certain circuit in a certain time period, it also invalidates the circuit that needs to be enabled in another time period of the cycle. Only one of the two circuits of a pin will be enabled, and the unenabled circuit will be in an invalid state by default and cannot work.
  • the key detection circuit when the key detection circuit is enabled in the first time period, the first drive circuit is in an invalid state (that is, the first drive circuit is turned off); otherwise, the first drive circuit is enabled in the second time period, and the key The detection circuit is in an invalid state.
  • the enabling and disabling of the Hall detection circuit and the second driving circuit in the second period are the same.
  • the control chip can also include a third pin, which is used to connect a charging adapter, and the control module is connected to the third pin, and detects whether there is a charging adapter connected to the third pin, thereby Determine whether the charging device is in a charging state; the control module can also determine whether the charging device is in a discharging state according to the detected state of the button, or the control module can determine whether the charging device is in a discharging state according to the detected state of the Hall switch state, specifically, when the control module detects that there is no adapter connected to the third pin and the button is in the first preset state (for example, the button is pressed), it determines that the charging device is in the discharging state, or the control module detects that the third pin If no adapter is connected to the pin, and the Hall switch is in a preset state (for example, the output voltage of the Hall switch is within a preset threshold range), it is determined that the charging device is in a discharging state.
  • a third pin which is used to connect a
  • the control module can periodically control the first driving circuit or the second driving circuit within a specific period of time to light up the first LED module or the second LED module. Since the first LED module and the second LED module are periodically turned on in corresponding states, the user will see that the LED modules are continuously lit under the effect of persistence of vision.
  • the first driving circuit lights up the first LED module in the second time period of each first cycle, That is, when the charging device is in the charging state, the user will see that the first light-emitting diode module is continuously lit, and the first light-emitting diode module acts as a charging indicator light
  • the second driving circuit Light the second LED module in the fourth period of each second cycle, that is, when the charging device is in the discharge state, the user will see that the second LED module is continuously lit, and the second LED module plays a role in charging.
  • the role of the discharge indicator when the charging device is in the charging state, the first driving circuit lights up the first LED module in the second time period of each first cycle
  • control module can always save the last determined state result of the charging device, and the control module can determine whether it is necessary to control the first driving circuit through the saved state of the charging device in the second time period and the fourth time period Or the second driving circuit turns on the corresponding LED module.
  • the button detection circuit and the first drive circuit share one pin
  • the Hall detection circuit and the second drive circuit share one pin
  • the control module enables The button detection circuit and the first drive circuit, so that the button detection and the lighting control of the first light-emitting diode module can be realized through one pin
  • the Hall detection circuit and the second drive circuit are respectively enabled in different time periods of the second cycle , so as to realize Hall detection and light-on control of the second light-emitting diode module through one pin.
  • the control chip can realize button detection, Hall switch detection, and lighting of the charge and discharge indicator light through two pins, which is beneficial to save the cost of the control chip.
  • the key detection circuit includes: a key detection module, a first comparator module, and a first switch module; the first drive circuit includes a second switch module; the control module is connected to 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 terminal of the first switch module is a first input voltage, the The input voltage of the first terminal of the second switch module is the second input voltage, the second terminal of the first switch module, the second terminal of the second switch module and the first input of the first comparator module After the terminal is combined, it is connected to the first pin, the input voltage of the second input terminal of the first comparator module is the third input voltage, and the output terminal of the first comparator module is connected to the first pin of the button detection module.
  • the key detection module is used to determine the state of the key according to the output of the first comparator module, and the control module is used to enable the key detection module within the first time period and control the The first switch module is turned on, and the state of the button is detected through the button module; the control module is also used to enable the second switch module within the second time period, and switch on the When the module is in the enabled state and the charging device is in the first state, the second switch module is controlled to be turned on.
  • the switch module may be a MOS transistor (field effect transistor), etc.
  • the comparator module may be a voltage comparator.
  • control module when the control module enables the button detection module and controls the first switch module to be turned on in the first time period, it can also control the second switch module to be turned off at the same time, so as to avoid the influence of the second input voltage on the button detection; correspondingly Yes, when the control module controls the second switch module to be turned on within the second time period, it can also control the first switch module to be turned off at the same time, so as to prevent the first input voltage error from affecting the working state of the first LED module.
  • the voltage of the first input terminal of the first comparator module will be pulled to the voltage value of the first input voltage.
  • the second The voltage of the first input terminal of a comparator module will be pulled below the first input voltage, and by setting the value of the third input voltage, it can be judged whether the button is pressed according to the output result of the first comparator module, for example, the third The value of the input voltage is set to be equal to the value of the first input voltage, then after the key is pressed, the output voltage of the first comparator module will change, and the key detection module can determine the value of the key according to the output voltage of the first comparator module state.
  • the value of the second input voltage should be set to be greater than the conduction voltage of the first LED module.
  • the key detection circuit and the first driving circuit time-divisionally multiplex the first pin, and the key detection function and the lighting control of an indicator light can be realized through one pin, which is beneficial to save the cost of the control chip.
  • the Hall detection circuit includes: a Hall detection module, a second comparator module, the second drive circuit includes a third switch module; the control module is connected to the Hall The control port of the Er detection module and the control port of the third switch module; the input voltage of the first terminal of the third switch module is the fourth input voltage, the second terminal of the third switch module and the first terminal of the third switch module The first input terminals of the two comparator modules are combined and then connected to the second pin, the input voltage of the second input terminal of the second comparator module is the fifth input voltage, and the output terminal of the second comparator module Connect the first end of the Hall detection module;
  • the Hall detection module is used to determine the state of the Hall switch according to the output of the second comparator module, and the control module is used to enable the Hall detection module within the third time period, The state of the Hall switch is detected by the Hall detection module; the control module is also configured to enable the third switch module within the fourth time period, and enable the third switch module to enable When the charging device is in the capable state and the charging device is in the second state, the third switch module is controlled to be turned on.
  • control module when the control module enables the Hall detection module within the third time period, it can also control the third switch module to be turned off at the same time, so as to avoid the influence of the fourth input voltage on the Hall switch detection.
  • the Hall switch will output a specific voltage value according to the state of opening and closing the cover of the charging compartment, for example, when the cover is opened, the Hall switch outputs The voltage is the first preset voltage, and when the cover is closed, the output voltage of the Hall switch is the second preset voltage.
  • the Hall detection module can determine the output voltage of the Hall switch according to the output voltage of the second comparator module within the third time period (i.e.
  • the fifth input voltage value can 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 first preset voltage and the second preset voltage
  • the smaller voltage value of the two preset voltages is smaller than the larger voltage value of the first preset voltage and the second preset voltage.
  • the Hall detection circuit and the second drive circuit time-divisionally multiplex the second pin, and the Hall switch detection function and the lighting control of an indicator light can be realized through one pin, which is conducive to saving control chips the cost of.
  • the anode of the first light emitting diode module is combined with the first end of the button and then connected to the first pin, and the cathode of the first light emitting diode module is connected to the first end of the button.
  • the second end of the button is grounded; the voltage value of the first input voltage is less than the conduction voltage value of the first light emitting diode module, and the voltage value of the second input voltage is greater than the conduction voltage value of the first light emitting diode module pass voltage value.
  • the voltage value of the first input voltage is less than the conduction voltage of the first light-emitting diode module, that is, in the first time period of each cycle, the control module enables the first switch module, and the voltage of the first pin is pulled to When the voltage value of the first input voltage is low, it will not affect the first LED module, causing the first LED module to be wrongly lit.
  • the voltage value of the second input voltage is greater than the turn-on voltage value of the first light-emitting diode module, which can ensure that in the second time period of each first cycle, if the charging device is in the first state, the first driving circuit can be activated. Light up the first LED module.
  • the voltage value of the first input voltage is smaller than the conduction voltage value of the first LED module, and the voltage value of the second input voltage is greater than the conduction voltage value of the first LED module, which is beneficial to avoid In the first period of time of the cycle, the first input voltage causes false lighting of the first light-emitting diode module, which improves the reliability of the system operation.
  • the control chip further includes a first resistor, a first terminal of the first resistor, a first input terminal of the second comparator module, and the third switch module
  • the second end of the Hall switch is connected to the second pin after being combined, and the second end of the first resistor is grounded; the output end of the Hall switch is connected to the first end of the second resistor, and the second end of the second resistor is connected to the ground.
  • the two terminals are combined with the positive electrode of the second light emitting diode module and then connected to the second pin, and the negative electrode of the second light emitting diode module is grounded; the resistance value of the first resistor, the resistance of the second resistor The value and the output voltage value of the Hall switch satisfy the following condition: within the third time period, under the action of the output voltage of the Hall switch, the state of the second LED module is non-conductive.
  • the output voltage during its operation may be two different voltage values (the first preset voltage and the second preset voltage), and in the third time period, the Hall switch Under the action of the output voltage of the second light-emitting diode module, the state of the second light-emitting diode module is 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 will not The three time periods are turned on.
  • the output terminal of the Hall switch is not directly connected to the second pin, but is connected to a second resistor, under the isolation effect of the second resistor, the fourth input voltage in the second drive circuit will not be affected.
  • the output of the Hall switch has an effect.
  • the output terminal 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 meet the following conditions: in the third time period, the Hall switch Under the action of the output voltage of the Er switch, the state of the second light-emitting diode module is non-conductive, which is beneficial to ensure the reliability of the system operation.
  • 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 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
  • Vth is the turn-on voltage value of the second LED module.
  • the output voltage V of the first Hall switch may include: a first preset voltage Vh and a second preset voltage Vl, wherein the voltage value of the first preset voltage Vh is greater than the voltage value of the second preset voltage Vl . Then Vh and Vl should meet the following conditions:
  • 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 meet the following conditions:
  • Vref is the voltage value of the fifth input voltage.
  • the resistance value of the first resistor, the resistance value of the second resistor, and the output voltage value of the Hall switch meet certain conditions, which is beneficial to ensure that the output voltage of the Hall switch is The lighting of the second light-emitting diode is not erroneously influenced.
  • 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 One end is connected to the first power supply module.
  • the button can be a switch with one end connected to the ground and the other end connected to the first pin.
  • the switch is closed.
  • the voltage of the first pin will be pulled down to the ground, and a third resistor is added to limit the voltage. The flow can prevent the first power supply module from being pulled down to the ground after the button is pressed.
  • a third resistor is provided between the first power supply module and the first switch module, which is beneficial to ensure circuit safety.
  • the first driving circuit further includes a first current source, and an output port of the first current source is connected to the first end of the second switch module.
  • the first terminal of the second switch module is connected to the current source, which is beneficial to ensure that the driving current is controllable when the first driving circuit is working, and to improve the working reliability of the system.
  • the second driving circuit further includes a second current source, and an output port of the second current source is connected to the first terminal of the third switch module.
  • the first end of the third switch module is connected to the current source, which is beneficial to ensure that the driving current is controllable when the second driving circuit is working, and improves the reliability of the system.
  • control chip in Figure 9 includes: 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, and a third switch S3 , the first current source I1, the second current source I2, the first resistor R01, the second resistor R02, the third resistor R03, the first pin (shown as KEY), the second pin (shown as lead foot HALL);
  • control module is respectively connected to the control port of the button 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, the control port of the third switch S3, the first switch S1
  • One end is connected to 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 to the first current source I1, and the output voltage of the first current source I1 is VCC1, the first end of the third switch S3 is connected to the second current source I2, the output voltage of the second current source I2 is VCC3, the first end of the button detection module is connected to the output end of the first comparator C1, the first comparator The first input end of C1, the second end of the first switch S1, and the second end of the second switch S2 are combined and then connected to the first pin, and the first end of the Hall detection module is connected to the output end of the second comparator C2 , the first input end of the second comparator C2, the
  • the first pin KEY is used to connect the first light-emitting diode D1 and the button
  • the second pin HALL is used to connect 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 button Connect the first pin KEY after combining, the negative pole of the first light-emitting diode D1 is grounded, the second end of the button is grounded, the output end of the Hall switch is connected to the first end of the second resistor R02, and the second end of the second resistor R02 After combined with the anode of the second light emitting diode D2, it is connected to the second pin HALL, and the cathode of the second light emitting diode D2 is grounded.
  • the working process of each component of the control chip is as follows:
  • the minimum conduction voltage of the first LED D1 is Vth1
  • the minimum conduction voltage of the second LED D2 is Vth
  • the voltage of the first pin KEY is V1
  • the voltage of the second pin HALL is V2.
  • the button detection function on the first pin KEY and the multiplexing timing of the charging lamp, that is, the distribution of the first time period (that is, the following t1 time period) and the second time period (that is, the following t2 time period) in the first cycle T1 is as follows As shown in FIG. 10 , the high level is the enabled state, and the low level is the inactive state as an example.
  • the control module enables the first switch S1 and the key detection module, disables the second switch S2, that is, turns off the first driving circuit, and enables the key detection circuit.
  • the first pin KEY is pulled up to VCC2, and VCC2 ⁇ Vth1, at this time the charging lamp will not be lit. If the key is pressed, the voltage V1 on the first pin KEY will be pulled to be less than Vref1, and the key detection circuit will detect that the key is pressed at this time.
  • the control module enables the second switch S2, disables the first switch S1 and the key detection module, that is, turns off the key detection circuit, and enables the first driving circuit.
  • the first current source I1 is turned on, and the first pin KEY is driven to a high level VCC1, and VCC1>Vth1, at this time, the first light-emitting diode D1 (that is, the charging lamp) is turned on.
  • the first light-emitting diode D1 When the charging device is in the charging state, the first light-emitting diode D1 will be lit once in the t2 time period of each first cycle. Due to the persistence of vision effect of people, the human eye will see that the first light-emitting diode D1 is continuously lit state.
  • the Hall detection function on the second pin HALL and the multiplexing sequence of the discharge lamp, that is, the distribution of the third time period (the following t3 time period) and the fourth time period (the following t4 time period) in the second cycle T2 are shown in the figure 11, taking the high level as the enabled state and the low level as the inactive state as an example.
  • the control module enables the third switch S3 and disables the Hall detection module, that is, turns off the Hall detection circuit and enables the second drive circuit.
  • the second driving circuit will drive the voltage of the second pin HALL to a high level, and VCC3>Vth, the second light emitting diode D2 (that is, the discharge lamp) is turned on.
  • the Hall switch output voltage V3 will hardly affect the voltage of V2 , and will not affect the lighting of the second light emitting diode D2.
  • the Hall switch output voltage V3 will not be affected by V2.
  • the second light-emitting diode D2 When the charging device is in the discharging state, the second light-emitting diode D2 will be lit once in the t4 time period of each second cycle. Due to the persistence of vision effect of people, the human eyes will see that the second light-emitting diode D2 is always on. .
  • the control module disables the third switch S3, enables the Hall detection module, that is, enables the Hall detection circuit, and turns off the second driving circuit.
  • the second pin HALL is only driven by the Hall switch.
  • the second comparator C2 compares the high and low level information output by the Hall switch and then outputs it to the Hall detection module.
  • the reference level of the second comparator C2 (that is, the input voltage of the second input terminal) Vref2 ⁇ VH*R01/(R01+R02), when the output voltage of the Hall switch is VH, the second comparator C2 outputs a high level.
  • This embodiment provides a charging device for a Bluetooth headset, including the control chip as described in Embodiment 1.
  • the control chip can realize button detection, Hall switch detection, and lighting of the charging and discharging prompt light through two pins, which is beneficial to save the cost of the control chip and the Bluetooth earphone charging device. cost.

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 present application provides a control chip and a Bluetooth headset charging device. The control chip comprises: a control module, a button detection circuit and a first drive circuit that are connected to a first pin, and a Hall detection circuit and a second drive circuit that are connected to a second pin; the control module is used for respectively enabling the button detection circuit and the first drive circuit corresponding to a first light-emitting diode module within non-overlapping time periods of each first cycle, and respectively enabling the Hall detection circuit and the second drive circuit corresponding to a second light-emitting diode module within non-overlapping time periods of each second cycle. The present application can achieve button detection, hall switch detection, and lighting of charging and discharging prompt lamps by means of two pins, thereby facilitating saving of the costs of the control chip.

Description

控制芯片及蓝牙耳机充电装置Control chip and Bluetooth headset charging device
本申请要求于2021年09月16日提交中国专利局、申请号为2021110854338、申请名称为“控制芯片及蓝牙耳机充电装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 2021110854338 and the application name "control chip and Bluetooth earphone charging device" submitted to the China Patent Office on September 16, 2021, the entire content of which is incorporated by reference in this application .
技术领域technical field
本申请涉及电子技术领域,尤其涉及一种控制芯片及蓝牙耳机充电装置。The present application relates to the field of electronic technology, in particular to a control chip and a Bluetooth earphone charging device.
背景技术Background technique
蓝牙耳机充电仓是用于对无线蓝牙耳机充电的一种装置。目前,常见的蓝牙耳机充电仓由按键,霍尔开关,充电电量指示灯,放电电量指示灯,蓝牙耳机充电仓控制芯片,电池等部件组成。通常在设计蓝牙耳机充电仓控制芯片时,按键检测、霍尔开关检测、充电指示灯和放电指示灯都会分别占用一个引脚,芯片封装的成本无法得到有效的优化,系统成本也随之增加。The Bluetooth headset charging compartment is a device used to charge the wireless Bluetooth headset. At present, the common Bluetooth headset charging compartment is composed of buttons, Hall switch, charging power indicator, discharging power indicator, Bluetooth headset charging compartment control chip, battery and other components. Usually, when designing the control chip of the Bluetooth headset charging compartment, the button detection, Hall switch detection, charging indicator light and discharge indicator light will each occupy a pin, the cost of chip packaging cannot be effectively optimized, and the system cost will increase accordingly.
发明内容Contents of the invention
本申请提供一种控制芯片及蓝牙耳机充电装置,以期解决传统控制芯片成本高的问题。The application provides a control chip and a Bluetooth earphone charging device, in order to solve the problem of high cost of traditional control chips.
第一方面,本申请实施例提供一种控制芯片,应用于蓝牙耳机的充电装置,包括:控制模块、按键检测电路、霍尔检测电路、第一驱动电路、第二驱动电路、第一引脚和第二引脚;In the first aspect, an embodiment of the present application provides a control chip, which is applied to a charging device for a Bluetooth headset, including: a control module, a button detection circuit, a Hall detection circuit, a first drive circuit, a second drive circuit, and a first pin and the second pin;
所述控制模块分别连接所述按键检测电路的控制端口、所述第一驱动电路的控制端口、所述第二驱动电路的控制端口和所述霍尔检测电路的控制端口,所述按键检测电路的第一端、所述第一驱动电路的第一端连接所述第一引脚,所述第一引脚用于连接第一发光二极管模块和按键,所述霍尔检测电路的第一端、所述第二驱动电路的第一端连接所述第二引脚,所述第二引脚用于连接第二发光二极管模块和霍尔开关;The control module is respectively connected to the control port of the key detection circuit, the control port of the first drive circuit, the control port of the second drive circuit and the control port of the Hall detection circuit, and the key detection circuit The first end of the first drive circuit is connected to the first pin, the first pin is used to connect the first light-emitting diode module and the button, and the first end of the Hall detection circuit , the first end of the second driving circuit is connected to the second pin, and the second pin is used to connect the second light emitting diode module and the Hall switch;
所述控制模块用于在每个第一周期的第一时间段内使能所述按键检测电路,通过所述按键检测电路检测所述按键的状态;The control module is used to enable the key detection circuit in the first time period of each first cycle, and detect the state of the key through the key detection circuit;
所述控制模块还用于在所述每个第一周期的第二时间段内使能所述第一驱动电路,并在所述第一驱动电路为使能状态,且所述充电装置为第一状态时,控制所述第一驱动电路点亮所述第一发光二极管模块;The control module is further configured to enable the first driving circuit in the second time period of each first cycle, and when the first driving circuit is in an enabled state and the charging device is the first In a state, control the first driving circuit to light up the first light-emitting diode module;
所述控制模块还用于在每个第二周期的第三时间段内使能所述霍尔检测电路,通过所述霍尔检测电路检测所述霍尔开关的状态;The control module is further configured to enable the Hall detection circuit in the third time period of each second cycle, and detect the state of the Hall switch through the Hall detection circuit;
所述控制模块还用于在所述每个第二周期的第四时间段内使能所述第二驱动电路,并在所述第二驱动电路为使能状态,且所述充电装置为第二状态时,控制所述第二驱动电路点亮所述第二发光二极管模块;The control module is further configured to enable the second drive circuit in the fourth time period of each second cycle, and when the second drive circuit is in an enabled state and the charging device is the first In the second state, control the second drive circuit to light up the second light emitting diode module;
其中,所述第一时间段和所述第二时间段不重叠,所述第三时间段和所述第四时间段不重叠;所述第一状态为充电状态和放电状态中的任一种,所述第二状态为充电状态和放电状态中除所述第一状态外的另一种。Wherein, the first time period does not overlap with the second time period, and the third time period does not overlap with the fourth time period; the first state is any one of a charging state and a discharging state , the second state is another one of the charging state and the discharging state except the first state.
第二方面,本申请提供一种蓝牙耳机的充电装置,包括如第一方面所述的控制芯片。In a second aspect, the present application provides a charging device for a Bluetooth headset, including the control chip as described in the first aspect.
可以看出,本申请实施例中,按键检测电路和第一驱动电路共用一个引脚,霍尔检测电 路和第二驱动电路共用一个引脚,控制模块在第一周期的不同时间段分别使能按键检测电路和第一驱动电路,从而可通过一个引脚实现按键检测和对第一发光二极管模块的点亮控制,在第二周期的不同时间段分别使能霍尔检测电路和第二驱动电路,从而可通过一个引脚实现霍尔检测和对第二发光二极管模块点亮的控制。也就是说,控制芯片可通过两个引脚实现按键检测、霍尔开关检测以及充放电提示灯的点亮,有利于节省控制芯片的成本。It can be seen that in the embodiment of the present application, the button detection circuit and the first drive circuit share one pin, the Hall detection circuit and the second drive circuit share one pin, and the control module enables The button detection circuit and the first drive circuit, so that the button 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 drive circuit are respectively enabled in different time periods of the second cycle , 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, the control chip can realize button detection, Hall switch detection, and lighting of the charge and discharge indicator light through two pins, which is beneficial to save the cost of the control chip.
附图说明Description of drawings
图1是本申请提供的一种控制芯片的电路原理图;Fig. 1 is a schematic circuit diagram of a control chip provided by the present application;
图2是本申请提供的一种按键检测电路和第一驱动电路的电路原理图;Fig. 2 is a circuit schematic diagram of a button detection circuit and a first drive circuit provided by the present application;
图3是本申请提供的一种霍尔检测电路和第二驱动电路的电路原理图;FIG. 3 is a circuit schematic diagram of a Hall detection circuit and a second drive circuit provided by the present application;
图4是本申请提供的另一种按键检测电路和第一驱动电路的电路原理图;FIG. 4 is a schematic circuit diagram of another key detection circuit and a first drive circuit provided by the present application;
图5是本申请提供的另一种霍尔检测电路和第二驱动电路的电路原理图;FIG. 5 is a circuit schematic diagram of another Hall detection circuit and a second drive circuit provided by the present application;
图6是本申请提供的另一种按键检测电路的电路原理图;Fig. 6 is the circuit principle diagram of another kind of button detection circuit provided by the present application;
图7是本申请提供的另一种第一驱动电路的电路原理图;FIG. 7 is a circuit schematic diagram of another first driving circuit provided by the present application;
图8是本申请提供的另一种第二驱动电路的电路原理图;FIG. 8 is a schematic circuit diagram of another second drive circuit provided by the present application;
图9是本申请提供的另一种控制芯片的电路原理图;Fig. 9 is a schematic circuit diagram of another control chip provided by the present application;
图10是本申请提供的一种第一周期中第一时间段和第二时间段的分布示例图;Fig. 10 is a distribution example diagram of a first time period and a second time period in a first cycle provided by the present application;
图11是本申请提供的一种第二周期中第三时间段和第四时间段的分布示例图。Fig. 11 is a distribution example diagram of a third time period and a fourth time period in a second cycle provided by the present application.
以下结合附图及实施例对本申请作进一步说明。The application will be further described below in conjunction with the accompanying drawings and embodiments.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。It should be noted that the terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a", "said" and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
在介绍具体实施例之前,对本申请实施例中部分名词进行解释,具体如下:Before introducing the specific embodiments, some nouns in the embodiments of the present application are explained, as follows:
霍尔开关检测,霍尔开关会将蓝牙耳机充电装置(例如蓝牙耳机充电仓)的开盖和关盖的信息转换为高低电平信息,并输出给蓝牙耳机充电装置中的控制芯片,控制芯片检测到霍尔开关的电平信息为有效电平信息会让蓝牙耳机充电装置切换到放电状态。Hall switch detection, the Hall switch will convert the information of opening and closing the cover of the Bluetooth headset charging device (such as the Bluetooth headset charging compartment) into high and low level information, and output it to the control chip in the Bluetooth headset charging device, the control chip Detecting that the level information of the Hall switch is effective level information will cause the Bluetooth headset charging device to switch to the discharge state.
实施例1:Example 1:
参照图1,本实施例提供一种控制芯片,应用于蓝牙耳机的充电装置,包括:控制模块、按键检测电路、霍尔检测电路、第一驱动电路、第二驱动电路、第一引脚和第二引脚;Referring to FIG. 1 , the present embodiment provides a control chip, which is applied to a charging device for a Bluetooth headset, including: a control module, a button detection circuit, a Hall detection circuit, a first drive circuit, a second drive circuit, a first pin and the second pin;
所述控制模块分别连接所述按键检测电路的控制端口、所述第一驱动电路的控制端口、所述第二驱动电路的控制端口和所述霍尔检测电路的控制端口,所述按键检测电路的第一端、所述第一驱动电路的第一端连接所述第一引脚,所述第一引脚用于连接第一发光二极管模块和按键,所述霍尔检测电路的第一端、所述第二驱动电路的第一端连接所述第二引脚,所述 第二引脚用于连接第二发光二极管模块和霍尔开关;The control module is respectively connected to the control port of the key detection circuit, the control port of the first drive circuit, the control port of the second drive circuit and the control port of the Hall detection circuit, and the key detection circuit The first end of the first drive circuit is connected to the first pin, the first pin is used to connect the first light-emitting diode module and the button, and the first end of the Hall detection circuit , the first end of the second driving circuit is connected to the second pin, and the second pin is used to connect the second light emitting diode module and the Hall switch;
所述控制模块用于在每个第一周期的第一时间段内使能所述按键检测电路,通过所述按键检测电路检测所述按键的状态;The control module is used to enable the key detection circuit in the first time period of each first cycle, and detect the state of the key through the key detection circuit;
所述控制模块还用于在所述每个第一周期的第二时间段内使能所述第一驱动电路,并在所述第一驱动电路为使能状态,且所述充电装置为第一状态时,控制所述第一驱动电路点亮所述第一发光二极管模块;The control module is further configured to enable the first driving circuit in the second time period of each first cycle, and when the first driving circuit is in an enabled state and the charging device is the first In a state, control the first driving circuit to light up the first light-emitting diode module;
所述控制模块还用于在每个第二周期的第三时间段内使能所述霍尔检测电路,通过所述霍尔检测电路检测所述霍尔开关的状态;The control module is further configured to enable the Hall detection circuit in the third time period of each second cycle, and detect the state of the Hall switch through the Hall detection circuit;
所述控制模块还用于在所述每个第二周期的第四时间段内使能所述第二驱动电路,并在所述第二驱动电路为使能状态,且所述充电装置为第二状态时,控制所述第二驱动电路点亮所述第二发光二极管模块;The control module is further configured to enable the second drive circuit in the fourth time period of each second cycle, and when the second drive circuit is in an enabled state and the charging device is the first In the second state, control the second drive circuit to light up the second light emitting diode module;
其中,所述第一时间段和所述第二时间段不重叠,所述第三时间段和所述第四时间段不重叠;所述第一状态为充电状态和放电状态中的任一种,所述第二状态为充电状态和放电状态中除所述第一状态外的另一种。Wherein, the first time period does not overlap with the second time period, and the third time period does not overlap with the fourth time period; the first state is any one of a charging state and a discharging state , the second state is another one of the charging state and the discharging state except the first state.
其中,第一周期和第二周期可以重叠或不重叠,此处不做具体限定。Wherein, the first period and the second period may or may not overlap, which is not specifically limited here.
其中,在每个周期的不同时间段内,控制模块在某时间段内使能某个电路时,同时也无效该周期另一时间段需要使能的电路,也就是说,同一时间段内共用一个引脚的两个电路只会有一个被使能,未被使能的电路则默认处于无效状态,不能工作。例如,第一时间段内按键检测电路被使能,此时第一驱动电路则处于无效状态(即第一驱动电路关闭),反之,第二时间段内第一驱动电路被使能,而按键检测电路则处于无效状态。霍尔检测电路和第二驱动电路在第二周期的使能和无效同理。Among them, in different time periods of each cycle, when the control module enables a certain circuit in a certain time period, it also invalidates the circuit that needs to be enabled in another time period of the cycle. Only one of the two circuits of a pin will be enabled, and the unenabled circuit will be in an invalid state by default and cannot work. For example, when the key detection circuit is enabled in the first time period, the first drive circuit is in an invalid state (that is, the first drive circuit is turned off); otherwise, the first drive circuit is enabled in the second time period, and the key The detection circuit is in an invalid state. The enabling and disabling of the Hall detection circuit and the second driving circuit in the second period are the same.
具体实现中,控制芯片还可以包括第三引脚,该第三引脚用于连接充电适配器,控制模块与该第三引脚连接,并通过检测第三引脚是否有充电适配器接入,从而判断该充电装置是否处于充电状态;控制模块还可以根据检测到的按键的状态确定该充电装置是否处于放电状态,或者,控制模块可以根据检测到的霍尔开关的状态确定该充电装置是否处于放电状态,具体的,控制模块检测到第三引脚没有适配器接入,且按键处于第一预设状态(例如按键按下)时,确定该充电装置处于放电状态,或者,控制模块检测到第三引脚没有适配器接入,且霍尔开关处于预设状态(例如霍尔开关输出电压大小在预设阈值范围内),确定该充电装置处于放电状态。In a specific implementation, the control chip can also include a third pin, which is used to connect a charging adapter, and the control module is connected to the third pin, and detects whether there is a charging adapter connected to the third pin, thereby Determine whether the charging device is in a charging state; the control module can also determine whether the charging device is in a discharging state according to the detected state of the button, or the control module can determine whether the charging device is in a discharging state according to the detected state of the Hall switch state, specifically, when the control module detects that there is no adapter connected to the third pin and the button is in the first preset state (for example, the button is pressed), it determines that the charging device is in the discharging state, or the control module detects that the third pin If no adapter is connected to the pin, and the Hall switch is in a preset state (for example, the output voltage of the Hall switch is within a preset threshold range), it is determined that the charging device is in a discharging state.
控制模块基于充电装置的状态,可以周期性的在特定时间段内控制第一驱动电路或第二驱动电路,以点亮第一发光二极管模块或者第二发光二极管模块。由于第一发光二极管模块和第二发光二极管模块在对应状态下,会被周期性的点亮,因此在人的视觉暂留效应下,用户会看到发光二极管模块是持续点亮的状态。例如,以第一状态为充电状态,第二状态为放电状态为例,当充电装置处于充电状态时,第一驱动电路在每个第一周期的第二时间段点亮第一发光二极管模块,即充电装置处于充电状态时,用户会看到第一发光二极管模块是持续点亮的状态,第一发光二极管模块起到充电指示灯的作用,而当充电装置处于放电状态时,第二驱动电路在每个第二周期的第四时间段点亮第二发光二极管模块,即充电装置处于放电状态时,用户会看到第二发光二极管模块是持续点亮的状态,第二发光二极管模块起到放电指示灯的作用。Based on the status of the charging device, the control module can periodically control the first driving circuit or the second driving circuit within a specific period of time to light up the first LED module or the second LED module. Since the first LED module and the second LED module are periodically turned on in corresponding states, the user will see that the LED modules are continuously lit under the effect of persistence of vision. For example, taking the first state as the charging state and the second state as the discharging state as an example, when the charging device is in the charging state, the first driving circuit lights up the first LED module in the second time period of each first cycle, That is, when the charging device is in the charging state, the user will see that the first light-emitting diode module is continuously lit, and the first light-emitting diode module acts as a charging indicator light, and when the charging device is in the discharging state, the second driving circuit Light the second LED module in the fourth period of each second cycle, that is, when the charging device is in the discharge state, the user will see that the second LED module is continuously lit, and the second LED module plays a role in charging. The role of the discharge indicator.
具体实现中,控制模块可以始终保存最近一次确定出的充电装置的状态结果,在第二时间段和第四时间段内控制模块可以通过保存的充电装置的状态,确定是否需要控制第一驱动 电路或第二驱动电路点亮对应的发光二极管模块。In a specific implementation, the control module can always save the last determined state result of the charging device, and the control module can determine whether it is necessary to control the first driving circuit through the saved state of the charging device in the second time period and the fourth time period Or the second driving circuit turns on the corresponding LED module.
可以看出,本申请实施例中,按键检测电路和第一驱动电路共用一个引脚,霍尔检测电路和第二驱动电路共用一个引脚,控制模块在第一周期的不同时间段分别使能按键检测电路和第一驱动电路,从而可通过一个引脚实现按键检测和对第一发光二极管模块的点亮控制,在第二周期的不同时间段分别使能霍尔检测电路和第二驱动电路,从而通过一个引脚实现霍尔检测和对第二发光二极管模块点亮的控制。也就是说,控制芯片可通过两个引脚实现按键检测、霍尔开关检测以及充放电提示灯的点亮,有利于节省控制芯片的成本。It can be seen that in the embodiment of the present application, the button detection circuit and the first drive circuit share one pin, the Hall detection circuit and the second drive circuit share one pin, and the control module enables The button detection circuit and the first drive circuit, so that the button 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 drive circuit are respectively enabled in different time periods of the second cycle , so as to realize Hall detection and light-on control of the second light-emitting diode module through one pin. That is to say, the control chip can realize button detection, Hall switch detection, and lighting of the charge and discharge indicator light through two pins, which is beneficial to save the cost of the control chip.
在一个可能的示例中,参照图2,所述按键检测电路包括:按键检测模块、第一比较器模块、第一开关模块;所述第一驱动电路包括第二开关模块;所述控制模块连接所述按键检测模块的控制端口、所述第一开关模块的控制端口和所述第二开关模块的控制端口;所述第一开关模块的第一端的输入电压为第一输入电压,所述第二开关模块的第一端的输入电压为第二输入电压,所述第一开关模块的第二端、所述第二开关模块的第二端和所述第一比较器模块的第一输入端合路后连接所述第一引脚,所述第一比较器模块的第二输入端的输入电压为第三输入电压,所述第一比较器模块的输出端连接所述按键检测模块的第一端;In a possible example, referring to FIG. 2 , the key detection circuit includes: a key detection module, a first comparator module, and a first switch module; the first drive circuit includes a second switch module; the control module is connected to 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 terminal of the first switch module is a first input voltage, the The input voltage of the first terminal of the second switch module is the second input voltage, the second terminal of the first switch module, the second terminal of the second switch module and the first input of the first comparator module After the terminal is combined, it is connected to the first pin, the input voltage of the second input terminal of the first comparator module is the third input voltage, and the output terminal of the first comparator module is connected to the first pin of the button detection module. one end;
所述按键检测模块用于根据所述第一比较器模块的输出确定所述按键的状态,所述控制模块用于在所述第一时间段内使能所述按键检测模块,并控制所述第一开关模块导通,通过所述按键模块检测所述按键的状态;所述控制模块还用于在所述第二时间段内使能所述第二开关模块,并在所述第二开关模块为使能状态,且所述充电装置为所述第一状态时,控制所述第二开关模块导通。The key detection module is used to determine the state of the key according to the output of the first comparator module, and the control module is used to enable the key detection module within the first time period and control the The first switch module is turned on, and the state of the button is detected through the button module; the control module is also used to enable the second switch module within the second time period, and switch on the When the module is in the enabled state and the charging device is in the first state, the second switch module is controlled to be turned on.
具体实现中,开关模块可以是MOS管(场效应晶体管)等,比较器模块可以是电压比较器。In a specific implementation, the switch module may be a MOS transistor (field effect transistor), etc., and the comparator module may be a voltage comparator.
其中,控制模块在第一时间段内使能按键检测模块并控制第一开关模块导通时,还可同时控制第二开关模块断开,以避免第二输入电压给按键检测带来影响;相应的,控制模块在第二时间段内控制第二开关模块导通时,还可同时控制第一开关模块断开,以避免第一输入电压错误影响第一发光二极管模块的工作状态。Wherein, when the control module enables the button detection module and controls the first switch module to be turned on in the first time period, it can also control the second switch module to be turned off at the same time, so as to avoid the influence of the second input voltage on the button detection; correspondingly Yes, when the control module controls the second switch module to be turned on within the second time period, it can also control the first switch module to be turned off at the same time, so as to prevent the first input voltage error from affecting the working state of the first LED module.
其中,第一时间段内,第一开关模块导通时,第一比较器模块的第一输入端的电压会被拉到第一输入电压的电压值,此时,若按键被按下,则第一比较器模块的第一输入端的电压会被拉到第一输入电压以下,通过设置第三输入电压的值,则可根据第一比较器模块的输出结果判断按键是否被按下,例如第三输入电压的值设置为等于第一输入电压的值,则按键被按下后,第一比较器模块的输出电压会发生变化,按键检测模块即可根据第一比较器模块的输出电压确定按键的状态。Wherein, in the first time period, when the first switch module is turned on, the voltage of the first input terminal of the first comparator module will be pulled to the voltage value of the first input voltage. At this time, if the key is pressed, the second The voltage of the first input terminal of a comparator module will be pulled below the first input voltage, and by setting the value of the third input voltage, it can be judged whether the button is pressed according to the output result of the first comparator module, for example, the third The value of the input voltage is set to be equal to the value of the first input voltage, then after the key is pressed, the output voltage of the first comparator module will change, and the key detection module can determine the value of the key according to the output voltage of the first comparator module state.
第二时间段内,第二开关模块导通时,为保证第一发光二极管模块被点亮,第二输入电压的值应设置为大于第一发光二极管模块的导通电压。In the second time period, when the second switch module is turned on, in order to ensure that the first LED module is lit, the value of the second input voltage should be set to be greater than the conduction voltage of the first LED module.
可见,本示例中,按键检测电路和第一驱动电路分时复用第一引脚,通过一个引脚即可实现按键检测功能和一个指示灯的点亮控制,有利于节省控制芯片的成本。It can be seen that in this example, the key detection circuit and the first driving circuit time-divisionally multiplex the first pin, and the key detection function and the lighting control of an indicator light can be realized through one pin, which is beneficial to save the cost of the control chip.
在一个可能的示例中,参照图3,所述霍尔检测电路包括:霍尔检测模块、第二比较器模块,所述第二驱动电路包括第三开关模块;所述控制模块连接所述霍尔检测模块的控制端口和所述第三开关模块的控制端口;所述第三开关模块的第一端的输入电压为第四输入电压,所述第三开关模块的第二端和所述第二比较器模块的第一输入端合路后连接所述第二引脚,所述第二比较器模块的第二输入端的输入电压为第五输入电压,所述第二比较器模块的输出端连接所述霍尔检测模块的第一端;In a possible example, referring to FIG. 3 , the Hall detection circuit includes: a Hall detection module, a second comparator module, the second drive circuit includes a third switch module; the control module is connected to the Hall The control port of the Er detection module and the control port of the third switch module; the input voltage of the first terminal of the third switch module is the fourth input voltage, the second terminal of the third switch module and the first terminal of the third switch module The first input terminals of the two comparator modules are combined and then connected to the second pin, the input voltage of the second input terminal of the second comparator module is the fifth input voltage, and the output terminal of the second comparator module Connect the first end of the Hall detection module;
所述霍尔检测模块用于根据所述第二比较器模块的输出确定所述霍尔开关的状态,所述控制模块用于在所述第三时间段内使能所述霍尔检测模块,通过所述霍尔检测模块检测所述霍尔开关的状态;所述控制模块还用于在所述第四时间段内使能所述第三开关模块,并在所述第三开关模块为使能状态,且所述充电装置为所述第二状态时,控制所述第三开关模块导通。The Hall detection module is used to determine the state of the Hall switch according to the output of the second comparator module, and the control module is used to enable the Hall detection module within the third time period, The state of the Hall switch is detected by the Hall detection module; the control module is also configured to enable the third switch module within the fourth time period, and enable the third switch module to enable When the charging device is in the capable state and the charging device is in the second state, the third switch module is controlled to be turned on.
其中,控制模块在第三时间段内使能霍尔检测模块时,还可同时控制第三开关模块断开,以避免第四输入电压给霍尔开关检测带来影响。Wherein, when the control module enables the Hall detection module within the third time period, it can also control the third switch module to be turned off at the same time, so as to avoid the influence of the fourth input voltage on the Hall switch detection.
具体实现中,对于例如蓝牙耳机充电仓这样的蓝牙耳机充电装置来说,霍尔开关会根据充电仓的开盖和关盖的状态,输出特定的电压值,例如开盖时,霍尔开关输出电压为第一预设电压,关盖时,霍尔开关的输出电压为第二预设电压。基于图3所示的芯片设置,通过对第五输入电压值的设置,霍尔检测模块即可在第三时间段内根据第二比较器模块的输出电压,确定霍尔开关的输出电压(即确定霍尔开关的状态),具体的,第五输入电压值可以设置为在第一预设电压和第二预设电压之间的值,即第五输入电压值大于第一预设电压和第二预设电压中较小的电压值,小于第一预设电压和第二预设电压中较大的电压值。In specific implementation, for a Bluetooth headset charging device such as a Bluetooth headset charging compartment, the Hall switch will output a specific voltage value according to the state of opening and closing the cover of the charging compartment, for example, when the cover is opened, the Hall switch outputs The voltage is the first preset voltage, and when the cover is closed, the output voltage of the Hall switch is the second preset voltage. Based on the chip setting shown in Figure 3, by setting the fifth input voltage value, the Hall detection module can determine the output voltage of the Hall switch according to the output voltage of the second comparator module within the third time period (i.e. Determine the state of the Hall switch), specifically, the fifth input voltage value can 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 first preset voltage and the second preset voltage The smaller voltage value of the two preset voltages is smaller than the larger voltage value of the first preset voltage and the second preset voltage.
可见,本示例中,霍尔检测电路和第二驱动电路分时复用第二引脚,通过一个引脚即可实现霍尔开关检测功能和一个指示灯的点亮控制,有利于节省控制芯片的成本。It can be seen that in this example, the Hall detection circuit and the second drive circuit time-divisionally multiplex the second pin, and the Hall switch detection function and the lighting control of an indicator light can be realized through one pin, which is conducive to saving control chips the cost of.
在一个可能的示例中,参照图4,所述第一发光二极管模块的正极和所述按键的第一端合路后连接所述第一引脚,所述第一发光二极管模块的负极和所述按键的第二端接地;所述第一输入电压的电压值小于所述第一发光二极管模块的导通电压值,所述第二输入电压的电压值大于所述第一发光二极管模块的导通电压值。In a possible example, referring to FIG. 4 , the anode of the first light emitting diode module is combined with the first end of the button and then connected to the first pin, and the cathode of the first light emitting diode module is connected to the first end of the button. The second end of the button is grounded; the voltage value of the first input voltage is less than the conduction voltage value of the first light emitting diode module, and the voltage value of the second input voltage is greater than the conduction voltage value of the first light emitting diode module pass voltage value.
其中,第一输入电压的电压值小于第一发光二极管模块的导通电压,即在每个周期的第一时间段内,控制模块使能第一开关模块,第一引脚的电压被拉到第一输入电压的电压值时,不会对第一发光二极管模块造成影响,导致第一发光二极管模块被错误的点亮。Wherein, the voltage value of the first input voltage is less than the conduction voltage of the first light-emitting diode module, that is, in the first time period of each cycle, the control module enables the first switch module, and the voltage of the first pin is pulled to When the voltage value of the first input voltage is low, it will not affect the first LED module, causing the first LED module to be wrongly lit.
第二输入电压的电压值大于第一发光二极管模块的导通电压值,即可保证在每个第一周期的第二时间段内,若充电装置为第一状态,则第一驱动电路可以点亮第一发光二极管模块。The voltage value of the second input voltage is greater than the turn-on voltage value of the first light-emitting diode module, which can ensure that in the second time period of each first cycle, if the charging device is in the first state, the first driving circuit can be activated. Light up the first LED module.
可见,本示例中,第一输入电压的电压值小于第一发光二极管模块的导通电压值,第二输入电压的电压值大于第一发光二极管模块的导通电压值,有利于避免在第一周期的第一时间段内,第一输入电压导致第一发光二极管模块的错误点亮,提高系统工作的可靠性。It can be seen that in this example, the voltage value of the first input voltage is smaller than the conduction voltage value of the first LED module, and the voltage value of the second input voltage is greater than the conduction voltage value of the first LED module, which is beneficial to avoid In the first period of time of the cycle, the first input voltage causes false lighting of the first light-emitting diode module, which improves the reliability of the system operation.
在一个可能的示例中,参照图5,所述控制芯片还包括第一电阻,所述第一电阻的第一端、所述第二比较器模块的第一输入端和所述第三开关模块的第二端合路后连接所述第二引脚,所述第一电阻的第二端接地;所述霍尔开关的输出端连接第二电阻的第一端,所述第二电阻的第二端和所述第二发光二极管模块的正极合路后连接所述第二引脚,所述第二发光二极管模块的负极接地;所述第一电阻的电阻值、所述第二电阻的电阻值和所述霍尔开关的输出电压值满足以下条件:在所述第三时间段内,在所述霍尔开关的输出电压作用下,所述第二发光二极管模块的状态为不导通。In a possible example, referring to FIG. 5 , the control chip further includes a first resistor, a first terminal of the first resistor, a first input terminal of the second comparator module, and the third switch module The second end of the Hall switch is connected to the second pin after being combined, and the second end of the first resistor is grounded; the output end of the Hall switch is connected to the first end of the second resistor, and the second end of the second resistor is connected to the ground. The two terminals are combined with the positive electrode of the second light emitting diode module and then connected to the second pin, and the negative electrode of the second light emitting diode module is grounded; the resistance value of the first resistor, the resistance of the second resistor The value and the output voltage value of the Hall switch satisfy the following condition: within the third time period, under the action of the output voltage of the Hall switch, the state of the second LED module is non-conductive.
其中,对于霍尔开关而言,其工作时的输出电压可能为两种不同的电压值(第一预设电压和第二预设电压),在所述第三时间段内,在霍尔开关的输出电压作用下,第二发光二极管模块的状态为不导通是指:无论霍尔开关的输出电压为第一预设电压还是第二预设电压,第二发光二极管模块均不会在第三时间段导通。Wherein, for the Hall switch, the output voltage during its operation may be two different voltage values (the first preset voltage and the second preset voltage), and in the third time period, the Hall switch Under the action of the output voltage of the second light-emitting diode module, the state of the second light-emitting diode module is 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 will not The three time periods are turned on.
其中,由于霍尔开关的输出端并未直接与第二引脚连接,而是连接了一个第二电阻,在第二电阻的隔离作用下,第二驱动电路中第四输入电压也不会对霍尔开关的输出带来影响。Wherein, since the output terminal of the Hall switch is not directly connected to the second pin, but is connected to a second resistor, under the isolation effect of the second resistor, the fourth input voltage in the second drive circuit will not be affected. The output of the Hall switch has an effect.
可见,本示例中,霍尔开关输出端连接第二电阻,第一电阻的电阻值、第二电阻的电阻值和霍尔开关的输出电压值满足以下条件:在第三时间段内,在霍尔开关的输出电压作用下,第二发光二极管模块的状态为不导通,有利于保证系统工作的可靠性。It can be seen that in this example, the output terminal 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 meet the following conditions: in the third time period, the Hall switch Under the action of the output voltage of the Er switch, the state of the second light-emitting diode module is non-conductive, which is beneficial to ensure the reliability of the system operation.
在一个可能的示例中,所述第一电阻的电阻值、所述第二电阻的电阻值和所述霍尔开关的输出电压值满足以下条件:In a 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 conditions:
V*R1/(R1+R2)<Vth;V*R1/(R1+R2)<Vth;
其中,V为所述霍尔开关的输出电压,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 turn-on voltage value of the second LED module.
具体的,第一霍尔开关的输出电压V可以包括:第一预设电压Vh和第二预设电压Vl,其中,第一预设电压Vh的电压值大于第二预设电压Vl的电压值。则Vh和Vl应满足如下条件:Specifically, the output voltage V of the first Hall switch may include: a first preset voltage Vh and a second preset voltage Vl, wherein the voltage value of the first preset voltage Vh is greater than the voltage value of the second preset voltage Vl . Then Vh and Vl should meet the following conditions:
Vh*R1/(R1+R2)<Vth;Vh*R1/(R1+R2)<Vth;
Vl*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 meet the following conditions:
Vref<Vh*R1/(R1+R2);Vref<Vh*R1/(R1+R2);
Vref>Vl*R1/(R1+R2);Vref>Vl*R1/(R1+R2);
其中,Vref即第五输入电压的电压值。通过上述各电压值和电阻值的设置,则能实现霍尔开关状态检测的功能,且可避免霍尔检测电路和第二驱动电路相互间的影响。Wherein, Vref is the voltage value of the fifth input voltage. Through the settings of the above voltage values and resistance values, the function of Hall switch state detection can be realized, and mutual influence between the Hall detection circuit and the second drive circuit can be avoided.
可见,本示例中,第一电阻的电阻值、所述第二电阻的电阻值和所述霍尔开关的输出电压值满足特定条件,有利于保证第三时间段内,霍尔开关的输出电压不会错误影响第二发光二极管的点亮。It can be seen that 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 meet certain conditions, which is beneficial to ensure that the output voltage of the Hall switch is The lighting of the second light-emitting diode is not erroneously influenced.
在一个可能的示例中,参照图6,所述按键检测电路还包括第三电阻,所述第一开关模块的第一端连接所述第三电阻的第一端,所述第三电阻的第一端连接第一供电模块。In a 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 One end is connected to the first power supply module.
具体实现中,按键可以是一个一端接地,另一端连接第一引脚的开关,按键按下即开关闭合,此时第一引脚的电压会被下拉到地,通过添加一个第三电阻来限流,可以避免按键按下后第一供电模块被下拉到地。In specific implementation, the button can be a switch with one end connected to the ground and the other end connected to the first pin. When the button is pressed, the switch is closed. At this time, the voltage of the first pin will be pulled down to the ground, and a third resistor is added to limit the voltage. The flow can prevent the first power supply module from being pulled down to the ground after the button is pressed.
可见,本示例中,第一供电模块和第一开关模块间设置有第三电阻,有利于保证电路安全。It can be seen that in this example, a third resistor is provided between the first power supply module and the first switch module, which is beneficial to ensure circuit safety.
在一个可能的示例中,参照图7,所述第一驱动电路还包括第一电流源,所述第一电流源的输出端口连接所述第二开关模块的第一端。In a 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 end of the second switch module.
可见,本示例中,第二开关模块的第一端连接电流源,有利于保证第一驱动电路工作时驱动电流可控,提高系统工作可靠性。It can be seen that in this example, the first terminal of the second switch module is connected to the current source, which is beneficial to ensure that the driving current is controllable when the first driving circuit is working, and to improve the working reliability of the system.
在一个可能的示例中,参照图8,所述第二驱动电路还包括第二电流源,所述第二电流源的输出端口连接所述第三开关模块的第一端。In a possible example, referring to FIG. 8 , the second driving circuit further includes a second current source, and an output port of the second current source is connected to the first terminal of the third switch module.
可见,本示例中,第三开关模块的第一端连接电流源,有利于保证第二驱动电路工作时驱动电流可控,提高系统工作可靠性。It can be seen that in this example, the first end of the third switch module is connected to the current source, which is beneficial to ensure that the driving current is controllable when the second driving circuit is working, and improves the reliability of the system.
下面结合具体示例进行说明。The following will be described in conjunction with specific examples.
请参见图9,图9中控制芯片包括:控制模块、按键检测模块、霍尔检测模块、第一比较器C1、第二比较器C2、第一开关S1、第二开关S2、第三开关S3、第一电流源I1、第二电流源I2、第一电阻R01、第二电阻R02、第三电阻R03、第一引脚(图示为引脚KEY)、 第二引脚(图示为引脚HALL);Please refer to Figure 9, the control chip in Figure 9 includes: 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, and a third switch S3 , the first current source I1, the second current source I2, the first resistor R01, the second resistor R02, the third resistor R03, the first pin (shown as KEY), the second pin (shown as lead foot HALL);
其中,控制模块分别连接按键检测模块的控制端口、霍尔检测模块的控制端口、第一开关S1的控制端口、第二开关S2控制端口、第三开关S3的控制端口,第一开关S1的第一端连接第三电阻R03的第一端,第三电阻R03的第二端的输入电压为VCC2,第二开关S2的第一端连接第一电流源I1,该第一电流源I1的输出电压为VCC1,第三开关S3的第一端连接第二电流源I2,该第二电流源I2的输出电压为VCC3,按键检测模块的第一端连接第一比较器C1的输出端,第一比较器C1的第一输入端、第一开关S1的第二端、第二开关S2的第二端合路后连接第一引脚,霍尔检测模块的第一端连接第二比较器C2的输出端,第二比较器C2的第一输入端、第三开关S3的第二端、第一电阻R01的第一端合路后连接第二引脚,第一比较器C1的第二输入端的输入电压为Vref1,第二比较器C2的第二输入端的输入电压为Vref2;Wherein, the control module is respectively connected to the control port of the button 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, the control port of the third switch S3, the first switch S1 One end is connected to 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 to the first current source I1, and the output voltage of the first current source I1 is VCC1, the first end of the third switch S3 is connected to the second current source I2, the output voltage of the second current source I2 is VCC3, the first end of the button detection module is connected to the output end of the first comparator C1, the first comparator The first input end of C1, the second end of the first switch S1, and the second end of the second switch S2 are combined and then connected to the first pin, and the first end of the Hall detection module is connected to the output end of the second comparator C2 , the first input end of the second comparator C2, the second end of the third switch S3, and the first end of the first resistor R01 are combined and then connected to the second pin, the input voltage of the second input end of the first comparator C1 Vref1, the input voltage of the second input terminal of the second comparator C2 is Vref2;
第一引脚KEY用于连接第一发光二极管D1和按键,第二引脚HALL用于连接第二发光二极管D2和霍尔开关,具体的,第一发光二极管D1的正极和按键的第一端合路后连接第一引脚KEY,第一发光二极管D1的负极接地,按键的第二端接地,霍尔开关的输出端连接第二电阻R02的第一端,第二电阻R02的第二端和第二发光二极管D2的正极合路后连接第二引脚HALL,第二发光二极管D2的负极接地。The first pin KEY is used to connect the first light-emitting diode D1 and the button, and the second pin HALL is used to connect 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 button Connect the first pin KEY after combining, the negative pole of the first light-emitting diode D1 is grounded, the second end of the button is grounded, the output end of the Hall switch is connected to the first end of the second resistor R02, and the second end of the second resistor R02 After combined with the anode of the second light emitting diode D2, it is connected to the second pin HALL, and the cathode of the second light emitting diode D2 is grounded.
以第一状态为充电状态,第二状态为放电状态,即第一发光二极管D1为充电灯,第二发光二极管D2为放电灯为例,控制芯片各部件的工作流程具体如下:Taking the first state as the charging state and the second state as the discharging state, that is, the first light-emitting diode D1 is the charging light, and the second light-emitting diode D2 is the discharge light as an example, the working process of each component of the control chip is as follows:
其中,第一发光二极管D1的最小导通电压为Vth1,第二发光二极管D2的最小导通电压为Vth,第一引脚KEY电压为V1,第二引脚HALL电压为V2。Wherein, the minimum conduction voltage of the first LED D1 is Vth1, the minimum conduction 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.
第一引脚KEY上的按键检测功能和充电灯复用时序即第一周期T1中第一时间段(即下述t1时间段)和第二时间段(即下述t2时间段)的分布如图10所示,以高电平为使能状态,低电平为无效状态为例。The button detection function on the first pin KEY and the multiplexing timing of the charging lamp, that is, the distribution of the first time period (that is, the following t1 time period) and the second time period (that is, the following t2 time period) in the first cycle T1 is as follows As shown in FIG. 10 , the high level is the enabled state, and the low level is the inactive state as an example.
在t1时间段,控制模块使能第一开关S1和按键检测模块,无效第二开关S2,即关闭第一驱动电路,使能按键检测电路。t1时间段内,第一引脚KEY被上拉到VCC2,并且VCC2<Vth1,此时充电灯不会被点亮。如果按键按下,第一引脚KEY上的电压V1会被拉到小于Vref1,此时按键检测电路会检测出按键按下。During the time period t1, the control module enables the first switch S1 and the key detection module, disables the second switch S2, that is, turns off the first driving circuit, and enables the key detection circuit. During the period of t1, the first pin KEY is pulled up to VCC2, and VCC2<Vth1, at this time the charging lamp will not be lit. If the key is pressed, the voltage V1 on the first pin KEY will be pulled to be less than Vref1, and the key detection circuit will detect that the key is pressed at this time.
在t2时间段内,控制模块使能第二开关S2,无效第一开关S1和按键检测模块,即关闭按键检测电路,使能第一驱动电路。t2时间段内,第一电流源I1导通,第一引脚KEY会被驱动到高电平VCC1,并且VCC1>Vth1,此时第一发光二极管D1(即充电灯)被点亮。充电装置为充电状态时,在每个第一周期的t2时间段都会点亮一次第一发光二极管D1,由于人的视觉暂留效应,人眼会看到第一发光二极管D1是持续点亮的状态。During the time period t2, the control module enables the second switch S2, disables the first switch S1 and the key detection module, that is, turns off the key detection circuit, and enables the first driving circuit. During the time period t2, the first current source I1 is turned on, and the first pin KEY is driven to a high level VCC1, and VCC1>Vth1, at this time, the first light-emitting diode D1 (that is, the charging lamp) is turned on. When the charging device is in the charging state, the first light-emitting diode D1 will be lit once in the t2 time period of each first cycle. Due to the persistence of vision effect of people, the human eye will see that the first light-emitting diode D1 is continuously lit state.
第二引脚HALL上的霍尔检测功能和放电灯复用时序即第二周期T2中第三时间段(下述t3时间段)和第四时间段(下述t4时间段)的分布如图11所示,以高电平为使能状态,低电平为无效状态为例。The Hall detection function on the second pin HALL and the multiplexing sequence of the discharge lamp, that is, the distribution of the third time period (the following t3 time period) and the fourth time period (the following t4 time period) in the second cycle T2 are shown in the figure 11, taking the high level as the enabled state and the low level as the inactive state as an example.
在t4时间段,控制模块使能第三开关S3,无效霍尔检测模块,即关闭霍尔检测电路、使能第二驱动电路。第二驱动电路会驱动第二引脚HALL的电压到高电平,并且VCC3>Vth,第二发光二极管D2(即放电灯)点亮。当第一电阻R01和第二电阻R02足够大,流过第一电阻R01与第二电阻R02的电流远小于第二发光二极管D2的电流时,霍尔开关输出电压V3几乎不会影响V2的电压,也不会影响第二发光二极管D2的点亮。并且由于第二电阻R02电阻的隔离,霍尔开关输出电压V3也不会受到V2影响。充电装置为放电状态时,在每个第 二周期的t4时间段都会点亮一次第二发光二极管D2,由于人的视觉暂留效应,人眼会看到第二发光二极管D2是一直亮的状态。During the time period t4, the control module enables the third switch S3 and disables the Hall detection module, that is, turns off the Hall detection circuit and enables the second drive circuit. The second driving circuit will drive the voltage of the second pin HALL to a high level, and VCC3>Vth, the second light emitting diode D2 (that is, the discharge lamp) is turned on. 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 of the second light-emitting diode D2, the Hall switch output voltage V3 will hardly affect the voltage of V2 , and will not affect the lighting of the second light emitting diode D2. And because of the resistance isolation of the second resistor R02, the Hall switch output voltage V3 will not be affected by V2. When the charging device is in the discharging state, the second light-emitting diode D2 will be lit once in the t4 time period of each second cycle. Due to the persistence of vision effect of people, the human eyes will see that the second light-emitting diode D2 is always on. .
在t3时间段,控制模块无效第三开关S3,使能霍尔检测模块,即使能霍尔检测电路、关闭第二驱动电路,此时第二引脚HALL只由霍尔开关驱动。t3时间段内,第二比较器C2会将霍尔开关输出的高低电平信息经过比较后输出到霍尔检测模块。当霍尔开关驱动到高电平VH时,选取第一电阻R01与第二电阻R02的阻值使得V2<Vth,第二发光二极管D2不会导通,第二发光二极管D2电流非常小,第二发光二极管D2几乎不会影响V2电压,此时V2=VH*R01/(R01+R02)。第二比较器C2的参考电平(即第二输入端的输入电压)Vref2<VH*R01/(R01+R02),当霍尔开关输出电压为VH时,第二比较器C2输出高电平。当霍尔开关驱动到低电平VL时,此时第二发光二极管D2也不会导通,V2=VL*R01/(R01+R02)。第二比较器C2的参考电平Vref2>VL*R01/(R01+R02),当霍尔开关输出电压为VL时,第二比较器C2输出低电平。During the time period t3, the control module disables the third switch S3, enables the Hall detection module, that is, enables the Hall detection circuit, and turns off the second driving circuit. At this time, the second pin HALL is only driven by the Hall switch. During the time period t3, the second comparator C2 compares the high and low level information output by the Hall switch and then outputs it to the Hall detection module. When the Hall switch is driven to a high level VH, select the resistance values of the first resistor R01 and the second resistor R02 so that V2<Vth, the second light-emitting diode D2 will not conduct, the current of the second light-emitting diode D2 is very small, and the first The two light emitting diodes D2 hardly affect the voltage of V2, at this time V2=VH*R01/(R01+R02). The reference level of the second comparator C2 (that is, the input voltage of the second input terminal) Vref2<VH*R01/(R01+R02), when the output voltage of the Hall switch is VH, the second comparator C2 outputs a high level. When the Hall switch is driven to a low level VL, the second light emitting diode D2 will not be turned on at this time, V2=VL*R01/(R01+R02). The reference level Vref2 of the second comparator C2>VL*R01/(R01+R02), when the output voltage of the Hall switch is VL, the second comparator C2 outputs a low level.
实施例2:Example 2:
本实施例提供了一种蓝牙耳机的充电装置,包括如实施例1所述的控制芯片。This embodiment provides a charging device for a Bluetooth headset, including the control chip as described in Embodiment 1.
由此可见,本申请提供的蓝牙耳机充电装置中,控制芯片可通过两个引脚实现按键检测、霍尔开关检测以及充放电提示灯的点亮,有利于节省控制芯片和蓝牙耳机充电装置的成本。It can be seen that in the Bluetooth earphone charging device provided by the present application, the control chip can realize button detection, Hall switch detection, and lighting of the charging and discharging prompt light through two pins, which is beneficial to save the cost of the control chip and the Bluetooth earphone charging device. cost.
以上所述仅是本申请的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above descriptions are only some implementations of the present application. It should be pointed out that for those of ordinary skill in the art, some improvements and modifications can be made without departing from the principle of the application. These improvements and modifications are also It should be regarded as the protection scope of this application.

Claims (10)

  1. 一种控制芯片,应用于蓝牙耳机的充电装置,其特征在于,包括:控制模块、按键检测电路、霍尔检测电路、第一驱动电路、第二驱动电路、第一引脚和第二引脚;A control chip, which is applied to a charging device for a Bluetooth headset, is characterized in that it includes: 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 to the control port of the key detection circuit, the control port of the first drive circuit, the control port of the second drive circuit and the control port of the Hall detection circuit, and the key detection circuit The first end of the first drive circuit is connected to the first pin, the first pin is used to connect the first light-emitting diode module and the button, and the first end of the Hall detection circuit , the first end of the second driving circuit is connected to the second pin, and the second pin is used to connect the second light emitting diode module and the Hall switch;
    所述控制模块用于在每个第一周期的第一时间段内使能所述按键检测电路,通过所述按键检测电路检测所述按键的状态;The control module is used to enable the key detection circuit in the first time period of each first cycle, and detect the state of the key through the key detection circuit;
    所述控制模块还用于在所述每个第一周期的第二时间段内使能所述第一驱动电路,并在所述第一驱动电路为使能状态,且所述充电装置为第一状态时,控制所述第一驱动电路点亮所述第一发光二极管模块;The control module is further configured to enable the first driving circuit in the second time period of each first cycle, and when the first driving circuit is in an enabled state and the charging device is the first In a state, control the first driving circuit to light up the first light-emitting diode module;
    所述控制模块还用于在每个第二周期的第三时间段内使能所述霍尔检测电路,通过所述霍尔检测电路检测所述霍尔开关的状态;The control module is further configured to enable the Hall detection circuit in the third time period of each second cycle, and detect the state of the Hall switch through the Hall detection circuit;
    所述控制模块还用于在所述每个第二周期的第四时间段内使能所述第二驱动电路,并在所述第二驱动电路为使能状态,且所述充电装置为第二状态时,控制所述第二驱动电路点亮所述第二发光二极管模块;The control module is further configured to enable the second drive circuit in the fourth time period of each second cycle, and when the second drive circuit is in an enabled state and the charging device is the first In the second state, control the second drive circuit to light up the second light emitting diode module;
    其中,所述第一时间段和所述第二时间段不重叠,所述第三时间段和所述第四时间段不重叠;所述第一状态为充电状态和放电状态中的任一种,所述第二状态为充电状态和放电状态中除所述第一状态外的另一种。Wherein, the first time period does not overlap with the second time period, and the third time period does not overlap with the fourth time period; the first state is any one of a charging state and a discharging state , the second state is another one of the charging state and the discharging state except the first state.
  2. 根据权利要求1所述的控制芯片,其特征在于,所述按键检测电路包括:按键检测模块、第一比较器模块、第一开关模块;所述第一驱动电路包括第二开关模块;The control chip according to claim 1, wherein the key detection circuit comprises: a key detection module, a first comparator module, and a first switch module; the first drive circuit comprises a second switch module;
    所述控制模块连接所述按键检测模块的控制端口、所述第一开关模块的控制端口和所述第二开关模块的控制端口;所述第一开关模块的第一端的输入电压为第一输入电压,所述第二开关模块的第一端的输入电压为第二输入电压,所述第一开关模块的第二端、所述第二开关模块的第二端和所述第一比较器模块的第一输入端合路后连接所述第一引脚,所述第一比较器模块的第二输入端的输入电压为第三输入电压,所述第一比较器模块的输出端连接所述按键检测模块的第一端;The control module is connected to 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 terminal of the first switch module is the first Input voltage, the input voltage of the first end of the second switch module is the second input voltage, the second end of the first switch module, the second end of the second switch module and the first comparator The first input terminal of the module is combined and connected to the first pin, the input voltage of the second input terminal of the first comparator module is the third input voltage, and the output terminal of the first comparator module is connected to the The first end of the button detection module;
    所述按键检测模块用于根据所述第一比较器模块的输出确定所述按键的状态,所述控制模块用于在所述第一时间段内使能所述按键检测模块,并控制所述第一开关模块导通,通过所述按键模块检测所述按键的状态;The key detection module is used to determine the state of the key according to the output of the first comparator module, and the control module is used to enable the key detection module within the first time period and control the The first switch module is turned on, and the state of the button is detected through the button module;
    所述控制模块还用于在所述第二时间段内使能所述第二开关模块,并在所述第二开关模块为使能状态,且所述充电装置为所述第一状态时,控制所述第二开关模块导通。The control module is further configured to enable the second switch module within the second time period, and when the second switch module is in an enabled state and the charging device is in the first state, and controlling the second switch module to conduct.
  3. 根据权利要求1或2所述的控制芯片,其特征在于,所述霍尔检测电路包括:霍尔检测模块、第二比较器模块,所述第二驱动电路包括第三开关模块;The control chip according to claim 1 or 2, wherein the Hall detection circuit includes: a Hall detection module and a second comparator module, and the second drive circuit includes a third switch module;
    所述控制模块连接所述霍尔检测模块的控制端口和所述第三开关模块的控制端口;所述第三开关模块的第一端的输入电压为第四输入电压,所述第三开关模块的第二端和所述第二比较器模块的第一输入端合路后连接所述第二引脚,所述第二比较器模块的第二输入端的输 入电压为第五输入电压,所述第二比较器模块的输出端连接所述霍尔检测模块的第一端;The control module is connected to the control port of the Hall detection module and the control port of the third switch module; the input voltage of the first terminal of the third switch module is a fourth input voltage, and the third switch module The second terminal of the second comparator module is combined with the first input terminal of the second comparator module and then connected to the second pin, the input voltage of the second input terminal of the second comparator module is the fifth input voltage, and the The output end of the second comparator module is connected to the first end of the Hall detection module;
    所述霍尔检测模块用于根据所述第二比较器模块的输出确定所述霍尔开关的状态,所述控制模块用于在所述第三时间段内使能所述霍尔检测模块,通过所述霍尔检测模块检测所述霍尔开关的状态;The Hall detection module is used to determine the state of the Hall switch according to the output of the second comparator module, and the control module is used to enable the Hall detection module within the third time period, Detecting the state of the Hall switch through the Hall detection module;
    所述控制模块还用于在所述第四时间段内使能所述第三开关模块,并在所述第三开关模块为使能状态,且所述充电装置为所述第二状态时,控制所述第三开关模块导通。The control module is further configured to enable the third switch module within the fourth time period, and when the third switch module is in an enabled state and the charging device is in the second state, and controlling the third switch module to conduct.
  4. 根据权利要求2所述的控制芯片,其特征在于,所述第一发光二极管模块的正极和所述按键的第一端合路后连接所述第一引脚,所述第一发光二极管模块的负极和所述按键的第二端接地;The control chip according to claim 2, wherein the anode of the first LED module is combined with the first end of the button and then connected to the first pin, and the first LED module is connected to the first pin. The negative pole and the second end of the button are grounded;
    所述第一输入电压的电压值小于所述第一发光二极管模块的导通电压值,所述第二输入电压的电压值大于所述第一发光二极管模块的导通电压值。The voltage value of the first input voltage is smaller than the conduction voltage value of the first LED module, and the voltage value of the second input voltage is greater than the conduction voltage value of the first LED module.
  5. 根据权利要求3所述的控制芯片,其特征在于,所述控制芯片还包括第一电阻,所述第一电阻的第一端、所述第二比较器模块的第一输入端和所述第三开关模块的第二端合路后连接所述第二引脚,所述第一电阻的第二端接地;The control chip according to claim 3, wherein the control chip further comprises a first resistor, the first end of the first resistor, the first input end of the second comparator module and the first The second end of the three-switch module is combined and connected to the second pin, and the second end of the first resistor is grounded;
    所述霍尔开关的输出端连接第二电阻的第一端,所述第二电阻的第二端和所述第二发光二极管模块的正极合路后连接所述第二引脚,所述第二发光二极管模块的负极接地;The output end of the Hall switch is connected to the first end of the second resistor, and the second end of the second resistor is connected to the second pin after being combined with the anode of the second light-emitting diode module. The negative electrode 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: within the third time period, when the output voltage of the Hall switch acts Next, the state of the second LED module is non-conductive.
  6. 根据权利要求5所述的控制芯片,其特征在于,所述第一电阻的电阻值、所述第二电阻的电阻值和所述霍尔开关的输出电压值满足以下条件:The control chip according to claim 5, 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;V*R1/(R1+R2)<Vth;
    其中,V为所述霍尔开关的输出电压,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 turn-on voltage value of the second LED module.
  7. 根据权利要求2所述的控制芯片,其特征在于,所述按键检测电路还包括第三电阻,所述第一开关模块的第一端连接所述第三电阻的第一端,所述第三电阻的第一端连接第一供电模块。The control chip according to claim 2, wherein 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 third The first end of the resistor is connected to the first power supply module.
  8. 根据权利要求2所述的控制芯片,其特征在于,所述第一驱动电路还包括第一电流源,所述第一电流源的输出端口连接所述第二开关模块的第一端。The control chip according to claim 2, wherein the first driving circuit further comprises a first current source, an output port of the first current source is connected to the first terminal of the second switch module.
  9. 根据权利要求3所述的控制芯片,其特征在于,所述第二驱动电路还包括第二电流源,所述第二电流源的输出端口连接所述第三开关模块的第一端。The control chip according to claim 3, wherein the second driving circuit further includes a second current source, an output port of the second current source is connected to the first terminal of the third switch module.
  10. 一种蓝牙耳机的充电装置,包括如权利要求1-9任一项所述的控制芯片。A charging device for a Bluetooth headset, comprising the control chip according to any one of claims 1-9.
PCT/CN2022/115888 2021-09-16 2022-08-30 Control chip and bluetooth headset charging device WO2023040654A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111085433.8 2021-09-16
CN202111085433.8A CN113541277B (en) 2021-09-16 2021-09-16 Control chip and bluetooth headset charging device

Publications (1)

Publication Number Publication Date
WO2023040654A1 true WO2023040654A1 (en) 2023-03-23

Family

ID=78123241

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/115888 WO2023040654A1 (en) 2021-09-16 2022-08-30 Control chip and bluetooth headset charging device

Country Status (2)

Country Link
CN (2) CN115833288A (en)
WO (1) WO2023040654A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116528105A (en) * 2023-07-03 2023-08-01 紫光同芯微电子有限公司 Self-starting discharging circuit and charging method for earphone charging bin

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115833288A (en) * 2021-09-16 2023-03-21 深圳英集芯科技股份有限公司 Control chip and related earphone charging device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187971A (en) * 2015-09-24 2015-12-23 青岛歌尔声学科技有限公司 Apparatus, system and method for charging and turning on earphone
CN204947669U (en) * 2015-09-10 2016-01-06 深圳英集芯科技有限公司 A kind of pin multiplexing circuit for portable power source
CN211128141U (en) * 2020-03-17 2020-07-28 广州由我科技股份有限公司 Charging bin and Bluetooth headset with headset function controlled through charging bin
CN112188666A (en) * 2020-11-06 2021-01-05 珠海昇生微电子有限责任公司 Multi-LED driving and multi-key pin multiplexing circuit and control method thereof
CN113541277A (en) * 2021-09-16 2021-10-22 深圳英集芯科技股份有限公司 Control chip and bluetooth headset charging device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
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
CN212519375U (en) * 2020-06-24 2021-02-09 广州由我科技股份有限公司 Bluetooth headset charging system
CN112986689B (en) * 2021-04-20 2021-08-06 珠海智融科技有限公司 Detection circuit and method for chip configuration pins

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204947669U (en) * 2015-09-10 2016-01-06 深圳英集芯科技有限公司 A kind of pin multiplexing circuit for portable power source
CN105187971A (en) * 2015-09-24 2015-12-23 青岛歌尔声学科技有限公司 Apparatus, system and method for charging and turning on earphone
CN211128141U (en) * 2020-03-17 2020-07-28 广州由我科技股份有限公司 Charging bin and Bluetooth headset with headset function controlled through charging bin
CN112188666A (en) * 2020-11-06 2021-01-05 珠海昇生微电子有限责任公司 Multi-LED driving and multi-key pin multiplexing circuit and control method thereof
CN113541277A (en) * 2021-09-16 2021-10-22 深圳英集芯科技股份有限公司 Control chip and bluetooth headset charging device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116528105A (en) * 2023-07-03 2023-08-01 紫光同芯微电子有限公司 Self-starting discharging circuit and charging method for earphone charging bin
CN116528105B (en) * 2023-07-03 2023-10-13 紫光同芯微电子有限公司 Self-starting discharging circuit and charging method for earphone charging bin

Also Published As

Publication number Publication date
CN115833288A (en) 2023-03-21
CN113541277A (en) 2021-10-22
CN113541277B (en) 2022-01-04

Similar Documents

Publication Publication Date Title
WO2023040654A1 (en) Control chip and bluetooth headset charging device
TWI618356B (en) Power-up control circuit and the mobile power device apllied thereof
WO2017101231A1 (en) Portable power circuit for lamp and lamp
TWI713280B (en) Charging power supply circuit for portable electronic device and portable electronic device
WO2014153793A1 (en) Backlight drive circuit and drive method therefor and liquid crystal device
WO2014187018A1 (en) Short circuit protection circuit and electronic device having same
TW201320515A (en) Short protection control circuits and related control methods
WO2016090547A1 (en) Switch-mode power supply and short-circuit protection circuit thereof
US11632843B2 (en) Delayed lighting system
US20110018446A1 (en) Light emitting diode lamp protecting circuit
CN103079310A (en) Dimming control circuit for spotlight
CN205880854U (en) Port reuse circuit and portable electronic equipment
WO2015196609A1 (en) Sectional-type dimming circuit and dimmable lighting device
CN104159359A (en) Electric torch drive circuit and mobile terminal
CN201928478U (en) Television indicating lamp control circuit
CN209964341U (en) Electric tool intelligence light filling circuit and electric tool
CN103259896A (en) Mobile terminal
CN103841711B (en) A kind of LED emergence lighting lamp and drive circuit thereof
CN108207053B (en) Driving circuit
CN107249235B (en) LED drive circuit compatible with indicator light switch
CN202152927U (en) Flashlight capable of adjusting light
CN212573040U (en) Intelligent light and color adjusting control system circuit structure
CN219960896U (en) Light emission control circuit and photographic lamp
CN210894486U (en) Low-voltage alarm circuit
CN218277233U (en) Sight lamp control circuit

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22869026

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE