Audio interface circuit, audio module and electronic equipment

By designing an audio interface circuit that includes an interface unit, a control unit and a data selection unit, the problem of a single function of the traditional audio interface is solved, data interaction is realized when electronic equipment fails, debugging risks are reduced and functional diversity is improved.

CN221688816UActive Publication Date: 2024-09-10CHENGDU BIWIN STORAGE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323589197.0
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2024-09-10
Estimated Expiration
2033-12-27

AI Technical Summary

Technical Problem

Traditional audio interfaces have a single function and cannot perform data exchange when electronic equipment fails, making debugging difficult and risky.

Method used

Design an audio interface circuit, including an interface unit, a control unit and a data selection unit. By detecting the type of external equipment, it outputs different signals and switches channels to realize audio interaction between the headset and the audio unit, as well as between the host computer and the debugged unit. data interaction.

Benefits of technology

It realizes the reuse of audio interfaces, allowing debugging and configuration without dismantling the electronic equipment when it fails, reducing risks and improving functional diversity and ease of use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221688816U
    Figure CN221688816U
Patent Text Reader

Abstract

The utility model discloses an audio interface circuit, an audio module and electronic equipment. The utility model discloses an audio interface circuit which is connected with an audio unit and a debugged unit and comprises an interface unit, a control unit and a data selection unit. The interface unit is used for being connected with external equipment, and the external equipment comprises an earphone or an upper computer. The control unit is connected with the interface unit and the data selection unit, and the control unit detects whether the interface unit is connected with an earphone or an upper computer or not. The control unit outputs a first signal to the data selection unit when detecting that the interface unit is connected to the earphone, and outputs a second signal to the data selection unit when detecting that the interface unit is connected to the upper computer. And the data selection unit is also connected with the interface unit, the audio unit and the debugged unit respectively, conducts a path between the interface unit and the audio unit when receiving the first signal, and conducts a path between the interface unit and the debugged unit when receiving the second signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of electronic circuits, and in particular to an audio interface circuit, an audio module and electronic equipment. Background Art

[0002] At present, most electronic devices with audio playback function can not only play sound, but also be provided with an audio interface for connecting earphones. After inserting earphones through the audio interface, users can listen to the audio content played by the electronic device through the earphones.

[0003] However, the audio interface of the electronic device can only be used to connect the headphone device, output the audio signal to the headphone, and receive the sound signal collected by the microphone. If the electronic device fails or the program is disordered during use, the electronic device needs to be disassembled and debugged, which is likely to cause new problems. Therefore, the traditional technical solution has the problem of single function of the audio interface. Utility Model Content

[0004] The main purpose of the utility model is to provide an audio interface circuit, an audio module and an electronic device, aiming to solve the problem of single function existing in the traditional audio interface.

[0005] To achieve the above object, the utility model provides an audio interface circuit, which is connected to the audio unit and the debugged unit respectively, and includes:

[0006] An interface unit, used to connect an external device; the external device includes a headset or a host computer;

[0007] A control unit connected to the interface unit, configured to output a first signal when detecting that the interface unit is connected to the headset, and output a second signal when detecting that the interface unit is connected to the host computer;

[0008] A data selection unit is respectively connected to the interface unit, the control unit, the audio unit and the debugged unit, and is used to conduct the path between the interface unit and the audio unit when a first signal is received, and to conduct the path between the interface unit and the debugged unit when a second signal is received.

[0009] The utility model further provides an audio module, comprising an audio unit and the audio interface circuit provided by the first aspect.

[0010] The utility model further provides an electronic device, comprising the audio module provided above.

[0011] The beneficial effects of the technical solution of the utility model are:

[0012] This embodiment provides an audio interface circuit, which is connected to an audio unit and a debugged unit respectively, and includes: an interface unit, a control unit, and a data selection unit. The interface unit is used to connect an external device, and the external device includes a headset or a host computer. Since the control unit is connected to the interface unit and the data selection unit, the control unit detects whether the interface unit is connected to the headset or the host computer. When the control unit detects that the interface unit is connected to the headset, a first signal can be output to the data selection unit, and when the control unit detects that the interface unit is connected to the host computer, a second signal can be output to the data selection unit. The data selection unit is also connected to the interface unit, the audio unit, and the debugged unit respectively, and the path between the interface unit and the audio unit is connected when the first signal is received, and the path between the interface unit and the debugged unit is connected when the second signal is received. It is realized that the path between the interface unit and the audio unit is connected when the interface unit is connected to the headset, thereby realizing audio input and audio output. When the interface unit is connected to the host computer, the path between the interface unit and the debugged unit is connected, so that the host computer can exchange data with the debugged unit through the interface unit. While ensuring that the connected headphones can perform normal audio input and output, when an electronic device fails, it can also provide a path for the host computer to interact with the debugged unit for data, thereby realizing the multiplexing of the audio interface and enriching the functions of the audio interface. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 A schematic diagram of the structure of an audio interface circuit provided by an embodiment of the utility model Figure 1 .

[0014] Figure 2 A schematic diagram of the structure of an audio interface circuit provided by an embodiment of the utility model Figure 2 .

[0015] Figure 3 A specific structural diagram of an audio interface circuit provided by an embodiment of the utility model Figure 1 .

[0016] Figure 4 A specific structural diagram of an audio interface circuit provided by an embodiment of the utility model Figure 2 .

[0017] Figure 5 A specific circuit diagram of an audio interface circuit provided by an embodiment of the utility model.

[0018] Figure 6 A schematic diagram of the structure of an audio module provided in an embodiment of the utility model.

[0019] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the utility model.

[0020] The realization of the purpose, functional features and advantages of the utility model will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the scheme in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.

[0022] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back...) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0023] It should also be noted that when an element is referred to as being "fixed on" or "disposed on" another element, it may be directly on the other element or there may be an intermediate element at the same time. When an element is referred to as being "connected to" another element, it may be directly connected to the other element or there may be an intermediate element at the same time.

[0024] In addition, the descriptions of "first", "second", etc. in the present utility model are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present utility model.

[0025] The embodiment of the present application provides an audio interface circuit, which is connected to the audio unit and the debugged unit respectively. Among them, the audio interface circuit can be configured in the same electronic device with the audio unit and the debugged unit. The electronic device can connect headphones or headsets through the audio interface circuit to achieve audio interaction with the audio unit, and can also pass the audio signal sent by the audio unit to the headphones or headsets, and can also pass the sound signal input by the headphones or headsets to the audio unit. Here, the debugged unit generally refers to a unit module in an electronic device that can achieve function debugging or function configuration by data transmission. Specifically, it can be any functional module in an electronic device, such as a display module, a communication module, or a control module. When the audio interface circuit provided by this embodiment is used to debug or configure the debugged unit, the host computer can access the electronic device through the audio interface, and then realize data interaction with the debugged unit through the audio interface circuit.

[0026] In actual use, there may be multiple debugged units in the electronic device, and different debugged units may be connected to the audio interface circuit through different switch links. Since the connection and actual working principle of each debugged unit and the audio interface circuit are the same, only a single debugged unit is used as an example for illustration in the embodiments of the present application.

[0027] It should be noted that in the traditional production process of electronic equipment, in order to facilitate the connection between the host computer and the electronic equipment for functional debugging, a debugging serial port is usually configured on the control circuit of the electronic equipment. However, during the mass production stage of the electronic equipment and when the final product is packaged, the debugging serial port will be removed or packaged into the outer shell of the electronic equipment. Therefore, after the electronic equipment is packaged, the electronic equipment cannot be debugged or configured directly through the debugging serial port. When the electronic equipment has problems such as failures and needs to be debugged, it is often necessary to disassemble the outer shell of the electronic equipment and reconnect the debugging serial port by manual welding to locate and analyze the problem. The above debugging process is time-consuming and labor-intensive, and may also lead to new failure problems and even damage to the electronic equipment, and the debugging risk is relatively high.

[0028] This embodiment provides an audio interface circuit, which is connected to an audio unit and a debugged unit respectively, and includes: an interface unit, a control unit, and a data selection unit. The interface unit is used to connect an external device, and the external device includes a headset or a host computer. Since the control unit is connected to the interface unit and the data selection unit, the control unit detects whether the interface unit is connected to the headset or the host computer. When the control unit detects that the interface unit is connected to the headset, a first signal can be output to the data selection unit, and when the control unit detects that the interface unit is connected to the host computer, a second signal can be output to the data selection unit. The data selection unit is also connected to the interface unit, the audio unit, and the debugged unit respectively, and the path between the interface unit and the audio unit is connected when the first signal is received, and the path between the interface unit and the debugged unit is connected when the second signal is received. It is realized that the path between the interface unit and the audio unit is connected when the interface unit is connected to the headset, thereby realizing audio input and audio output. When the interface unit is connected to the host computer, the path between the interface unit and the debugged unit is connected, so that the host computer can exchange data with the debugged unit through the interface unit. While ensuring that the connected headphones can perform normal audio input and output, when an electronic device fails, it can also provide a path for the host computer to interact with the debugged unit for data, thereby realizing the multiplexing of the audio interface and enriching the functions of the audio interface.

[0029] In addition, without disassembling the electronic device, the host computer can interact with the debugged unit through the interface unit of the audio interface circuit, thereby debugging and configuring the debugged unit in a more convenient and quick manner, and avoiding the risks brought by disassembling the electronic device.

[0030] See also Figure 1 , Figure 1 The structure of an audio interface circuit provided by the embodiment of the utility model is shown Figure 1 .like Figure 1 As shown, the audio interface circuit 100 is connected to the audio unit 110 and the debugged unit 120 respectively. The audio interface circuit 100 includes: an interface unit 10, a control unit 20 and a data selection unit 30. Specifically:

[0031] The interface unit 10 is used to connect to an external device 130. The external device 130 includes a headset or a host computer.

[0032] The control unit 20 is connected to the interface unit 10, and is used to output a first signal when it is detected that the interface unit 10 is connected to a headset, and output a second signal when it is detected that the interface unit 10 is connected to a host computer.

[0033] The data selection unit 30 is connected to the interface unit 10, the control unit 20, the audio unit 110 and the debugged unit 120 respectively, and is used to conduct the path between the interface unit 10 and the audio unit 110 when a first signal is received, and to conduct the path between the interface unit 10 and the debugged unit 120 when a second signal is received.

[0034] In this embodiment, the interface unit 10 is a physical interface for connecting to a headset or a host computer.

[0035] As an example, the interface unit 10 may also use a magnetic contact electrode, and correspondingly, the earphone and the host computer may also use another contact electrode that cooperates with the magnetic contact electrode.

[0036] As another example, the interface unit 10 may use a 3.5 mm audio jack. Accordingly, the connection ends of the earphone and the host computer used to connect to the interface unit 10 may use a 3.5 mm audio plug that is compatible with the 3.5 mm audio jack.

[0037] Here, the interface unit 10 can only be connected to one external device at a time, that is, when the interface unit 10 is connected to a headset, it can no longer be connected to the host computer until the headset is separated from the interface unit 10, that is, until the plug of the headset is unplugged from the interface unit 10. When the interface unit 10 is connected to the host computer, it can no longer be connected to the headset until the host computer is separated from the interface unit 10, that is, until the plug of the host computer is unplugged from the interface unit 10.

[0038] In the present embodiment, the control unit 20 is connected to the interface unit 10. The control unit 20 is used to detect that the interface unit 10 is connected to an external device. Specifically, the control unit 20 outputs a first signal when it detects that the interface unit 10 is connected to a headset, and the control unit 20 outputs a second signal when it detects that the interface unit 10 is connected to a host computer. Among them, the first signal and the second signal are both electrical signals. It is easy to understand that the first signal and the second signal are used to characterize the situation where different external devices are connected to the interface unit 10, so when the first signal is a high-level electrical signal, the second signal is a low-level electrical signal, and when the first signal is a low-level electrical signal, the second signal is a high-level electrical signal.

[0039] In a specific implementation, the connection ends of the earphones and the host computer are adapted to each other in shape with the interface unit 10. In order to distinguish whether the external device is an earphone or a host computer when the interface unit 10 is connected to an external device, different loop structures can be configured on the connection ends of the earphones and the host computer, and then different electrical signals are fed back to the control unit 20. The control unit 20 determines whether the interface unit 10 is connected to an earphone or a host computer based on the different electrical signals.

[0040] Exemplarily, the headphone connection end is a 3.5 mm audio plug, which can be configured as a conductive terminal for feeding back a high level to the control unit 20 through the interface unit 10. The connection end of the host computer can also be a 3.5 mm audio plug, which is different from the headphone connection end in that the audio plug of the host computer can be configured with an insulating terminal that can feed back a low level to the control unit 20 through the interface unit 10.

[0041] In the above example, when the control unit 20 receives a high-level electrical signal fed back through the interface unit 10, it can be determined that the interface unit 10 is connected to the headset. Correspondingly, when the control unit 20 receives a low-level electrical signal fed back through the interface unit 10, it can be determined that the interface unit 10 is connected to the host computer.

[0042] like Figure 1 As shown, the control unit 20 is connected to the data selection unit 30, and the data selection unit 30 is also respectively connected to the interface unit 10, the audio unit 110 and the debugged unit 120. Here, the data selection unit 30 can be regarded as a circuit switching unit, which realizes the switching of different paths by receiving and responding to the signal output by the control unit 20.

[0043] Specifically, when the data selection unit 30 receives the first signal sent by the control unit 20, it indicates that the interface unit 10 is connected to the earphone, and then the path between the interface unit 10 and the audio unit 110 is opened, so that the audio unit 110 can exchange audio signals with the earphone through the interface unit 10. When the data selection unit 30 receives the second signal, it indicates that the interface unit 10 is connected to the host computer, and then the path between the interface unit 10 and the debugged unit 120 is opened, so that the debugged unit 120 can exchange data with the host computer through the interface unit 10.

[0044] As an embodiment, the data selection unit 30 may include a switch circuit or a switching circuit, and the switch circuit or the switching circuit is controlled by a signal output by the control unit 20 .

[0045] For example, when the switch circuit receives the first signal, it turns on the switch between the interface unit 10 and the audio unit 110, and turns off the switch between the interface unit 10 and the debugged unit 120. When the switch circuit receives the second signal, it turns on the switch between the interface unit 10 and the debugged unit 120, and turns off the switch between the interface unit 10 and the audio unit 110.

[0046] For another example, when the switching circuit receives the first signal, the connection terminal of the interface unit 10 is switched to be connected to the audio unit 110 , and when the switching circuit receives the second signal, the connection terminal of the interface unit 10 is switched to be connected to the debugged unit 120 .

[0047] As another example, the data selection unit 30 may include a two-select-one switch circuit controlled by the control unit 20. When the control unit 20 outputs a first signal to the two-select-one switch circuit, the two-select-one switch circuit switches to the first switch branch, that is, the path between the interface unit 10 and the audio unit 110 is turned on. When the control unit 20 outputs a second signal to the two-select-one switch circuit, the two-select-one switch circuit switches to the second switch branch, that is, the path between the interface unit 10 and the debugged unit 120 is turned on.

[0048] Based on the above example, in a specific implementation, the two-choice switch circuit can be implemented by using a single-pole double-throw switch controlled by an electrical signal, wherein the single-pole double-throw switch switches to the first switch branch in response to the first signal and switches to the second switch branch in response to the second signal. Here, the single-pole double-throw switch controlled by an electrical signal belongs to an existing circuit device, so it will not be described in detail here.

[0049] In other implementations, the two-choice switch circuit can also be implemented by a switch tube combination circuit, which can turn on the first switch branch in response to the first signal and turn on the second switch branch in response to the second signal. Here, the switch tube can be a triode or a MOS tube. Since the use of different switch tubes to construct a switch switching circuit has been implemented in the prior art, or belongs to the conventional technical means in this field, how to combine the switch tubes to construct the switch switching circuit will not be described here.

[0050] See also Figure 2 , Figure 2 The structure of an audio interface circuit provided by the embodiment of the utility model is shown Figure 2 .like Figure 2 As shown, the control unit 20 is also connected to the audio unit 110 .

[0051] The control unit 20 is further configured to send the voice signal input by the earphone to the audio unit 110 when the external device is an earphone.

[0052] It is understandable that, in the actual earphones, most earphones are equipped with an integrated audio acquisition unit, i.e., a microphone. When using the earphones, the user can input voice signals to the electronic device through the microphone. In all embodiments of the present application, earphones can generally refer to earphones with audio output and voice input functions.

[0053] In this embodiment, the control unit 20 is connected to the audio unit 110 . When the control unit 20 receives a voice signal input by the user through headphones, the voice signal is sent to the audio unit 110 .

[0054] It is understandable that, in a specific implementation, the control unit 20 can also be configured with a corresponding noise reduction circuit to reduce the noise of the voice signal. Here, the noise reduction circuit may include a noise reduction circuit composed of at least two capacitors connected in parallel, and the noise frequency band is filtered out by using capacitors connected in parallel. In other implementations, a reverse amplifier may be included on the basis of the noise reduction circuit to reversely amplify the sound in the noise frequency band, thereby playing a role in canceling out the sound frequencies and achieving the noise reduction function.

[0055] As an embodiment, the control unit 20 is further configured to output a first signal when detecting that the host computer is disconnected from the interface unit 10 .

[0056] Since the audio interface circuit 100 is configured in the electronic device, and when the electronic device is actually used, the audio interface circuit 100 is connected to the earphone to realize the audio interaction with the earphone. Based on this, the audio interface circuit 100 should give priority to or default to conduct the path between the interface unit 10 and the audio unit 110. Here, in order to ensure that after debugging the debugged unit 120, the user can conduct audio interaction with the audio unit 110 through the earphone when using the earphone next time, the control unit 20 is also used to output a first signal when it is detected that the host computer is disconnected from the interface unit 10. Since the data selection unit 30 conducts the path between the interface unit 10 and the audio unit 110 according to the received first signal, after debugging the debugged unit 120 by the host computer through the audio interface circuit 100, the host computer is separated from the interface unit 10, and the audio interaction can be realized immediately after the earphone is connected to the audio interface circuit 100. That is, audio interaction can be achieved without the control unit 20 in the audio interface circuit 100 detecting again whether the type of the connected external device is headphones, and without controlling the data selection unit 30 and switching the path, thereby shortening the response time of the audio interface circuit 100 and improving the audio interaction efficiency of the audio interface circuit 100.

[0057] Figure 3 The specific structure of an audio interface circuit provided by the embodiment of the utility model is shown. Figure 1 .like Figure 3 As shown, the interface unit 10 includes: a first detection subunit 11 and a second detection subunit 12 .

[0058] The control unit 20 includes a device identification subunit 21 , which is connected to the interface unit 10 and is used to identify the type of the external device according to the device access signal output by the interface unit 10 .

[0059] Specifically, the first detection subunit 11 is used to connect to the presence detection end of the device identification subunit 21. The second detection subunit 12 is used to connect to the device identification end of the device identification subunit 21.

[0060] In this embodiment, when an external device is connected to the interface unit 10, the first detection subunit 11 sends a presence signal to the presence detection end of the device identification subunit 21. At this time, the device identification subunit 21 determines that an external device is connected to the interface unit 10 according to the presence signal received by the presence detection end. When the device identification subunit 21 determines that an external device is connected to the interface unit 10 according to the presence signal, the second detection subunit 12 generates a corresponding device identification signal and sends it to the device identification end of the device identification subunit 21. Then, the device identification subunit 21 determines that the connected external device is a headset or a host computer according to the device identification signal.

[0061] It is easy to understand that, in a specific implementation, the device identification subunit 21 can output the first signal or the second signal to the data selection unit 30 after determining that the connected external device is a headset or a host computer according to the device identification signal. Alternatively, a signal output circuit that cooperates with the device identification subunit 21 is configured in the control unit 20, and when the device identification subunit 21 determines that the connected external device is a headset according to the device identification signal, the control signal output circuit outputs the first signal. When the device identification subunit 21 determines that the connected external device is a host computer according to the device identification signal, the control signal output circuit outputs the second signal. Here, the signal output circuit can be a switching circuit built using a preset power supply.

[0062] Specifically, if the first signal is a high-level signal and the second signal is a low-level signal, when the external device is identified as a headset, the switch circuit can be controlled to open the path between the preset power supply and the preset power supply, and the high-level signal provided by the preset power supply can be used as the first signal. When the external device is identified as a host computer, the switch circuit can be controlled to disconnect the path between the preset power supply and the preset power supply, and the low-level signal can be used as the first signal.

[0063] Correspondingly, if the first signal is a low-level signal and the second signal is a high-level signal, when the external device is identified as a headset, the switch circuit can be controlled to disconnect the path between the preset power supply and the low-level signal as the first signal. When the external device is identified as a host computer, the switch circuit can be controlled to connect the path between the preset power supply and the high-level signal provided by the preset power supply as the second signal.

[0064] Figure 4 The specific structure of an audio interface circuit provided by the embodiment of the utility model is shown. Figure 2 .like Figure 4 As shown, as an embodiment, the interface unit 10 further includes: a grounding terminal 13 for grounding; a first data transmission terminal 14 for connecting to a first transmission end of the data selection unit 30; and a second data transmission terminal 15 for connecting to a second transmission end of the data selection unit 30.

[0065] In this embodiment, the first data transmission terminal 14 and the second data transmission terminal 15 are used to transmit audio signals or debugging data.

[0066] Specifically, when the path between the interface unit 10 and the audio unit 110 is turned on, the first data transmission terminal 14 and the second data transmission terminal 15 of the interface unit 10 are connected to the audio unit 110 through the data selection unit 30. At this time, the audio signal output by the audio unit 110 is output to the earphone through the data selection unit 30 and the first data transmission terminal 14 and the second data transmission terminal 15 of the interface unit 10. When the path between the interface unit 10 and the debugged unit 120 is turned on, the first data transmission terminal 14 and the second data transmission terminal 15 of the interface unit 10 are connected to the debugged unit 120 through the data selection unit 30. At this time, the host computer can input debugging data or configuration information to the debugged unit 120 through the first data transmission terminal 14 and the second data transmission terminal 15 of the interface unit 10 and the data selection unit 30.

[0067] Figure 5 FIG. 2 shows a specific circuit diagram of an audio interface circuit provided by an embodiment of the utility model. Figure 5 As shown, the ground terminal 13 of the interface unit 10 can be directly connected to the ground node HP_GND through a wire. Since the first data transmission terminal 14 is used to connect the first transmission end of the data selection unit 30, the first data transmission terminal 14 can also be directly connected to the first transmission end of the data selection unit 30 through a wire. Similarly, the second data transmission terminal 15 can also be directly connected to the second transmission end of the data selection unit 30 through a wire.

[0068] It should be noted that the first data transmission terminal 14 and the second data transmission terminal 15 of the interface unit 10 are respectively connected to the first transmission end and the second transmission end of the data selection unit 30. Here, the first data transmission terminal 14 of the interface unit 10 is fixedly connected to the first transmission end of the data selection unit 30, and the second data transmission terminal 15 of the interface unit 10 is fixedly connected to the second transmission end of the data selection unit 30, that is, the connection between the data selection unit 30 and the interface unit 10 is an inherent path. When the data selection unit 30 switches different paths according to the first signal and the second signal, it is specifically switched through the internal switching switch of the data selection unit 30, and there is no need to switch the connection between the data selection unit 30 and the interface unit 10.

[0069] As an example, in Figure 5 In the embodiment, the first detection subunit 11 includes an elastic terminal 111 and a first resistor R1.

[0070] The elastic terminal 111 is used to elastically connect the first data transmission terminal 14. The first end of the first resistor R1 is connected to the preset power supply VOUT_IO, and the second end of the first resistor R1 is connected to the elastic terminal 111 to form a first node P1. The first node P1 is used to connect the in-place detection terminal HP_DET of the device identification subunit 21.

[0071] In this embodiment, the presence detection terminal HP_DET of the device identification subunit 21 is used to detect the connection status between the external device and the interface unit 10 .

[0072] As an example, the in-place detection terminal HP_DET of the device identification subunit 21 determines whether the interface unit 10 is connected to the external device by detecting an electrical signal. Here, the electrical signal can be a high-level signal and a low-level signal. Among them, the high-level signal and the low-level signal are only used to distinguish the connection between the interface unit 10 and the external device. In a specific implementation, a high-level signal can be used to indicate that the interface unit 10 is connected to the external device, and a low-level signal can be used to indicate that the interface unit 10 is not connected to the external device, and vice versa.

[0073] Exemplarily, when the interface unit 10 is not connected to an external device, the presence detection terminal HP_DET of the device identification subunit 21 detects a low level. When an external device is connected to the interface unit 10, the presence detection terminal HP_DET of the device identification subunit 21 detects a high level.

[0074] Combining the above examples, Figure 4 In the specific circuit shown, since the first end of the first resistor R1 is connected to the preset power source VOUT_IO, and the second end of the first resistor R1 is connected to the elastic terminal 111 to form a first node P1, the voltage of the first node P1 can be measured under the action of the preset power source VOUT_IO. Figure 4 In the figure, because the first data transmission terminal 14 is connected to the first transmission terminal of the data selection unit 30, and the combined circuit formed by connecting the data selection unit 30 and the audio unit 110 has an internal resistance smaller than the internal resistance of the device identification subunit 21, although the first node P1 is connected to the presence detection terminal HP_DET of the device identification subunit 21, since the internal resistance of the control unit 20 at the presence detection terminal HP_DET is relatively large, before the external device is connected to the interface unit 10, since the elastic terminal 111 is elastically connected to the first data transmission terminal 14, it is equivalent to short-circuiting the presence detection terminal HP_DET of the device identification subunit 21, so the presence detection terminal HP_DET of the device identification subunit 21 is at a low level.

[0075] Accordingly, when the external device is connected to the interface unit 10, the elastic terminal 111 can be separated from the first data transmission terminal 14, and the first resistor R1 forms a path with the in-place detection terminal HP_DET of the device identification subunit 21 through the first node P1, and the level of the in-place detection terminal HP_DET of the device identification subunit 21 is pulled high, triggering a rising edge interrupt signal, that is, a high level. When the external device is disconnected from the interface unit 10, the elastic terminal 111 is connected to the first data transmission terminal 14 again, and the in-place detection terminal HP_DET of the device identification subunit 21 is equivalent to a short circuit, and the in-place detection terminal HP_DET of the device identification subunit 21 is low again, triggering a falling edge interrupt signal.

[0076] Take the interface unit 10 as a 3.5mm audio jack, and the plug connecting the external device to the audio interface circuit 100 as a 3.5mm audio plug as an example. The elastic terminal 111 of the first detection subunit 11 is elastically connected to the first data transmission terminal 14. When the 3.5mm audio plug of the external device is inserted into the 3.5mm audio jack, the 3.5mm audio plug of the external device pushes the elastic terminal 111 of the first detection subunit 11 open, that is, the elastic terminal 111 of the first detection subunit 11 is separated from the first data transmission terminal 14. At this time, the level of the in-place detection terminal HP_DET of the device identification subunit 21 is pulled high, triggering the rising edge interrupt signal, that is, detecting a high-level hardware in-place signal. If the 3.5mm audio plug of the external device is unplugged from the 3.5mm audio jack, the elastic terminal 111 of the first detection subunit 11 contacts the first data transmission terminal 14 again, and at this time, the in-place detection terminal HP_DET of the device identification subunit 21 is low again, triggering the falling edge interrupt signal, that is, a low-level hardware not in-place signal.

[0077] As an example, in Figure 5 In the embodiment, the second detection subunit 12 includes: a connection terminal 121, a second resistor R2 and a first capacitor C1. The first end of the second resistor R2 is connected to the connection terminal 121 to form a second node P2, and the second node P2 is used to connect the device identification terminal SWITCH_DETECT of the device identification subunit 21, and the second end of the second resistor R2 is connected to the preset power supply VOUT_IO. The first end of the first capacitor C1 is connected to the second node P2, and the second end of the first capacitor C1 is used to connect the audio input terminal HP_MIC of the device identification subunit 21.

[0078] In this embodiment, since the second end of the second resistor R2 is connected to the preset power source VOUT_IO, and the first end of the second resistor R2 is connected to the connection terminal 121 to form a second node P2, the connection terminal 121 is charged under the action of the preset power source VOUT_IO. Here, the potential of the second node P2 is equal to the potential of the connection terminal 121.

[0079] It should be noted that the external devices include headphones and a host computer. In order to distinguish different types of external devices, the connection end of the host computer used to connect to the interface unit 10 can be set as a partial insulator, so that when the host computer is connected to the interface unit 10, it can trigger an electrical signal different from when the headphones are connected to the interface unit 10.

[0080] As an example, in the connection end of the host computer used to connect the interface unit 10, the electrode end in contact with the connection terminal 121 is set as an insulator. When the host computer is connected to the interface unit 10, since the electrode end is an insulator, the connection terminal 121 cannot form a loop with the ground terminal 13 through the electrode end. At this time, the second node P2 is at a high level, that is, the high level detected by the device identification end SWITCH_DETECT of the device identification subunit 21, and the external device is determined to be the host computer. Correspondingly, in the connection end of the headset used to connect the interface unit 10, the electrode end in contact with the connection terminal 121 is set as a conductor. When the headset is connected to the interface unit 10, since the electrode end is a conductor, the connection terminal 121 can form a loop with the ground terminal 13 through the electrode end. At this time, the level of the second node P2 is pulled down, that is, the low level detected by the device identification end SWITCH_DETECT of the control unit 20, and the external device is determined to be the headset.

[0081] Similar to the above example, in other examples, the connection end of the earphone may also be set as a partial insulator, so that the earphone connected to the interface unit 10 can trigger an electrical signal different from that when the host computer is connected to the interface unit 10.

[0082] As an example, in Figure 5 In the embodiment, the device identification subunit 21 includes: a first chip U1.

[0083] The first input terminal VIN_1 of the first chip U1 is the in-place detection terminal HP_DET of the device identification subunit 21 , the second input terminal VIN_2 of the first chip U1 is the device identification terminal SWITCH_DETECT of the device identification subunit 21 , and the output terminal OUT of the first chip U1 is used to connect to the data selection unit 30 .

[0084] exist Figure 5 In the embodiment, the output terminal OUT of the first chip U1 is used as the control terminal GPIO_SWITCH of the device identification subunit 21, and is used to send the first signal or the second signal to the data selection unit 30. The third input terminal VIN_3 of the first chip U1 is used as the audio input terminal HP_MIC of the device identification subunit 21, and is used to receive the voice signal input by the user through the microphone of the headset.

[0085] As an example, Figure 5As shown, the data selection unit 30 includes: a data selector U2.

[0086] The first channel terminal AL of the data selector U2 is the first transmission terminal of the data selection unit 30, the second channel terminal AR of the data selector U2 is the second transmission terminal of the data selection unit 30, the controlled terminal S of the data selector U2 is connected to the control unit 20, the first audio terminal L of the data selector U2 is used to connect the first channel terminal HP_L of the audio unit 110, the second audio terminal R of the data selector U2 is used to connect the second channel terminal HP_R of the audio unit 110, the data receiving terminal RX of the data selector U2 is used to connect the data sending terminal UART_TX of the debugged unit 120, the data sending terminal TX of the data selector U2 is used to connect the data receiving terminal UART_RX of the debugged unit 120, and the enable terminal OE of the data selector U2 is grounded together with the ground terminal GND.

[0087] In this embodiment, the data selector U2 is used to, when receiving the first signal output by the control unit 20, conduct the path between the first channel terminal AL and the first channel terminal L of the audio unit 110, and conduct the path between the second channel terminal AR and the second channel terminal R of the audio unit 110. When receiving the second signal output by the control unit 20, the data selector U2 conducts the path between the first channel terminal AL and the data transmitting terminal UART_TX of the debugged unit 120, and conducts the path between the second channel terminal AR and the data receiving terminal UART_RX of the debugged unit 120.

[0088] It should be noted that the first channel terminal AL and the second channel terminal AR of the data selector U2 are both fixed terminals. The first audio terminal L and the second audio terminal R of the data selector U2 are the first pair of active terminals of the data selector U2, and the data receiving terminal RX and the data transmitting terminal TX of the data selector U2 are the second pair of active terminals of the data selector U2. When the data selector U2 is used for data selection or channel switching, it is actually switching between the first pair of active terminals and the second pair of active terminals.

[0089] like Figure 5 As shown, as an embodiment, the data selection unit 30 further includes: a third resistor R3, a fourth resistor R4, a second capacitor C2, a third capacitor C3, a fourth capacitor C4 and a fifth capacitor C5.

[0090] The third resistor R3 is connected between the controlled terminal S of the data selector U2 and the ground, the first audio terminal L of the data selector U2 is connected to the first end of the second capacitor C2, the second end of the second capacitor C2 is connected to the first channel terminal HP_L of the audio unit 110, the fourth resistor R4 and the third capacitor C3 are connected in parallel between the first audio terminal L of the data selector U2 and the ground, the second audio terminal R of the data selector U2 is connected to the first end of the fourth capacitor C4, the second end of the fourth capacitor C4 is connected to the second channel terminal HP_R of the audio unit 110, and the fifth capacitor C5 is connected between the second audio terminal R of the data selector U2 and the ground.

[0091] The following combination Figures 1 to 5 The specific working principle of the audio interface circuit 100 provided in the embodiment of the present application is described in detail.

[0092] When the audio interface circuit 100 is not connected to an external device, it is the default state of the audio interface circuit 100, the in-position detection terminal HP_DET of the device identification subunit 21 is at a low level, and the data selector U2 selects the audio signal state. That is, the data selector U2 conducts the path between the first channel terminal AL and the first channel terminal L of the audio unit 110, and conducts the path between the second channel terminal AR and the second channel terminal R of the audio unit 110.

[0093] When the audio interface circuit 100 is connected to an external device, the elastic terminal 111 of the first detection subunit 11 is pushed open, that is, the elastic terminal 111 of the first detection subunit 11 is separated from the first data transmission terminal 14. Under the action of the preset power supply VOUT_IO, the level of the in-place detection terminal HP_DET of the device identification subunit 21 is pulled high, that is, the rising edge interrupt signal is triggered, and the first input terminal VIN_1 of the data selector U2 receives the rising edge interrupt signal. Here, the first input terminal VIN_1 of the data selector U2 receives the rising edge interrupt signal, indicating that the interface unit 10 is connected to an external device at this time. When the interface unit 10 is connected to an external device, the device identification subunit 21 detects the type of the external device.

[0094] When the interface unit 10 is connected to an external device, the device identification subunit 21 detects the type of the external device, specifically, the device identification subunit 21 determines the type of the external device according to the electrical signal of its device identification terminal SWITCH_DETECT. In specific implementation, the connection terminal of the headset and the connection terminal of the host computer can be set to have the same shape and different conductive properties.

[0095] Exemplarily, the second input terminal VIN_2 of the first chip U1 is the device identification terminal SWITCH_DETECT of the device identification subunit 21. Here, the electrode end of the host computer used to contact the connection terminal 121 is set as a conductor. When the host computer is connected to the interface unit 10, since the electrode end is a conductor, the connection terminal 121 can form a loop with the ground terminal 13 through the electrode end. At this time, the level of the second node P2 is pulled down, that is, the low level detected by the device identification terminal SWITCH_DETECT of the device identification subunit 21, and the external device is determined to be the host computer. Correspondingly, in the connection end of the earphone used to connect the interface unit 10, the electrode end in contact with the connection terminal 121 is set as an insulator. When the earphone is connected to the interface unit 10, the connection terminal 121 cannot form a loop with the ground terminal 13 through the electrode end. At this time, the second node P2 is a high level, that is, the high level detected by the device identification terminal SWITCH_DETECT of the device identification subunit 21, and the external device is determined to be the earphone.

[0096] The output terminal OUT of the first chip U1 is used as the control terminal GPIO_SWITCH of the device identification subunit 21, and is used to send the first signal or the second signal to the data selection unit 30. That is, the first signal or the second signal is sent to the data selector U2.

[0097] The high level detected at the device identification terminal SWITCH_DETECT of the device identification subunit 21, that is, the high level detected at the second input terminal VIN_2 of the first chip U1, determines that the external device is a headset. At this time, the first chip U1 sends a first signal to the data selector U2 through its output terminal OUT. According to the first signal, the data selector U2 conducts the path between the first channel terminal AL and the first channel terminal L of the audio unit 110, and conducts the path between the second channel terminal AR and the second channel terminal R of the audio unit 110.

[0098] The low level detected at the device identification terminal SWITCH_DETECT of the device identification subunit 21, that is, the low level detected at the second input terminal VIN_2 of the first chip U1, determines that the external device is a host computer. At this time, the first chip U1 sends a second signal to the data selector U2 through its output terminal OUT. According to the second signal, the data selector U2 conducts the path between the first channel terminal AL and the data transmitting terminal UART_TX of the debugged unit 120, and conducts the path between the second channel terminal AR and the data receiving terminal UART_RX of the debugged unit 120.

[0099] Here, when the host computer uses the audio interface circuit 100 to debug the debugged unit 120, the debugging data can be input through the first channel terminal AL and / or the second channel terminal AR, and then transmitted to the data receiving terminal UART_RX of the debugged unit 120 via the data transmitting terminal TX of the data selector U2. Correspondingly, the debugged unit 120 transmits the feedback data in the debugging process to the data receiving terminal RX of the selector U2 through its data transmitting terminal UART_TX, and then outputs it to the host computer through the first channel terminal AL and / or the second channel terminal AR.

[0100] After the debugging is completed, the host computer is separated from the audio interface circuit 100. At this time, the device identification subunit 21 outputs a first signal when detecting that the host computer is disconnected from the interface unit 10. Since the data selection unit 30 conducts the path between the interface unit 10 and the audio unit 110 according to the received first signal, after the debugged unit 120 is debugged by the host computer through the audio interface circuit 100, the host computer is separated from the interface unit 10, and audio interaction can be realized immediately after the earphone is connected to the audio interface circuit 100. In this way, the user can realize audio interaction immediately when inserting the earphone next time, shortening the response time of the audio interface circuit 100 and improving the audio interaction efficiency of the audio interface circuit 100.

[0101] The present application embodiment also provides an audio module 200 and an electronic device 300. Figure 6 As shown, the audio module 200 includes the audio interface circuit 100 in any of the above embodiments. Figure 7 As shown, the electronic device 300 includes the audio module 200 in the above embodiment.

[0102] It is easy to understand that Figure 6 The audio module 200 is shown, and Figure 7 The technical details and specific implementation methods of the electronic device 300 shown in the figure and related to the utility model points of the present application have been described in detail in the embodiment of the audio interface circuit 100, so they will not be repeated here.

[0103] The above description is only a partial or preferred embodiment of the present invention. Neither the text nor the drawings can limit the scope of protection of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the overall concept of the present invention, or direct / indirect application in other related technical fields are included in the scope of protection of the present invention.

Claims

1. An audio interface circuit, connected to an audio unit and a debugged unit respectively, characterized in that: include: An interface unit, used for connecting external devices; The external device includes headphones or a host computer; A control unit connected to the interface unit, configured to output a first signal when detecting that the interface unit is connected to the headset, and output a second signal when detecting that the interface unit is connected to the host computer; A data selection unit is respectively connected to the interface unit, the control unit, the audio unit and the debugged unit, and is used to conduct the path between the interface unit and the audio unit when a first signal is received, and to conduct the path between the interface unit and the debugged unit when a second signal is received.

2. The audio interface circuit according to claim 1, characterized in that: The interface unit includes a first detection subunit and a second detection subunit; the control unit includes a device identification subunit, which is connected to the interface unit and is used to identify the type of the external device according to the device access signal output by the interface unit.

3. The audio interface circuit according to claim 2, characterized in that: The interface unit also includes: Ground terminal, used for grounding; A first data transmission terminal, used for connecting to a first transmission end of the data selection unit; The second data transmission terminal is used to connect to the second transmission end of the data selection unit.

4. The audio interface circuit according to claim 3, characterized in that: The first detection subunit includes an elastic terminal and a first resistor; The elastic terminal is used to elastically connect the first data transmission terminal; The first end of the first resistor is connected to a preset power source, and the second end of the first resistor is connected to the elastic terminal to form a first node, and the first node is connected to the in-place detection end of the control unit.

5. The audio interface circuit according to claim 3, characterized in that: The second detection subunit is connected to a terminal, a second resistor and a first capacitor; The first end of the second resistor is connected to the connection terminal to form a second node, the second node is used to connect to the device identification terminal of the control unit, and the second end of the second resistor is connected to a preset power supply; A first end of the first capacitor is connected to the second node, and a second end of the first capacitor is connected to an audio input end of the control unit.

6. The audio interface circuit according to any one of claims 1 to 5, characterized in that: The control unit is also connected to the audio unit; the control unit is also used to: when the external device is a headset, send the voice signal input by the headset to the audio unit.

7. The audio interface circuit according to claim 6, characterized in that: The data selection unit includes a data selector; The first channel end of the data selector is connected to the first data transmission end of the interface unit, the second channel end of the data selector is connected to the second data transmission end of the interface unit, and the controlled end of the data selector is connected to the control unit; The first audio terminal of the data selector is used to connect to the first channel terminal of the audio unit, and the second audio terminal of the data selector is used to connect to the second channel terminal of the audio unit; The data receiving end of the data selector is used to connect to the data sending end of the debugged unit, and the data sending end of the data selector is used to connect to the data receiving end of the debugged unit; The enable terminal and the ground terminal of the data selector are grounded together.

8. The audio interface circuit according to claim 7, characterized in that: The data selection unit further includes: a third resistor, a fourth resistor, a second capacitor, a third capacitor, a fourth capacitor and a fifth capacitor; The third resistor is connected between the controlled end of the data selector and the ground, the first audio end of the data selector is connected to the first end of the second capacitor, the second end of the second capacitor is connected to the first channel end of the audio unit, the fourth resistor and the third capacitor are connected in parallel between the first audio end of the data selector and the ground, the second audio end of the data selector is connected to the first end of the fourth capacitor, the second end of the fourth capacitor is connected to the second channel end of the audio unit, and the fifth capacitor is connected between the second audio end of the data selector and the ground.

9. An audio module, comprising an audio unit, characterized in that: The audio module also includes an audio interface circuit as described in any one of claims 1 to 8.

10. An electronic device, characterized in that: Comprising the audio module as described in claim 9.