Background technology
On many vehicles, all dispose vehicle mounted multimedia, it has the functions such as broadcast listening, GPS navigation, road surface video capture, for people have brought transport services intelligent, efficient, amusement.Because at present automobile brand is on the market more, the car having during production is with power amplifier function, and what have is not with function.For example, even be also divided into band power amplifier and be not with two kinds of situations of power amplifier with a vehicle: 2012 sections of overbearing cars of Toyota, the low version still car power amplifier (not being with power amplifier) of joining, height is joined version with vehicle power amplifier (being with power amplifier), but its main machine structure is all the same.In order to make vehicle mounted multimedia can be suitable for all vehicles on the market, need be to power amplifier with the vehicle of power amplifier, different hardware control circuits is not set, a set of for filling low joining without power amplifier car, another set of for filling the high version band vehicle power amplifier vehicle of joining; In software control, also need to do suitable adjustment simultaneously.
As shown in Figure 1, when automobile is during without power amplifier car, the audio processing modules of vehicle-mounted multimedia equipment carries out after audio frequency is processed amplifying in input work amplification module to audio signal, exports to afterwards the loudspeaker of automobile and plays.Now power amplifier is processed and is carried out in power amplifier module.
As shown in Figure 2, when automobile is band power amplifier car, the audio processing modules of vehicle-mounted multimedia equipment carries out after audio frequency is processed exporting to audio signal, by plug-in interconnecting device, carries out audio frequency conversion, be input to afterwards the power amplifier input of automobile, by the power amplifier module of automobile, carry out power amplifier processing.Now vehicle-mounted multimedia equipment is without carrying out power amplifier, but needs the interconnecting device of approximately tens yuan of plug-in costs; Power amplifier module by automobile belt carries out power amplifier processing.
As can be seen here, in prior art for automobile whether with the situation of power amplifier, vehicle-mounted multimedia equipment need to arrange different hardware control circuits.When shipment, vehicle-mounted multimedia equipment also needs to configure different electrical power patchcord and could successfully be connected with car horn or power amplifier module; Meanwhile, during shipment, vehicle-mounted multimedia equipment will identify its main frame model, and user could identify installation.Increased like this cost of vehicle-mounted multimedia equipment and the complexity of power amplifier design, reduced compatibility, returned user's use and make troubles.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art, the object of the present invention is to provide a kind of power amplifier control device and power amplifier control method of vehicle-mounted multimedia equipment, be intended to solve existing vehicle-mounted multimedia equipment can not be simultaneously compatible with power amplifier with not with the problem of power amplifier vehicle.
Technical scheme of the present invention is as follows:
Whether a power amplifier control device for vehicle-mounted multimedia equipment, for be with power amplifier to carry out corresponding amplification to audio signal according to automobile process, and it comprises:
Audio treatment unit, for carrying out exporting to power amplifier unit after audio frequency processing to audio signal;
Control unit, for generating corresponding adjustment signal according to the mode instruction of outside input;
Power amplifier unit, for select the gain level of corresponding size according to described adjustment signal, the audio signal after audio frequency is processed is carried out the amplification of this gain level and is processed;
Audio interface, for exporting the audio signal after amplification;
Described audio treatment unit, power amplifier unit and audio interface are connected successively, and described control unit connects audio treatment unit and power amplifier unit.
In the power amplifier control device of described vehicle-mounted multimedia equipment, described audio treatment unit comprises audio processing chip, and its model is TDA7415CB; Described power amplifier unit comprises power amplifier chips, and its model is TDA7562B; Described control unit comprises CPU, and its model is STM32F101;
The PAOUT0_L pin of described audio processing chip, PAOUT0_R pin, PAOUT1_L pin, PAOUT1_R pin connect respectively RF pin, RR pin, LR pin, the LF pin of power amplifier chips; The LR-pin of described power amplifier chips, LR+ pin, LF-pin, LF+ pin, OUT_RF+ pin, OUT_RF-pin, OUT_RR+ pin, OUT_RR-pin connect respectively LR-pin, LR+ pin, LF-pin, LF+ pin, OUT_RF+ pin, OUT_RF-pin, OUT_RR+ pin, the OUT_RR-pin of audio interface; The CK pin of described power amplifier chips, DATA pin connect respectively PE12 pin, the PE9 pin of CPU.
In the power amplifier control device of described vehicle-mounted multimedia equipment, also comprise the filter unit that carries out filtering and noise reduction for the audio signal after audio frequency is processed, described filter unit is connected between audio treatment unit and power amplifier unit.
In the power amplifier control device of described vehicle-mounted multimedia equipment, described filter unit comprises the first resistance, the second resistance, the 3rd resistance, the 4th resistance, the first electric capacity, the second electric capacity, the 3rd electric capacity and the 4th electric capacity, one end of described the first resistance connects the PAOUT0_L pin of audio processing chip, the other end of the first resistance connects the RF pin of power amplifier chips by the first electric capacity, one end of described the second resistance connects the PAOUT0_R pin of audio processing chip, the other end of the second resistance connects the RR pin of power amplifier chips by the second electric capacity, one end of described the 3rd resistance connects the PAOUT1_L pin of audio processing chip, the other end of the 3rd resistance connects the LR pin of power amplifier chips by the 3rd electric capacity, one end of described the 4th resistance connects the PAOUT1_R pin of audio processing chip, the other end of the 4th resistance connects the LF pin of power amplifier chips by the 4th electric capacity.
In the power amplifier control device of described vehicle-mounted multimedia equipment, also comprise the 5th resistance and the 6th resistance, described the 5th resistance is connected between the DATA pin of power amplifier chips and the PE9 pin of CPU, and described the 6th resistance is connected between the CK pin of power amplifier chips and the PE12 pin of CPU.
A power amplifier control method for the power amplifier control device of described vehicle-mounted multimedia equipment, it comprises step:
A, control unit generate corresponding adjustment signal by the mode instruction of outside input;
B, power amplifier unit are selected the gain level of corresponding size according to described adjustment signal, the audio signal after audio frequency is processed is carried out the amplification of this gain level and processed;
Audio signal after C, audio interface output are amplified.
In described power amplifier control method, in described steps A, described mode instruction comprises is not with power amplifier instruction and the instruction of band power amplifier; When automobile is band power amplifier vehicle, described mode instruction, for the instruction of band power amplifier, generates rising adjustment signal; When automobile is not when being with power amplifier vehicle, mode instruction, for the instruction of band power amplifier, generates and reduces adjustment signal.
In described power amplifier control method, in described step B, when input reduces adjustment signal, select low gain, the audio signal after audio frequency is processed is carried out low gain amplification, and the output amplitude of audio signal is within the scope of the first predeterminated voltage; When input rising adjustment signal, select high-gain, the audio signal after audio frequency is processed is carried out plus and blowup, and the output amplitude of audio signal is in the second predeterminated voltage scope.
Beneficial effect: the present invention generates corresponding adjustment signal by control unit according to the mode instruction of outside input, power amplifier unit is selected the gain level of corresponding size according to described adjustment signal, audio signal after audio frequency is processed is carried out the amplification of this gain level and is processed rear output, can process according to select different power amplifier gain level to carry out corresponding amplification with or without power amplifier vehicle, improved compatibility, avoided prior art according to whether designing different hardware circuits with power amplifier, simplified power amplifier control mode, greatly provided cost savings.
Embodiment
The invention provides a kind of power amplifier control device and power amplifier control method of vehicle-mounted multimedia equipment, for making object of the present invention, technical scheme and effect clearer, clear and definite, below the present invention is described in more detail.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Please refer to Fig. 3 and Fig. 4, the power amplifier control device of vehicle-mounted multimedia equipment provided by the invention comprises: audio treatment unit 100, control unit 200, power amplifier unit 300 and audio interface 400, described audio treatment unit 100, power amplifier unit 300 and audio interface 400 are connected successively, and described control unit 200 connects audio treatment unit 100 and power amplifier unit 300.Control unit 200 generates corresponding adjustment signal to power amplifier unit 300 according to the mode instruction of outside input.100 pairs of audio signals of audio treatment unit carry out exporting to power amplifier unit 300 after audio frequency processing.Power amplifier unit 300 is selected the gain level of corresponding size according to described adjustment signal, the audio signal after audio frequency is processed is carried out the amplification processing of this gain level, the audio signal after finally being amplified by audio interface 400 outputs.
Wherein, described audio treatment unit 100 comprises audio processing chip U1, and its model is TDA7415CB; Described power amplifier unit 300 comprises power amplifier chips U2, and its model is TDA7562B; Described control unit 200 comprises CPU, and its model is STM32F101.
The PAOUT0_L pin of described audio processing chip U1, PAOUT0_R pin, PAOUT1_L pin, PAOUT1_R pin connect respectively RF pin, RR pin, LR pin, the LF pin of power amplifier chips U2; The LR-pin of described power amplifier chips U2, LR+ pin, LF-pin, LF+ pin, OUT_RF+ pin, OUT_RF-pin, OUT_RR+ pin, OUT_RR-pin connect respectively LR-pin, LR+ pin, LF-pin, LF+ pin, OUT_RF+ pin, OUT_RF-pin, OUT_RR+ pin, the OUT_RR-pin of audio interface 400; The CK pin of described power amplifier chips U2, DATA pin connect respectively PE12 pin, the PE9 pin of CPU.
Audio signal in the present embodiment adopts 4 tunnels to input the form of 8 tunnel outputs.Audio signal transmission after the PAOUT0_L pin of audio processing chip U1, PAOUT0_R pin, PAOUT1_L pin, PAOUT1_R pin are processed audio frequency is respectively to RF pin (audio signal of right horn before representing), RR pin (audio signal of right horn after representing), LR pin (audio signal of left horn after representing), the LF pin (audio signal of left horn before representing) of power amplifier chips U2.The adjustment signal that control unit 200 generates is from PE12 pin, the output of PE9 pin of CPU, and the CK pin, the DATA pin that by I2C data wire, transfer to power amplifier chips U2 carry out the selection of gain level.Power amplifier chips U2 carries out the amplification of this gain level and processes rear output 8 road signals to audio interface 400.The LR+ pin of power amplifier chips U1 and LR-pin are one group, and LF+ pin and LF-pin are one group, and OUT_RF+ pin and OUT_RF-pin are one group, and OUT_RR+ pin and OUT_RR-pin are one group, respectively the positive and negative audio signal of corresponding output rear left, front left, front right, rear right horn.
Described power amplifier control device also comprises the filter unit 500 that carries out filtering and noise reduction for the audio signal after audio frequency is processed, and described filter unit 500 is connected between audio treatment unit 100 and power amplifier unit 300.Described filter unit 500 comprises the first resistance R 1, the second resistance R 2, the 3rd resistance R 3, the 4th resistance R 4, the first capacitor C 1, the second capacitor C 2, the 3rd capacitor C 3 and the 4th capacitor C 4, one end of described the first resistance R 1 connects the PAOUT0_L pin of audio processing chip U1, the other end of the first resistance R 1 connects the RF pin of power amplifier chips U2 by the first capacitor C 1, one end of described the second resistance R 2 connects the PAOUT0_R pin of audio processing chip U1, the other end of the second resistance R 2 connects the RR pin of power amplifier chips U2 by the second capacitor C 2, one end of described the 3rd resistance R 3 connects the PAOUT1_L pin of audio processing chip U1, the other end of the 3rd resistance R 3 connects the LR pin of power amplifier chips U2 by the 3rd electric capacity, one end of described the 4th resistance R 4 connects the PAOUT1_R pin of audio processing chip U1, the other end of the 4th resistance R 4 connects the LF pin of power amplifier chips U2 by the 4th electric capacity.
More preferably, described the first capacitor C 1, the second capacitor C 2, the 3rd capacitor C 3 and the 4th capacitor C 4 adopt electrochemical capacitor.In order to strengthen filter effect, at the first capacitor C 1, the second capacitor C 2, the 3rd capacitor C 3 and the rear electric capacity of all can respectively connecting of the 4th capacitor C 4, as shown in Figure 4,4 electric capacity of series connection can adopt patch capacitor to reduce cost, to dwindle taking up room of circuit board in its position.
The present embodiment adopts RC filter circuit, first carries out filtering and noise reduction and processes flatness and the accuracy that can guarantee final output waveform, thereby improve quality and the effect of sound before power amplifier.
In order to protect power amplifier chips U2; described power amplifier control device also comprises the 5th resistance R 5 and the 6th resistance R 6; described the 5th resistance R 5 is connected between the DATA pin of power amplifier chips U2 and the PE9 pin of CPU, and described the 6th resistance R 6 is connected between the CK pin of power amplifier chips U2 and the PE12 pin of CPU.
Based on above-mentioned power amplifier control device, the present invention also provides a kind of power amplifier control method of power amplifier control device of vehicle-mounted multimedia equipment, and as shown in Figure 5, it comprises step:
S100, control unit generate corresponding adjustment signal by the mode instruction of outside input;
S200, power amplifier unit are selected the gain level of corresponding size according to described adjustment signal, the audio signal after audio frequency is processed is carried out the amplification of this gain level and processed;
Audio signal after S300, audio interface output are amplified.
Please continue to refer to Fig. 3 to Fig. 5, while specifically implementing, on the display screen of vehicle-mounted multimedia equipment, can show main frame menu.The present invention increases by an inside and outside power amplifier options in described main frame menu, correspondingly, in described step S100, described mode instruction comprises is not with power amplifier instruction (can be shown as " iutside " on display screen) and band power amplifier instruction (can be shown as " outside " on display screen).
When automobile is amplified by external power amplifier when not being with power amplifier vehicle, now user can select " iutside ", the instruction of CPU recognition mode is not for being with power amplifier instruction, generate and reduce adjustment signal from PE12 pin, the output of PE9 pin of CPU, by I2C data wire, transferred to CK pin, the DATA pin of power amplifier chips U2.After power amplifier chips U2 identification reduces adjustment signal, select low gain, the audio signal after audio frequency being processed is carried out low gain amplification.The output amplitude of audio signal is within the scope of the first predeterminated voltage, and for example the effective value of output amplitude is in 1V left and right, as long as can meet the amplitude requirement of the input signal of external power amplifier.Now audio interface 400 is connected with car horn.
When being band power amplifier vehicle, automobile carries out power amplifier by power amplifier control device.Now user can select " outside ", and the instruction of CPU recognition mode is the instruction of band power amplifier, generates rising adjustment signal from PE12 pin, the output of PE9 pin of CPU, is transferred to CK pin, the DATA pin of power amplifier chips U2 by I2C data wire.After power amplifier chips U2 identification rising adjustment signal, select high-gain, the audio signal after audio frequency being processed is carried out plus and blowup, and the output amplitude of audio signal is higher, within the scope of the second predeterminated voltage.Guarantee that power output reaches single channel (the audio signal transmission wire road that refers to loudspeaker) 4 Ω loads and meets the requirement of 10W.Now audio interface 400 is connected with the power amplifier input port of automobile.
In above-described embodiment, gain level is two-stage, i.e. low gain and high-gain.The size of these two gain level can make the audio signal after amplification can meet the requirement of all inside and outside power amplifier vehicles to output amplitude on the market, is standard configuration value.
Because the design of different brands automobile is different, be there is to certain difference in the output amplitude of the audio signal of needs, in order to meet the specific requirement of automobile to output amplitude, the present invention can also more accurately adjust the size of gain.The number of corresponding increase mode instruction, refinement gain level.User can select more adaptive mode instruction according to the model of concrete automobile.
In sum, the improvements of the present invention and prior art are:
1, select the power amplifier chips of TDA7562B model, make gain amplifier adjustable, thereby can be according to whether with the corresponding adjustment enlargement range of vehicle of power amplifier, export the audio signal (meeting the signal amplitude size of these vehicle needs) that this vehicle needs, thereby improved the compatibility of vehicle-mounted multimedia equipment.In prior art, the gain of power amplifier chips is fixed, and can not regulate.
2, increased the CPU that model is STM32F101 power amplifier chips has been controlled, thus can be according to the size of user's selection adjustment gain.Prior art is directly designed corresponding hardware control circuit for inside and outside power amplifier vehicle, the gain of power amplifier is not controlled.
3, for band power amplifier vehicle, cancelled interconnecting device (approximately tens of costs), audio signal all, in main frame inter-process, has reduced external disturbance, guarantees the quality of audio signal.
4, in main frame menu, increase by an inside and outside power amplifier options, facilitate user to select corresponding power amplifier to control according to vehicle.
5, in prior art, need to design respectively different hardware control circuit and mate inside and outside power amplifier vehicle, main frame also needs to be divided into two models and arranges.And in power amplifier control device provided by the invention, only use a set of hardware control circuit, the parameter configuration of power amplifier control device inside (as the grade of gain), outside wiring all adopts general setting, simultaneously compatible inside and outside power amplifier vehicle, reduced the setting of main frame model, reduced costs.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection range of claims of the present invention.