Audio output control chip and earphone
Technical Field
The invention relates to the technical field of earphone audio processing, in particular to an audio output control chip and an earphone.
Background
The existing adapting earphones generally have impedances of different magnitudes, the impedance of the lower magnitude is 16 ohms and 32 ohms, and the impedance of the higher magnitude can reach hundreds of ohms. However, the conventional audio playing terminal, such as a notebook computer, a tablet computer, a smart phone, etc., cannot automatically detect the earphone impedance, and if the audio playing terminal is designed to be generally suitable for the earphone with lower-level impedance, the sound of the earphone driving the lower-level impedance sounds exactly, but when the earphone with higher-level impedance is driven, the sound played by the audio playing terminal is too small. On the contrary, if the earphone is designed to be generally suitable for the earphone with higher impedance, the sound played by the earphone with higher impedance is moderate, but when the earphone with lower impedance is driven to play, the sound is too loud due to the excessive amplification power, which not only damages the ear, but also burns the earphone. In view of the above, it is desirable to provide an earphone audio output control chip capable of automatically adjusting the audio output volume according to the earphone impedance.
Disclosure of Invention
In view of the above-mentioned shortcomings in the prior art, the present invention provides an audio output control chip, comprising: the audio decoder is used for decoding the audio signal output by the audio playing terminal; the digital-to-analog control unit is used for performing digital-to-analog conversion on the decoded audio signal, outputting a right output signal of the digital-to-analog control unit to the right channel current-voltage converter, and outputting a left output signal of the digital-to-analog control unit to the left channel current-voltage converter; the amplifier amplifies the audio signals converted by the right channel current-voltage converter and the left channel current-voltage converter and outputs the audio signals to the right loudspeaker and the left loudspeaker; the detection unit is used for detecting the impedance of the earphone and comprises a detection resistor and a switch, wherein one end of the detection resistor is connected with a power supply, the other end of the detection resistor is connected to a CPU (central processing unit), and meanwhile, the detection resistor is connected between the amplifier and the right loudspeaker or the left loudspeaker through the switch; and the CPU is connected with the detection unit and used for controlling the detection unit to detect the impedance of the earphone and controlling the amplification amplitude of the digital-analog control unit and/or the amplifier to the audio signal according to the impedance of the earphone so as to adjust the volume of the earphone.
Preferably, the initial state of the switch of the detection unit is a closed state, and the CPU detects the impedance of the earphone through the detection unit; and before the audio signal needs to be played, the CPU controls the switch to be switched off.
Preferably, after the detection unit reads the impedance value of the earphone, when the impedance value of the earphone is transmitted to the CPU, the CPU performs control of controlling digital-to-analog conversion of the digital-to-analog control unit according to a preset digital-to-analog conversion volume curve.
Preferably, the preset d/a conversion volume curve presets limited impedance values of a plurality of earphones and a plurality of volume output control attenuation amounts corresponding to the limited impedance values based on the impedance value of the reference earphone of the audio playing terminal, and the difference value obtains the corresponding volume output control attenuation amount under the impedance value of any earphone.
Preferably, the smaller the absolute value of the deviation of the earphone impedance value from the impedance value of the reference earphone, the smaller the volume output control attenuation amount; the larger the absolute value of the deviation of the earphone impedance value from the reference earphone impedance value is, the more the volume output control attenuation amount is.
Preferably, the impedance value of the reference earphone is 600 Ω, and the attenuation amount of the volume output control is-0 dB.
Preferably, the impedance values of the plurality of earphones and the plurality of volume output control attenuation amounts corresponding thereto are: when the impedance value of the earphone is 600 omega, the attenuation quantity of the volume output control is-0 dB; when the impedance value of the earphone is 650 omega, the attenuation of volume output control is-18 dB; when the impedance value of the earphone is 300 omega, the attenuation quantity of the volume output control is-10 dB; when the impedance value of the earphone is 100 omega, the attenuation of volume output control is-15 dB; when the impedance value of the earphone is 50 omega, the attenuation amount of the volume output control is-25 dB.
Preferably, the right channel current-to-voltage converter includes a first amplifier and a second amplifier.
Preferably, the inverting input end of the first amplifier is connected to the first end of the right output signal of the digital-analog control unit output by the digital-analog control unit; a first feedback impedance is connected between the non-inverting input end and the output end of the first amplifier; the first feedback impedance can adopt a resistor which is firstly connected with a capacitor in series and then connected with the resistor in parallel to complete a circuit of the first feedback impedance; the reverse input end of the second amplifier is connected with the second end of the right output signal of the digital-analog control unit output by the digital-analog control unit; a second feedback impedance is connected between the non-inverting input end and the output end of the second amplifier, and the composition of a second feedback impedance circuit element is the same as that of the first feedback impedance; the first amplifier is connected with the non-inverting input end of the second amplifier and is connected with a reference voltage; the output ends of the first amplifier and the second amplifier are output signals of the right channel current-voltage converter.
Preferably, the reference voltage is formed by voltage division of a power supply through serial connection of a first resistor and a second resistor; the second resistor is connected in parallel with the first capacitor.
Preferably, the left channel current-to-voltage converter includes a third amplifier and a fourth amplifier.
Preferably, the inverting input terminal of the third amplifier is connected to the a-th terminal of the left output signal of the digital-analog control unit output by the digital-analog control unit; a third feedback impedance is connected between the non-inverting input end and the output end of the third amplifier; the third feedback impedance can adopt a resistor which is firstly connected with a capacitor in series and then connected with the resistor in parallel to complete a circuit of the third feedback impedance; the reverse input end of the fourth amplifier is connected with the b-th end of a left output signal of the digital-analog control unit output by the digital-analog control unit; a fourth feedback impedance is connected between the non-inverting input end and the output end of the fourth amplifier, and the composition of a fourth feedback impedance circuit element is the same as that of the third feedback impedance; the third amplifier is connected with the non-inverting input end of the fourth amplifier and is connected with a reference voltage; the output ends of the third amplifier and the fourth amplifier are output signals of the left channel current-voltage converter.
Preferably, the reference voltage is formed by voltage division of a power supply through serial connection of a third resistor and a fourth resistor; the fourth resistor is connected with a second capacitor in parallel.
The invention also provides an earphone which is provided with any one of the audio driving system chips. Preferably, the headset is a headphone.
The invention provides an audio output control chip and an earphone.A CPU controls a detection unit to detect the impedance of the earphone, and controls the amplification amplitude of an audio signal by a digital-analog control unit and/or an amplifier according to the impedance of the earphone so as to adjust the volume of the earphone; therefore, no matter what kind of audio playing terminal is inserted by a user, the audio playing terminal can output sound which is suitable for being accepted by human ears, and the sound volume which can be comfortably listened by the human ears is not too large or too small, the ears are not damaged, the earphones are not burnt, and the defects in the prior art are greatly improved.
Drawings
Fig. 1 is a circuit diagram of an audio output control chip according to an embodiment of the invention.
Fig. 2 is a circuit diagram of a right channel current-to-voltage converter according to an embodiment of the invention.
Fig. 3 is a circuit diagram of a left channel current-to-voltage converter according to an embodiment of the invention.
The device comprises an audio output control chip-100, a left loudspeaker-20, a right loudspeaker-21, a detection unit-30, a CPU-40, a digital-analog control unit-50, a digital-analog control unit right output signal-51, a first end-51 a, a second end-51 b, a digital-analog control unit left output signal-52, an a end-52 a, a b end-52 b, a right channel current-voltage converter-60, a right channel current-voltage converter output signal-61, a first amplifier-62, a second amplifier-63, a first feedback impedance-64, a second feedback impedance-65, a left channel current-voltage converter-70, a left channel current-voltage converter output signal-71, a third amplifier-72, a fourth amplifier-73, a digital-analog control unit, The circuit comprises a third feedback impedance-74, a fourth feedback impedance-75, an amplifier-80, an audio decoder-90, a power supply-VCC, a reference voltage-VREF, a switch control signal-CON, a first resistor-R61, a second resistor-R62, a third resistor-R71, a fourth resistor-R72, a first capacitor-C61 and a second capacitor-C71.
Detailed Description
In order to solve the problems that the existing earphone has poor adaptability to different audio playing terminals and often has overlarge or undersize volume, the audio output control chip and the earphone provided by the invention are realized by the following technical scheme:
example 1:
the present embodiment provides an audio output control chip 100, please refer to fig. 1, which includes: a sound effect decoder 90, configured to decode an audio signal output by the audio playing terminal; the digital-to-analog control unit 50 is configured to perform digital-to-analog conversion on the decoded audio signal, and output a right output signal 51 of the digital-to-analog control unit to the right channel current-to-voltage converter 60, and output a left output signal 52 of the digital-to-analog control unit to the left channel current-to-voltage converter 70; an amplifier 80 for amplifying the audio signals converted by the right channel current-voltage converter 60 and the left channel current-voltage converter 70 and outputting the amplified audio signals to the right speaker 21 and the left speaker 20; the detection unit 30 is used for detecting the impedance of the earphone and comprises a detection resistor and a switch, wherein one end of the detection resistor is connected with a power supply, the other end of the detection resistor is connected to the CPU40, and meanwhile, the detection resistor is connected between the amplifier 80 and the right loudspeaker 21 or the left loudspeaker 20 through the switch; and a CPU40 connected to the detecting unit 30 for controlling the detecting unit 30 to detect the impedance of the earphone and controlling the digital-analog control unit 50 and/or the amplifier 80 to amplify the audio signal according to the impedance of the earphone to adjust the volume of the earphone.
Specifically, the switch initial state of the detection unit 30 is a closed state, and the CPU40 detects the impedance of the earphone through the detection unit 30; before an audio signal needs to be played, the CPU40 controls the switch to open.
Specifically, when the detection unit 30 reads the impedance value of the earphone and then transmits the impedance value of the earphone to the CPU40, the CPU40 performs control of digital-to-analog conversion of the digital-to-analog control unit 50 according to a preset digital-to-analog conversion volume curve.
Specifically, the preset digital-to-analog conversion volume curve presets limited impedance values of a plurality of earphones and a plurality of volume output control attenuation amounts corresponding to the limited impedance values based on the impedance value of the reference earphone of the audio playing terminal, and the difference value obtains the corresponding volume output control attenuation amount under the impedance value of any earphone.
Specifically, the smaller the absolute value of the deviation of the earphone impedance value from the impedance value of the reference earphone, the smaller the volume output control attenuation amount; the larger the absolute value of the deviation of the earphone impedance value from the reference earphone impedance value is, the more the volume output control attenuation amount is.
Specifically, the impedance value of the reference earphone is 600 Ω, and the attenuation amount of volume output control is-0 dB.
Specifically, the impedance values of the plurality of earphones and the volume output control attenuation amounts corresponding thereto are: when the impedance value of the earphone is 600 omega, the attenuation quantity of the volume output control is-0 dB; when the impedance value of the earphone is 650 omega, the attenuation of volume output control is-18 dB; when the impedance value of the earphone is 300 omega, the attenuation quantity of the volume output control is-10 dB; when the impedance value of the earphone is 100 omega, the attenuation of volume output control is-15 dB; when the impedance value of the earphone is 50 omega, the attenuation amount of the volume output control is-25 dB.
Specifically, referring to fig. 1 and 2, the right channel current-to-voltage converter 60 includes a first amplifier 62 and a second amplifier 63.
Specifically, the inverting input terminal of the first amplifier 62 is connected to the first terminal 51a of the right output signal 51 of the digital-analog control unit output by the digital-analog control unit 50; a first feedback impedance 64 is connected between the non-inverting input terminal and the output terminal of the first amplifier 62; the first feedback impedance 64 may be a resistor connected in series with a capacitor, and then connected in parallel with the resistor to complete the circuit of the first feedback impedance 64; the inverting input end of the second amplifier 63 is connected to the second end 51b of the right output signal 51 of the digital-analog control unit output by the digital-analog control unit 50; a second feedback impedance 65 is connected between the non-inverting input end and the output end of the second amplifier, and the composition of the circuit element of the second feedback impedance 65 is the same as that of the first feedback impedance 64; the first amplifier 62 is connected with the non-inverting input end of the second amplifier 63 and is connected with a reference voltage VREF; the output terminals of the first amplifier 62 and the second amplifier 63 are the right channel current-to-voltage converter output signal 61.
Specifically, the reference voltage VREF is composed of a series-connected voltage division of the power VCC through a first resistor R61 and a second resistor R62; the second resistor R62 is connected in parallel with a first capacitor C61.
Specifically, referring to fig. 1 and 3, the left channel current-to-voltage converter 70 includes a third amplifier 72 and a fourth amplifier 73.
Specifically, the inverting input terminal of the third amplifier 72 is connected to the a-th end 52a of the left output signal 52 of the digital-analog control unit output by the digital-analog control unit 50; a third feedback impedance 74 is connected between the non-inverting input terminal and the output terminal of the third amplifier 72; the third feedback impedance 74 may be a resistor, which is connected in series with a capacitor and then connected in parallel with the resistor to complete the circuit of the third feedback impedance 74; the inverting input end of the fourth amplifier 73 is connected to the b-th end 52b of the left output signal 52 of the digital-analog control unit output by the digital-analog control unit 50; a fourth feedback impedance 75 is connected between the non-inverting input terminal and the output terminal of the fourth amplifier, and the composition of the circuit element of the fourth feedback impedance 75 is the same as that of the third feedback impedance 74; the third amplifier 72 is connected with the non-inverting input end of the fourth amplifier 73, and is connected with a reference voltage VREF; the output terminals of the third amplifier 72 and the fourth amplifier 73 are the left channel current-to-voltage converter output signal 71.
Specifically, the reference voltage VREF is composed of a series-connected voltage division of the power VCC through a third resistor R71 and a fourth resistor R72; the fourth resistor R72 is connected in parallel with a second capacitor C71.
The audio output control chip 100 controls the detection unit to detect the impedance of the earphone through the CPU, and controls the amplification of the digital-analog control unit and/or the amplifier to the audio signal according to the impedance of the earphone to adjust the volume of the earphone; therefore, no matter what kind of audio playing terminal is inserted by a user, the audio playing terminal can output sound which is suitable for being accepted by human ears, and the sound volume which can be comfortably listened by the human ears is not too large or too small, the ears are not damaged, the earphones are not burnt, and the defects in the prior art are greatly improved.
Example 2:
the present embodiment provides an earphone having the audio output control chip, where the earphone may be a headphone, and has the same performance, and the description thereof is omitted.
It should be noted that the above-mentioned embodiments are provided for further detailed description of the present invention, and the present invention is not limited to the above-mentioned embodiments, and those skilled in the art can make various modifications and variations on the above-mentioned embodiments without departing from the scope of the present invention.