CN213342642U - Serial port control switch, serial port circuit and Bluetooth headset - Google Patents

Serial port control switch, serial port circuit and Bluetooth headset Download PDF

Info

Publication number
CN213342642U
CN213342642U CN202022761493.4U CN202022761493U CN213342642U CN 213342642 U CN213342642 U CN 213342642U CN 202022761493 U CN202022761493 U CN 202022761493U CN 213342642 U CN213342642 U CN 213342642U
Authority
CN
China
Prior art keywords
switch
control
circuit
output
serial port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202022761493.4U
Other languages
Chinese (zh)
Inventor
王玉良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202022761493.4U priority Critical patent/CN213342642U/en
Application granted granted Critical
Publication of CN213342642U publication Critical patent/CN213342642U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The utility model discloses a serial ports control switch, serial circuits and bluetooth headset, serial ports control switch includes: the control signal isolation circuit is respectively connected with the switch control end and the signal input end, and is used for receiving a control signal and an input signal from an external circuit and generating two paths of internal control signals which are respectively output through a first output end and a second output end; one end of the first switch circuit is connected with the direct-current power supply, the other end of the first switch circuit is connected with the switch output end, and the control end of the first switch circuit is connected with the first output end; and one end of the second switch circuit is connected with the ground end, the other end of the second switch circuit is connected with the switch output end, and the control end of the second switch circuit is connected with the second output end. The utility model discloses a serial ports control switch for be connected with serial circuits's data end, and receive external circuit control signal's control disconnection or switch-on serial circuits's data end, can prevent that external circuit from leading to the fact the influence through data end to serial circuits.

Description

Serial port control switch, serial port circuit and Bluetooth headset
Technical Field
The utility model relates to a serial ports control circuit, specifically speaking relates to a serial ports control switch.
Background
In the design process of the headset product, in order to upgrade software for the bluetooth chip used, a serial port is often connected to a USB charging port (as shown in fig. 1). When using the power adapter of different models to charge for the product, the phenomenon that power adapter influences the earphone product and charges can appear, and the concrete expression can normally charge for some adapters, and some charging current takes place undulant even can't charge. The reason for this is that the serial ports (RX and TX) of the bluetooth headset chip are affected by some signals in the power adapter, causing the charging current to fluctuate or terminating the charging process.
Disclosure of Invention
The utility model discloses to the serial ports that can charge among the prior art and communicate when only carrying out charging, the influence that receives the data end easily leads to unable normal charging to and serial ports data end is direct to be connected with external circuit, causes the technical problem of damage to serial circuits easily when having the electric current unusual, provides a serial ports control switch, can solve above-mentioned problem.
In order to realize the purpose of the utility model, the utility model adopts the following technical scheme to realize:
a serial port control switch comprising:
the control signal isolation circuit is respectively connected with the switch control end and the signal input end, and is used for receiving a control signal and an input signal from an external circuit and generating two paths of internal control signals which are respectively output through a first output end and a second output end;
one end of the first switch circuit is connected with the direct-current power supply, the other end of the first switch circuit is connected with the switch output end, and the control end of the first switch circuit is connected with the first output end and is used for receiving the control of the control signal isolation circuit to output high level to the outside;
and one end of the second switch circuit is connected with the ground end, the other end of the second switch circuit is connected with the switch output end, and the control end of the second switch circuit is connected with the second output end and is used for receiving the control of the control signal isolating circuit and outputting low level to the outside.
Further, the control signal isolation circuit is a gate logic circuit, the true value of the first output terminal is the and value of the control signal and the input signal of the external circuit, and the true value of the second output terminal is the non-true value of the control signal and the input signal of the external circuit.
Further, the control signal isolation circuit includes:
the input end of the first inverting circuit is connected with the switch control end;
a second inverter circuit, an output end of which is connected with the first output end;
a third inverter circuit, an output end of which is connected with the second output end;
the first AND logic circuit is provided with a first input end and a second input end, the first input end is connected with the output end of the first inverter circuit, the second input end is connected with the output end of the third inverter circuit, and the output end of the first AND logic circuit is connected with the input end of the second inverter circuit;
and the second AND logic circuit is provided with a third input end and a fourth input end, the third input end is connected with the output end of the first inverter circuit, the fourth input end is connected with the signal input end, and the output end of the second AND logic circuit is connected with the input end of the third inverter circuit.
Further, any one or more of the first inverter circuit, the second inverter circuit, and the third inverter circuit is an inverter logic circuit.
Furthermore, the first switch circuit comprises a first NMOS transistor, a gate of the first NMOS transistor is connected to the first output terminal, a drain of the first NMOS transistor is connected to the dc power supply, and a source of the first NMOS transistor is connected to the switch output terminal.
Furthermore, the second switch circuit comprises a second NMOS transistor, a gate of the second NMOS transistor is connected to the second output terminal, a drain of the second NMOS transistor is connected to the switch output terminal, and a source of the second NMOS transistor is connected to the ground terminal.
Further, the control signal isolation circuit is an integrated chip.
The utility model discloses provide a serial circuits simultaneously, including control chip, control chip has power end, data end and control output, still includes the serial ports control switch of any preceding record in, the data end with the switch output end is connected, control output with the switch control end is connected.
The utility model discloses simultaneously provide a bluetooth headset, including bluetooth chip and USB socket, the bluetooth chip has power end, data terminal and control output end, still includes the serial ports control switch of any preceding record in, the data terminal with the switch output end is connected, control output end with the switch control end is connected, signal input part with the data terminal of USB socket is connected.
Furthermore, the number of the data ends is two, the two data ends are respectively connected with a serial port control switch, and the switch control ends of the two serial port control switches are respectively connected with the control output end.
Compared with the prior art, the utility model discloses an advantage is with positive effect: 1. the utility model discloses a serial ports control switch for be connected with serial circuits's data end, and receive external circuit control signal's control disconnection or switch-on serial circuits's data end, can prevent that external circuit from leading to the fact the influence through data end to serial circuits.
2. Through setting up control signal isolation circuit, can keep apart external input signal, through the output of controlling first switch circuit and second switch circuit after changing external input signal, can effectively protect serial circuits and other circuits of its rear end.
Other features and advantages of the present invention will become more apparent from the following detailed description of the invention when read in conjunction with the accompanying drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic diagram of a prior art serial circuit connection;
fig. 2 is a schematic connection diagram of the serial port control switch provided by the present invention;
fig. 3 is a schematic block diagram of an embodiment of a serial port control switch provided by the present invention;
fig. 4 is a schematic circuit diagram of an embodiment of a serial port circuit provided by the present invention;
fig. 5 is a schematic block diagram of an embodiment of a serial port circuit provided by the present invention;
fig. 6 is a schematic block diagram of an embodiment of the bluetooth headset of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and embodiments.
It should be noted that in the description of the present invention, the terms of direction or positional relationship indicated by the terms "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, which are merely for convenience of description, and do not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Example one
This embodiment provides a serial port control switch, as shown in fig. 2, including:
the control signal isolation circuit is respectively connected with the switch control end and the signal input end, and is used for receiving a control signal CTRL and an input signal IN from an external circuit, generating two paths of internal control signals and outputting the two paths of internal control signals through a first output end A1 and a second output end A2;
a first switch circuit, one end of which is connected to the dc power supply VDD, the other end of which is connected to the switch output terminal OUT, and a control terminal of which is connected to the first output terminal a1, for receiving the control of the control signal isolation circuit and outputting or not outputting a high level;
and the second switch circuit has one end connected with the ground end GND, the other end connected with the switch output end OUT, and a control end connected with the second output end A2, is used for receiving the control of the control signal isolation circuit, and can output or not output low level to the outside.
And the switch output end OUT is connected with the data end of the serial port circuit.
The working principle of the control signal isolation circuit of the embodiment is as follows: an external input signal IN is input through a signal input end, the control signal isolation circuit determines whether to connect a data end of a serial port circuit at the rear end or not according to the received condition of the control signal CTRL, and when the control signal isolation circuit is connected, the control signal isolation circuit converts the external input signal and then controls the output of the first switch circuit and the second switch circuit, namely, the external input signal IN cannot directly reach the serial port circuit, but receives a signal output after being converted by the control signal isolation circuit, so that the isolation of the external input signal is realized, and the serial port circuit and other circuits at the rear end of the serial port circuit can be effectively protected.
In addition, the serial port control switch of this embodiment is used for being connected with serial port circuit's data end to receive the control disconnection of external circuit control signal or put through serial port circuit's data end, when the data end that need not put through serial port circuit, through control serial port control switch disconnection can, can prevent that external circuit from causing the influence to serial port circuit through the data end.
As a preferred embodiment, the control signal isolation circuit of this embodiment may be implemented by using a gate logic circuit, the true value of the first output terminal a1 is the and value of the control signal CTRL and the input signal IN of the external circuit, and the true value of the second output terminal a2 is the and value of the control signal CTRL and the input signal IN of the external circuit.
The truth table of the above signals is shown in table 1:
CTRL IN A1 A2
0 0 0 0
0 1 0 0
1 1 1 0
1 0 0 1
TABLE 1
As shown in fig. 3, the control signal isolation circuit includes:
a first inverter circuit S1, an input terminal of which is connected to the switch control terminal, for receiving the control signal CTRL;
a second inverter circuit S3 having an output terminal connected to the first output terminal a 1;
a third inverter circuit S5 having an output terminal connected to the second output terminal a 2;
a first and logic circuit S2 having a first input terminal connected to the output terminal of the first inverter circuit S1 and a second input terminal connected to the output terminal of the third inverter circuit S5, and an output terminal of the first and logic circuit S2 connected to the input terminal of the second inverter circuit S3;
a second and logic circuit S4 having a third input connected to the output of the first inverter circuit S1 and a fourth input connected to the signal input for receiving the input signal IN, the output of the second and logic circuit S4 being connected to the input of the third inverter circuit S5.
When the control signal CTRL is 0, the output terminals of S3 and S5 are both 0, and the first switch and the second switch are still in the off state; when the control signal CTRL is 1, and the IN input is 0, the S3 output is 0, the S5 output is 1, the first switch is turned off, the second switch is turned on, and the corresponding second switch outputs a low level through the switch output terminal OUT, which is consistent with the IN input being 0. When the control signal CTRL is 1 and the IN input is 1, the output of S3 is 1, the output of S5 is 0, the first switch is turned on, the second switch is turned off, and the corresponding first switch outputs a high level through the switch output terminal OUT, which is consistent with the input of IN being 1. I.e. when CTRL is 1, a signal can be sent to the switch output OUT.
One or more of the first inverter circuit S1, the second inverter circuit S3, and the third inverter circuit S5 are not gate logic circuits.
The control signal isolation circuit can be built by using an MOS (metal oxide semiconductor) tube or realized by using an integrated chip, and the embodiment is described by taking the MOS tube as an example.
As shown in fig. 4, the first switch circuit and the second switch circuit in this embodiment are respectively implemented by using one NMOS transistor, and as shown in the figure, the first switch circuit includes a first NMOS transistor Q1, a gate of the first NMOS transistor Q1 is connected to the first output terminal a1, a drain of the first NMOS transistor Q1 is connected to the dc power VDD, and a source of the first NMOS transistor Q1 is connected to the switch output terminal OUT.
The second switch circuit comprises a first NMOS transistor Q1, the gate of a second NMOS transistor Q2 is connected with the second output end A2, the drain of the second NMOS transistor Q2 is connected with the switch output end OUT, and the source of the second NMOS transistor Q2 is connected with the ground end GND.
When the control signal CTRL is 0, the output terminals of S3 and S5 are both 0, and the first NMOS transistor Q1 and the first NMOS transistor Q1 are both in the off state.
When the control signal CTRL is 1, and the IN input is 0, the output of the S3 is 0, the output of the S5 is 1, the first NMOS transistor Q1 is turned off, the second NMOS transistor Q2 is turned on, and accordingly the second NMOS transistor Q2 outputs a low level through the switch output terminal OUT, which is consistent with the IN input being 0. When the control signal CTRL is 1 and the IN input is 1, the output of S3 is 1, the output of S5 is 0, the first NMOS transistor Q1 is turned on, the second NMOS transistor Q2 is turned off, and accordingly the first NMOS transistor Q1 outputs a high level through the switch output terminal OUT, which is consistent with the IN input being 1.
By connecting the serial port control switch with the serial port circuit, the serial port circuit can work in a data transmission mode (such as a developer mode) and a non-data transmission mode (such as a charging mode), under the developer mode, the on-off state of the serial port control switch can be controlled through the combined keys of the electronic product where the serial port circuit is located, the exposed USB interface of the product is conducted with partial circuits of the serial port circuit, and at the moment, product debugging, downloading and product software upgrading can be carried out through the serial port, or data communication is disconnected, and charging is singly carried out.
Example two
This embodiment provides a serial port circuit, as shown in fig. 5, which includes a control chip having a power supply terminal VCHG, a data terminal D, and a control output terminal GPIO, and further includes a serial port control SWITCH mentioned in the first embodiment, where the data terminal D is connected to a SWITCH output terminal OUT, and the control output terminal GPIO is connected to a SWITCH control terminal CTRL.
An external input signal IN is input through a signal input end, the serial port control SWITCH determines whether to SWITCH on a data end of a serial port circuit at the rear end according to the received control signal CTRL condition, and when the serial port control SWITCH is switched on, the serial port control SWITCH converts the external input signal and then controls the output of the first SWITCH circuit and the second SWITCH circuit, namely, the external input signal IN cannot directly reach the serial port circuit, but receives a signal output after being converted by the serial port control SWITCH, so that the isolation of the external input signal is realized, and the serial port circuit and a control chip at the rear end thereof can be effectively protected.
Before the product leaves the factory, the serial port control switch is controlled to be switched off through software instructions. The exposed USB port of the product only has a charging function. When the user software needs to be upgraded, the terminal user can upgrade the product software in an online manner without influencing the maintenance of the product software.
The structural composition of the serial port control SWITCH can be referred to in the description of the first embodiment, and is not described herein again.
EXAMPLE III
The present embodiment provides a bluetooth headset, as shown in fig. 6, which includes a bluetooth chip and a USB socket Micro USB, where the bluetooth chip has a power supply terminal VCHG, a data terminal TX/RX, and a control output terminal GPIO, and further includes a serial control SWITCH mentioned in the first embodiment, where the data terminal TX/RX is connected to the SWITCH output terminal, the control output terminal is connected to the SWITCH control terminal, and the signal input terminal is connected to the data terminal of the USB socket.
Because the number of the data ends is two, the two data ends are respectively connected with a serial port control switch, and the switch control ends CTRL1 and CTRL2 of the two serial port control switches are respectively connected with the control output end GPIO.
The scheme can enable the serial port of the Bluetooth headset product to be switched between a developer mode and a user mode. In a developer mode, the serial port control SWITCH is closed, developers can upgrade product software through the exposed USB port of the product, and the upgrading speed of the product is improved. In a user mode, the serial port control SWITCH is switched off, and the exposed USB port of the product only retains the charging function, so that the influence of an external adapter on the charging process is eliminated.
IN a developer mode, after a certain key (or a combination key) is pressed for a certain time (for example, 10 seconds), after the bluetooth chip detects the signal, the bluetooth chip outputs a control signal through the GPIO and simultaneously controls CTRL1 and CTRL2 of the SWITCH to close the SWITCH, so that IN 1-OUT 1 and IN 2-OUT 2 are conducted, and RX/TX data of the BT IC can be transmitted to DM/DP of the USB interface. At the moment, product debugging, downloading and product software upgrading can be carried out through the path.
IN the production process of the product, the conduction between IN 1-OUT 1 and IN 2-OUT 2 is always kept. Before leaving the factory, the Bluetooth chip controls CTRL1 and CTRL2 to be disconnected through software instructions, and the physical path between the BT IC and the USB is disconnected. The exposed USB port of the product only has a charging function, so that the influence of the adapter on the serial port of the Bluetooth chip can be completely avoided.
The structural composition of the serial port control SWITCH can be referred to in the description of the first embodiment, and is not described herein again.
The above embodiments are only used to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described in the foregoing embodiments, or that equivalents may be substituted for elements thereof; such modifications and substitutions do not depart from the spirit and scope of the present invention, which is claimed.

Claims (10)

1. A serial port control switch, comprising:
the control signal isolation circuit is respectively connected with the switch control end and the signal input end, and is used for receiving a control signal and an input signal from an external circuit and generating two paths of internal control signals which are respectively output through a first output end and a second output end;
one end of the first switch circuit is connected with the direct-current power supply, the other end of the first switch circuit is connected with the switch output end, and the control end of the first switch circuit is connected with the first output end and is used for receiving the control of the control signal isolation circuit to output high level to the outside;
and one end of the second switch circuit is connected with the ground end, the other end of the second switch circuit is connected with the switch output end, and the control end of the second switch circuit is connected with the second output end and is used for receiving the control of the control signal isolating circuit and outputting low level to the outside.
2. The serial port control switch according to claim 1, wherein the control signal isolation circuit is a gate logic circuit, the true value of the first output terminal is an and value of the control signal and the input signal of the external circuit, and the true value of the second output terminal is a non-valued and value of the control signal and the input signal of the external circuit.
3. The serial port control switch of claim 1, wherein the control signal isolation circuit comprises:
the input end of the first inverting circuit is connected with the switch control end;
a second inverter circuit, an output end of which is connected with the first output end;
a third inverter circuit, an output end of which is connected with the second output end;
the first AND logic circuit is provided with a first input end and a second input end, the first input end is connected with the output end of the first inverter circuit, the second input end is connected with the output end of the third inverter circuit, and the output end of the first AND logic circuit is connected with the input end of the second inverter circuit;
and the second AND logic circuit is provided with a third input end and a fourth input end, the third input end is connected with the output end of the first inverter circuit, the fourth input end is connected with the signal input end, and the output end of the second AND logic circuit is connected with the input end of the third inverter circuit.
4. The serial port control switch according to claim 3, wherein any one or more of the first inverter circuit, the second inverter circuit and the third inverter circuit is an inverter logic circuit.
5. The serial port control switch according to any one of claims 1 to 4, wherein the first switch circuit comprises a first NMOS transistor, a gate of the first NMOS transistor is connected to the first output terminal, a drain of the first NMOS transistor is connected to a DC power supply, and a source of the first NMOS transistor is connected to the switch output terminal.
6. The serial port control switch according to any one of claims 1 to 4, wherein the second switch circuit comprises a second NMOS transistor, a gate of the second NMOS transistor is connected to the second output terminal, a drain of the second NMOS transistor is connected to the switch output terminal, and a source of the second NMOS transistor is connected to ground.
7. The serial port control switch according to any one of claims 1 to 4, wherein the control signal isolation circuit is an integrated chip.
8. A serial port circuit, comprising a control chip, said control chip having a power end, a data end and a control output end, characterized by further comprising the serial port control switch of any one of claims 1-7, said data end being connected to said switch output end, said control output end being connected to said switch control end.
9. A Bluetooth earphone, including Bluetooth chip and USB socket, the said Bluetooth chip has power end, data terminal and control output, characterized by, also include the serial port control switch of any claim 1-7, the said data terminal connects with the said switch output terminal, the said control output terminal connects with the said switch control terminal, the said signal input end connects with the data terminal of the said USB socket.
10. The bluetooth headset according to claim 9, wherein the number of the data terminals is two, the two data terminals are respectively connected to a serial port control switch, and the switch control terminals of the two serial port control switches are respectively connected to the control output terminal.
CN202022761493.4U 2020-11-25 2020-11-25 Serial port control switch, serial port circuit and Bluetooth headset Active CN213342642U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202022761493.4U CN213342642U (en) 2020-11-25 2020-11-25 Serial port control switch, serial port circuit and Bluetooth headset

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202022761493.4U CN213342642U (en) 2020-11-25 2020-11-25 Serial port control switch, serial port circuit and Bluetooth headset

Publications (1)

Publication Number Publication Date
CN213342642U true CN213342642U (en) 2021-06-01

Family

ID=76079071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202022761493.4U Active CN213342642U (en) 2020-11-25 2020-11-25 Serial port control switch, serial port circuit and Bluetooth headset

Country Status (1)

Country Link
CN (1) CN213342642U (en)

Similar Documents

Publication Publication Date Title
EP0979558B1 (en) A method and apparatus for interfacing an electronic device with an external accessory
US8977870B2 (en) Apparatus for determining a USB compatible device, and supplying corresponding power thereafter
TWI406134B (en) Pin sharing device and pin sharing method
US20130101132A1 (en) Method and Device for Earphone and USB to Share Micro-USB Interface
CN102082846B (en) Terminal equipment with plurality of externally arranged shared interfaces
US20070075680A1 (en) Charging mode control circuit
CN108093329B (en) Peripheral type detection circuit and mobile terminal based on shared interface
WO2021031296A1 (en) Communication control method, apparatus and system, charging case and wireless earphone
CN105284086A (en) Driving data of multiple protocols through a single set of pins
CN111800697A (en) Charging box, earphone system, charging control method and storage medium
US20230155628A1 (en) Rejection of End-of-Packet Dribble in High Speed Universal Serial Bus Repeaters
CN213342642U (en) Serial port control switch, serial port circuit and Bluetooth headset
CN113365185A (en) Wireless earphone and earphone system
CN111615029A (en) Wireless earphone reset circuit, wireless earphone and reset method
US20220224335A1 (en) Data bus signal conditioner and level shifter
CN112821156B (en) Electronic tags chip and TYPE-C data line
CN112152897B (en) Communication chip circuit, communication method, storage medium, and electronic device
US20180309877A1 (en) Network telephone device, external connection card and communication method therefor
CN211826943U (en) Communication control circuit and device
CN111651393A (en) TYPE-C interface circuit
CN219739998U (en) Vehicle-mounted PD quick charging circuit comprising Type-C mobile phone interconnection function
CN213024364U (en) Solid state disk controller interface circuit and solid state disk
CN211454293U (en) UART communication circuit
EP2381368A1 (en) Motherboard with rapid battery charging option on a connection port
CN218004103U (en) Communication circuit and electronic equipment

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant