Digital audio and analog audio detection circuit

By integrating voltage comparator and master control circuit in the USB Type-C interface, signal recognition and power consumption problems are solved, efficient and safe signal detection and device compatibility are achieved, and user experience and battery life are improved.

CN223309959UActive Publication Date: 2025-09-05SHENZHEN FENGHEYUAN TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422362970.8
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-09-05
Estimated Expiration
2034-09-26

AI Technical Summary

Technical Problem

The existing USB Type-C interfaces have limitations in signal recognition, power consumption, circuit complexity and flexibility, resulting in poor user experience, especially on mobile devices with high power consumption, low signal detection efficiency and lack of compatibility.

Method used

Digital audio and analog audio detection circuits are adopted, including TYPE-C interface, USB signal switching switch circuit, voltage comparator circuit and main control circuit. The signal type is accurately detected through the voltage comparator chip U3, combined with the main control chip U1 to coordinate signal routing, reduce hardware resources and power consumption, and integrate overvoltage and overcurrent protection circuits to improve safety.

Benefits of technology

It achieves fast and accurate signal recognition, reduces power consumption, simplifies circuit design, improves device compatibility and user experience, extends device battery life, and provides security protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223309959U_ABST
    Figure CN223309959U_ABST
Patent Text Reader

Abstract

The utility model discloses a digital audio and analog audio detection circuit, which comprises a TYPE-C interface, a USB signal change-over switch circuit, a voltage comparator circuit, a main control circuit and a voltage division circuit, the corresponding end of the master control circuit is electrically connected with a CC1 pin and a CC2 pin of the TYPE-C interface and the corresponding end of the voltage comparator circuit through the voltage division circuit. The corresponding end of the voltage comparator circuit is also connected with the corresponding end of the main control circuit; and the corresponding end of the main control circuit is also connected with a DN pin and a DP pin of the TYPE-C interface through the USB signal change-over switch circuit. According to the utility model, through accurate voltage detection of the voltage comparator chip U3, the type of equipment connected to a USB port can be rapidly and accurately identified, whether a charging line or an analog audio input line is used, and high efficiency and high reliability of signal detection are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of integrated circuits, in particular to a digital audio and analog audio detection circuit. Background Art

[0002] In today's electronic devices, audio interface design is crucial for delivering a high-quality user experience. With technological advancements, the USB Type-C interface has become the preferred interface for audio transmission due to its versatility, including reversible pluggable connectors, high-speed data transfer, video output, and power delivery. However, despite the numerous advantages offered by the USB Type-C interface, existing Type-C audio interface solutions still have limitations in terms of low-power operation and signal detection.

[0003] Limitations of existing technologies:

[0004] Signal Identification Issues: Traditional USB interface circuit designs often fail to effectively distinguish between different types of signals, such as accurately identifying whether a connection is a charging cable or an analog audio input line. This uncertainty in identification can lead to incorrect signal processing or device operation, impacting the user experience.

[0005] High power consumption: Existing audio interface circuit designs often rely on the main control chip to continuously poll each port to determine whether an audio signal is connected. This approach not only consumes a large amount of processor resources, but also significantly increases power consumption, shortening the device's usability, making it a prominent problem, especially on mobile devices.

[0006] Complex circuit design: To distinguish between different types of audio signals (such as digital and analog audio), existing technologies often require the deployment of multiple detection circuits and components. This not only increases design complexity but also drives up costs, especially in devices that strive for miniaturization and cost-effectiveness.

[0007] Low signal detection efficiency: In some designs, due to circuit complexity and limitations of signal processing algorithms, signal detection efficiency and accuracy are low. This can lead to audio signal delays or loss, affecting sound quality and user experience.

[0008] Lack of flexibility: Existing circuit designs often lack the necessary flexibility and compatibility when dealing with new or non-standard audio devices. This limits the device's use cases, especially in the rapidly changing consumer electronics market, where devices need to quickly adapt to new connection standards and device types. Utility Model Content

[0009] In view of the problems existing in the prior art, the utility model provides a digital audio and analog audio detection circuit.

[0010] In order to achieve the above purpose, the technical solution of the utility model is as follows:

[0011] The utility model provides a digital audio and analog audio detection circuit, including: a TYPE-C interface, a USB signal switching circuit, a voltage comparator circuit, a main control circuit, and a voltage divider circuit;

[0012] The corresponding end of the main control circuit is electrically connected to the CC1 pin and CC2 pin of the TYPE-C interface and the corresponding end of the voltage comparator circuit via the voltage divider circuit; the corresponding end of the voltage comparator circuit is also connected to the corresponding end of the main control circuit;

[0013] The corresponding end of the main control circuit is also connected to the DN and DP pins of the TYPE-C interface via the USB signal switching circuit.

[0014] Preferably, the main control circuit includes a main control chip U1.

[0015] Preferably, the USB signal switching circuit includes a USB signal switching chip U2 and its peripheral circuits, and the corresponding ends of the USB signal switching chip U2 are respectively connected to the DN and DP pins of the TYPE-C interface and the corresponding ends of the main control chip U1.

[0016] Preferably, the first pin of the USB signal switching switch chip U2 is connected to the eighth pin of the USB signal switching switch chip U2 and the VDD_3V3 power supply terminal of the main control chip U1 respectively;

[0017] The second pin of the USB signal switching chip U2 is connected to the USB_DN signal terminal of the main control chip U1, and the tenth pin of the USB signal switching chip U2 is connected to the USB_DP signal terminal of the main control chip U1;

[0018] The third pin of the USB signal switching chip U2 is connected to the AUDIO_IN_L analog audio input terminal of the main control chip U1; the ninth pin of the USB signal switching chip U2 is connected to the AUDIO_IN_R analog audio input terminal of the main control chip U1;

[0019] The 4th pin of the USB signal switching chip U2 is connected to the VBUS port of the main control chip U1.

[0020] The 5th pin of the USB signal switching switch chip U2 is connected to the DN1 pin and ND2 pin of the TYPE-C interface; the 7th pin of the USB signal switching switch chip U2 is connected to the DP1 pin and NP2 pin of the TYPE-C interface.

[0021] Preferably, the voltage comparator circuit includes a voltage comparator chip U3 and its peripheral circuits; the corresponding ends of the voltage comparator chip U3 are electrically connected to the corresponding ends of the voltage divider circuit, the CC1 pin and CC2 pin of the TYPE-C interface, and the corresponding ends of the main control chip U1.

[0022] Preferably, the second pin and the fourth pin of the voltage comparator chip U3 are electrically connected to corresponding ends of the voltage divider circuit respectively;

[0023] The 6th pin of the voltage comparator chip U3 is connected to the GPIO_01 pin of the main control chip U1;

[0024] The 7th pin of the voltage comparator chip U3 is connected to the GPIO_02 pin of the main control chip U1;

[0025] The 8th pin of the voltage comparator chip U3 is connected to the VDD_1V8 power supply terminal of the main control chip U1.

[0026] Preferably, the voltage divider circuit includes a diode D01, a diode D02, a resistor R11, a resistor R12, a resistor R46, and a resistor R47;

[0027] The VDD_1V2 power supply terminal of the main control chip U1 is connected to the first end of the diode D01 and the first end of the diode D02 respectively;

[0028] The second end of the diode D01 is connected to the 4th pin of the voltage comparator chip U3 and the CC2 pin of the TYPE-C interface respectively through the resistor R46;

[0029] The second end of the diode D02 is connected to the second pin of the voltage comparator chip U3 and the CC1 pin of the TYPE-C interface via the resistor R47.

[0030] Preferably, the digital audio and analog audio detection circuit further includes an overvoltage and overcurrent protection circuit, and the VBUS port of the main control chip U1 is connected to the V-BUS power line end of the Type-c interface through the overvoltage and overcurrent protection circuit.

[0031] Preferably, the overvoltage and overcurrent protection circuit includes an overvoltage and overcurrent protection chip, a diode TVS1, a capacitor C101, a capacitor C102, a capacitor C103, and a capacitor C104; the OUT end of the overvoltage and overcurrent protection chip is respectively connected to the first end of the capacitor C104, the first end of the capacitor C103, and the VBUS port of the main control chip U1, and the VIN end of the overvoltage and overcurrent protection chip is respectively connected to the first end of the capacitor C102, the first end of the capacitor C101, the first end of the diode TVS1, and the V-BUS power line end of the Type-c interface, and the second ends of the diode TVS1, the capacitor C101, the capacitor C102, the capacitor C103, and the capacitor C104 are all grounded.

[0032] The technical solution of the present invention has the following beneficial effects:

[0033] The present invention can improve the accuracy and response speed of signal detection: through the precise voltage detection of the voltage comparator chip U3, the present invention can quickly and accurately identify the type of device connected to the USB port, whether it is a charging cable or an analog audio input cable, ensuring high efficiency and high reliability of signal detection. The present invention only requires one voltage comparator chip to detect and distinguish audio signals, without the need for additional complex circuits or hardware resources, thus simplifying circuit design and reducing costs.

[0034] The circuit design of this utility model significantly reduces the power consumption of the main control chip. Signal detection is performed through interrupt drive. The main control chip can enter a low-power mode when no signal changes are detected, thereby significantly reducing overall power consumption and extending the battery life of the device. It is particularly suitable for mobile devices and portable audio devices.

[0035] The circuit design of the utility model can adapt to a variety of TYPE-C devices, including charging devices, digital audio devices and analog audio devices, providing a wide range of application scenarios and a good user experience.

[0036] The integrated overvoltage and overcurrent protection circuit of the utility model provides additional safety protection for the system, effectively preventing damage to the main control chip and other circuit components caused by abnormal voltage or current, and enhancing the stability and safety of the entire system.

[0037] The design of the utility model uses only necessary components, reduces circuit complexity, reduces the demand for additional hardware resources, simplifies circuit design, and helps to reduce manufacturing costs and improve production efficiency.

[0038] The circuit design of the utility model is clear, the component layout is reasonable, and it is easy to maintain and upgrade, which helps to quickly adapt to changes in technological development and market demand, and provides convenience for future technological improvements and functional expansion. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 This is the circuit diagram of the utility model. DETAILED DESCRIPTION

[0040] The following describes in detail embodiments of the present invention, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present invention, and should not be construed as limiting the present invention.

[0041] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like to indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0042] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature specified as "first" or "second" may explicitly or implicitly include one or more of such features. In the description of this utility model, "plurality" means two or more, unless otherwise specifically defined.

[0043] In this utility model, unless otherwise specified or limited, the terms "installed," "connected," "connect," "fixed," etc. should be understood in a broad sense. For example, they can refer to fixed connection, detachable connection, or integral connection; mechanical connection or electrical connection; direct connection or indirect connection through an intermediate medium; and internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in this utility model based on specific circumstances.

[0044] In the present invention, unless otherwise expressly specified or limited, a first feature being "above" or "below" a second feature may include the first and second features being in direct contact, or may include the first and second features being in contact not directly but through another feature between them. Moreover, a first feature being "above," "above," and "above" a second feature may include the first feature being directly above or obliquely above the second feature, or may simply mean that the first feature is higher in level than the second feature. A first feature being "below," "below," and "below" a second feature may include the first feature being directly below or obliquely below the second feature, or may simply mean that the first feature is lower in level than the second feature.

[0045] Reference Figure 1 The present invention provides a digital audio and analog audio detection circuit, comprising: a main control circuit 100, a TYPE-C interface 200, a USB signal switching circuit 300, a voltage comparator circuit 400, and a voltage divider circuit 500;

[0046] The corresponding end of the main control circuit 10 is electrically connected to the CC1 pin and CC2 pin of the TYPE-C interface 200 and the corresponding end of the voltage comparator circuit 300 through the voltage divider circuit 500; the corresponding end of the voltage comparator circuit 300 is also connected to the corresponding end of the main control circuit 100;

[0047] The corresponding end of the main control circuit 100 is also connected to the DN and DP pins of the TYPE-C interface 200 via the USB signal switching circuit 300;

[0048] The TYPE-C interface 200 provides a reversible physical connection, supports multiple signal and power transmission, and is a key part for connecting with external devices.

[0049] USB signal switching circuit 300: This circuit is responsible for intelligently switching the signal path based on the type of connected device (such as charging cable, digital audio cable, analog audio cable, etc.); it ensures that the correct signal is transmitted to the main control circuit and can handle different types of data transmission requirements;

[0050] Voltage comparator circuit 400: This circuit is used to detect the voltage status of the TYPE-C interface, such as the charging status, audio line connection status, etc. The voltage comparator circuit 400 determines the type of connected device by comparing the voltage levels and provides a corresponding interrupt signal to the main control circuit 100.

[0051] Voltage divider circuit 500: Provides a stable reference voltage for the CC1 and CC2 pins of the Type-C interface. The voltage divider circuit ensures that the voltage comparator circuit can accurately detect the voltage status and correctly identify the type of connected device.

[0052] Furthermore, the main control circuit 100 includes a main control chip U1, which is the core of the entire circuit and is responsible for coordinating and managing the operations of all other components. It receives interrupt signals from the voltage comparator circuit and controls the USB signal switching circuit based on these signals to ensure correct signal routing and data processing. The main control chip U1 can adopt the STM32 series, MSP430 series, such as the STM32F103 series and STM32L0 series.

[0053] Furthermore, the USB signal switching circuit 300 includes a USB signal switching chip U2 and its peripheral circuits. The corresponding ends of the USB signal switching chip U2 are respectively connected to the DN and DP pins of the TYPE-C interface and the corresponding ends of the main control chip U1. Pin 1 of the USB signal switching switch chip U2 is connected to pin 8 of the USB signal switching switch chip U2 and the VDD_3V3 power supply terminal of the main control chip U1 respectively; pin 2 of the USB signal switching switch chip U2 is connected to the USB_DN signal terminal of the main control chip U1, and pin 10 of the USB signal switching switch chip U2 is connected to the USB_DP signal terminal of the main control chip U1; pin 3 of the USB signal switching switch chip U2 is connected to the AUDIO_IN_L analog audio input terminal of the main control chip U1; pin 9 of the USB signal switching switch chip U2 is connected to the AUDIO_IN_R analog audio input terminal of the main control chip U1; pin 4 of the USB signal switching switch chip U2 is connected to the VBUS port of the main control chip U1, and pin 5 of the USB signal switching switch chip U2 is connected to the DN1 pin and ND2 pin of the TYPE-C interface; pin 7 of the USB signal switching switch chip U2 is connected to the DP1 pin and NP2 pin of the TYPE-C interface. In this embodiment, the USB signal switching circuit is responsible for connecting the DN (differential negative) and DP (differential positive) signal lines of the Type-C interface to the appropriate ports as needed. By detecting the specific signal states of the Type-C interface, such as the CC line, it can identify the type of connected device (such as charging device, digital device, analog audio device, etc.). The USB signal switching chip U2 supports the signal switching requirements of the Type-C interface, ensuring compatibility with various Type-C devices.

[0054] Furthermore, voltage comparator circuit 400 includes a voltage comparator chip U3 and its peripheral circuits. The corresponding terminals of voltage comparator chip U3 are electrically connected to the corresponding terminals of the voltage divider circuit, the CC1 and CC2 pins of the TYPE-C interface, and the corresponding terminals of main control chip U1. Pins 2 and 4 of voltage comparator chip U3 are electrically connected to the corresponding terminals of the voltage divider circuit. Pin 6 of voltage comparator chip U3 is connected to the GPIO_01 pin of main control chip U1. Pin 7 of voltage comparator chip U3 is connected to the GPIO_02 pin of main control chip U1. Pin 8 of voltage comparator chip U3 is connected to the VDD_1V8 power supply terminal of main control chip U1. In this embodiment, the voltage comparator circuit monitors the voltage levels on the CC1 and CC2 pins of the Type-C interface. These pins are typically used for communication and power management, and their voltage status can indicate the type of connected device (such as a charging device, data transmission device, audio device, etc.). When a specific voltage threshold is detected, the voltage comparator circuit can generate a signal, which is then sent to the main control chip U1 to trigger the corresponding operation or processing. The core function of the voltage comparator chip U3 is to compare the input voltage (from the CC1 and CC2 pins) with a preset reference voltage. This comparison can determine the type or status of the connected device. Based on the comparison result, the voltage comparator chip U3 can output a high or low signal, which is used to notify the main control chip U1 to take further action. For example, when there is no input detection on the USB: there is no power input when any connection is made to the USB port, the USB CC1 and CC2 ports are connected by VDD_1V2 of U1 through the voltage divider circuit, and the 2pin and 4pin of the voltage comparator chip U3 detect the presence of this divided voltage, and the 6pin and 7pin of the voltage comparator chip U3 output a low level, and the voltage comparator chip U3 is in a low-power mode with no action.

[0055] Furthermore, the voltage divider circuit 500 includes a diode D01, a diode D02, a resistor R11, a resistor R12, a resistor R46, and a resistor R47; the VDD_1V2 power supply terminal of the main control chip U1 is connected to the first ends of the diode D01 and the diode D02, respectively; the second end of the diode D01 is connected to the 4th pin of the voltage comparator chip U3 and the CC2 pin of the TYPE-C interface, respectively, via the resistor R46; the second end of the diode D02 is connected to the 2nd pin of the voltage comparator chip U3 and the CC1 pin of the TYPE-C interface, respectively, via the resistor R47; in this embodiment, the voltage divider circuit provides a stable reference voltage for the main control chip U1, the voltage comparator chip U3, and the CC1 and CC2 pins of the TYPE-C interface through the voltage dividing effect of the resistors; through the voltage divider circuit, the voltage comparator chip U3 can monitor the voltages on the CC1 and CC2 pins to determine the status of the TYPE-C interface.

[0056] Furthermore, the digital audio and analog audio detection circuit also includes an overvoltage and overcurrent protection circuit 600, and the VBUS port of the main control chip U1 is connected to the V-BUS power line end of the Type-c interface through the overvoltage and overcurrent protection circuit 600; the overvoltage and overcurrent protection circuit 600 includes an overvoltage and overcurrent protection chip, a diode TVS1, a capacitor C101, a capacitor C102, a capacitor C103, and a capacitor C104; the OUT end of the overvoltage and overcurrent protection chip is respectively connected to the first end of the capacitor C104, the first end of the capacitor C103, and the VBUS port of the main control chip U1, The VIN terminal of the overvoltage and overcurrent protection chip is connected to the first terminal of capacitor C102, the first terminal of capacitor C101, the first terminal of diode TVS1, and the V-BUS power line terminal of the Type-C interface. The second terminals of diode TVS1, capacitor C101, capacitor C102, capacitor C103, and capacitor C104 are all grounded. The overvoltage and overcurrent protection circuit 400 is used to protect the device from damage caused by excessive voltage or current. Overvoltage protection: When the input voltage exceeds the safe operating voltage of the main control chip U1 and other components, the overvoltage protection circuit can limit or cut off the voltage to prevent damage. Overcurrent protection: If the current in the circuit exceeds a predetermined safe level, the overcurrent protection circuit can cut off the current to prevent overheating or damage to components. Models of overvoltage and overcurrent protection chips include TPS2041, TPS2581, IR4618, TLE9012, etc.

[0057] The working principle of this utility model is as follows:

[0058] The USB power supply and comparator chip U3 are used to determine whether the USB port is connected to a charging cable or an analog audio input cable. The specific implementation method is as follows

[0059] When there is no USB input detection: there is no power input when any connection is made to the USB port. The USB CC1 and CC2 ports are divided by U1's VDD_1V2 through D01, D02, R46, R47, R11 and R12. The 2pin and 4pin of the U3 voltage comparator chip detect the presence of this divided voltage. The 6pin and 7pin of the U3 comparator chip output a low level. The U3 chip is in a low-power mode with no action.

[0060] During USB charging detection: When the USB charging cable is inserted, the charger detects that CC1 and CC2 of the USB port are connected to the 5.1K resistor to the low position, and the charger outputs 5V power. At this time, the VBUS port of U1 detects that there is 5V power input. At the same time, 5V will control the USB signal switch to switch the USB DP / DN signal to the DP / DM port of the U1 main control chip, and connect the DP / DN signal of the USB port to the DP / DN of U1.

[0061] When detecting the connection of an analog audio cable to the USB port: Because the standard connection method for USB audio input cables is to short CC1 or CC2 to ground, analog audio signals are input from the USB port's DP and DN ports. When the USB port is connected to an analog audio input cable, the voltage of the USB CC1 or CC2 interface is 0V. At this time, pin 2 or pin 4 of the U3 voltage comparator detects a voltage of 0V, and pin 6 or pin 7 of the U3 comparator chip outputs a high level. The U3 chip is awakened by this output interrupt voltage signal. When pin 6 or pin 7 outputs a high level, U3 determines that the analog audio cable is connected. Conversely, when the audio cable is disconnected, U3 detects pin 6 or pin 7 outputs a low level, and the U1 chip continues to enter low-power mode. Because there is no 5V signal when the analog audio cable is connected, the USB signal switching chip U2 connects the USB DP and DN signals to the analog audio input port of the U1 chip.

[0062] The above description is only a preferred embodiment of the present invention and does not limit the patent scope of the present invention. All equivalent structural transformations made by using the contents of the present invention specification and drawings under the utility model concept, or direct / indirect application in other related technical fields are included in the patent protection scope of the present invention.

Claims

1. A digital audio and analog audio detection circuit, characterized in that: include: TYPE-C interface, USB signal switching circuit, voltage comparator circuit, main control circuit, voltage divider circuit; The corresponding end of the main control circuit is electrically connected to the CC1 pin and CC2 pin of the TYPE-C interface and the corresponding end of the voltage comparator circuit via the voltage divider circuit; the corresponding end of the voltage comparator circuit is also connected to the corresponding end of the main control circuit; The corresponding end of the main control circuit is also connected to the DN and DP pins of the TYPE-C interface via the USB signal switching circuit.

2. The digital audio and analog audio detection circuit according to claim 1, characterized in that: The main control circuit includes a main control chip U1.

3. The digital audio and analog audio detection circuit according to claim 2, characterized in that: The USB signal switching circuit includes a USB signal switching chip U2 and its peripheral circuits. The corresponding ends of the USB signal switching chip U2 are respectively connected to the DN and DP pins of the TYPE-C interface and the corresponding ends of the main control chip U1.

4. The digital audio and analog audio detection circuit according to claim 3, characterized in that: The first pin of the USB signal switching switch chip U2 is connected to the eighth pin of the USB signal switching switch chip U2 and the VDD_3V3 power supply terminal of the main control chip U1 respectively; The second pin of the USB signal switching chip U2 is connected to the USB_DN signal terminal of the main control chip U1, and the tenth pin of the USB signal switching chip U2 is connected to the USB_DP signal terminal of the main control chip U1; The third pin of the USB signal switching chip U2 is connected to the AUDIO_IN_L analog audio input terminal of the main control chip U1; the ninth pin of the USB signal switching chip U2 is connected to the AUDIO_IN_R analog audio input terminal of the main control chip U1; The 4th pin of the USB signal switching chip U2 is connected to the VBUS port of the main control chip U1. The 5th pin of the USB signal switching switch chip U2 is connected to the DN1 pin and ND2 pin of the TYPE-C interface; the 7th pin of the USB signal switching switch chip U2 is connected to the DP1 pin and NP2 pin of the TYPE-C interface.

5. The digital audio and analog audio detection circuit according to claim 4, characterized in that: The voltage comparator circuit includes a voltage comparator chip U3 and its peripheral circuits; the corresponding ends of the voltage comparator chip U3 are electrically connected to the corresponding ends of the voltage divider circuit, the CC1 pin and CC2 pin of the TYPE-C interface, and the corresponding ends of the main control chip U1.

6. The digital audio and analog audio detection circuit according to claim 5, characterized in that: The second pin and the fourth pin of the voltage comparator chip U3 are electrically connected to the corresponding ends of the voltage divider circuit respectively; The 6th pin of the voltage comparator chip U3 is connected to the GPIO_01 pin of the main control chip U1; The 7th pin of the voltage comparator chip U3 is connected to the GPIO_02 pin of the main control chip U1; The 8th pin of the voltage comparator chip U3 is connected to the VDD_1V8 power supply terminal of the main control chip U1.

7. The digital audio and analog audio detection circuit according to claim 6, characterized in that: The voltage divider circuit includes a diode D01, a diode D02, a resistor R11, a resistor R12, a resistor R46, and a resistor R47; The VDD_1V2 power supply terminal of the main control chip U1 is connected to the first end of the diode D01 and the first end of the diode D02 respectively; The second end of the diode D01 is connected to the 4th pin of the voltage comparator chip U3 and the CC2 pin of the TYPE-C interface respectively through the resistor R46; The second end of the diode D02 is connected to the second pin of the voltage comparator chip U3 and the CC1 pin of the TYPE-C interface via the resistor R47.

8. The digital audio and analog audio detection circuit according to claim 7, characterized in that: The digital audio and analog audio detection circuit also includes an overvoltage and overcurrent protection circuit, and the VBUS port of the main control chip U1 is connected to the V-BUS power line end of the Type-c interface through the overvoltage and overcurrent protection circuit.

9. The digital audio and analog audio detection circuit according to claim 8, characterized in that: The overvoltage and overcurrent protection circuit includes an overvoltage and overcurrent protection chip, a diode TVS1, a capacitor C101, a capacitor C102, a capacitor C103, and a capacitor C104; the OUT end of the overvoltage and overcurrent protection chip is respectively connected to the first end of the capacitor C104, the first end of the capacitor C103, and the VBUS port of the main control chip U1, and the VIN end of the overvoltage and overcurrent protection chip is respectively connected to the first end of the capacitor C102, the first end of the capacitor C101, the first end of the diode TVS1, and the V-BUS power line end of the Type-c interface, and the second ends of the diode TVS1, the capacitor C101, the capacitor C102, the capacitor C103, and the capacitor C104 are all grounded.