Disclosure of Invention
The present invention is directed to the above-mentioned deficiencies of the prior art, and a primary object of the present invention is to provide a serial resistor type port expansion circuit sharing a temperature detection port of a bluetooth headset, which can share a temperature detection pin of a bluetooth main control chip and then divide the voltage by connecting a corresponding resistor in series with a pull-up resistor to realize that one input port can receive multiple functional inputs, that is, to realize port expansion, and has a lower cost compared to selecting bluetooth chips with more ports or adding port expansion chips.
In order to achieve the purpose, the invention adopts the following technical scheme:
a serial resistor type port expansion circuit sharing a temperature detection port of a Bluetooth headset comprises a pull-up resistor, a temperature detection circuit and a function expansion circuit, wherein the temperature detection circuit and the function expansion circuit are connected and form a voltage division node which is commonly connected with a temperature detection pin of a Bluetooth main control chip, the pull-up resistor is provided with a first resistor connecting end and a second resistor connecting end used for being connected with a power supply VCC, and the second resistor connecting end is connected with the voltage division node;
the temperature detection circuit comprises a thermistor NTC and a filter capacitor C1, the first resistor connecting end is grounded through the thermistor NTC, and the voltage division node is grounded through a filter capacitor C1;
the voltage division node is connected with a series circuit, the series circuit comprises a resistor R1 and a resistor R2 which are connected in series, the function expansion circuit comprises a first function expansion unit and a second function expansion unit, and the series node of the resistor R1 and the resistor R2 is grounded through the first function expansion unit;
one of the non-series node of the resistor R1 and the non-series node of the resistor R2 is connected to the voltage dividing node, and the other is connected to the second function expanding unit.
Preferably, the first function expansion unit is a key, the key has a first connection end and a second connection end for grounding, and the first connection end is connected to a series node of a resistor R1 and a resistor R2.
Preferably, the first function expansion unit is a switching tube having a first switching tube connection terminal, a control terminal for connecting the push-pull circuit, and a second switching tube connection terminal for grounding, and the first switching tube connection terminal is connected to a series node of a resistor R1 and a resistor R2.
Preferably, the second function expanding unit is a third connection terminal for connecting a low potential output terminal of the open drain circuit, a non-series node of the resistor R1 is connected to the voltage dividing node, and the third connection terminal is connected to a non-series node of the resistor R2.
A serial resistor type port expansion circuit sharing a temperature detection port of a Bluetooth headset comprises a pull-up resistor, a temperature detection circuit and a function expansion circuit, wherein the temperature detection circuit and the function expansion circuit are connected and form a voltage division node which is commonly connected with a temperature detection pin of a Bluetooth main control chip, the pull-up resistor is provided with a first resistor connecting end and a second resistor connecting end used for being connected with a power supply VCC, and the second resistor connecting end is connected with the voltage division node;
the temperature detection circuit comprises a thermistor NTC and a filter capacitor C1, the first resistor connecting end is grounded through the thermistor NTC, and the voltage division node is grounded through a filter capacitor C1;
the voltage division node is connected with a series circuit, the series circuit comprises a resistor R1 and a resistor R2 which are connected in series, the function expansion circuit comprises a first function expansion unit and a second function expansion unit, and the series node of the resistor R1 and the resistor R2 is grounded through the first function expansion unit;
one of the non-series node of the resistor R1 and the non-series node of the resistor R2 is connected to the voltage dividing node, and the other is connected to the ground through the second function expanding unit.
Preferably, the first function expansion unit and the second function expansion unit are both keys, each key has a first connection end and a second connection end for grounding, and the first connection end of the second function expansion unit is connected to the non-series node of the resistor R2.
Preferably, the first function expansion unit and the second function expansion unit are both switching tubes, each switching tube has a first switching tube connection end, a control end for connecting the push-pull circuit, and a second switching tube connection end for grounding, and the first switching tube connection end of the second function expansion unit is connected to the non-series node of the resistor R2.
As a preferable scheme, one of the first function expansion unit and the second function expansion unit is a key, the other is a switch tube, the key has a first connection end and a second connection end for grounding, the switch tube has a first switch tube connection end, a control end for connecting the push-pull circuit and a second switch tube connection end for grounding, and the first switch tube connection end or the first connection end of the second function expansion unit is connected to the non-series node of the resistor R2.
Compared with the prior art, the invention has obvious advantages and beneficial effects, particularly: the Bluetooth master control chip has the advantages that through the matching of the series circuit, the pull-up resistor and the function expansion circuit, the temperature detection pins of the Bluetooth master control chip can be shared, and then the input port can receive a plurality of functional inputs through the series connection of the corresponding resistor and the pull-up resistor for voltage division, namely, the port expansion is realized, and compared with the Bluetooth chips with more ports or the addition of port expansion chips, the Bluetooth master control chip has low cost;
secondly, the first function extension unit and the second function extension unit can flexibly select a key, a switch tube or a third connecting end for connecting a low-potential output end of the open-drain circuit according to actual design requirements, and can realize functions of the key, the Hall or a charging state and the like;
and through the cooperation of connecting a plurality of resistances in series and setting up a plurality of function extension units, the extension of 256 functions can be realized to the maximize, is favorable to promoting the development of enterprise and trade.
To more clearly illustrate the structural features and effects of the present invention, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
Detailed Description
The invention is further described with reference to the following detailed description and accompanying drawings.
As shown in fig. 1 to 6, a serial resistor type port expansion circuit sharing a temperature detection port of a bluetooth headset includes a pull-up resistor (e.g., resistor R7 in fig. 1 to 6), a temperature detection circuit 20 and a function expansion circuit, where the temperature detection circuit 20 and the function expansion circuit are connected and form a voltage division node 10 commonly connected to a temperature detection pin of a bluetooth main control chip; the pull-up resistor is provided with a first resistor connecting end and a second resistor connecting end used for connecting a power supply VCC, and the second resistor connecting end is connected with a voltage division node 10;
the temperature detection circuit comprises a thermistor NTC and a filter capacitor C1, the first resistor connecting end is grounded through the thermistor NTC, and the voltage division node 10 is grounded through a filter capacitor C1; in this embodiment, the filter capacitor C1 is used to filter out power supply ripple and noise floor on the temperature detection pin.
The voltage dividing node 10 is connected with a series circuit 301, the series circuit 301 comprises a resistor R1 and a resistor R2 which are connected in series, the function expanding circuit comprises a first function expanding unit and a second function expanding unit, and the series node of the resistor R1 and the resistor R2 is grounded through the first function expanding unit;
one of the non-series node of the resistor R1 and the non-series node of the resistor R2 is connected to the voltage dividing node 10, and the other is connected to the second function expanding unit. Alternatively, one of the non-series node of the resistor R1 and the non-series node of the resistor R2 is connected to the voltage dividing node 10, and the other is grounded via the second function expanding unit. The other end of the resistor R1 is a non-series node of the resistor R1, and a node at which one end of the resistor R1 is connected to the other end of the resistor R2 is a series node of the resistor R1 and the resistor R2; one end of the resistor R2 is a non-series node of the resistor R2.
Next, the non-series node of the resistor R1 is connected to the voltage dividing node 10, and the non-series node of the resistor R2 is connected to the second function expanding unit.
In the first embodiment, as shown in fig. 1, the first function expansion unit is a key S1, the key S1 has a first connection end and a second connection end for grounding, and the first connection end is connected to a series node of a resistor R1 and a resistor R2; the second function expanding unit is a third connecting end used for connecting a low potential output end of the open leakage circuit, a non-series node of the resistor R1 is connected with the voltage dividing node 10, and the third connecting end is connected with a non-series node of the resistor R2.
In the second embodiment, as shown in fig. 2, the first function expanding unit is a switch tube, the switch tube has a first switch tube connection end, a control end for connecting the push-pull circuit, and a second switch tube connection end for grounding, and the first switch tube connection end is connected to the series node of the resistor R1 and the resistor R2; the second function expanding unit is a third connecting end used for connecting a low potential output end of the open leakage circuit, a non-series node of the resistor R1 is connected with the voltage dividing node 10, and the third connecting end is connected with a non-series node of the resistor R2.
Next, the non-series node of the resistor R1 is connected to the voltage dividing node 10, and the non-series node of the resistor R2 is connected to the ground through the second function expanding unit.
In the third embodiment, as shown in fig. 3, the first function expansion unit and the second function expansion unit are both keys (here, the first function expansion unit is a key S1, and the second function expansion unit is a key S2), the key has a first connection end and a second connection end for grounding, and the first connection end of the second function expansion unit is connected to the non-series node of the resistor R2.
In the fourth embodiment, as shown in fig. 4, the first function expansion unit and the second function expansion unit are both switching tubes (here, the first function expansion unit is a switching tube Q1, and the second function expansion unit is a switching tube Q2), the switching tubes have a first switching tube connection end, a control end for connecting the corresponding push-pull circuit, and a second switching tube connection end for grounding, and the first switching tube connection end of the second function expansion unit is connected to the non-series node of the resistor R2.
In the fifth embodiment, as shown in fig. 5, one of the first function expansion unit and the second function expansion unit is a key, and the other is a switch tube, the key has a first connection end and a second connection end for grounding, the switch tube has a first switch tube connection end, a control end for connecting the push-pull circuit, and a second switch tube connection end for grounding, and the first switch tube connection end or the first connection end of the second function expansion unit is connected to the non-series node of the resistor R2. Preferably, the first function expansion unit is a key, the second function expansion unit is a switch tube, and a connection end of the first switch tube of the second function expansion unit is connected to a non-series node of the resistor R2.
In a sixth embodiment, as shown in fig. 6, the series circuit 301 further includes a resistor R3, a resistor R4, and a resistor R5 connected in series, the resistor R3 is connected in series with the resistor R2, and the function expansion circuit further includes a third function expansion unit, a fourth function expansion unit, and a fifth function expansion unit, wherein:
the first function extension unit is a key S1, preferably, the key S1 is a volume + key, which functions to increase the volume;
the second function extension unit is a switching tube, preferably, the switching tube is an NMOS tube, of course, the switching tube may also be an NPN triode (a collector corresponds to a drain, a base corresponds to a gate, and an emitter corresponds to a source), which is not limited herein;
the third function extension unit is a third connection end for connecting a low potential output end of the open leakage circuit, and preferably, the low potential output end of the open leakage circuit is a low potential output end CHGb of an open leakage output circuit inside a charging chip in the bluetooth headset;
the fourth function extension unit is a key S2, preferably, the key S2 is a volume-key, which functions to reduce volume;
the fifth function extension unit is a key S3, preferably, the key S3 is a play/pause key, which is used for playing music or pausing playing music;
the sixth function expanding unit is a key S4, and preferably, the key S4 is a favorite key for favorite music.
Specifically, a node at which one end of the resistor R1 is connected to the other end of the resistor R4 is a series node of the resistor R1 and the resistor R4, a node at which one end of the resistor R4 is connected to the other end of the resistor R5 is a series node of the resistor R4 and the resistor R5, a node at which one end of the resistor R5 is connected to the other end of the resistor R6 is a series node of the resistor R5 and the resistor R6, and one end of the resistor R6 is a non-series node of the resistor R6;
the node at which the other end of the resistor R1 is connected with one end of the resistor R2 is a series node of the resistor R1 and the resistor R2, the node at which the other end of the resistor R2 is connected with one end of the resistor R3 is a series node of the resistor R2 and the resistor R3, the other end of the resistor R3 is a non-series node of the resistor R3,
a series node of the resistor R1 and the resistor R2 is connected with a first connection end of the key S1, a series node of the resistor R2 and the resistor R3 is connected with a first switching tube connection end of the switching tube, and a non-series node of the resistor R3 is connected with a third connection end;
the series node of the resistor R1 and the resistor R4 is connected with the first connection end of the key S2, the series node of the resistor R4 and the resistor R5 is connected with the first connection end of the key S3, the series node of the resistor R5 and the resistor R6 is connected with the first connection end of the key S4, and the non-series node of the resistor R6 is connected with the voltage division node 10.
In all of the first to sixth embodiments, the existing battery temperature detection circuit 20 is improved, and a series resistor is added to a temperature detection pin of the bluetooth main control chip. Although the serial resistor and the switch tube are added, the cost is lower than that of a bluetooth chip or a port expansion chip with more ports. In the embodiment, the temperature, the key, the hall, the charging state and the like which originally need a plurality of input/output control interfaces can be realized, and now the realization can be realized only by sharing one input/output control interface, and if the calculation is carried out according to 8-bit A/D, the embodiment can expand 256 function inputs at most.
When the function is input, the sum of the series resistors and the pull-up resistor R7 of the temperature detection circuit 20 are used for voltage division, and a corresponding voltage is obtained at the temperature detection pin of the Bluetooth main control chip, so that the function input is realized.
Specifically, taking the sixth embodiment as an example, for such a common switch (e.g., the button S1 to the button S4) that is only turned on or off, the functions of volume +, volume-, playing/pausing, and collecting the current music can be realized by directly pulling the corresponding resistors connected in series to the ground through the corresponding switches. For example, when the key S4 is pressed, the resistor R6 directly divides the voltage with the pull-up resistor R7; when the key S3 is pressed, the resistor R6 is connected with the resistor R5 in series and then is subjected to voltage division with the pull-up resistor R7; when the key S2 is pressed, the resistor R6 is connected in series with the resistor R5 and the resistor R4 and then is subjected to voltage division with the pull-up resistor R7; when the key S1 is pressed, the resistor R6 is connected in series with the resistor R5, the resistor R4 and the resistor R1 and then is subjected to voltage division with the pull-up resistor R7.
For the output of the corresponding functional chip in the bluetooth headset is open circuit or MOS to ground (e.g. low potential output terminal CHGb of the internal circuit of the charging chip), the output can also be directly connected to the output through a resistor. For example, when a CHGb signal of a charging chip is input, the resistor R6 is connected in series with the resistor R5, the resistor R4, the resistor R1, and the resistor R2, and then is divided by the pull-up resistor R7.
For the push-pull output circuit 41 (such as a hall output circuit of a bluetooth headset), the circuit needs to add a corresponding switch tube to ground (such as an NMOS tube Q1). For example, when a signal of a hall output circuit of a bluetooth headset is input, the resistor R6 is connected in series with the resistor R5, the resistor R4, the resistor R1, the resistor R2 and the resistor R3, and then is divided by a pull-up resistor R7.
Since the resistance change of the thermistor NTC is linear and the normal use of the bluetooth headset is in the range of-5 ℃ to 55 ℃, which is only a small range in the range of-40 ℃ to 125 ℃ allowed by the thermistor NTC, there is still room for the added function expansion circuit, series circuit 301 and pull-up resistor to be operable.
When no function is input, the voltage acquired by the Bluetooth main control chip through the temperature detection pin is the current temperature value; when a function is input and the Bluetooth master control chip is pulled to the ground, an instant voltage drop occurs, the Bluetooth master control chip recognizes the drop condition and determines that the function is input, the voltage value read by the temperature detection pin is subtracted by the current temperature value and then is compared with the preset voltage value, and the closest voltage value after comparison is the function to be executed.
The invention is characterized in that the temperature detection pins of the Bluetooth main control chip can be shared and then divided by connecting corresponding resistors in series and the pull-up resistor, so that one input port can receive a plurality of functional inputs, namely port expansion is realized, and the cost is lower compared with the method for selecting Bluetooth chips with more ports or adding port expansion chips;
secondly, the first function extension unit and the second function extension unit can flexibly select a key, a switch tube or a third connecting end for connecting a low-potential output end of the open-drain circuit according to actual design requirements, and can realize functions of the key, the Hall or a charging state and the like;
and through the cooperation of connecting a plurality of resistances in series and setting up a plurality of function extension units, the extension of 256 functions can be realized to the maximize, is favorable to promoting the development of enterprise and trade.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the technical scope of the present invention, so that any minor modifications, equivalent changes and modifications made to the above embodiment according to the technical spirit of the present invention are within the technical scope of the present invention.