CN110460945A - A kind of audio channel detecting circuit and detection method - Google Patents

A kind of audio channel detecting circuit and detection method Download PDF

Info

Publication number
CN110460945A
CN110460945A CN201810431695.7A CN201810431695A CN110460945A CN 110460945 A CN110460945 A CN 110460945A CN 201810431695 A CN201810431695 A CN 201810431695A CN 110460945 A CN110460945 A CN 110460945A
Authority
CN
China
Prior art keywords
audio
frequency
wave
voltage
pulse width
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201810431695.7A
Other languages
Chinese (zh)
Inventor
姚恩超
牛景涛
施济杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Zhongxing New Software Co Ltd
Original Assignee
Xian Zhongxing New Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Zhongxing New Software Co Ltd filed Critical Xian Zhongxing New Software Co Ltd
Priority to CN201810431695.7A priority Critical patent/CN110460945A/en
Priority to PCT/CN2019/082905 priority patent/WO2019214404A1/en
Publication of CN110460945A publication Critical patent/CN110460945A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Amplifiers (AREA)

Abstract

The invention discloses a kind of audio channel detecting circuit, the detection circuit includes: controller, for the pulse width modulated wave of circuit output specific frequency to occur to source of sound;Circuit occurs for source of sound, for utilizing the pulse width modulated wave, generates audio input signal;Encoding and decoding are carried out when the audio input signal is used to open for audio frequency processing circuit to handle to obtain audio output signal;Audio detection circuit obtains digital square-wave, and export the digital square-wave to controller for carrying out conversion process to the audio output signal;The controller, is also used to detect the frequency of the digital square-wave of audio detection circuit output, and matches the frequency of the digital square-wave and the frequency of the pulse width modulated wave, determines the working condition of the corresponding voice-frequency channel of the audio frequency processing circuit.The present invention further simultaneously discloses a kind of audio channel detecting method.

Description

A kind of audio channel detecting circuit and detection method
Technical field
The present invention relates to detection technique field more particularly to a kind of audio channel detecting circuit and detection methods.
Background technique
As the continuous development of Internet technology and automobile become the most important vehicles in user's life, Che Lian Net smart terminal product is more and more.Vehicle-mounted T-BOX belongs to one kind of car networking smart terminal product, it is in automobile burglar, event Barrier monitoring, distress call, location tracking etc. play a significant role.
Currently, in order to ensure vehicle-mounted T-BOX is in shape when in use, in existing vehicle-mounted T-BOX product, function Self-test only includes the short circuit to access devices such as the loudspeaker of the microphone of audio input, audio output, open circuit self-test.But sound The self-checking function of frequency access lacks.
Therefore, need to find it is a kind of can be to the solution that voice-frequency channel is detected.
Summary of the invention
In view of this, being able to detect an embodiment of the present invention is intended to provide a kind of audio channel detecting circuit and detection method Voice-frequency channel whether operation irregularity.
The technical solution of the embodiment of the present invention is achieved in that
The embodiment of the present invention provides a kind of audio channel detecting circuit, and the detection circuit includes:
Controller, for the pulse width modulated wave of circuit output specific frequency to occur to source of sound;
Circuit occurs for source of sound, for utilizing the pulse width modulated wave, generates audio input signal;The audio input signal Encoding and decoding are carried out when for opening for audio frequency processing circuit to handle to obtain audio output signal;
Audio detection circuit obtains digital square-wave for carrying out conversion process to the audio output signal, and to Controller exports the digital square-wave;
The controller is also used to detect the frequency of the digital square-wave of audio detection circuit output, and described in matching The frequency of the frequency of digital square-wave and the pulse width modulated wave determines the corresponding voice-frequency channel of the audio frequency processing circuit Working condition.
In above scheme, the controller is also used to export open command to audio frequency processing circuit;
Correspondingly, the audio frequency processing circuit, for responding the open command, so that input port and output port connect It is logical.
In above scheme, circuit occurs for the source of sound, meets first specifically for the voltage value when the pulse width modulated wave When the conducting voltage of switch, using the pressure drop of the resistance on first switch access, the first amplitude of audio input signal is obtained;When When the voltage value of the pulse width modulated wave meets the blanking voltage of first switch, using on the access of first switch path in parallel Resistance pressure drop, obtain the second amplitude of audio input signal;Wherein, the first amplitude is different from second amplitude.
In above scheme, the audio detection circuit, specifically for by the first voltage and ginseng of the audio output signal Voltage is examined to be compared;When the first voltage is greater than the reference voltage, the positive voltage direction of digital square-wave is exported On first voltage threshold value;When the first voltage is less than or equal to the reference voltage, the negative of digital square-wave is exported Second voltage threshold value on voltage direction.
In above scheme, the detection circuit further include:
Bias-voltage generating circuit believes the audio output for generating bias voltage, and using the bias voltage Number first voltage carry out level conversion handle to obtain second voltage, second voltage is compared with reference voltage;Wherein, institute Second voltage is stated more than or equal to 0, the second voltage is greater than the first voltage.
In above scheme, the detection circuit further include:
Filter circuit, for being filtered to the digital square-wave, by the digital square-wave after filtering processing to Controller output;
Correspondingly, the controller for the frequency of detection filter treated digital square-wave, and matches the number The frequency of the frequency of word square-wave signal and the pulse width modulated wave determines the work of the corresponding voice-frequency channel of the audio frequency processing circuit Make state.
In above scheme, the controller, specifically for judge the digital square-wave frequency and the pulsewidth tune Whether the frequency of wave processed is consistent, if it is determined that consistent, then the corresponding voice-frequency channel of the audio frequency processing circuit is working properly;It is no Then, there are failures for the corresponding voice-frequency channel of the audio frequency processing circuit.
The embodiment of the present invention provides a kind of audio channel detecting method, and the detection method includes:
Export the pulse width modulated wave of specific frequency;
Using the pulse width modulated wave, audio input signal is generated;The audio input signal is used for for audio processing electricity Encoding and decoding are carried out when road is opened to handle to obtain audio output signal;
Conversion process is carried out to the audio output signal, obtains digital square-wave;
The frequency of the digital square-wave is detected, and matches the frequency and the pulsewidth modulation of the digital square-wave The frequency of wave determines the working condition of the corresponding voice-frequency channel of the audio frequency processing circuit.
It is described to utilize the pulse width modulated wave in above scheme, generate audio input signal, comprising:
When the voltage value of the pulse width modulated wave meets the conducting voltage of first switch, using on first switch access The pressure drop of resistance obtains the first amplitude of audio input signal;
When the voltage value of the pulse width modulated wave meets the blanking voltage of first switch, using with first switch access simultaneously The pressure drop of resistance on the access of connection obtains the second amplitude of audio input signal;
Wherein, the first amplitude is different from second amplitude.
It is described that conversion process is carried out to the audio output signal in above scheme, obtain digital square-wave, comprising:
The first voltage of the audio output signal is compared with reference voltage;
When the first voltage is greater than the reference voltage, first on the positive voltage direction of digital square-wave is exported Voltage threshold;
When the first voltage is less than or equal to the reference voltage, export on the negative voltage direction of digital square-wave Second voltage threshold value.
Audio channel detecting circuit provided in an embodiment of the present invention and detection method, export the pulsewidth modulation of specific frequency Wave;Using the pulse width modulated wave, audio input signal is generated;The audio input signal is used to open for audio frequency processing circuit Shi Jinhang encoding and decoding handle to obtain audio output signal;Conversion process is carried out to the audio output signal, obtains digital square-wave Signal;Detect the frequency of the digital square-wave, and match the digital square-wave frequency and the pulse width modulated wave Frequency, determine the working condition of the corresponding voice-frequency channel of the audio frequency processing circuit.In the embodiment of the present invention, audio processing electricity The input signal on road is the audio input signal obtained using the pulse width modulated wave, and output signal is audio output signal, is led to It crosses and digital square-wave is obtained to audio output signal progress conversion process, and then be able to detect the frequency of digital square-wave, And the frequency of the pulse width modulated wave and the frequency of digital square-wave are matched, determine the corresponding audio of the audio frequency processing circuit Whether the working condition of access is operation irregularity state.
Detailed description of the invention
Fig. 1 is the composed structure schematic diagram one of audio channel detecting of embodiment of the present invention circuit;
Fig. 2 is the inside composed structure schematic diagram of controller of the embodiment of the present invention;
Fig. 3 is the composed structure schematic diagram two of audio channel detecting of embodiment of the present invention circuit;
Fig. 4 is the inside composed structure schematic diagram that circuit occurs for source of sound of the embodiment of the present invention;
Fig. 5 is the inside composed structure schematic diagram of audio frequency processing circuit of the embodiment of the present invention;
Fig. 6 is the inside composed structure schematic diagram of audio detection circuit of the embodiment of the present invention;
Fig. 7 is the implementation process schematic diagram of audio channel detecting of embodiment of the present invention method.
Specific embodiment
The characteristics of in order to more fully hereinafter understand the embodiment of the present invention and technology contents, with reference to the accompanying drawing to this hair The realization of bright embodiment is described in detail, appended attached drawing purposes of discussion only for reference, is not used to limit the present invention.
Audio channel detecting circuit provided in this embodiment, as shown in Figure 1, the detection circuit includes:
Controller 11, for the pulse width modulated wave of circuit output specific frequency to occur to source of sound;
Circuit 12 occurs for source of sound, for utilizing the pulse width modulated wave, generates audio input signal;The audio input letter Number for for audio frequency processing circuit open when carry out encoding and decoding handle to obtain audio output signal;
Audio detection circuit 13, for obtaining digital square-wave to audio output signal progress conversion process, and The digital square-wave is exported to controller 11;
The controller 11, is also used to detect the frequency of the digital square-wave of audio detection circuit output, and matches institute The frequency of digital square-wave and the frequency of the pulse width modulated wave are stated, determines the corresponding voice-frequency channel of the audio frequency processing circuit Working condition, that is, the frequency of the frequency based on the digital square-wave and the pulse width modulated wave judges the sound The corresponding voice-frequency channel of frequency processing circuit whether operation irregularity.
Here, the controller 11 includes but is not limited to microcontroller (MCU, Micro Controller Unit).
When practical application, the input of circuit 12, control occur to source of sound for the pulse width modulated wave that controller 11 exports specific frequency The output end that circuit 12 occurs for source of sound processed can produce can be identified with pulse width modulated wave identical frequency by audio frequency processing circuit Audio input signal;Can also control source of sound occur circuit 12 output end generate with pulse width modulated wave different frequency can be by sound The audio input signal of frequency processing circuit identification.Wherein, the specific frequency of the pulse width modulated wave can according to audio frequency processing circuit The frequency range of the audio signal of processing is set.
As an example it is assumed that the frequency range of the identifiable audio signal of audio frequency processing circuit is 50Hz-100Hz, then institute The specific frequency for stating pulse width modulated wave can be set as 80Hz, and the frequency model for the audio input signal that circuit 12 generates occurs for source of sound It encloses for 50Hz-100Hz, specifically can be 80Hz or 90Hz.
In one embodiment, the controller 11 is also used to export open command to audio frequency processing circuit;
Correspondingly, the audio frequency processing circuit, for responding the open command, so that input port and output port connect It is logical.
When practical application, the controller 11 can be total by integrated circuit built-in audio (I2S, Inter IC Sound) Line interface exports open command to the audio frequency processing circuit.
In one embodiment, circuit 12 occurs for the source of sound, meets specifically for the voltage value when the pulse width modulated wave When the conducting voltage of first switch, using the pressure drop of the resistance on first switch access, the first width of audio input signal is obtained Value;When the voltage value of the pulse width modulated wave meets the blanking voltage of first switch, using with first switch path in parallel The pressure drop of resistance on access obtains the second amplitude of audio input signal;Wherein, the first amplitude and second amplitude It is different.
When practical application, when control source of sound occur circuit 12 output end generate with pulse width modulated wave identical frequency can quilt When the audio input signal of audio frequency processing circuit identification, by first switch as the time carries out periodic turn-on and turn-off, The frequency of the frequency and the pulse width modulated wave of realizing the audio input signal is consistent;And pass through default control voltage pair The pressure drop of resistance on first switch access or the pressure drop of the resistance on the associated access of first switch access are controlled, real The amplitude of the audio input signal is now controlled as the time changes.
It can be the circuit established by independent component that circuit 12, which occurs, for the source of sound, circuit implementation can there are many.
Here, after the audio frequency processing circuit is opened, encoding and decoding processing can be carried out to the audio input signal, obtained The audio output signal;Wherein, the amplitude of the audio output signal is greater than the amplitude of the audio input signal, the sound Frequency values in frequency output signal are more than the frequency values in the audio input signal.
When practical application, the audio frequency processing circuit can be vehicle-mounted T-BOX or the inside sound of other types end product Frequency circuit.
In one embodiment, the audio detection circuit 13, specifically for by the first voltage of the audio output signal It is compared with reference voltage;When the first voltage is greater than the reference voltage, the positive voltage of digital square-wave is exported First voltage threshold value on direction;When the first voltage is less than or equal to the reference voltage, digital square-wave is exported Negative voltage direction on second voltage threshold value.
When practical application, it can use operational amplifier and realize by the first voltage of the audio output signal and with reference to electricity Pressure is compared, and obtains the digital square-wave with the audio output signal at non-linear relation;It can also be to mould Quasi- signal, that is, audio output signal carries out analog-to-digital conversion process, obtains digital signal i.e. digital square-wave.
The audio detection circuit 13 can be the circuit established by independent component, circuit implementation can there are many.
In one embodiment, the detection circuit further include:
Bias-voltage generating circuit believes the audio output for generating bias voltage, and using the bias voltage Number first voltage carry out level conversion handle to obtain second voltage, second voltage is compared with reference voltage;Wherein, institute Second voltage is stated more than or equal to 0, the second voltage is greater than the first voltage.
When practical application, the audio frequency processing circuit believes the audio output that the audio input signal is handled Number voltage magnitude be likely less than zero, in order to meet the input requirements of operational amplifier, generate bias voltage, utilize bias voltage It is lifted the voltage of the audio output signal.
In one embodiment, the detection circuit further include:
Filter circuit, for being filtered to the digital square-wave, by the digital square-wave after filtering processing to Controller 11 exports;Correspondingly, the controller 11, for the frequency of detection filter treated digital square-wave, and The frequency of frequency and the pulse width modulated wave with the digital square-wave, determines the corresponding audio of the audio frequency processing circuit The working condition of access, that is, the frequency of the frequency based on the digital square-wave and the pulse width modulated wave, judge institute State the corresponding voice-frequency channel of audio frequency processing circuit whether operation irregularity.
When practical application, the audio frequency processing circuit believes the audio output that the audio input signal is handled May be comprising the signals such as noise, echo, therefore in number, the clean audio output signal in order to obtain, to the number side Wave signal is filtered, to filter the frequency of the signals such as noise, echo.
In one embodiment, the controller 11, specifically for judge the digital square-wave frequency and the arteries and veins Whether the frequency of wide modulating wave is consistent, if it is determined that consistent, then the corresponding voice-frequency channel of the audio frequency processing circuit is working properly; Otherwise, there are failures for the corresponding voice-frequency channel of the audio frequency processing circuit.
When practical application, the frequency that timer detects the digital square-wave is can be used in the controller 11.Specifically Ground records time T1 when detecting the rising edge of the digital square-wave;When detecting under the digital square-wave Drop along when, record time T2;When detecting the rising edge of the digital square-wave again, time T3 is recorded;According to T1, T2, T3, the frequency of the available digital square-wave.
In embodiments of the present invention, controller 11, for the pulse width modulated wave of circuit output specific frequency to occur to source of sound; Circuit 12 occurs for source of sound, for utilizing the pulse width modulated wave, generates audio input signal;The audio input signal is for supplying Encoding and decoding are carried out when audio frequency processing circuit is opened to handle to obtain audio output signal;Audio detection circuit 13, for the sound Frequency output signal carries out conversion process, obtains digital square-wave, and export the digital square-wave to controller 11;It is described Controller 11 is also used to detect the frequency of the digital square-wave of audio detection circuit output, and is believed based on the digital square-wave Number frequency and the pulse width modulated wave frequency, it is different to judge whether the corresponding voice-frequency channel of the audio frequency processing circuit works Often.In the present embodiment, the input signal of audio frequency processing circuit is the audio input signal with pulse width modulated wave same frequency, output letter Number it is audio output signal, obtains digital square-wave by carrying out analog-to-digital conversion process to audio output signal, and then it can base In the frequency of pulse width modulated wave and the frequency of digital square-wave, whether the corresponding voice-frequency channel of the audio frequency processing circuit is judged Operation irregularity.
In addition, the self-test of voice-frequency channel, facilitate vehicle-mounted T-BOX user effectively excluded before not enabled T-BOX plate grade and The failure of chip-scale, and can be improved the security performance of vehicle.
Fig. 2 is a kind of composed structure schematic diagram of embodiment of controller of the present invention, and controller provided in this embodiment is such as schemed Shown in 2, the controller 11 includes:
Generative circuit 21, for the pulse width modulated wave of circuit output specific frequency to occur to source of sound;
Frequency detection circuit 22, the frequency of the digital square-wave for detecting audio detection circuit output;
Decision circuitry 23 is used for and matches the frequency of the digital square-wave and the frequency of the pulse width modulated wave, really The working condition of the corresponding voice-frequency channel of the fixed audio frequency processing circuit, that is, the frequency based on the digital square-wave and The frequency of the pulse width modulated wave, judge the corresponding voice-frequency channel of the audio frequency processing circuit whether operation irregularity.
Here, the controller 11 includes but is not limited to MCU.
When practical application, the input of circuit 12 occurs to source of sound for the pulse width modulated wave that generative circuit 21 exports specific frequency, It controls source of sound and the output end generation of circuit 12 and the sound that can be identified by audio frequency processing circuit of pulse width modulated wave identical frequency occurs Frequency input signal;Can also control source of sound occur circuit 12 output end generate with pulse width modulated wave different frequency can be by audio The audio input signal of processing circuit identification.That is, the specific frequency of the pulse width modulated wave can be according to audio processing The frequency range of the accessible audio signal of circuit is set.
As an example it is assumed that the frequency range of the identifiable audio signal of audio frequency processing circuit is 50Hz-100Hz, then institute The specific frequency for stating pulse width modulated wave can be set as 80Hz, and the frequency model for the audio input signal that circuit 12 generates occurs for source of sound It encloses for 50Hz-100Hz, specifically can be 80Hz or 90Hz.
When practical application, the frequency that timer detects the digital square-wave is can be used in the frequency detection circuit 22 Rate.Specifically, when detecting the rising edge of the digital square-wave, time T1 is recorded;When detecting the digital square-wave When the failing edge of signal, time T2 is recorded;When detecting the rising edge of the digital square-wave again, time T3 is recorded; According to T1, T2, T3, the frequency of the available digital square-wave.
The decision circuitry 23, specifically for judging the frequency of the digital square-wave and the frequency of the pulse width modulated wave Whether rate is consistent, if it is determined that consistent, then the corresponding voice-frequency channel of the audio frequency processing circuit is working properly;Otherwise, the sound There are failures for the corresponding voice-frequency channel of frequency processing circuit.
Embodiment illustrated in fig. 3 is a specific application example of audio channel detecting circuit shown in Fig. 1.
In the present embodiment, as shown in figure 3, detection circuit includes: microcontroller, source of sound generation circuit 12, audio processing Circuit, audio detection circuit 13;Wherein, controller 11 is microcontroller.Microcontroller has pulse width modulated wave output function GPIO and source of sound the input of circuit 12 occur be connected, the output and the input phase of audio frequency processing circuit of source of sound generation circuit 12 Even, input of the audio input signal of circuit generation 12 as audio frequency processing circuit, the output of audio frequency processing circuit occur for source of sound It is connected with the input of audio detection circuit 13, the output of audio detection circuit 13 is connected with another GPIO of microcontroller.
The working principle of detection circuit shown in Fig. 3 are as follows: frequency of the microcontroller based on the digital square-wave and described The frequency of pulse width modulated wave, judge the corresponding voice-frequency channel of the audio frequency processing circuit whether operation irregularity.
The specific work process of detection circuit shown in Fig. 3, which includes: microcontroller, to be occurred circuit 12 to source of sound and exports specific frequency The pulse width modulated wave of rate;Source of sound occurs circuit 12 and utilizes the pulse width modulated wave, generates and the pulse width modulated wave identical frequency Audio input signal;Encoding and decoding are carried out to the audio input signal when audio frequency processing circuit is opened to handle to obtain audio output Signal;Audio detection circuit 13 detects the audio output signal of audio frequency processing circuit, and audio output signal is converted into micro-control The identifiable digital square-wave of device processed is simultaneously exported to microcontroller.Microcontroller detects the number that audio detection circuit 13 exports The frequency of square-wave signal, and judge digital square-wave frequency and microcontroller output pulse width modulated wave frequency whether one It causes, to realize the quick detection to the corresponding voice-frequency channel of audio frequency processing circuit.
Embodiment illustrated in fig. 4 is the specific application example that circuit occurs for source of sound shown in Fig. 1.
In the present embodiment, as shown in figure 4, it includes: N-channel metal oxide semiconductor field-effect that circuit 12, which occurs, for source of sound Manage (NMOS) D1, resistance R1, resistance R2, resistance R3, resistance R4, resistance R5;Wherein, input CTL IN passes through resistance R2 and R3 points The base stage of N-channel depletion type MOS FET pipe D1 is connected to after pressure, output SOUT is connected to the drain electrode of NMOS tube D1 by resistance R1. The PWR that powers passes through concatenated freewheeling diode VD1Output SOUT, SOUT, which are connected to, with resistance R5 is connected to ground by resistance R4 GND。
The working principle of the generation circuit 12 of source of sound shown in Fig. 4 are as follows: the pulse width modulated wave inputted using CTL IN interface is obtained Audio input signal identical with pulsewidth modulation wave frequency rate exports the audio input signal to audio processing from SOUT interface Circuit.
The specific work process of the generation circuit 12 of source of sound shown in Fig. 4 includes: the pulse width modulated wave when the input of CTL IN interface Voltage value when meeting the conducting voltage of NMOS tube D1, determined on NMOS tube D1 access using the control voltage that PWR interface inputs The pressure drop of resistance R1 obtain the first amplitude of audio input signal using the pressure drop of resistance R1;When the input of CTL IN interface When the voltage value of pulse width modulated wave meets the blanking voltage of NMOS tube D1, using PWR interface input control voltage determine with The pressure drop of resistance R4 on the access of NMOS tube D1 path in parallel obtains the of audio input signal using the pressure drop of resistance R4 Two amplitudes;Wherein, the first amplitude is different from second amplitude.
Embodiment illustrated in fig. 5 is a specific application example of audio frequency processing circuit shown in Fig. 1.
In the present embodiment, as shown in figure 5, audio frequency processing circuit include: audio coding decoding chip, input processing module, Output processing module, I2S interface;Wherein, input INPUT is connected to input processing circuit, and input processing circuit is connected to audio Codec chip, the output of audio coding decoding chip are connected to output processing circuit, and output processing circuit is connected to audio processing The output OUTPUT of circuit passes through I2S interactive interfacing between audio coding decoding chip and external microcontroller.
The working principle of audio frequency processing circuit shown in fig. 5 are as follows: right after receiving the open command of microcontroller transmission The audio input signal of INPUT input carries out encoding and decoding processing, obtains audio output signal, by the audio output signal to sound Frequency detection circuit 13 exports.
Embodiment illustrated in fig. 6 is a specific application example of audio detection circuit shown in Fig. 1.
In the present embodiment, as shown in fig. 6, audio detection circuit includes: operational amplifier A1, resistance R6, resistance R7, electricity Hinder R8, resistance R9, resistance R10, resistance R11, capacitor C1, capacitor C3;Wherein, V is inputtedINIt is formed by resistance R5 and capacitor C1 Low-pass filter is connected to the non-inverting input terminal of amplifier A1;The output end of amplifier A1 is connected to resistance R10 and capacitor C3 group At low-pass filter, be connected to the output V of audio detection circuit 13OUT
The working principle of audio frequency processing circuit shown in Fig. 6 are as follows: resistance R5 and capacitor C1 forms low-pass filter, to VINIt carries out Low-pass filtering;Resistance R6 and resistance R7 are divided over the ground, provide DC offset voltage, the bias voltage is to the V after low-pass filteringIN Voltage carry out level conversion processing, obtain second voltage;The second voltage inputs electricity as the positive of operational amplifier A1 Pressure;Resistance R8 and R9 divide the inverting input terminal for being connected to amplifier A1 over the ground, obtain reference voltage;Operational amplifier A1 is by Two voltages are compared with reference voltage, when the first voltage is greater than the reference voltage, export digital square-wave First voltage threshold value on positive voltage direction;When the first voltage is less than or equal to the reference voltage, number side is exported Second voltage threshold value on the negative voltage direction of wave signal;Resistance R10 and capacitor C3 forms low-pass filter, to the number side Wave signal is filtered, and the digital square-wave after filtering processing is passed through VOUTInterface is exported to microcontroller.
Circuit based on the above embodiment, the embodiment of the present invention provides a kind of detection method, as shown in fig. 7, this method includes Following steps:
Step 701: exporting the pulse width modulated wave of specific frequency;
Step 702: utilizing the pulse width modulated wave, generate audio input signal;The audio input signal is used for for sound Encoding and decoding are carried out when frequency processing circuit is opened to handle to obtain audio output signal;
Step 703: conversion process being carried out to the audio output signal, obtains digital square-wave;
Step 704: detecting the frequency of the digital square-wave, and match the frequency of the digital square-wave and described The frequency of pulse width modulated wave determines the working condition of the corresponding voice-frequency channel of the audio frequency processing circuit, that is, based on described The frequency of the frequency of digital square-wave and the pulse width modulated wave judges that the corresponding voice-frequency channel of the audio frequency processing circuit is No operation irregularity.
In one embodiment, the method also includes:
Open command is exported to audio frequency processing circuit;Correspondingly, the audio frequency processing circuit responds the open command, makes Input port is obtained to be connected to output port.
When practical application, open command can be exported to the audio frequency processing circuit by I2S bus interface.
In one embodiment, described to utilize the pulse width modulated wave, generate audio input signal, comprising: when the pulsewidth When the voltage value of modulating wave meets the conducting voltage of first switch, using the pressure drop of the resistance on first switch access, sound is obtained The first amplitude of frequency input signal;When the voltage value of the pulse width modulated wave meets the blanking voltage of first switch, using with The pressure drop of resistance on the access of first switch path in parallel obtains the second amplitude of audio input signal;Wherein, described first Amplitude is different from second amplitude.
Believe here it is possible to generate with the audio input that can be identified by audio frequency processing circuit of pulse width modulated wave identical frequency Number;The audio input signal that can be identified by audio frequency processing circuit with pulse width modulated wave different frequency can also be generated.
When practical application, when the audio input that can be identified by audio frequency processing circuit of generation and pulse width modulated wave identical frequency When signal, by first switch as the time carries out periodic turn-on and turn-off, the frequency of the audio input signal is realized It is consistent with the frequency of the pulse width modulated wave;And pass through pressure drop of the default control voltage to the resistance on first switch access Or the pressure drop of the resistance on the associated access of first switch access is controlled, and realizes the width for controlling the audio input signal Value changes with the time.
In one embodiment, described that conversion process is carried out to the audio output signal, obtain digital square-wave, and to Controller exports the digital square-wave, comprising: compares the first voltage of the audio output signal with reference voltage Compared with;When the first voltage is greater than the reference voltage, the first voltage on the positive voltage direction of digital square-wave is exported Threshold value;When the first voltage is less than or equal to the reference voltage, export on the negative voltage direction of digital square-wave Second voltage threshold value.
When practical application, it can use operational amplifier and realize by the first voltage of the audio output signal and with reference to electricity Pressure is compared, and obtains the digital square-wave with the audio output signal at non-linear relation;It can also be to mould Quasi- signal, that is, audio output signal carries out analog-to-digital conversion process, obtains digital signal i.e. digital square-wave.
In one embodiment, the method also includes:
Bias voltage is generated, and carries out level using first voltage of the bias voltage to the audio output signal and turns It changes processing and obtains second voltage, second voltage is compared with reference voltage;Wherein, the second voltage is greater than or equal to 0, The second voltage is greater than the first voltage.
In one embodiment, the method also includes:
The digital square-wave is filtered, the digital square-wave after filtering processing is exported to controller;Phase Ying Di, the frequency of the controller detection filter treated digital square-wave, and match the frequency of the digital square-wave The frequency of rate and the pulse width modulated wave determines the working condition of the corresponding voice-frequency channel of the audio frequency processing circuit, that is, The frequency of frequency and the pulse width modulated wave based on the digital square-wave, judges the corresponding sound of the audio frequency processing circuit Frequency access whether operation irregularity.
When practical application, the audio frequency processing circuit believes the audio output that the audio input signal is handled May be comprising the signals such as noise, echo, therefore in number, the clean audio output signal in order to obtain, to the number side Wave signal is filtered, to filter the frequency of the signals such as noise, echo.
In one embodiment, the frequency of the detection digital square-wave, and based on the digital square-wave The frequency of frequency and the pulse width modulated wave, judge the corresponding voice-frequency channel of the audio frequency processing circuit whether operation irregularity, packet Include: whether the frequency for judging the digital square-wave is consistent with the frequency of the pulse width modulated wave, if it is determined that consistent, then institute It is working properly to state the corresponding voice-frequency channel of audio frequency processing circuit;Otherwise, the corresponding voice-frequency channel of the audio frequency processing circuit exists Failure.
When practical application, the frequency that timer detects the digital square-wave can be used.Specifically, when detecting When stating the rising edge of digital square-wave, time T1 is recorded;When detecting the failing edge of the digital square-wave, when record Between T2;When detecting the rising edge of the digital square-wave again, time T3 is recorded;It is available according to T1, T2, T3 The frequency of the digital square-wave.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (10)

1. a kind of audio channel detecting circuit, which is characterized in that the detection circuit includes:
Controller, for the pulse width modulated wave of circuit output specific frequency to occur to source of sound;
Circuit occurs for source of sound, for utilizing the pulse width modulated wave, generates audio input signal;The audio input signal is used for Encoding and decoding are carried out when opening for audio frequency processing circuit to handle to obtain audio output signal;
Audio detection circuit obtains digital square-wave for carrying out conversion process to the audio output signal, and to control Device exports the digital square-wave;
The controller, is also used to detect the frequency of the digital square-wave of audio detection circuit output, and matches the number The frequency of the frequency of square-wave signal and the pulse width modulated wave determines the work of the corresponding voice-frequency channel of the audio frequency processing circuit State.
2. detection circuit according to claim 1, which is characterized in that
The controller is also used to export open command to audio frequency processing circuit;
Correspondingly, the audio frequency processing circuit, for responding the open command, so that input port is connected to output port.
3. detection circuit according to claim 1, which is characterized in that
Circuit occurs for the source of sound, and the conducting voltage of first switch is met specifically for the voltage value when the pulse width modulated wave When, using the pressure drop of the resistance on first switch access, obtain the first amplitude of audio input signal;When the pulse width modulated wave Voltage value when meeting the blanking voltage of first switch, using the pressure drop with the resistance on the access of first switch path in parallel, Obtain the second amplitude of audio input signal;Wherein, the first amplitude is different from second amplitude.
4. detection circuit according to claim 1, which is characterized in that
The audio detection circuit, specifically for the first voltage of the audio output signal to be compared with reference voltage; When the first voltage is greater than the reference voltage, the first voltage threshold on the positive voltage direction of digital square-wave is exported Value;When the first voltage is less than or equal to the reference voltage, the on the negative voltage direction of digital square-wave is exported Two voltage thresholds.
5. detection circuit according to claim 4, which is characterized in that the detection circuit further include:
Bias-voltage generating circuit, for generating bias voltage, and using the bias voltage to the audio output signal First voltage carries out level conversion and handles to obtain second voltage, and second voltage is compared with reference voltage;Wherein, described Two voltages are greater than or equal to 0, and the second voltage is greater than the first voltage.
6. detection circuit according to claim 4, which is characterized in that the detection circuit further include:
Filter circuit, for being filtered to the digital square-wave, by the digital square-wave after filtering processing to control Device output;
Correspondingly, the controller for the frequency of detection filter treated digital square-wave, and matches the number side The frequency of the frequency of wave signal and the pulse width modulated wave determines the work shape of the corresponding voice-frequency channel of the audio frequency processing circuit State.
7. detection circuit according to claim 1, which is characterized in that
The controller, specifically for judge the digital square-wave frequency and the pulse width modulated wave frequency whether one It causes, if it is determined that consistent, then the corresponding voice-frequency channel of the audio frequency processing circuit is working properly;Otherwise, the audio processing electricity There are failures for the corresponding voice-frequency channel in road.
8. a kind of audio channel detecting method, which is characterized in that the detection method includes:
Export the pulse width modulated wave of specific frequency;
Using the pulse width modulated wave, audio input signal is generated;The audio input signal for audio frequency processing circuit for opening Encoding and decoding are carried out when opening to handle to obtain audio output signal;
Conversion process is carried out to the audio output signal, obtains digital square-wave;
Detect the frequency of the digital square-wave, and match the digital square-wave frequency and the pulse width modulated wave Frequency determines the working condition of the corresponding voice-frequency channel of the audio frequency processing circuit.
9. detection method according to claim 8, which is characterized in that it is described to utilize the pulse width modulated wave, generate audio Input signal, comprising:
When the voltage value of the pulse width modulated wave meets the conducting voltage of first switch, the resistance on first switch access is utilized Pressure drop, obtain the first amplitude of audio input signal;
When the voltage value of the pulse width modulated wave meets the blanking voltage of first switch, using with first switch path in parallel The pressure drop of resistance on access obtains the second amplitude of audio input signal;
Wherein, the first amplitude is different from second amplitude.
10. detection method according to claim 8, which is characterized in that described to be converted to the audio output signal Processing, obtains digital square-wave, comprising:
The first voltage of the audio output signal is compared with reference voltage;
When the first voltage is greater than the reference voltage, the first voltage on the positive voltage direction of digital square-wave is exported Threshold value;
When the first voltage is less than or equal to the reference voltage, the on the negative voltage direction of digital square-wave is exported Two voltage thresholds.
CN201810431695.7A 2018-05-08 2018-05-08 A kind of audio channel detecting circuit and detection method Withdrawn CN110460945A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810431695.7A CN110460945A (en) 2018-05-08 2018-05-08 A kind of audio channel detecting circuit and detection method
PCT/CN2019/082905 WO2019214404A1 (en) 2018-05-08 2019-04-16 Detection circuit and detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810431695.7A CN110460945A (en) 2018-05-08 2018-05-08 A kind of audio channel detecting circuit and detection method

Publications (1)

Publication Number Publication Date
CN110460945A true CN110460945A (en) 2019-11-15

Family

ID=68467763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810431695.7A Withdrawn CN110460945A (en) 2018-05-08 2018-05-08 A kind of audio channel detecting circuit and detection method

Country Status (2)

Country Link
CN (1) CN110460945A (en)
WO (1) WO2019214404A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050265A (en) * 2019-11-27 2020-04-21 深圳易科声光科技股份有限公司 Automatic audio link detection method and device
CN111343557A (en) * 2020-02-28 2020-06-26 西安广和通无线通信有限公司 Audio signal testing method, device and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404669A (en) * 2011-11-10 2012-04-04 赵跃庆 Audio frequency detection circuit and audio frequency detection method
CN102929268A (en) * 2012-10-16 2013-02-13 福建慧翰微电子有限公司 Self checking implementation method of vehicle-mounted remote monitoring terminal
US20130177175A1 (en) * 2012-01-06 2013-07-11 Richtek Technology Corporation Power efficiency improvement of an audio amplifier by adaptive control of a charge pump
CN103379419A (en) * 2012-04-16 2013-10-30 上海晨兴希姆通电子科技有限公司 Audio frequency access test system
CN103825590A (en) * 2014-03-24 2014-05-28 吉林大学 Amplitude-modulated wave double-side PWM signal generation circuit with preset modulation degree
US20160277858A1 (en) * 2014-06-24 2016-09-22 Harman International Industries, Inc. Headphone listening apparatus

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005015955A2 (en) * 2003-08-07 2005-02-17 Tymphany Corporation Audio reproduction system
KR20060091033A (en) * 2005-02-12 2006-08-17 엘지전자 주식회사 A method and a apparatus of improving outputting audio signal level for mobile phone
CN102075788B (en) * 2010-12-30 2013-10-09 福建星网视易信息系统有限公司 Automatic detection method for set top box
CN104105047A (en) * 2013-04-10 2014-10-15 名硕电脑(苏州)有限公司 Audio detection apparatus and method
CN107687891B (en) * 2017-08-25 2020-01-10 博众精工科技股份有限公司 Sound frequency acquisition device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404669A (en) * 2011-11-10 2012-04-04 赵跃庆 Audio frequency detection circuit and audio frequency detection method
US20130177175A1 (en) * 2012-01-06 2013-07-11 Richtek Technology Corporation Power efficiency improvement of an audio amplifier by adaptive control of a charge pump
CN103379419A (en) * 2012-04-16 2013-10-30 上海晨兴希姆通电子科技有限公司 Audio frequency access test system
CN102929268A (en) * 2012-10-16 2013-02-13 福建慧翰微电子有限公司 Self checking implementation method of vehicle-mounted remote monitoring terminal
CN103825590A (en) * 2014-03-24 2014-05-28 吉林大学 Amplitude-modulated wave double-side PWM signal generation circuit with preset modulation degree
US20160277858A1 (en) * 2014-06-24 2016-09-22 Harman International Industries, Inc. Headphone listening apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050265A (en) * 2019-11-27 2020-04-21 深圳易科声光科技股份有限公司 Automatic audio link detection method and device
CN111050265B (en) * 2019-11-27 2021-09-14 深圳易科声光科技股份有限公司 Automatic audio link detection method and device
CN111343557A (en) * 2020-02-28 2020-06-26 西安广和通无线通信有限公司 Audio signal testing method, device and equipment
CN111343557B (en) * 2020-02-28 2021-10-08 西安广和通无线通信有限公司 Audio signal testing method, device and equipment

Also Published As

Publication number Publication date
WO2019214404A1 (en) 2019-11-14

Similar Documents

Publication Publication Date Title
CN103378933B (en) Coding/decoding method, decoder module and signal processing method, signal processing apparatus
CN108288735A (en) The power supply wake-up control circuit of electric vehicle
CN104408835B (en) A kind of means for anti-jamming in the communication applied to POS terminal wireline audio
US20170141743A1 (en) Speaker driver
WO2019178842A1 (en) Automobile, and vehicle-mounted monitoring device and vehicle signal detection circuit thereof
US9686628B2 (en) Audio channel control circuit
CN110460945A (en) A kind of audio channel detecting circuit and detection method
CN204929213U (en) Audio signal detects control circuit
CN108064347A (en) The audio pin test method and test device of communication module
CN106504760B (en) Broadband ambient noise and speech Separation detection system and method
CN103744322B (en) A kind of control signal generative circuit
CN103634723B (en) Audio input circuit and the electronic equipment with audio input
CN106231495A (en) A kind of audio identification methods and device
CN206533521U (en) A kind of loudspeaker DC voltage detects circuit
CN207589216U (en) Adaptive fast response circuit and LED drive circuit
CN107438222A (en) It is a kind of to break and short-circuit detecting circuit and method towards earphone/headset loudspeaker
WO2019062085A1 (en) Anti-interference processing method during detection of cp signals by vehicle-mounted charger
CN114113988B (en) Signal loss real-time detection circuit and method
CN206211964U (en) Audio-switch and voice-controlled electronic equipment
WO2022247192A1 (en) Rail vehicle door system test controller
CN109660903A (en) A kind of earphone pop sound removing method, system and device
CN108513388A (en) Micro-wave oven and its communication control method, device and readable storage medium storing program for executing
US10641801B2 (en) Ringer control device and control method thereof
CN108106641A (en) For operating the method for sensor and sensor
CN208797909U (en) Function discharge protection circuit and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20191115

WW01 Invention patent application withdrawn after publication