Disclosure of Invention
The application aims to provide a configuration circuit for a single-channel power amplifier and audio playing equipment, and aims to solve the problems that a traditional audio power amplifier needs a single configuration pin and the configuration mode is high in cost.
A first aspect of the embodiments of the present application provides a configuration circuit for a mono power amplifier, including an audio receiving and processing circuit, where the audio receiving and processing circuit is configured to receive an audio signal and decode and output the audio signal, and further including:
the driving circuit is connected with the audio receiving and processing circuit and the loudspeaker wiring port of the power amplifier and is used for configuring the loudspeaker wiring port of the power amplifier to be in a detection state when the power amplifier is powered on;
the detection circuit is connected with a loudspeaker wiring port of the power amplifier and the audio receiving processing circuit, the detection circuit is used for detecting channel configuration information of the loudspeaker wiring port during power-on and outputting the channel configuration information to the audio receiving processing circuit, and the audio receiving processing circuit is used for extracting an audio signal corresponding to the channel configuration information from an audio input digital signal according to the channel configuration information, processing the audio signal and outputting the audio signal to the driving circuit.
In one embodiment, the speaker connection port is connected with a first pull-up resistor or a first pull-down resistor, and the detection circuit obtains the channel configuration information by detecting the first pull-up resistor or the first pull-down resistor.
In one embodiment, the driving circuit includes a modulation and coding circuit, a positive pull-up driving tube, a positive pull-down driving tube, a negative pull-up driving tube, and a negative pull-down driving tube, the positive pull-up driving tube and the positive pull-down driving tube are connected to a positive interface of a speaker connection port, the negative pull-up driving tube and the negative pull-down driving tube are connected to a negative interface of the speaker connection port of the speaker, and the modulation and coding circuit is configured to receive the audio signal and drive the positive pull-up driving tube, the positive pull-down driving tube, the negative pull-up driving tube, and the negative pull-down driving tube according to the audio signal, so that the speaker plays audio.
In one embodiment, the dispensing module is configured to drive the positive pull-up driving tube, the positive pull-down driving tube, the negative pull-up driving tube, and the negative pull-down driving tube to be disconnected during power-up, so that the speaker connection port is in a detection state.
In one embodiment, the detection circuit comprises:
the power-on detection circuit outputs a first signal when detecting that the modulation coding circuit is powered on;
a schmitt level comparator connected to the positive interface of the speaker connection port or the negative interface of the speaker connection port, and outputting a detection level according to a level state of the positive interface of the speaker connection port or the negative interface of the speaker connection port, wherein the detection level includes the channel configuration information;
a latch connected to the power-up detection circuit and the Schmitt level comparator, the latch latching and outputting the detection level to the audio reception processing circuit after receiving the first signal.
In one embodiment, the power-on detection circuit is connected to the modulation and coding circuit, the power-on detection circuit outputs the first signal after delaying for a first preset time when detecting power-on, and then outputs a second signal to the modulation and coding circuit after delaying for a second preset time, and the modulation and coding circuit drives the positive pull-up driving tube, the positive pull-down driving tube, the negative pull-up driving tube and the negative pull-down driving tube according to the audio signal after receiving the second signal, so that the speaker plays audio.
In one embodiment, the first pull-up resistor or the first pull-down resistor is external to the mono digital audio power amplifier.
In one embodiment, the audio amplifier further comprises a second pull-up resistor or a second pull-down resistor internally arranged in the mono digital audio power amplifier, the second pull-up resistor or the second pull-down resistor is externally connected to the loudspeaker wiring port, and the second pull-up resistor and the second pull-down resistor are respectively used for adjusting the total impedance of the loudspeaker wiring port.
In one embodiment, the configuration circuit is integrated within the mono digital audio power amplifier.
A second aspect of the embodiments of the present application provides an audio playing device, which includes left and right speakers and left and right monaural digital audio power amplifiers, and includes the configuration circuit for the monaural power amplifier.
Compared with the prior art, the embodiment of the application has the beneficial effects that:
this application has increased the detection circuitry who is connected with drive circuit, when power amplifier goes up the electricity, drive circuit configuration speaker wiring port is at the detection state, then detection circuitry carries out the configuration and detects, the passageway configuration information of detection speaker wiring port, and record the testing result, the testing result is given audio frequency receiving processing circuit for, audio frequency receiving processing circuit is according to the testing result, follow digital audio input port, extract the audio signal that passageway configuration information is corresponding, carry out audio frequency processing and export for drive circuit in order to drive the speaker sound production. The problem that a traditional audio power amplifier needs an independent configuration pin and the configuration mode is high in cost is solved.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
It will be understood that when an element is referred to as being "secured to" or "disposed on" another element, it can be directly on the other element or be indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or be indirectly connected to the other element.
It will be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like, refer to an orientation or positional relationship illustrated in the drawings for convenience in describing the present application and to simplify description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed and operated in a particular orientation, and thus should not be construed as limiting the present application.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
Referring to fig. 1, a configuration circuit for a mono (digital audio) power amplifier (chip) 100 according to an embodiment of the present disclosure includes an audio receiving andprocessing circuit 110, adriving circuit 120, and a detectingcircuit 130. Generally, the configuration circuit of the present application is integrated within a mono digitalaudio power amplifier 100.
The audio receiving andprocessing circuit 110 is used for receiving the audio signal and decoding and outputting the audio signal. In general, the audioreception processing circuit 110 includes a decoder for decoding a received digital audio signal to obtain an analog audio signal, and an amplifier for amplifying and outputting the analog audio signal.
The speaker connection port includes apositive interface 101 and anegative interface 102, thedriving circuit 120, the audio receiving andprocessing circuit 110, and the speaker connection port (thepositive interface 101 or the negative interface 102) of thepower amplifier 100, and is configured to configure the speaker connection port of thepower amplifier 100 in a detection state when the power is turned on. In general, themonaural power amplifier 100 is powered on, and in order to suppress speaker noise caused by power-on, the power-on moment of the speaker connection port is not driven, and the level signal of the speaker connection port is obtained by using the short time. Therefore, the detection state means that thedriving circuit 120 is in the off state to avoid the influence of the speaker noise caused by the power-on the potential of the speaker connection port.
Thedetection circuit 130 is connected to the speaker connection port of thepower amplifier 100 and the audioreceiving processing circuit 110, thedetection circuit 130 is configured to detect channel configuration information of the speaker connection port when the power is turned on, and output the channel configuration information to the audioreceiving processing circuit 110, and the audioreceiving processing circuit 110 is configured to extract an audio signal corresponding to the channel configuration information from the audio input digital signal according to the channel configuration information, process the audio signal, and output the audio signal to thedriving circuit 120. The channel configuration information refers to that thepower amplifier 100 is configured in a left channel circuit or a right channel circuit, and specifically, reads a level signal of a speaker connection port to determine whether the level signal is pulled up or pulled down, so as to obtain configuration information related to the configuration information configured in the left channel circuit or the right channel circuit.
In one embodiment, the first pull-up resistor R1 or the first pull-down resistor R2 is connected to the speaker connection port, and thedetection circuit 130 obtains the channel configuration information by detecting the first pull-up resistor R1 or the first pull-down resistor R2. The first pull-up resistor R1 is connected between thepositive interface 101 and the positive power supply, and the first pull-down resistor R2 is connected between thenegative interface 102 and the power ground. For example, if a pull-up resistor is detected between thepositive interface 101 and the positive power supply, it is determined that thechip 100 is disposed in the right channel, and if a pull-down resistor is detected between thenegative interface 102 and the ground power supply, it is determined that thechip 100 is disposed in the left channel.
The speaker connection port of thepower amplifier 100 chip is typically double-ended differential driven. At either of the speaker connection ports, a pull-up or pull-down resistor may be connected to instruct thepower amplifier 100 chip to extract either the left channel or the right channel audio signal from the digital audio input channel. During normal work, because the loudspeaker wiring port has a played audio signal, the pull-up or pull-down level signal cannot be obtained, so that the loudspeaker wiring port is floated (namely, the loudspeaker drive is disconnected), the level signal of the loudspeaker wiring port is read to judge whether the audio signal is the pull-up or pull-down signal, and further the configuration information is obtained. Usually, the first pull-up resistor R1 or the first pull-down resistor R2 is externally disposed on the monaural digitalaudio power amplifier 100, and the impedance of the first pull-up resistor R1 or the first pull-down resistor R2 should be much larger than the impedance of the speaker, and the impedance is usually over 100K ohms.
Referring to fig. 2, optionally, the audio amplifier further includes a second pull-up resistor R3 or a second pull-down resistor R4 which is internally disposed in the monaural digitalaudio power amplifier 100, the second pull-up resistor R3 or the second pull-down resistor R4 is externally connected to the speaker connection port, and the external first pull-up resistor R1 or the external first pull-down resistor R2 is respectively used for adjusting the total impedance of the speaker connection port. Usually, the resistance of the pull-up or pull-down resistor external to the chip is much smaller than that of the pull-up or pull-down resistor in the chip.
Referring to fig. 3, in one embodiment, thedriving circuit 120 includes a modulation andcoding circuit 122, a positive pull-up driving tube M1, a positive pull-down driving tube M2, a negative pull-up driving tube M3, and a negative pull-down driving tube M4, the positive pull-up driving tube M1 and the positive pull-down driving tube M2 are connected to thepositive interface 101 of the speaker connection port, the negative pull-up driving tube M3 and the negative pull-down driving tube M4 are connected to thenegative interface 102 of the speaker connection port of thespeaker 200, and the modulation andcoding circuit 122 is configured to receive an audio signal and drive the positive pull-up driving tube M1, the positive pull-down driving tube M2, the negative pull-up driving tube M3, and the negative pull-down driving tube M4 according to the audio signal, so that thespeaker 200 plays audio.
The positive pull-up driving transistor M1, the positive pull-down driving transistor M2, the negative pull-up driving transistor M3, and the negative pull-down driving transistor M4 may employ switching devices such as MOS transistors, triodes, and the like. The modulation andcoding circuit 122 may employ a driving chip such as a MOS transistor or a triode, the audio receiving andprocessing circuit 110 decodes the analog audio signal to obtain an analog audio signal, and the modulation andcoding circuit 122 makes thespeaker 200 play audio according to the analog audio signal through the positive pull-up driving transistor M1, the positive pull-down driving transistor M2, the negative pull-up driving transistor M3, and the negative pull-down driving transistor M4.
Specifically, the modulation andcoding circuit 122 drives the positive pull-up driving tube M1, the positive pull-down driving tube M2, the negative pull-up driving tube M3, and the negative pull-down driving tube M4 to be turned off when the power is turned on, so that the connection port of thespeaker 200 is in a detection state. The loudspeaker wiring port is floated (namely, theloudspeaker 200 is disconnected for driving), and the level signal of the loudspeaker wiring port is read to judge whether the loudspeaker wiring port is pulled up or pulled down, so that the configuration information is obtained.
Detection circuit 130 includes a power-up detection circuit 132, aschmitt level comparator 134, and alatch 136. The power-ondetection circuit 132 is connected to the modulation andcoding circuit 122, and outputs a first signal when detecting that the modulation andcoding circuit 122 is powered on; the Schmidtlevel comparator 134 is connected to thepositive interface 101 of thespeaker 200 wiring port or thenegative interface 102 of the speaker wiring port, and outputs a detection level according to the level state of thepositive interface 101 of the speaker wiring port or thenegative interface 102 of the speaker wiring port, wherein the detection level comprises channel configuration information; alatch 136 is connected to the power-ondetection circuit 132 and theschmitt level comparator 134, and thelatch 136 latches and outputs the detection level to the audioreception processing circuit 110 after receiving the first signal.
In one embodiment, the power-ondetection circuit 132 is connected to the modulation andcoding circuit 122, the power-ondetection circuit 132 outputs a first signal after detecting a power-on delay time for a first preset time, and then outputs a second signal to the modulation andcoding circuit 122 after delaying for a second preset time, and the modulation andcoding circuit 122 drives the positive pull-up driving tube M1, the positive pull-down driving tube M2, the negative pull-up driving tube M3, and the negative pull-down driving tube M4 according to the audio signal after receiving the second signal, so that thespeaker 200 plays audio.
For example, at time T1 after the chip is powered on (e.g., 10 ms after power on), a power on completion flag a is output to latch 136, and after a delay of T2 (e.g., 10 ms), a power on completion flag B is output. The power-up completion flag a causes latch 136 to latch the output ofschmitt level comparator 134. The power-on completion flag a is set until the power-on completion flag B is set, and the output of the modulation andcoding circuit 122 is controlled, so that the 4 driving tubes are all in a closed state, and after the power-on completion flag B is set, the modulation andcoding circuit 122 performs modulation processing according to the input audio signal, and outputs a modulation signal to drive the 4 driving tubes to control theloudspeaker 200 to sound.
The audioreception processing circuit 110 extracts an audio signal of a specified channel from the input audio digital signal according to the output of thelatch 136 for processing, and then outputs the processed analog audio signal to themodulation coding circuit 122. The reference level of theschmitt level comparator 134 is not a critical element and is not specifically illustrated here. The input of theschmitt level comparator 134 may be connected to either the positive or negative pole of thespeaker 200, since thespeaker 200 has a small internal resistance, which may be considered a short circuit relative to the external pull-up or pull-down resistance.
In the example of fig. 3, thedetection circuit 130 is connected to and detects thenegative interface 102 of the speaker connection port, and in operation, if thenegative interface 102 is detected to have a pull-down resistor, it indicates that thepositive interface 101 is not provided with a pull-up resistor, and vice versa; in other embodiments, thedetection circuit 130 may be connected to and detect thepositive interface 101 of the speaker connection port, and if it can detect that thepositive interface 101 has a pull-up resistor, it indicates that thenegative interface 102 has no pull-down resistor, and vice versa.
A second aspect of the embodiments of the present application provides an audio playing device, which includes left andright speakers 200 and left and right monaural digitalaudio power amplifiers 100, and includes the configuration circuit for themonaural power amplifier 100 described above.
The driving connection control module and thedetection circuit 130 are added, when thepower amplifier 100 is powered on, the drivingcircuit 120 configures the loudspeaker wiring port in a detection state, then thedetection circuit 130 executes configuration detection, detects channel configuration information of the loudspeaker wiring port, records a detection result, transmits the detection result to the audio receiving andprocessing circuit 110, and the audio receiving andprocessing circuit 110 extracts an audio signal corresponding to the channel configuration information from the digital audio input port according to the detection result, performs audio processing and outputs the audio signal to thedriving circuit 120 so as to drive theloudspeaker 200 to sound. After theconfiguration detection circuit 130 completes the configuration detection, the detection result is locked, and then the driver connection module is notified to enter the normal operation mode. The driving connection module receives an input audio signal and converts the audio signal into a driving signal for thespeaker 200 in a normal operation mode.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.