Loop-back control circuit and method based on MTK platform
By designing a loopback control circuit based on the MTK platform in the microphone system, the problem that the microphone cannot accurately identify the voice and device sound is solved, and a clearer voice recognition and noise and distortion effect is achieved.
Patent Information
- Application Number
- CN202510093636.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-05-06
AI Technical Summary
In the prior art, microphones cannot accurately identify human voices and equipment sounds, resulting in noise and distortion problems.
A loopback control circuit based on the MTK platform is designed, including an MTK platform chip, a first ADC module, a second ADC module and a power amplifier module. The signal connection and processing are performed through the I2C and I2S interfaces to ensure that the return signal is not required to be limited.
It improves the microphone's recognition effect on the voice and device sound, reduces the distortion of the recall signal, and makes the voice clearer.
Smart Images

Figure CN119937413A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of microphones, and in particular to a loopback control circuit and method based on an MTK platform. Background Art
[0002] When the microphone is recording sound signals, it will record both human voice and device sound at the same time. At this time, in order to distinguish between human voice and the sound of the device itself, it is necessary to obtain a reference signal from the device. In existing technologies, the echo cancellation function is often used to distinguish between human voice and device sound, and then the device sound signal and human voice signal are directly collected through the power amplifier module for playback. However, the way in which the power amplifier module directly collects machine sound signals and human voice signals will cause a limiting problem. Limiting will seriously affect the recognition effect of the microphone to distinguish between device sound signals and human voice signals. Limiting will also cause distortion in the speaker playback, resulting in strong noise accompanying the played human voice.
[0003] Therefore, there is a problem in the prior art that the microphone cannot accurately recognize the human voice and the device sound. Summary of the invention
[0004] The present invention provides a loopback control circuit and method based on the MTK platform, aiming to solve the problem in the prior art that a microphone cannot accurately recognize human voice and device sound.
[0005] In a first aspect, the present invention provides a loopback control circuit based on the MTK platform, the loopback control circuit comprising: an MTK platform chip, a first ADC module, a second ADC module and a power amplifier module;
[0006] The I2C interface of the MTK platform chip is simultaneously connected to the first end of the first ADC module, the first end of the second ADC module, and the first end of the power amplifier module, and the I2S interface of the MTK platform chip is simultaneously connected to the second end of the first ADC module, the second end of the second ADC module, and the second end of the power amplifier module;
[0007] The third end of the first ADC module is connected to the third end of the second ADC module, the fourth end of the first ADC module is connected to the microphone module, the fourth end of the second ADC module is connected to the fourth end of the power amplifier module, and the third end of the power amplifier module is connected to the speaker module.
[0008] Further, the first ADC module includes a first ADC chip and a connector, and the first ADC chip is connected to the microphone module through the connector; wherein, the third pin and the fourth pin of the first ADC chip serve as the first end of the first ADC module, the fifth pin, the ninth pin, the tenth pin and the eleventh pin of the first ADC chip serve as the second end of the first ADC module, and the twelfth pin of the first ADC chip serves as the third end of the first ADC module.
[0009] Furthermore, the microphone module includes four microphones arranged in an array, and the distance between any two adjacent microphones is a preset distance.
[0010] Further, the microphone module includes a first microphone, a second microphone, a third microphone and a fourth microphone;
[0011] The sixteenth pin of the first ADC chip is connected to the first end of the first resistor, the second end of the first resistor is connected to the first microphone through the fifth pin of the connector, and the second end of the first resistor is connected to the second microphone through the sixth pin of the connector;
[0012] Pin 31 of the first ADC chip is connected to the first end of the second resistor, the second end of the second resistor is connected to the third microphone through the tenth pin of the connector, and the second end of the second resistor is connected to the fourth microphone through the eleventh pin of the connector; wherein the fifth pin, the sixth pin, the tenth pin and the eleventh pin of the connector serve as the fourth end of the first ADC module.
[0013] Further, the second ADC module includes a second ADC chip, a second pin of the second ADC chip is respectively connected to a first end of a third resistor and a first end of a fourth resistor, and a second end of the fourth resistor is grounded;
[0014] The nineteenth pin and the eighteenth pin of the second ADC chip serve as the first end of the second ADC module, the twentieth pin, the seventh pin, the sixth pin of the second ADC chip and the second end of the third resistor serve as the second end of the second ADC module, and the third pin of the second ADC chip serves as the third end of the second ADC module.
[0015] Further, the speaker module includes a first speaker and a second speaker;
[0016] The ninth pin and the tenth pin of the second ADC chip are respectively connected to the positive terminal and the negative terminal of the first speaker through the power amplifier module, and the sixteenth pin and the fifteenth pin of the second ADC chip are respectively connected to the positive terminal and the negative terminal of the second speaker through the power amplifier module; wherein the ninth pin, the tenth pin, the sixteenth pin and the fifteenth pin of the second ADC chip serve as the fourth end of the second ADC module.
[0017] Furthermore, the second ADC chip is connected to the first speaker via the first protection circuit and the power amplifier module in sequence, and the second ADC chip is connected to the second speaker via the second protection circuit and the power amplifier module in sequence.
[0018] Furthermore, the AK30 pin and the AK30 pin of the MTK platform chip are used as the I2C interface, and the AH11 pin, the AG11 pin, the AJ10 pin, and the AH10 pin of the MTK platform chip are used as the I2S interface.
[0019] Furthermore, the loop control circuit also includes a power supply module, and a power supply output end of the power supply module is connected to a power supply input end of the first ADC module and a power supply input end of the second ADC module at the same time.
[0020] In a second aspect, an embodiment of the present invention further provides a loopback control method based on the MTK platform, which is applied to the loopback control circuit based on the MTK platform in the first aspect, and the method includes:
[0021] If the MTK platform chip detects an audio playback signal, it sends a data acquisition signal to the first ADC module and the second ADC module;
[0022] The first ADC module obtains the first sound digital signal collected by the microphone module and the second sound digital signal from the second ADC module according to the clock frequency in the data acquisition signal, and sends the first sound digital signal and the second sound digital signal to the MTK platform chip; wherein the second ADC module obtains the second sound digital signal collected by the power amplifier module according to the clock frequency in the data acquisition signal;
[0023] The MTK platform chip performs audio processing on the first sound digital signal according to the second sound digital signal, obtains the processed sound digital signal and sends it to the power amplifier module;
[0024] The power amplifier module amplifies the processed sound digital signal to obtain an audio signal and plays the audio signal through the speaker module.
[0025] The present invention discloses a loopback control circuit and method based on an MTK platform. The loopback control circuit comprises: an MTK platform chip, a first ADC module, a second ADC module and a power amplifier module; an I2C interface of the MTK platform chip is simultaneously connected to a first end of the first ADC module, a first end of the second ADC module and a first end of the power amplifier module, and an I2S interface of the MTK platform chip is simultaneously connected to a second end of the first ADC module, a second end of the second ADC module and a second end of the power amplifier module; a third end of the first ADC module is connected to a third end of the second ADC module, a fourth end of the first ADC module is connected to a microphone module, a fourth end of the second ADC module is connected to a fourth end of the power amplifier module, and a third end of the power amplifier module is connected to a speaker module. In an embodiment of the present invention, the first ADC module and the second ADC module use the same clock frequency to sample the first sound signal recorded by the microphone module and the second sound signal collected by the power amplifier module respectively, and transmit them to the MTK platform chip through the I2S interface, so that the MTK platform chip performs noise reduction processing on the received sound signal to obtain a processed sound digital signal, and the MTK platform chip sends the processed sound digital signal to the power amplifier module, so that the power amplifier module amplifies the processed sound digital signal to obtain an audio signal and plays the audio signal through the speaker module; the power amplifier module in the embodiment of the present invention takes a signal from the MTK platform chip, and the collected signal does not need to be limited, thereby reducing the distortion of the collected signal, making the human voice recognized by the microphone module clearer, and improving the recognition effect of the microphone module in distinguishing between human voice and equipment sound. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0027] Figure 1 is a schematic diagram of a loop control circuit provided by an embodiment of the present invention;
[0028] Figure 2 is a schematic diagram of a first part of a circuit of a first ADC module provided by an embodiment of the present invention;
[0029] Figure 3 is a schematic diagram of a second circuit of a first ADC module provided by an embodiment of the present invention;
[0030] Figure 4is a circuit schematic diagram of a second ADC module provided by an embodiment of the present invention;
[0031] Figure 5 It is a schematic diagram of the first part of the circuit of the MTK platform chip provided by an embodiment of the present invention;
[0032] Figure 6 is a schematic diagram of the second part of the circuit of the MTK platform chip provided by an embodiment of the present invention;
[0033] Figure 7 It is a flowchart of a loop control method based on the MTK platform provided by an embodiment of the present invention.
[0034] Among them, the reference numerals in the figures are as follows:
[0035] 10. Loopback control circuit; 11. MTK platform chip; 12. First ADC module; U1. First ADC chip; J9. Connector; 13. Second ADC module; U2. Second ADC chip; 14. Power amplifier module; 15. Microphone module; 16. Speaker module. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0038] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0039] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0040] See also Figure 1 , Figure 5 and Figure 6 , Figure 1 is a schematic diagram of a loop control circuit provided by an embodiment of the present invention; Figure 5 It is a schematic diagram of the first part of the circuit of the MTK platform chip provided by an embodiment of the present invention;
[0041] Figure 6 1 is a schematic diagram of the second part of the circuit of the MTK platform chip provided by an embodiment of the present invention. The present invention proposes a loop control circuit 10 based on the MTK platform, the loop control circuit 10 comprises: an MTK platform chip 11, a first ADC module 12, a second ADC module 13 and a power amplifier module 14; the I2C interface of the MTK platform chip 11 is simultaneously connected to the first end of the first ADC module 12, the first end of the second ADC module 13 and the first end of the power amplifier module 14, the I2S interface of the MTK platform chip 11 is simultaneously connected to the second end of the first ADC module 12, the second end of the second ADC module 13 and the second end of the power amplifier module 14; the third end of the first ADC module 12 is connected to the third end of the second ADC module 13, the fourth end of the first ADC module 12 is connected to the microphone module 15, the fourth end of the second ADC module 13 is connected to the fourth end of the power amplifier module 14, and the third end of the power amplifier module 14 is connected to the speaker module 16.
[0042] In this embodiment, the model of the MTK platform chip 11 is MT8781, the I2C interface of the MTK platform chip 11 is simultaneously connected to the first end of the first ADC module 12, the first end of the second ADC module 13 and the first end of the power amplifier module 14, and the I2S interface of the MTK platform chip 11 is simultaneously connected to the second end of the first ADC module 12, the second end of the second ADC module 13 and the second end of the power amplifier module 14; the third end of the first ADC module 12 is connected to the third end of the second ADC module 13, the fourth end of the first ADC module 12 is connected to the microphone module 15, the fourth end of the second ADC module 13 is connected to the fourth end of the power amplifier module 14, and the third end of the power amplifier module 14 is connected to the speaker module 16; the MTK platform chip 11 uses the same set of I2C interface and I2S interface to communicate with the first ADC module 12, the second ADC module 13 and the power amplifier module 14 to realize signal transmission processing.
[0043] Specifically, the MTK platform chip 11 sends a data acquisition signal to the first ADC module 12 through the I2C interface, so that the first ADC module 12 samples the first sound signal recorded by the microphone module 15 according to the clock frequency in the data acquisition signal; wherein the clock frequency can be set to 16000HZ; the third end of the first ADC module 12 is connected to the third end of the second ADC module 13, and the first ADC module 12 sends a data acquisition signal to the second ADC module 13 through the TDM interface, so that the second ADC module 13 samples the second sound signal collected by the power amplifier module 14 according to the clock frequency in the data acquisition signal, and samples the second sound signal collected by the power amplifier module 14 through the TDM The interface sends the collected second sound signal to the first ADC module 12, and the first ADC module 12 sends the first sound signal and the second sound signal to the MTK platform chip 11 through the I2S interface; wherein, the signal sent by the first ADC module 12 to the MTK platform chip 11 is a signal after analog-to-digital conversion; the MTK platform chip 11 performs noise reduction processing on the received sound signal to obtain a processed sound digital signal, and the MTK platform chip 11 sends the processed sound digital signal to the power amplifier module 14, so that the power amplifier module 14 amplifies the processed sound digital signal to obtain an audio signal and plays the audio signal through the speaker module 16.
[0044] The beneficial effects of the present invention are embodied in the following aspects:
[0045] 1. The power amplifier module 14 takes a signal from the MTK platform chip 11, and the collected signal does not need to be limited, thereby reducing the distortion of the collected signal, making the human voice recognized by the microphone module 15 clearer, and improving the recognition effect of the microphone module 15 in distinguishing between human voice and device sound;
[0046] 2. The first ADC module 12 and the second ADC module 13 use the same clock frequency for sampling, which can effectively improve signal processing efficiency and further reduce delay;
[0047] 3. After receiving the data acquisition signal, the first ADC module 12 and the second ADC module 13 perform a signal sampling operation and send the acquired signal to the MTK platform chip 11 through the I2S interface, thereby realizing signal separation processing between the first ADC module 12 and the MTK platform chip 11 and ensuring orderly coordination between the first ADC module 12 and the MTK platform chip 11.
[0048] In one embodiment, if Figure 1 , Figure 2 and Figure 3As shown, the first ADC module 12 includes a first ADC chip U1 and a connector J9, and the first ADC chip U1 is connected to the microphone module 15 through the connector J9; wherein, the third pin and the fourth pin of the first ADC chip U1 serve as the first end of the first ADC module 12, the fifth pin, the ninth pin, the tenth pin and the eleventh pin of the first ADC chip U1 serve as the second end of the first ADC module 12, and the twelfth pin of the first ADC chip U1 serves as the third end of the first ADC module 12.
[0049] In this embodiment, the first ADC module 12 includes a first ADC chip U1 and a connector J9. The first ADC chip U1 is connected to the microphone module 15 via the connector J9. The model of the first ADC chip U1 is ES7210.
[0050] If the first ADC module 12 detects the data acquisition signal from the MTK platform chip 11, it samples the first sound signal recorded by the microphone module 15 according to the clock frequency in the data acquisition signal; the first ADC module 12 performs analog-to-digital conversion on the collected first sound signal to obtain a first sound digital signal and sends the first sound digital signal to the MTK platform chip 11; wherein, the first ADC module 12 samples the first sound signal recorded by the microphone module 15 through the connector J9.
[0051] In one embodiment, if Figure 1 , Figure 2 and Figure 3 As shown, the microphone module 15 includes four microphones arranged in an array, and the distance between any two adjacent microphones is a preset distance.
[0052] In this embodiment, the microphone module 15 includes four microphones arranged in an array, and the distance between any two adjacent microphones is a preset distance; wherein the preset distance can be set to 40 mm. In this embodiment of the present invention, the microphone module 15 can improve the sound pickup effect by arranging the microphones in an array.
[0053] In one embodiment, if Figure 1 , Figure 2 and Figure 3As shown, the microphone module 15 includes a first microphone, a second microphone, a third microphone and a fourth microphone; the sixteenth pin of the first ADC chip U1 is connected to the first end of the first resistor, the second end of the first resistor is connected to the first microphone through the fifth pin of the connector J9, and the second end of the first resistor is connected to the second microphone through the sixth pin of the connector J9; the thirty-first pin of the first ADC chip U1 is connected to the first end of the second resistor, the second end of the second resistor is connected to the third microphone through the tenth pin of the connector J9, and the second end of the second resistor is connected to the fourth microphone through the eleventh pin of the connector J9; wherein the fifth pin, the sixth pin, the tenth pin and the eleventh pin of the connector J9 serve as the fourth end of the first ADC module 12.
[0054] In this embodiment, the microphone module 15 includes a first microphone, a second microphone, a third microphone and a fourth microphone; the sixteenth pin of the first ADC chip U1 is connected to the first end of the first resistor, the second end of the first resistor is connected to the first microphone through the fifth pin of the connector J9, and the second end of the first resistor is connected to the second microphone through the sixth pin of the connector J9; the thirty-first pin of the first ADC chip U1 is connected to the first end of the second resistor, the second end of the second resistor is connected to the third microphone through the tenth pin of the connector J9, and the second end of the second resistor is connected to the fourth microphone through the eleventh pin of the connector J9; wherein the fifth pin, the sixth pin, the tenth pin and the eleventh pin of the connector J9 serve as the fourth end of the first ADC module 12. The first resistor and the second resistor in the embodiment of the present invention can prevent current from flowing out of the microphone and ensure that the DC voltage at the output end of the microphone remains stable.
[0055] In one embodiment, if Figure 1 and Figure 4 As shown, the second ADC module 13 includes a second ADC chip U2, the second pin of the second ADC chip U2 is respectively connected to the first end of the third resistor and the first end of the fourth resistor, and the second end of the fourth resistor is grounded; the nineteenth pin and the eighteenth pin of the second ADC chip U2 serve as the first end of the second ADC module 13, the twentieth pin, the seventh pin, the sixth pin of the second ADC chip U2 and the second end of the third resistor serve as the second end of the second ADC module 13, and the third pin of the second ADC chip U2 serves as the third end of the second ADC module 13.
[0056] In this embodiment, the second ADC module 13 includes a second ADC chip U2, the second pin of the second ADC chip U2 is respectively connected to the first end of the third resistor and the first end of the fourth resistor, and the second end of the fourth resistor is grounded; the 19th pin and the 18th pin of the second ADC chip U2 serve as the first end of the second ADC module 13, the 20th pin, the 7th pin, the 6th pin of the second ADC chip U2 and the second end of the third resistor serve as the second end of the second ADC module 13, and the third pin of the second ADC chip U2 serves as the third end of the second ADC module 13 and is connected to the third end of the first ADC module 12; the model of the second ADC chip U2 is ES7243; If the second ADC chip U2 detects the data acquisition signal from the first ADC module 12 and / or the MTK platform chip 11, the second sound signal collected by the power amplifier module 14 is sampled according to the clock frequency in the data acquisition signal; the second ADC chip U2 performs analog-to-digital conversion on the collected second sound signal to obtain a second sound digital signal and sends the collected second sound signal to the first ADC module 12 through the TDM interface, and the first ADC module 12 sends the first sound signal and the second sound signal to the MTK platform chip 11 through the I2S interface; wherein the sound signal collected by the power amplifier module 14 is the sound signal output by the speaker module 16.
[0057] Furthermore, the second ADC chip U2 sends the second sound digital signal to the MTK platform chip 11 through the I2S interface.
[0058] In one embodiment, if Figures 1 to 4 As shown, the speaker module 16 includes a first speaker and a second speaker; the ninth pin and the tenth pin of the second ADC chip U2 are respectively connected to the positive terminal and the negative terminal of the first speaker through the power amplifier module 14, and the sixteenth pin and the fifteenth pin of the second ADC chip U2 are respectively connected to the positive terminal and the negative terminal of the second speaker through the power amplifier module 14; wherein the ninth pin, the tenth pin, the sixteenth pin and the fifteenth pin of the second ADC chip U2 serve as the fourth end of the second ADC module 13.
[0059] In this embodiment, the MTK platform chip 11 sends a data acquisition signal to the first ADC chip U1 through the I2C interface, so that the first ADC chip U1 samples the first sound signal recorded by the microphone module 15 according to the clock frequency in the data acquisition signal, and performs analog-to-digital conversion on the collected first sound signal to obtain a first sound digital signal; wherein the clock frequency can be set to 16000HZ; the microphone module 15 includes a first microphone, a second microphone, a third microphone and a fourth microphone; at the same time, the first ADC chip U1 sends a data acquisition signal to the second ADC chip U2 through the TDM interface, so that the second ADC chip U2 samples the second sound signal collected by the power amplifier module 14 according to the clock frequency in the data acquisition signal, and performs analog-to-digital conversion on the collected second sound signal to obtain a second sound digital signal; wherein, The sound signal collected by the power amplifier module 14 is the sound signal output by the speaker module 16, and the speaker module 16 includes a first speaker and a second speaker; then, the second ADC chip U2 sends the second sound digital signal to the first ADC chip U1 through the TDM interface, and the first ADC chip U1 sends the first sound digital signal and the second sound digital signal to the MTK platform chip 11 through the I2S interface; the MTK platform chip 11 divides the received data into 6 channels of data (i.e., 4 channels of microphone data + 2 channels of speaker data) to perform noise reduction processing on the received sound digital signal to obtain a processed sound digital signal, and the MTK platform chip 11 sends the processed sound digital signal to the power amplifier module 14, so that the power amplifier module 14 amplifies the processed sound digital signal to obtain an audio signal and plays the audio signal through the speaker module 16.
[0060] In one embodiment, if Figure 1 and Figure 4 As shown, the second ADC chip U2 is connected to the first speaker through the first protection circuit and the power amplifier module 14 in sequence, and the second ADC chip U2 is connected to the second speaker through the second protection circuit and the power amplifier module 14 in sequence.
[0061] In this embodiment, the second ADC chip U2 is connected to the first speaker through the first protection circuit and the power amplifier module 14 in sequence, and the second ADC chip U2 is connected to the second speaker through the second protection circuit and the power amplifier module 14 in sequence; the circuit structure of the first protection circuit is the same as the circuit structure of the second protection circuit, and the first protection circuit and the second protection circuit play a protective role and can ensure the stable operation of the line.
[0062] In one embodiment, if Figure 1 , Figure 5 and Figure 6 As shown, the AK30 pin and the AK30 pin of the MTK platform chip 11 are used as the I2C interface, and the AH11 pin, the AG11 pin, the AJ10 pin, and the AH10 pin of the MTK platform chip 11 are used as the I2S interface.
[0063] In this embodiment, the AK30 pin and the AK30 pin of the MTK platform chip 11 are connected as the I2C interface to the first end of the first ADC module 12, the first end of the second ADC module 13 and the first end of the power amplifier module 14 at the same time, and the AH11 pin, the AG11 pin, the AJ10 pin and the AH10 pin of the MTK platform chip 11 are connected as the I2S interface to the second end of the first ADC module 12, the second end of the second ADC module 13 and the second end of the power amplifier module 14 at the same time.
[0064] In one embodiment, if Figure 1 , Figure 2 and Figure 4 As shown, the loop control circuit 10 further includes a power supply module, and a power supply output end of the power supply module is connected to a power supply input end of the first ADC module 12 and a power supply input end of the second ADC module 13 at the same time.
[0065] In this embodiment, the loop control circuit 10 also includes a power supply module, and a power supply output end of the power supply module is simultaneously connected to the power supply input end of the first ADC module 12 and the power supply input end of the second ADC module 13 to power the first ADC module 12 and the second ADC module 13.
[0066] The embodiment of the present invention further provides a loopback control method based on the MTK platform, and the method is applied to the loopback control circuit based on the MTK platform, such as Figure 7 As shown, the method includes steps S110-S140:
[0067] S110: If the MTK platform chip detects an audio playback signal, it sends a data acquisition signal to the first ADC module and the second ADC module;
[0068] S120, the first ADC module obtains the first sound digital signal collected by the microphone module and the second sound digital signal from the second ADC module according to the clock frequency in the data acquisition signal, and sends the first sound digital signal and the second sound digital signal to the MTK platform chip; wherein the second ADC module obtains the second sound digital signal collected by the power amplifier module according to the clock frequency in the data acquisition signal;
[0069] S130, the MTK platform chip performs audio processing on the first sound digital signal according to the second sound digital signal, obtains the processed sound digital signal and sends it to the power amplifier module;
[0070] S140: The power amplifier module amplifies the processed sound digital signal to obtain an audio signal and plays the audio signal through the speaker module.
[0071] In this embodiment, the MTK platform chip sends a data acquisition signal to the first ADC module through the I2C interface, so that the first ADC module samples the first sound signal recorded by the microphone module according to the clock frequency in the data acquisition signal, and performs analog-to-digital conversion on the collected first sound signal to obtain a first sound digital signal; wherein the clock frequency can be set to 16000HZ; the second ADC module samples the second sound signal collected by the power amplifier module according to the clock frequency in the data acquisition signal from the MTK platform chip or the first ADC module, and performs analog-to-digital conversion on the second sound signal to obtain a second sound digital signal; then, the second ADC module sends the second sound digital signal to the first ADC module through the TDM interface, and the first ADC module sends the first sound digital signal and the second sound digital signal to the MTK platform chip through the I2S interface; the MTK platform chip performs audio processing on the first sound digital signal according to the second sound digital signal, obtains a processed sound digital signal and sends it to the power amplifier module, so that the power amplifier module amplifies the processed sound digital signal to obtain an audio signal and plays the audio signal through the speaker module.
[0072] The beneficial effects of the present invention are embodied in the following aspects:
[0073] 1. The power amplifier module takes the signal from the MTK platform chip, and the collected signal does not need to be limited, thereby reducing the distortion of the collected signal, making the human voice recognized by the microphone module clearer, and improving the recognition effect of the microphone module in distinguishing between human voice and device sound;
[0074] 2. The first ADC module and the second ADC module use the same clock frequency for sampling, which can effectively improve signal processing efficiency and further reduce delay;
[0075] 3. After receiving the data acquisition signal, the first ADC module and the second ADC module perform a signal sampling operation and send the acquired signal to the MTK platform chip through the I2S interface, thereby realizing signal separation processing between the first ADC module and the MTK platform chip and ensuring orderly coordination between the first ADC module and the MTK platform chip.
[0076] The present invention discloses a loopback control circuit and method based on an MTK platform. The loopback control circuit comprises: an MTK platform chip, a first ADC module, a second ADC module and a power amplifier module; an I2C interface of the MTK platform chip is simultaneously connected to a first end of the first ADC module, a first end of the second ADC module and a first end of the power amplifier module, and an I2S interface of the MTK platform chip is simultaneously connected to a second end of the first ADC module, a second end of the second ADC module and a second end of the power amplifier module; a third end of the first ADC module is connected to a third end of the second ADC module, a fourth end of the first ADC module is connected to a microphone module, a fourth end of the second ADC module is connected to a fourth end of the power amplifier module, and a third end of the power amplifier module is connected to a speaker module. In an embodiment of the present invention, the first ADC module and the second ADC module use the same clock frequency to sample the first sound signal recorded by the microphone module and the second sound signal collected by the power amplifier module respectively, and transmit them to the MTK platform chip through the I2S interface, so that the MTK platform chip performs noise reduction processing on the received sound signal to obtain a processed sound digital signal, and the MTK platform chip sends the processed sound digital signal to the power amplifier module, so that the power amplifier module amplifies the processed sound digital signal to obtain an audio signal and plays the audio signal through the speaker module; the power amplifier module in the embodiment of the present invention takes a signal from the MTK platform chip, and the collected signal does not need to be limited, thereby reducing the distortion of the collected signal, making the human voice recognized by the microphone module clearer, and improving the recognition effect of the microphone module in distinguishing between human voice and equipment sound.
[0077] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A loop control circuit based on the MTK platform, characterized in that: The loop control circuit includes: an MTK platform chip, a first ADC module, a second ADC module and a power amplifier module; The I2C interface of the MTK platform chip is simultaneously connected to the first end of the first ADC module, the first end of the second ADC module, and the first end of the power amplifier module, and the I2S interface of the MTK platform chip is simultaneously connected to the second end of the first ADC module, the second end of the second ADC module, and the second end of the power amplifier module; The third end of the first ADC module is connected to the third end of the second ADC module, the fourth end of the first ADC module is connected to the microphone module, the fourth end of the second ADC module is connected to the fourth end of the power amplifier module, and the third end of the power amplifier module is connected to the speaker module.
2. The loopback control circuit based on the MTK platform according to claim 1, characterized in that: The first ADC module includes a first ADC chip and a connector, and the first ADC chip is connected to the microphone module through the connector; wherein the third pin and the fourth pin of the first ADC chip serve as the first end of the first ADC module, the fifth pin, the ninth pin, the tenth pin and the eleventh pin of the first ADC chip serve as the second end of the first ADC module, and the twelfth pin of the first ADC chip serves as the third end of the first ADC module.
3. The loopback control circuit based on the MTK platform according to claim 2, characterized in that: The microphone module includes four microphones arranged in an array, and the distance between any two adjacent microphones is a preset distance.
4. The loopback control circuit based on the MTK platform according to claim 2 or claim 3, characterized in that: The microphone module includes a first microphone, a second microphone, a third microphone and a fourth microphone; The sixteenth pin of the first ADC chip is connected to the first end of the first resistor, the second end of the first resistor is connected to the first microphone through the fifth pin of the connector, and the second end of the first resistor is connected to the second microphone through the sixth pin of the connector; Pin 31 of the first ADC chip is connected to the first end of the second resistor, the second end of the second resistor is connected to the third microphone through the tenth pin of the connector, and the second end of the second resistor is connected to the fourth microphone through the eleventh pin of the connector; wherein the fifth pin, the sixth pin, the tenth pin and the eleventh pin of the connector serve as the fourth end of the first ADC module.
5. The loopback control circuit based on the MTK platform according to claim 1, characterized in that: The second ADC module includes a second ADC chip, a second pin of the second ADC chip is respectively connected to a first end of a third resistor and a first end of a fourth resistor, and a second end of the fourth resistor is grounded; The nineteenth pin and the eighteenth pin of the second ADC chip serve as the first end of the second ADC module, the twentieth pin, the seventh pin, the sixth pin of the second ADC chip and the second end of the third resistor serve as the second end of the second ADC module, and the third pin of the second ADC chip serves as the third end of the second ADC module.
6. The loopback control circuit based on the MTK platform according to claim 5, characterized in that: The speaker module includes a first speaker and a second speaker; The ninth pin and the tenth pin of the second ADC chip are respectively connected to the positive terminal and the negative terminal of the first speaker through the power amplifier module, and the sixteenth pin and the fifteenth pin of the second ADC chip are respectively connected to the positive terminal and the negative terminal of the second speaker through the power amplifier module; wherein the ninth pin, the tenth pin, the sixteenth pin and the fifteenth pin of the second ADC chip serve as the fourth end of the second ADC module.
7. The loopback control circuit based on the MTK platform according to claim 6, characterized in that: The second ADC chip is connected to the first speaker through the first protection circuit and the power amplifier module in sequence, and the second ADC chip is connected to the second speaker through the second protection circuit and the power amplifier module in sequence.
8. The loopback control circuit based on the MTK platform according to claim 1, characterized in that: The AK30 pin and the AK30 pin of the MTK platform chip are used as the I2C interface, and the AH11 pin, the AG11 pin, the AJ10 pin, and the AH10 pin of the MTK platform chip are used as the I2S interface.
9. The loopback control circuit based on the MTK platform according to claim 1, characterized in that: The loop control circuit further includes a power supply module, and a power supply output end of the power supply module is connected to a power supply input end of the first ADC module and a power supply input end of the second ADC module at the same time.
10. A loop control method based on MTK platform, characterized in that: The method is applied to the loopback control circuit based on the MTK platform described in any one of claims 1 to 9, and is characterized in that the method comprises: If the MTK platform chip detects an audio playback signal, it sends a data acquisition signal to the first ADC module and the second ADC module; The first ADC module acquires the first sound digital signal collected by the microphone module and the second sound digital signal from the second ADC module according to the clock frequency in the data acquisition signal, and sends the first sound digital signal and the second sound digital signal to the MTK platform chip; Wherein, the second ADC module obtains the second sound digital signal collected by the power amplifier module according to the clock frequency in the data acquisition signal; The MTK platform chip performs audio processing on the first sound digital signal according to the second sound digital signal, obtains the processed sound digital signal and sends it to the power amplifier module; The power amplifier module amplifies the processed sound digital signal to obtain an audio signal and plays the audio signal through the speaker module.