A kind of multi-channel audio processor
Technical field
The present invention relates to field of audio processing, espespecially a kind of multi-channel audio processor.
Background technology
Current intelligent machine is fast-developing, and the competition of each cell phone manufacturer is also more and more fierce.In order to make product more have competition
How power efficiently uses mobile phone space, how more effectively to reduce product cost under the premise of ensureing quality to a greater degree,
It is the target that each Cell Phone Design research and development company is constantly pursued.
In general, the receiver of mobile phone and loud speaker are two sets of different transit systems, structural schematic diagram such as Fig. 1 institutes
Show, during the work time, base band controls the output of receiver by the output end EARP and EARN of receiver, defeated additionally by audio
Outlet Audio_P and Audio_N are output to external audio-frequency power amplifier Audio_PA, and pass through the audio-frequency power amplifier
Audio_PA carrys out drive the speaker, realizes the output of audio signal.It can be seen from the figure that within the system, due to mobile phone
Receiver and loud speaker are two sets of independent accesses, can not only occupy more nervous system space in this way, while also improving and setting
The cost of meter.
With the development of technology, the two-in-one scheme of receiver and loud speaker two systems is developed, and is gradually pushed away
Wide to use, structural schematic diagram is as shown in Fig. 2, during the work time, base band is controlled respectively by GPIO port GPIO_0 and GPIO_1
The startup and shutdown of analog switch and audio-frequency power amplifier processed, and the two can only select a unlatching in the same time, i.e.,
When selecting audio-frequency power amplifier work, audio playing function is realized;When selecting analog switch conducting, realize
Handset function.It is defeated but since audio-frequency power amplifier generally understands the relatively high D-type audio power amplifier of efficiency of selection
Outlet AOUP, AOUN is the PWM waveform that duty ratio changes with audio frequency signal amplitude, and general high level can reach the left sides 6.5V
It is right.And the power vd D2 of analog switch is usually directly to be powered by battery, voltage range is usually to become between 3.2V ~ 4.35V
Change.Analog switch internal circuit is as shown in figure 3, first control signal EN_SW realizes electricity by level translator LevelShift
Press the conversion from VL to VDD2, wherein VL is the power supply that the PMIC of base band is generated, usually between 1.8V ~ 2.8V.When first
When the second control signal PDB that control signal EN_SW is generated after level translator LevelShift is high level VDD2, mould
Quasi- switch is closed.
When analog switch is closed, the waveform of each port of metal-oxide-semiconductor P5 is as shown in Figure 4.Metal-oxide-semiconductor P7 and N3 in figure
Device is the internal circuit being connected with port INP inside audio processor, and wherein diode D4 and D3 is respectively metal-oxide-semiconductor P7 and N3
Parasitic diode.When analog switch turns off, metal-oxide-semiconductor P7 and N3 are typically off state, then the ends INP are high-impedance state.
The grid voltage control voltage of metal-oxide-semiconductor P5 is VDD2, as the output level VDD3≤VDD2+Vth at the ends OUP(Wherein, Vth is
The conduction threshold of P5), P5 pipes can complete switch off.The voltage change at the ends OUP does not influence the ends INP.Parasitic diode D4 is not
Anti- sink current is had, the access due to OUP to INP is completely cut off completely, so the level at the ends OUP is to audio processor internal circuit
Do not influence.But work as VDD3>When VDD2+Vth, although the grid-control voltage of analog switch is VDD2, metal-oxide-semiconductor P5 still locates
In conducting state.The level of output end OUP can be transmitted directly to the ends INP.Due to the level of power vd D1 be generally 1.8V ~
2.8V, when OUP exports high level VDD3, since the value of VDD3 is much larger than the conduction threshold of VDD1 and parasitic diode D4, i.e.,:
VDD3>>VDD1+Vth_D4.So VDD3 can generate very high electric current by metal-oxide-semiconductor P5 at the ends D4, it is counter to be poured into power vd D1
End.The anti-sink current of D4 is as shown in Figure 5.The presence of anti-sink current, it is easy to lead to the damage of audio processor internal components.
Meanwhile the device being connected with INP inside audio processor, typically low-voltage device, breakdown voltage point one
As can be relatively low.When the high level at the ends OUP is transmitted to inside audio processor, equally having causes expendable N3 to be hit
Wear the risk of damage.
In addition, due to the presence of anti-sink current, in high level output, voltage is dragged down rapidly, and output wave is caused at the ends OUP
The deformation of shape, distortion, the extreme degradation quality of audio signal.Similarly, since VDD1 is poured into electric current in moment, easily cause
The disorder of the voltage status of VDD1, and then lead to the operation irregularity of whole system.
Invention content
In view of the above-mentioned problems, the present invention is intended to provide a kind of multi-channel audio processor, in original receiver and raises one's voice
It is added to high level detection module on the basis of device two systems are two-in-one, it is anti-to efficiently solve electric current in audio processing modules
The problem of filling.
Technical solution provided by the invention is as follows:
A kind of multi-channel audio processor, including:Audio processing modules, the simulation for controlling receiver output signal break-make
Switch module, the audio power amplification module of the power amplification for controlling audio output signal and break-make, maximum level detection
Module and audio output module for exporting the receiver output signal or the audio output signal, wherein
The input terminal of the analog switch module is connect with the receiver output end of the audio processing modules, and the simulation
The break-make of switch module is controlled by the first control signal that the audio processing modules export;
The input terminal of the audio power amplification module is connect with the audio output of the audio processing modules, and described
The break-make of audio power amplification module is controlled by the second control signal that the audio processing modules export;
The input terminal of the audio output module respectively with the analog switch module and the audio power amplification module
Output end connection;
The maximum level detection module is connect with the analog switch module and the audio power amplification module respectively,
The maximum level detection module obtain respectively the analog switch module the first output level and the second output level and
The power level of the audio power amplification module, and three level values of acquisition are compared to obtain maximum level value, and
Using the maximum level value as the output level of the analog switch module.
In the technical scheme, high level detection module is electric by the first output level of analog switch module and the second output
The power level of the flat and described audio power amplification module is compared, and level value is highest as analog switch mould
The output of block, the problem of no longer will appear current flowing backwards in this way.
Preferably, the maximum level detection module includes two-way high level selection circuit, wherein first via high level
First output level of the analog switch module and the second output level are compared selection circuit, and by larger level
Value is as output;The level value that second road high level selection circuit exports the first via high level selection circuit and the sound
The power level of frequency power amplifier module is compared, and using larger level value as output, to realize three level values
In maximum level value as output.
Preferably, the maximum level detection module includes two-way high level selection circuit, wherein first via high level
Selection circuit carries out the power level of the first output level of the analog switch module and the audio power amplification module
It compares, and using larger level value as output;Second road high level selection circuit is by the first via high level selection circuit
The level value of output and the second output level of the analog switch module are compared, and using larger level value as defeated
Go out, using realize by the maximum level value in three level values as export.
Preferably, the maximum level detection module includes two-way high level selection circuit, wherein first via high level
Selection circuit carries out the power level of the audio power amplification module and the second output level of the analog switch module
It compares, using larger level value as output;Second road high level selection circuit is defeated by the first via high level selection circuit
The level value gone out and the first output level of the analog switch module are compared, and using larger level value as output,
Using realize by the maximum level value in three level values as export.
In the technical scheme, two-way high level selection circuit is provided in maximum level detection module, by acquisition
Three level values are compared two-by-two, until comparing maximum level value, then using the maximum level value as output.
Preferably, the high level selection circuit includes:First resistor, second resistance, the first transistor, the second crystal
Pipe, third transistor, the 4th transistor, the 5th transistor, the 6th transistor, Schmidt trigger, the first phase inverter, second are instead
Phase device and third phase inverter, wherein;
One end of the first resistor is connect with the first extraneous incoming level, and the source electrode of the other end and the first transistor connects
It connects;One end of the second resistance is connect with the second extraneous incoming level, the source electrode connection of the other end and second transistor;It is described
The grid of the first transistor is connected with drain electrode;The grid of the grid of the second transistor and the first transistor connects, drain electrode with
The input terminal of Schmidt trigger connects;The output end of the Schmidt trigger is connect with the input terminal of the first phase inverter;Institute
The output end for stating the first phase inverter is connect with the input terminal of the second phase inverter;The output end of second phase inverter respectively with third
The grid of the input terminal of phase inverter and the 4th transistor connects;The grid of the output end and third transistor of the third phase inverter
Connection;The drain electrode of the third transistor connects and with the drain electrode of the 4th transistor as the high level selection circuit
Output end;
The drain electrode of 5th transistor and the drain electrode of the first transistor connect, and the grid of grid and the 6th transistor connects
It connects, source electrode connect and is grounded with the source electrode of the 6th transistor;The drain electrode of 6th transistor and the drain electrode of second transistor connect
It connects;
The Schmidt trigger, the first phase inverter, the second phase inverter and third transistor are inputted with first external world respectively
Level connects;The third phase inverter and the 4th transistor are connect with the second extraneous incoming level respectively;5th transistor
It is connect with bias voltage with the grid of the 6th transistor.
Preferably, include the first parasitic diode and the second parasitism two on the third transistor and the 4th transistor
Pole pipe, first parasitic diode are connected in parallel on drain electrode and the source electrode both ends of the third transistor, the described second parasitic two poles
Pipe is connected in parallel on drain electrode and the source electrode both ends of the 4th transistor.
Preferably, the first transistor, second transistor, third transistor and the 4th transistor are NMOS transistor;
5th transistor and the 6th transistor are PMOS transistor.
In multi-channel audio processor provided by the invention, realized to analog switch mould by maximum level detection module
The real-time monitoring of the first output level and the power level of the second output level and the audio power amplification module of block,
And maximum level value is therefrom selected as output level;The output of analog switch module is maximum level value in this way, thus mould
Quasi- switch module(As shown in Figure 2)For middle transistor P5 and P6 when closing section, the voltage of port PDB is the maximum level value,
There would not be the case where transistor P5 and P6 weak conducting, so as to avoid the appearance of current flowing backwards phenomenon, while protect more
Each device in channel audio processor will not damage, and substantially increase the consistency and reliability of device;
In addition, the waveform of output will not be caused situations such as deformation, distortion occur because of the presence of anti-sink current, stabilize
Whole system.
Description of the drawings
Below by a manner of clearly understandable, preferred embodiment is described with reference to the drawings, to a kind of processing of multi-channel audio
Above-mentioned characteristic, technical characteristic, advantage and its realization method of device are further described.
Fig. 1 is that receiver and the loud speaker of traditional mobile phone are the audio processor structural representations of two sets of different transit systems
Figure;
Fig. 2 is the two-in-one audio processor structural schematic diagram of traditional receiver and loud speaker;
Fig. 3 is simulant electronic switch internal circuit diagram shown in Fig. 2;
When Fig. 4 is that simulant electronic switch shown in Fig. 2 is closed, the oscillogram of each port of metal-oxide-semiconductor P5;
When Fig. 5 is that simulant electronic switch shown in Fig. 2 is closed, the anti-sink current figure of D4 in audio processor;
Fig. 6 is the structural schematic diagram of multi-channel audio processor provided by the invention;
Fig. 7 is the selection circuit figure of high level all the way in maximum level detection module in the present invention;
Fig. 8 is maximum level detection module output waveform figure in the present invention;
Fig. 9 is to be added after maximum level detection module in the present invention, and metal-oxide-semiconductor P5's is each in simulant electronic switch module
The oscillogram of port is fallen.
Reference numeral:
R1. first resistor, R2. second resistances, P1. the first transistors, P2. second transistors,
P3. third transistor, the 4th transistors of P4., the 5th transistors of N1., the 6th transistors of N2.,
Schmitt. Schmidt trigger, the first phase inverters of INV1., the second phase inverters of INV2.,
INV3. third phase inverter, the extraneous incoming levels of VIN1. first, the extraneous incoming levels of VIN2. second,
VBN. bias voltage, the first parasitic diodes of D1., the second parasitic diodes of D2.,
GPIO_0. first control signal, GPIO_1. second control signals, LevelShift. level translators,
VDD1. the first level, VDD2. second electrical levels, VDD3. third level, the 4th level of VL.,
VOP. the first output level, the second output levels of VON.
Specific implementation mode
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, control is illustrated below
The specific implementation mode of the present invention.It should be evident that drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings
Attached drawing, and obtain other embodiments.
It is illustrated in figure 6 the structural schematic diagram of multi-channel audio processor provided by the invention, it can be seen from the figure that should
Multi-channel audio processor includes:Audio processing modules, analog switch module, audio power amplification module, maximum level detection
Module and audio output module.Wherein, audio processing modules are by the first level VDD1 power supplies, and analog switch module is by the second electricity
Flat VDD2 power supplies, audio power amplification module are powered by third level VDD3, it is to be noted that, the first level described herein
VDD1, second electrical level VDD2, third level VDD3 level value selected as the case may be, we do not limit specifically herein
It is fixed.
Receiver output end EARP and the EARN connection of the input terminal INP and INN and audio processing modules of analog switch module,
And analog switch module middle port EN_SW receives the first control signal GPIO_0 that audio processing modules are sent, to control receiver
The break-make of output signal.From Fig. 3 it will be seen that analog switch module include level translator LevelShift and
Transistor P5 and P6, wherein control signal EN_SW is realized by level translator LevelShift from the 4th level VL to second
The conversion of level VDD2, VL here are the PMIC of base band(Power Management IC, power management integrated circuit)It generates
Power supply, generally between 1.8V-2.8V.During the work time, when control signal EN_SW passes through level translator
The output signal PDB generated after LevelShift is high level(The value of the high level is second electrical level VDD2)When, then the simulation
Switch module is in the state closed.
The input terminal AIP and AIN of the audio power amplification module and audio output Audio_P of audio processing modules and
Audio_N connections, and the port EN_AP in audio power amplification module receives the second control signal that audio processing modules are sent
GPIO_1, to control break-make and the power amplification of audio output signal.What it is by audio power amplification module selection is D class audio frequency work(
Rate amplifier, from figure 2 it can be seen that the output terminals A OUP and AOUN of the audio power amplification module be duty ratio with audio
The PWM of signal amplitude variation(Pulse Width Modulation, pulse width modulation)Waveform, and in the PWM waveform, high electricity
It puts down as the level value of third level VDD3.It is noted that in other embodiments, audio power amplification module is also can make
It is included in present disclosure with other kinds of audio-frequency power amplifier as long as it can be achieved the object of the present invention.
The input terminal of audio output module respectively with the output end OUP and OUN and Audio power amplifier of analog switch module
The output terminals A OUP of module is connected with AOUN.When analog switch module is closed, audio power amplification module is connected, audio output
Module exports the audio output signal that audio processing modules are sent;Similar, when the connection of analog switch module, Audio power amplifier
When module is closed, audio output module exports the receiver output signal that audio processing modules are sent.In a particular embodiment, the sound
Frequency output module can be loud speaker, and certainly, in other embodiments, which can be other audio output
Equipment, we are not specifically limited herein.
Maximum level detection module respectively with the output end OUP and OUN of analog switch module and Audio power amplifier mould
The power end of block connects, with obtain respectively analog switch module the first output level VOP and the second output level VON and
The power level of audio power amplification module(I.e. above-mentioned third level VDD3), and three level values of acquisition are compared
To maximum level value, and using maximum level value as the output level of analog switch module, by above three level value
It realizes monitoring in real time, to reach the absolute turn-on and turn-off of analog switch module, efficiently avoids going out in audio processing modules
Existing current flowing backwards phenomenon.Specifically, include two-way high level selection circuit in maximum level detection module, wherein the
High level selection circuit is by the first output level VOP of analog switch module and the second output level VON and audio work(all the way
Any two in the power level of rate amplification module is compared, and using larger level value as output;The high electricity in second tunnel
Flat selection circuit not compares the level value that first via high level selection circuit exports with first via high level selection circuit
That level value compared, and using larger level value as output, to realize the maximum level in three level values
Value is as output;Such as:The first output level VOP and the second output level VON are compared in first via high level selection circuit
Right, the second road high level selection circuit is then by the output result of first via high level selection circuit and audio power amplification module
Power level is compared.
Specifically, as shown in fig. 7, the high level selection circuit in the present invention includes:First resistor R1, second resistance
R2, the first transistor P1, second transistor P2, third transistor P3, the 4th transistor P4, the 5th transistor N1, the 6th crystal
Pipe N2, Schmidt trigger Schmitt, the first phase inverter INV1, the second phase inverter INV2 and third phase inverter INV3,
In;One end of first resistor R1 is connect with the first external world incoming level VIN1, and the other end is connect with the source electrode of the first transistor P1;
One end of second resistance R2 is connect with the second external world incoming level VIN2, and the other end is connect with the source electrode of second transistor P2;The
The grid of one transistor P1 is connected with drain electrode;The grid of second transistor P2 is connect with the grid of the first transistor P1, drain electrode with
The input terminal of Schmidt trigger Schmitt connects;The output end of Schmidt trigger Schmitt and the first phase inverter INV1's
Input terminal connects;The output end of first phase inverter INV1 is connect with the input terminal of the second phase inverter INV2;Second phase inverter INV2
Output end connect respectively with the grid of the input terminal of third phase inverter INV3 and the 4th transistor P4;Third phase inverter INV3's
Output end is connect with the grid of third transistor P3;The drain electrode of third transistor P3 connect and makees with the drain electrode of the 4th transistor P4
For the output end of high level selection circuit(It selects in the extraneous incoming level VIN2 of the first external world incoming level VIN1 and second
Larger level value is as output);The drain electrode of 5th transistor N1 is connect with the drain electrode of the first transistor P1, grid and the 6th crystalline substance
The grid of body pipe N2 connects, and source electrode connect and is grounded with the source electrode of the 6th transistor N2;The drain electrode and second of 6th transistor N2
The drain electrode of transistor P2 connects;Schmidt trigger Schmitt, the first phase inverter INV1, the second phase inverter INV2 and third are brilliant
Body pipe P3 is connect with the first external world incoming level VIN1 respectively;Third phase inverter INV3 and the 4th transistor P4 respectively with outside second
Boundary's incoming level VIN2 connections;The grid of 5th transistor N1 and the 6th transistor N2 is connect with bias voltage VBN.More specifically
For, herein, the first transistor P1, second transistor P2, third transistor P3 and the 4th transistor P4 are NMOS transistor;
5th transistor N1 and the 6th transistor N2 is PMOS transistor.In a particular embodiment, the first above-mentioned extraneous incoming level
VIN1 can be the first output level VOP or the second output level VON or Audio power amplifier mould of analog switch module output
The power level of block, the second extraneous incoming level VIN2 are different with the first external world incoming level VIN1 when in level value
Any one.First resistor R1 is identical with the resistance value of second resistance R2, the model phase of the 5th transistor N1 and the 6th transistor N2
Together, as current source load;For the first transistor P1 and second transistor P2 as input to pipe, model is identical.It is noted that
In the present invention, we are not specifically limited the concrete model of above-mentioned transistor, as long as it can be achieved the object of the present invention, all
Including in the content of the present invention.
During the work time, when the second extraneous incoming level VIN2 is more than the first external world incoming level VIN1, then second
The drain electrode of transistor P2(The input terminal of Schmidt trigger Schmitt, figure midpoint X)Export the first high level signal(This first
The value of high level signal is the second extraneous incoming level VIN2), the subsequent high level signal is by Schmidt trigger
In the output end of the second phase inverter INV2 after Schmitt, the first phase inverter INV1, the second phase inverter INV2(Y points)Output the
One low level signal;And then first low level signal passes through after third phase inverter INV3 in output end(Z points)Output the
Two high level signals(The value of second high level signal is the second extraneous incoming level VIN2), in this way, third transistor P3 is closed
It is disconnected, the 4th transistor P4 conductings, thus high level selection circuit output level Vmax is the second extraneous incoming level VIN2.Class
As, when the second extraneous incoming level VIN2 is less than the first external world incoming level VIN1, then the drain electrode of second transistor P2
(The input terminal of Schmitt triggers, point X)Export the second low level signal(0V), subsequent second low level signal is by applying
In the output end of the second phase inverter INV2 after schmitt trigger Schmitt, the first phase inverter INV1, the second phase inverter INV2(Y
Point)Export third high level signal(The value of the third high level signal is the first extraneous incoming level VIN1);And then this
Three high level signals pass through the output end after third phase inverter INV3(Z points)Third low level signal is exported, in this way, third is brilliant
The P3 conductings of body pipe, the 4th transistor P4 is disconnected, thus high level selection circuit output voltage Vmax is the first extraneous input electricity
Flat VIN1.In this way, ensuring that output voltage Vmax is the extraneous incoming level VIN2 of the first external world incoming level VIN1 and second
Between relatively high that.
Because three level values will be compared in we in the present invention, thus need the above-mentioned high level selection electricity of two-way
Road, by the circuit diagram can realize analog switch module the first output level VOP and the second output level VON, with
And maximum level value is selected in the power level of the audio power amplification module as output.In this embodiment, I
First between the first output level VOP of analog switch module and the second output level VON choose a higher value electricity
Vmax is pressed, higher value is selected between the voltage Vmax and then exported again from front and the power level of audio power amplification module
Outputs of the VH as entire module.In this way, ensuring that voltage VH is the high level between this three voltages.Due to the first output electricity
Flat VOP, the second output level VON are usually to be converted between height, and the power level of audio power amplification module is usually to compare
Relatively stablize, the first output level VOP, the second output level VON, the power level of audio power amplification module and voltage VH tetra-
Voltage relationship between person is as shown in Figure 8.Be added maximum level selector after, in all accesses all be not present it is counter fill show
As, the waveform in comparison diagram 4, each node waveform of analog switch module is as shown in Figure 9 in the present invention.As it can be seen that in analog switch mould
When block is closed, what is connect due to the substrate of switch is all maximum potential, transistor P5 and P6 can be thoroughly turned off, not counter to fill
The presence of electric current.Avoid the interference to output signal, and the damage to audio processor internal components.
As another specific implementation mode, the first parasitic two poles are provided on third transistor P3 and the 4th transistor P4
Pipe and the second parasitic diode, wherein the first parasitic diode is connected in parallel on drain electrode and the source electrode both ends of third transistor P3, and second
Parasitic diode is connected in parallel on drain electrode and the source electrode both ends of the 4th transistor P4.In this way, since two parasitic diodes are all connected to
The output end Vmax of high level selection circuit, thus the first parasitic diode and the second parasitic diode can be always maintained at it is reverse-biased,
It prevents from the output end Vmax electric leakages of high level selection circuit to the first extraneous input terminal and the second extraneous input terminal.
It should be noted that above-described embodiment can be freely combined as needed.The above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, in the premise for not departing from the principle of the invention
Under, several improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.