Control chip and related earphone charging device

By enabling the control module of the Bluetooth earphone charging case at different times, and using a shared pin to achieve button and Hall switch detection and charging/discharging indicator control, the problem of high cost of traditional control chips is solved, thus achieving cost savings.

CN115833288BActive Publication Date: 2025-12-19SHENZHEN INJOINIC TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210116551.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-16
Publication Date
2025-12-19
Estimated Expiration
2041-09-16

AI Technical Summary

Technical Problem

The pin resources of the control chip in the charging case of traditional Bluetooth earphones have not been effectively optimized, leading to increased system costs.

Method used

The control module enables the button detection circuit, the first driving circuit, the Hall detection circuit, and the second driving circuit at different time periods, sharing a single pin to control button detection, Hall switch detection, and the charging/discharging indicator light.

Benefits of technology

It enables control of button detection, Hall switch detection, and charge/discharge indicator light through two pins, saving the cost of control chips.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115833288B_ABST
    Figure CN115833288B_ABST
Patent Text Reader

Abstract

The application provides a control chip and an earphone charging device. The control chip comprises a control module, a button detection circuit and a first driving circuit connected with a first pin, and a Hall detection circuit and a second driving circuit connected with a second pin; the control module is used for enabling the button detection circuit and the first driving circuit corresponding to a first light emitting diode module in each first period of non-overlapping time periods, and enabling the Hall detection circuit and the second driving circuit corresponding to a second light emitting diode module in each second period of non-overlapping time periods. The application can realize button detection, Hall switch detection and lighting of a charging and discharging prompt lamp through two pins, which is beneficial to saving the cost of the control chip.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electronics, and in particular to a control chip and a related earphone charging device. BACKGROUND

[0002] The Bluetooth earphone charging bin is a device for charging wireless Bluetooth earphones. At present, a common Bluetooth earphone charging bin is composed of a key, a Hall switch, a charging capacity indicator lamp, a discharging capacity indicator lamp, a Bluetooth earphone charging bin control chip, a battery and the like. When designing the Bluetooth earphone charging bin control chip, the key detection, the Hall switch detection, the charging indicator lamp and the discharging indicator lamp will usually occupy a pin respectively, and the cost of chip packaging cannot be effectively optimized, and the system cost is also increased. SUMMARY

[0003] The present application provides a control chip and a related earphone charging device to solve the problem of high cost of traditional control chips.

[0004] In a first aspect, an embodiment of the present application provides a control chip applied to a charging device of a Bluetooth earphone, comprising: a control module, a key detection circuit, a Hall detection circuit, a first driving circuit, a second driving circuit, a first pin and a second pin.

[0005] The control module is connected to the control port of the key detection circuit, the control port of the first driving circuit, the control port of the second driving circuit and the control port of the Hall detection circuit respectively, the first end of the key detection circuit and the first end of the first driving circuit are connected to the first pin, the first pin is used for connecting a first light emitting diode module and a key, the first end of the Hall detection circuit and the first end of the second driving circuit are connected to the second pin, and the second pin is used for connecting a second light emitting diode module and a Hall switch.

[0006] The control module is used for enabling the key detection circuit in a first time period of each first period, and detecting the state of the key through the key detection circuit.

[0007] The control module is further used for enabling the first driving circuit in a second time period of each first period, and controlling the first driving circuit to light up the first light emitting diode module when the first driving circuit is in an enabled state and the charging device is in a first state.

[0008] The control module is further used for enabling the Hall detection circuit in a third time period of each second period, and detecting the state of the Hall switch through the Hall detection circuit.

[0009] The control module is further configured to enable the second driving circuit in a fourth time period of each second cycle, and control the second driving circuit to light up the second light emitting diode module when the second driving circuit is in an enabled state and the charging device is in the second state.

[0010] The first time period and the second time period are non-overlapping, and the third time period and the fourth time period are non-overlapping; the first state is one of the charging state and the discharging state, and the second state is the other state of the charging state and the discharging state.

[0011] In a second aspect, the application provides a charging device of a Bluetooth earphone, comprising the control chip as described in the first aspect.

[0012] It can be seen that, in the embodiments of the application, the key detection circuit and the first driving circuit share one pin, the Hall detection circuit and the second driving circuit share one pin, and the control module enables the key detection circuit and the first driving circuit in different time periods of the first cycle, so that the key detection and the lighting control of the first light emitting diode module can be realized through one pin; the control module enables the Hall detection circuit and the second driving circuit 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, the control chip can realize the key detection, the Hall switch detection, and the lighting of the charging and discharging prompt light through two pins, which is conducive to saving the cost of the control chip. BRIEF DESCRIPTION OF DRAWINGS

[0013] Figure 1 is a circuit schematic diagram of a control chip provided by the application;

[0014] Figure 2 is a circuit schematic diagram of a key detection circuit and a first driving circuit provided by the application;

[0015] Figure 3 is a circuit schematic diagram of a Hall detection circuit and a second driving circuit provided by the application;

[0016] Figure 4 is another circuit schematic diagram of a key detection circuit and a first driving circuit provided by the application;

[0017] Figure 5 is another circuit schematic diagram of a Hall detection circuit and a second driving circuit provided by the application;

[0018] Figure 6 is another circuit schematic diagram of a key detection circuit provided by the application;

[0019] Figure 7is a circuit schematic diagram of another first driving circuit provided by the present application;

[0020] Figure 8 is a circuit schematic diagram of another second driving circuit provided by the present application;

[0021] Figure 9 is a circuit schematic diagram of another control chip provided by the present application;

[0022] Figure 10 is an example diagram of distribution of the first time period and the second time period in a first cycle provided by the present application;

[0023] Figure 11 is an example diagram of distribution of the third time period and the fourth time period in a second cycle provided by the present application.

[0024] The present application will be further described below in conjunction with the accompanying drawings and embodiments. DETAILED DESCRIPTION

[0025] The technical solutions in the embodiments of the present application will be apparently and completely described below in conjunction with the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without any creative effort fall within the scope of protection of the present application.

[0026] It should be noted that the terms used in the embodiments of the present application are merely for the purpose of describing the specific embodiments, and are not intended to limit the present application. The singular forms "a", "an" and "the" used in the embodiments of the present application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein means and includes any or all possible combinations of one or more associated listed items.

[0027] Before introducing the specific embodiments, some nouns in the embodiments of the present application are explained as follows:

[0028] Hall switch detection: the Hall switch will convert the information of opening and closing the cover of the Bluetooth earphone charging device (for example, the Bluetooth earphone charging bin) into high and low level information, and output to the control chip in the Bluetooth earphone charging device. The control chip detects that the level information of the Hall switch is valid level information, and the Bluetooth earphone charging device will be switched to the discharging state.

[0029] Embodiment 1:

[0030] Reference Figure 1The embodiment provides a control chip applied to a charging device of a Bluetooth earphone, comprising a control module, a key detection circuit, a Hall detection circuit, a first driving circuit, a second driving circuit, a first pin and a second pin.

[0031] The control module is connected with a control port of the key detection circuit, a control port of the first driving circuit, a control port of the second driving circuit and a control port of the Hall detection circuit respectively, a first end of the key detection circuit and a first end of the first driving circuit are connected with the first pin, the first pin is used for connecting a first light emitting diode module and a key, a first end of the Hall detection circuit and a first end of the second driving circuit are connected with the second pin, and the second pin is used for connecting a second light emitting diode module and a Hall switch.

[0032] The control module is used for enabling the key detection circuit in a first time period of each first period, and detecting a state of the key through the key detection circuit.

[0033] The control module is also used for enabling the first driving circuit in a second time period of each first period, and controlling the first driving circuit to light up the first light emitting diode module when the first driving circuit is in an enabled state and the charging device is in a first state.

[0034] The control module is also used for enabling the Hall detection circuit in a third time period of each second period, and detecting a state of the Hall switch through the Hall detection circuit.

[0035] The control module is also used for enabling the second driving circuit in a fourth time period of each second period, and controlling the second driving circuit to light up the second light emitting diode module when the second driving circuit is in an enabled state and the charging device is in a second state.

[0036] Wherein, the first time period and the second time period are not overlapped, the third time period and the fourth time period are not overlapped, the first state is any one of a charging state and a discharging state, and the second state is another one of the charging state and the discharging state except the first state.

[0037] Wherein, the first period and the second period can be overlapped or not overlapped, which is not limited here.

[0038] In different time periods of each cycle, the control module enables a certain circuit in a certain time period, and meanwhile disables the circuit that needs to be enabled in another time period of the cycle, that is, only one of the two circuits sharing a pin in the same time period is enabled, and the un-enabled circuit is in a disabled state by default and cannot work. For example, the key detection circuit is enabled in the first time period, and the first driving circuit is in a disabled state (i.e., the first driving circuit is off) at this time. Conversely, the first driving circuit is enabled in the second time period, and the key detection circuit is in a disabled state. The enabling and disabling of the Hall detection circuit and the second driving circuit in the second cycle are the same.

[0039] In a specific implementation, the control chip can further include a third pin for connecting a charging adapter, and the control module is connected with the third pin and determines whether the charging device is in a charging state by detecting whether the third pin has a charging adapter connected; the control module can also determine whether the charging device is in a discharging state according to the state of the detected key, or the control module can determine whether the charging device is in a discharging state according to the state of the detected Hall switch. Specifically, the control module determines that the charging device is in a discharging state when it detects that the third pin has no adapter connected and the key is in a first preset state (e.g., the key is pressed), or the control module determines that the charging device is in a discharging state when it detects that the third pin has no adapter connected and the Hall switch is in a preset state (e.g., the output voltage of the Hall switch is within a preset threshold range).

[0040] The control module can periodically control the first driving circuit or the second driving circuit in a specific time period based on the state of the charging device to light up the first light-emitting diode module or the second light-emitting diode module. Since the first light-emitting diode module and the second light-emitting diode module will be periodically lit up in the corresponding state, the user will see that the light-emitting diode module is continuously lit up under the human visual persistence effect. 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 a charging state, the first driving circuit lights up the first light-emitting diode module in the second time period of each first cycle, that is, the user will see that the first light-emitting diode module is continuously lit up when the charging device is in a charging state, and the first light-emitting diode module functions as a charging indicator light. When the charging device is in a discharging state, the second driving circuit lights up the second light-emitting diode module in the fourth time period of each second cycle, that is, the user will see that the second light-emitting diode module is continuously lit up when the charging device is in a discharging state, and the second light-emitting diode module functions as a discharging indicator light.

[0041] In a specific implementation, the control module can always save the state result of the charging device determined last time, and in the second time period and the fourth time period, the control module can determine whether the first driving circuit or the second driving circuit needs to be controlled to light up the corresponding light emitting diode module according to the saved state of the charging device.

[0042] It can be seen that in the embodiments of the present application, the key detection circuit and the first driving circuit share one pin, the Hall detection circuit and the second driving circuit share one pin, and the control module enables the key detection circuit and the first driving circuit at different time periods of the first period, so that key detection and lighting control of the first light emitting diode module can be realized through one pin, and the Hall detection circuit and the second driving circuit are enabled at different time periods of the second period, so that Hall detection and lighting control of the second light emitting diode module can be realized through one pin. That is, the control chip can realize key detection, Hall switch detection, and lighting of the charging and discharging prompt light through two pins, which is conducive to saving the cost of the control chip.

[0043] In one possible example, referring to Figure 2 , the key detection circuit includes a key detection module, a first comparator module, and a first switch module; the first driving circuit includes a second switch module; the control module is connected to a control port of the key detection module, a control port of the first switch module, and a control port of the second switch module; an input voltage of a first end of the first switch module is a first input voltage, an input voltage of a first end of the second switch module is a second input voltage, a second end of the first switch module, a second end of the second switch module, and a first input end of the first comparator module are connected to the first pin after being combined, an input voltage of a second input end of the first comparator module is a third input voltage, and an output end of the first comparator module is connected to a first end of the key detection module;

[0044] The key detection module is configured to determine the state of the key according to the output of the first comparator module, and the control module is configured to enable the key detection module in the first time period and control the first switch module to be turned on, so as to detect the state of the key through the key module; the control module is further configured to enable the second switch module in the second time period, and control the second switch module to be turned on when the second switch module is in an enabled state and the charging device is in the first state.

[0045] In a specific implementation, the switch module can be a MOS tube (field effect transistor), and the comparator module can be a voltage comparator.

[0046] In the first time period, when the first switch module is turned on, the voltage of the first input end of the first comparator module is pulled to the voltage value of the first input voltage. At this time, if the key is pressed, the voltage of the first input end of the first comparator module will be pulled below the first input voltage. By setting the value of the third input voltage, the key pressing state can be determined according to the output result of the first comparator module. For example, if the value of the third input voltage is set to be equal to the value of the first input voltage, the output voltage of the first comparator module will change after the key is pressed, and the key detection module can determine the state of the key according to the output voltage of the first comparator module.

[0047] In the first time period, when the first switch module is turned on, the voltage of the first input end of the first comparator module is pulled to the voltage value of the first input voltage. At this time, if the key is pressed, the voltage of the first input end of the first comparator module will be pulled below the first input voltage. By setting the value of the third input voltage, the key pressing state can be determined according to the output result of the first comparator module. For example, if the value of the third input voltage is set to be equal to the value of the first input voltage, the output voltage of the first comparator module will change after the key is pressed, and the key detection module can determine the state of the key according to the output voltage of the first comparator module.

[0048] In the second time period, when the second switch module is turned on, in order to ensure that the first light emitting diode module is turned on, the value of the second input voltage should be greater than the turn-on voltage of the first light emitting diode module.

[0049] It can be seen that in the example, the key detection circuit and the first drive circuit share the first pin in time multiplexing manner, and the key detection function and the light control of the indicator light can be realized by one pin, which is beneficial to save the cost of the control chip.

[0050] In one possible example, referring to Figure 3 , 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 end of the third switch module is a fourth input voltage, the second end of the third switch module and the first input end of the second comparator module are connected to the second pin, the input voltage of the second input end of the second comparator module is a fifth input voltage, and the output end of the second comparator module is connected to the first end of the Hall detection module.

[0051] 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 in the third time period and detect the state of the Hall switch through the Hall detection module. The control module is also used to enable the third switch module in the fourth time period, and control the third switch module to be turned on when the third switch module is in the enabled state and the charging device is in the second state.

[0052] In the third time period, the control module enables the Hall detection module, and simultaneously controls the third switch module to be disconnected, so as to avoid the fourth input voltage from affecting the Hall switch detection.

[0053] In a specific implementation, for a Bluetooth earphone charging device such as a Bluetooth earphone charging bin, the Hall switch outputs a specific voltage value according to the open cover and close cover states of the charging bin. For example, when the cover is opened, the Hall switch outputs a first preset voltage; and when the cover is closed, the Hall switch outputs a second preset voltage. Figure 3 According to the chip shown in the figure, by setting the fifth input voltage value, the Hall detection module can determine the output voltage of the Hall switch (that is, determine the state of the Hall switch) according to the output voltage of the second comparator module in the third time period. Specifically, the fifth input voltage value 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 smaller voltage value of the first preset voltage and the second preset voltage, and less than the larger voltage value of the first preset voltage and the second preset voltage.

[0054] It can be seen that in the present example, the Hall detection circuit and the second drive circuit are time-multiplexed with the second pin, so that the Hall switch detection function and the lighting control of a indicator lamp can be realized through one pin, which is conducive to saving the cost of the control chip.

[0055] In one possible example, referring to Figure 4 , the anode of the first light-emitting diode module and the first end of the key are connected to the first pin after being combined, and the cathode of the first light-emitting diode module and the second end of the key are grounded; the voltage value of the first input voltage is 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.

[0056] 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, when the voltage of the first pin is pulled to the voltage value of the first input voltage, the first light-emitting diode module will not be affected, and the first light-emitting diode module will not be mistakenly lit.

[0057] The voltage value of the second input voltage is greater than the conduction voltage value of the first light-emitting diode module, so as to ensure that in the second time period of each first cycle, if the charging device is in the first state, the first drive circuit can light up the first light-emitting diode module.

[0058] It can be seen that in the example, the voltage value of the first input voltage is less than the turn-on voltage value of the first light-emitting diode module, and the voltage value of the second input voltage is greater than the turn-on voltage value of the first light-emitting diode module, which is conducive to avoiding that the first input voltage causes the first light-emitting diode module to be erroneously lighted in the first time period of the first period, and improving the reliability of system operation.

[0059] In one possible example, referring to Figure 5 , the control chip further includes a first resistor, a first end of the first resistor, a first input end of the second comparator module, and a second end of the third switch module are connected to the second pin after being combined, and a second end of the first resistor is grounded; an output end of the Hall switch is connected to a first end of a second resistor, a second end of the second resistor and a positive electrode of the second light-emitting diode module are connected to the second pin after being combined, and a 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 satisfy the following condition: in the third time period, under the action of the output voltage of the Hall switch, the state of the second light-emitting diode module is non-conducting.

[0060] In one possible example, referring to Figure 5 , the control chip further includes a first resistor, a first end of the first resistor, a first input end of the second comparator module, and a second end of the third switch module are connected to the second pin after being combined, and a second end of the first resistor is grounded; an output end of the Hall switch is connected to a first end of a second resistor, a second end of the second resistor and a positive electrode of the second light-emitting diode module are connected to the second pin after being combined, and a 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 satisfy the following condition: in the third time period, under the action of the output voltage of the Hall switch, the state of the second light-emitting diode module is non-conducting.

[0061] In one possible example, referring to Figure 5 , the control chip further includes a first resistor, a first end of the first resistor, a first input end of the second comparator module, and a second end of the third switch module are connected to the second pin after being combined, and a second end of the first resistor is grounded; an output end of the Hall switch is connected to a first end of a second resistor, a second end of the second resistor and a positive electrode of the second light-emitting diode module are connected to the second pin after being combined, and a 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 satisfy the following condition: in the third time period, under the action of the output voltage of the Hall switch, the state of the second light-emitting diode module is non-conducting.

[0062] It can be seen that in the example, the Hall switch output end is connected to the second resistor, the resistance value of the first resistor, the resistance value of the second resistor, and the output voltage value of the Hall switch satisfy the following condition: in the third time period, under the action of the output voltage of the Hall switch, the state of the second light-emitting diode module is non-conducting, which is conducive to ensuring the reliability of system operation.

[0063] In one possible example, the resistance value of the first resistor, the resistance value of the second resistor, and the output voltage value of the Hall switch satisfy the following condition:

[0064] V*R1 / (R1+R2)<Vth;

[0065] Wherein, V is the output voltage of the Hall switch, R1 is the resistance value of the first resistor, R2 is the resistance value of the second resistor, and Vth is the on voltage value of the second light emitting diode module.

[0066] Specifically, the output voltage V of the first Hall switch can 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.

[0067] Then Vh and Vl should satisfy the following conditions:

[0068] Vh*R1 / (R1+R2)<Vth;

[0069] Vl*R1 / (R1+R2)<Vth;

[0070] 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 also satisfy the following conditions:

[0071] Vref<Vh*R1 / (R1+R2);

[0072] Vref>Vl*R1 / (R1+R2);

[0073] Wherein, Vref is the voltage value of the fifth input voltage. Through the setting of the above voltage values and resistance values, the function of Hall switch state detection can be realized, and the mutual influence between the Hall detection circuit and the second driving circuit can be avoided.

[0074] It can be seen that in the present 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 certain conditions, which is conducive to ensuring that the output voltage of the Hall switch does not incorrectly affect the lighting of the second light emitting diode in the third time period.

[0075] In one possible example, with reference to Figure 6 , the key detection circuit further includes a third resistor, the first end of the first switch module is connected to the first end of the third resistor, and the first end of the third resistor is connected to the first power supply module.

[0076] In a specific implementation, the key can be a switch with one end grounded and the other end connected to the first pin. When the key is pressed, the switch is closed, and at this time the voltage of the first pin will be pulled down to ground. By adding a third resistor to limit the current, it can be avoided that the first power supply module is pulled down to ground after the key is pressed.

[0077] It can be seen that in the present example, the third resistor is arranged between the first power supply module and the first switch module, which is conducive to ensuring the safety of the circuit.

[0078] In one possible example, referring to Figure 7 , the first driving circuit further comprises a first current source, and an output port of the first current source is connected to the first end of the second switch module.

[0079] It can be seen that, in this example, the first end of the second switch module is connected to the constant current source, which is conducive to ensuring that the driving current is controllable when the first driving circuit is working, thereby improving the working reliability of the system.

[0080] In one possible example, referring to Figure 8 , the second driving circuit further comprises a second current source, and an output port of the second current source is connected to the first end of the third switch module.

[0081] It can be seen that, in this example, the first end of the third switch module is connected to the constant current source, which is conducive to ensuring that the driving current is controllable when the second driving circuit is working, thereby improving the working reliability of the system.

[0082] The specific examples will be described below.

[0083] Please refer to Figure 9 , Figure 9 The control chip comprises a control module, a key detection module, a Hall detection module, a first comparator C1, a second comparator C2, a first switch S1, a second switch S2, a third switch S3, a first current source I1, a second current source I2, a first resistor R01, a second resistor R02, a third resistor R03, a first pin (illustrated as a pin KEY), and a second pin (illustrated as a pin HALL).

[0084] The control module is connected to a control port of the key detection module, a control port of the Hall detection module, a control port of the first switch S1, a control port of the second switch S2, and a control port of the third switch S3, respectively. The first end of the first switch S1 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, 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 key detection module is connected to the output end of the first comparator C1, the first input end of the first comparator C1, the second end of the first switch S1, and the second end of the second switch S2 are connected to the first pin after being combined, 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 connected to the second pin after being combined, the input voltage of the second input end of the first comparator C1 is Vref1, and the input voltage of the second input end of the second comparator C2 is Vref2.

[0085] The first pin KEY is used for connecting the first light emitting diode D1 and the button, and the second pin HALL is used for connecting the second light emitting diode D2 and the Hall switch. Specifically, the anode of the first light emitting diode D1 and the first end of the button are connected to the first pin KEY after being combined, the cathode 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, the second end of the second resistor R02 and the anode of the second light emitting diode D2 are connected to the second pin HALL after being combined, and the cathode of the second light emitting diode D2 is grounded.

[0086] Taking the first state as the charging state and the second state as the discharging state, i.e., the first light emitting diode D1 as the charging lamp and the second light emitting diode D2 as the discharging lamp as an example, the working process of each component of the control chip is specifically as follows:

[0087] Among them, the minimum conduction voltage of the first light emitting diode D1 is Vth1, the minimum conduction voltage of the second light emitting diode D2 is Vth, the voltage of the first pin KEY is V1, and the voltage of the second pin HALL is V2.

[0088] When the button detection function on the first pin KEY is multiplexed with the charging lamp, the distribution of the first time period (i.e., the t1 time period described below) and the second time period (i.e., the t2 time period described below) in the first period T1 is as shown in Figure 10 Taking the high level as the enabled state and the low level as the invalid state as an example.

[0089] In the t1 time period, the control module enables the first switch S1 and the button detection module, and disables the second switch S2, i.e., closes the first driving circuit and enables the button detection circuit. In the t1 time period, the first pin KEY is pulled up to VCC2, and VCC2

[0090] In the t2 time period, the control module enables the second switch S2, disables the first switch S1 and the button detection module, i.e., closes the button detection circuit and enables the first driving circuit. In the t2 time period, the constant current source I1 is turned on, the first pin KEY is driven to the high level VCC1, and VCC1>Vth1, so that the first light emitting diode D1 (i.e., the charging lamp) is turned on. When the charging device is in the charging state, the first light emitting diode D1 will be turned on once in the t2 time period of each first period. Due to the human visual persistence effect, the human eye will see that the first light emitting diode D1 is in a continuous on state.

[0091] The distribution of the third time period (the t3 time period described below) and the fourth time period (the t4 time period described below) in the second period T2 when the Hall detection function on the second pin HALL is multiplexed with the discharging lamp is as shown inFigure 11 As shown, the high level is the enabled state, and the low level is the disabled state.

[0092] In the t4 period, the control module enables the third switch S3, disables the Hall detection module, i.e., closes the Hall detection circuit and enables the second driving circuit. The second driving circuit drives the voltage of the second pin HALL to the high level, and VCC3>Vth, so the second light emitting diode D2 (i.e., the discharge lamp) is lit. When the first resistor R01 and the second resistor R02 are large enough, 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, so the Hall switch output voltage V3 almost does not affect the voltage V2, and the second light emitting diode D2 is not affected. In addition, due to the isolation of the second resistor R02, the Hall switch output voltage V3 is also not affected by V2. When the charging device is in the discharge state, the second light emitting diode D2 is lit once in each t4 period of the second cycle. Due to the human visual persistence effect, the human eye will see that the second light emitting diode D2 is always lit.

[0093] In the t3 period, the control module disables the third switch S3 and enables the Hall detection module, i.e., enables the Hall detection circuit and closes the second driving circuit. At this time, the second pin HALL is only driven by the Hall switch. In the t3 period, the second comparator C2 outputs the high-low level information of the Hall switch output to the Hall detection module after comparison. When the Hall switch is driven to the high level VH, the resistance values of the first resistor R01 and the second resistor R02 are selected such that V2<Vth, and the second light emitting diode D2 is not turned on. The current of the second light emitting diode D2 is very small, and the second light emitting diode D2 almost does not affect the voltage V2. At this time, V2=VH*R01 / (R01+R02). The reference level (i.e., the input voltage of the second input end) of the second comparator C2 is Vref2<VH*R01 / (R01+R02). When the Hall switch output voltage is VH, the second comparator C2 outputs the high level. When the Hall switch is driven to the low level VL, the second light emitting diode D2 is also not turned on, and V2=VL*R01 / (R01+R02). The reference level Vref2 of the second comparator C2 is greater than VL*R01 / (R01+R02). When the Hall switch output voltage is VL, the second comparator C2 outputs the low level.

[0094] Embodiment 2:

[0095] The embodiment provides a charging device of a Bluetooth earphone, which comprises the control chip as described in Embodiment 1.

[0096] Therefore, the Bluetooth earphone charging device provided by the application can realize key detection, Hall switch detection and lighting of the charging and discharging prompt lamp through two pins of the control chip, so that the cost of the control chip and the Bluetooth earphone charging device is saved.

[0097] The above only describes some embodiments of the application, and it should be pointed out that, for those skilled in the art, some improvements and refinements can be made without departing from the principles of the application, and these improvements and refinements should also be considered as the protection scope of the application.

Claims

1. A control chip applicable to a charging device for wireless earphones, characterized in that, include: Control module, key detection circuit, Hall effect detection circuit, first drive circuit, second drive circuit, first pin and second pin; The control module is connected to the control port of the key detection circuit, the control port of the first driving circuit, the control port of the second driving circuit, and the control port of the Hall detection circuit. The first end of the key detection circuit and the first end of the first driving circuit are connected to the first pin. The first pin is used to connect the first light-emitting diode module and the key. The first end of the Hall detection circuit and the first end of the second driving circuit are 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 to detect the state of the key through the key detection circuit. The control module is also configured to enable the first driving circuit during the second time period of each first cycle, and when the first driving circuit is enabled and the charging device is in the first state, control the first driving circuit to light up the first light-emitting diode module; the control module always saves the most recently determined state result of the charging device. The control module is also used to enable the Hall detection circuit during the third time period of each second cycle, and to detect the state of the Hall switch through the Hall detection circuit. The control module is also used to enable the second driving circuit during the fourth time period of each second cycle, and when the second driving circuit is enabled and the charging device is in the second state, control the second driving circuit to light up the second light-emitting diode module. Wherein, the first time period and the second time period do not overlap, and the third time period and the fourth time period do not overlap; the first state is either a charging state or a discharging state, and the second state is either a charging state or a discharging state other than the first state.

2. The control chip according to claim 1, characterized in that, The key detection circuit includes: a key detection module, a first comparator module, and a first switch module; the first driving 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 the first input voltage, 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 terminal of the first comparator module are 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 first terminal of the key detection module; The button detection module is used to determine the state of the button based on the output of the first comparator module. The control module is used to enable the button detection module within the first time period and control the first switch module to be turned on, thereby determining the state of the button through the button detection module. The control module is also used to enable the second switch module during the second time period, and to control the second switch module to conduct when the second switch module is in the enabled state and the charging device is in the first state.

3. The control chip according to claim 1 or 2, characterized in that, The Hall detection circuit includes: a Hall detection module and a second comparator module; the second driving 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 the fourth input voltage, the second terminal of the third switch module and the first input terminal of the second comparator module are combined and 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 is connected to the first terminal of the Hall detection module; The Hall detection module is used to determine the state of the Hall switch based on the output of the second comparator module, and the control module is used to enable the Hall detection module during the third time period to detect the state of the Hall switch through the Hall detection module. The control module is also used to enable the third switch module during the fourth time period, and to control the third switch module to conduct when the third switch module is in the enabled state and the charging device is in the second state.

4. The control chip according to claim 2, characterized in that, The positive terminal of the first LED module and the first terminal of the button are combined and connected to the first pin, and the negative terminal of the first LED module and the second terminal of the button are 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.

5. The control chip according to claim 3, characterized in that, The control chip also includes a first resistor. The first end of the first resistor, the first input end of the second comparator module and the second end of the third switch module are combined and connected to the second pin. The second end of the first resistor is grounded. The output terminal of the Hall switch is connected to the first terminal of the second resistor, the second terminal of the second resistor and the positive terminal of the second LED module are combined and then connected to the second pin, and the negative terminal of the second LED module is grounded. The resistance values ​​of the first resistor, the second resistor, and the output voltage value of the Hall switch satisfy the following condition: during the third time period, under the action of the output voltage of the Hall switch, the state of the second light-emitting diode module is non-conductive.

6. The control chip according to claim 5, characterized in that, The resistance values ​​of the first resistor, the second resistor, and the output voltage value of the Hall switch satisfy the following conditions: V*R1 / (R1+R2) <Vth; Wherein, V is the output voltage of the Hall switch, R1 is the resistance value of the first resistor, R2 is the resistance value of the second resistor, and Vth is the on-state voltage value of the second light-emitting diode module.

7. The control chip according to claim 2, characterized in that, The button detection circuit further includes a third resistor, with the first end of the first switch module connected to the first end of the third resistor, and the first end of the third resistor connected to the first power supply module.

8. The control chip according to claim 2, characterized in that, The first driving circuit further includes a first current source, the output port of which is connected to the first terminal of the second switching module.

9. The control chip according to claim 3, characterized in that, The second driving circuit also includes a second current source, the output port of which is connected to the first terminal of the third switching module.

10. A charging device for headphones, characterized in that, Includes the control chip as described in any one of claims 1-9.

Citation Information

Patent Citations

  • Multi-LED driving and multi-key pin multiplexing circuit and control method thereof

    CN112188666A

  • A pin multiplex circuit for portable power source

    CN204947669U

  • Charging bin and Bluetooth earphone for controlling earphone functions through charging bin

    CN211128141U