Audio acquisition system and design method thereof
By connecting multiple ADC chips in series to form a cascaded queue and then connecting it to a SOC chip, the problems of excessive number of ADC paths on a single chip and limited SOC interfaces are solved, enabling a flexible audio acquisition system design, reducing costs, and expanding the application range.
Patent Information
- Application Number
- CN202010239616.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-30
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2040-03-30
AI Technical Summary
In existing technologies, the excessive number of ADC channels in a single chip design leads to high application costs, while the limited number of digital audio interfaces in a SOC chip restricts the large-scale application of ADCs.
Multiple ADC chips are connected in series to form a cascaded ADC queue. Each ADC queue is connected to a SOC chip and transmits audio signals through a first audio interface or a serial peripheral interface. The number of cascaded chips and the number of ADC chips can be flexibly combined to meet the needs of different application scenarios.
It effectively reduces the waste of redundant channels on a single chip, lowers application costs, and broadens the application areas to meet the needs of different application scenarios.
Smart Images

Figure CN111338599B_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of data acquisition, and in particular to an audio acquisition system and a design method thereof. [Background technology]
[0002] With the rapid development of speech recognition technology, audio ADC chips are being used more and more widely in this field. In some higher-end speech recognition application fields, it is necessary to form multiple microphones into an array (often called a microphone array) and perform applications such as sound source localization through matrix operation analysis.
[0003] In the related art, the audio acquisition system includes a microphone, an ADC chip, a digital audio interface and a SOC chip connected in sequence, wherein an ADC chip may include multiple ADC channels (i.e., ADC digital-to-analog converters), and each of the ADC channels may be connected to a microphone; the multiple microphones respectively collect external sounds, and the multiple ADC channels respectively perform digital-to-analog conversion on the collected sounds to obtain audio data, and each of the ADC channels is respectively connected to the SOC chip through a digital audio interface, and each of the ADC channels sends the audio data to the SOC chip through the digital audio interface for subsequent encoding and decoding processing; in order to ensure that as much audio data as possible is collected, the ADC chip needs to be equipped with as many ADC channels as possible.
[0004] However, in the related art, due to the excessive number of ADC paths designed in a single chip, if so many ADC channels are not needed in a single-chip application, it will cause waste and increase the application cost. On the other hand, if multiple ADC chips are connected to the SOC chip at the same time, the limited number of digital audio interfaces of the SOC chip will also restrict the large-scale application of the ADC chip.
[0005] Therefore, it is necessary to provide a new audio acquisition system and a design method thereof to solve the above technical problems. [Summary of the invention]
[0006] The purpose of the present invention is to provide an audio acquisition system and a design method thereof, which solves the problem that the application cost is high due to the excessive number of ADC paths designed in a single chip, and the large-scale application of ADC is restricted due to the limited number of digital audio interfaces of the SOC chip.
[0007] The present invention provides an audio acquisition system, comprising:
[0008] A SOC chip and a plurality of ADC series queues which are cascade-connected to each other and respectively connected to the SOC chip, wherein the plurality of ADC series queues are respectively used to collect audio digital signals, and the SOC chip is used to encode and process the audio digital signals;
[0009] Each of the ADC series queues includes N ADC chips connected in series in sequence, each of the ADC chips includes L ADC channels, a first audio interface, and a second audio interface respectively used to collect the audio digital signal, and the L ADC channels and the second audio interface are respectively connected to the first audio interface, wherein N and L are both natural numbers greater than 1;
[0010] The second audio interface of each ADC chip is connected to the first audio interface of the next-level ADC chip;
[0011] The second audio interface of each ADC chip is used to receive the audio digital signal collected by the ADC chip of the next level, and the first audio interface of each ADC chip is used to transmit the audio digital signal collected by the ADC chip and the audio digital signal collected by the ADC chip of the next level to the second audio interface of the ADC chip of the previous level;
[0012] The ADC chip located at the head end of the ADC series queue is defined as the main chip of the ADC series queue. The main chip also includes serial peripheral interfaces, which are connected to the L ADC channels of the main chip and its second audio interface. The main chip is connected to the SOC chip through its second audio interface and its serial peripheral interface respectively. Each ADC series queue transmits the audio digital signal to the SOC chip through the second audio interface of the main chip or the serial peripheral interface of the main chip.
[0013] Preferably, each of the ADC channels includes a microphone and an analog-to-digital converter respectively connected to the microphone and the first audio interface, the microphone is used to collect external sound signals and convert the sound signals into audio analog signals, the analog-to-digital converter is used to process the audio analog signals and convert them into the audio digital signals, and the analog-to-digital converter of the main chip is also connected to the serial peripheral interface.
[0014] Preferably, each of the ADC chips also includes a synchronization module for receiving a synchronization signal; in the same ADC series queue, the synchronization module of the master chip is connected to the SOC chip and is simultaneously connected to the synchronization module of the ADC chip of the next level, and the synchronization module of the master chip is used to receive the synchronization signal of the SOC chip and transmit it to the synchronization module of the ADC chip of the next level.
[0015] Preferably, each of the ADC chips further comprises a synchronous serial interface, and the synchronous serial interface is used to configure each of the ADC chips to operate in different modes according to the synchronization signal.
[0016] The present invention also provides a design method for the audio acquisition system according to the present invention, the method comprising the following steps:
[0017] Determine the number M of the ADC series queues and the number N of ADC chips in each of the ADC series queues according to the number of I2S interfaces or SPI interfaces of the SOC chip;
[0018] The ADC chip located at the head end of the ADC series queue is configured as the master chip through the synchronous serial interface, and the ADC chip located at the rear stage of the master chip is configured as the slave chip;
[0019] The main chip is configured to select the second audio interface or the serial peripheral interface through the synchronous serial interface to transmit the audio digital signal to the SOC chip;
[0020] Configure the AD sampling rate, AD sampling accuracy, number of ADC channels for collecting the audio digital signal, the transmission mode of the second audio interface or the serial peripheral interface of the main chip, and the transmission rate of the audio digital signal of the ADC series queue;
[0021] Configuring the operating clock frequency of the ADC series queue;
[0022] The ADC chip of the ADC series queue is controlled by the synchronous serial interface to collect audio digital signals.
[0023] Preferably, in the step of ADC serial queue, the transmission rate of the audio digital signal is ≥ the number of ADC channels used to collect the audio digital signal×AD sampling accuracy×AD sampling rate.
[0024] Preferably, in the step of the ADC series queue, the working clock frequency of the ADC series queue is ≥ 2×AD sampling rate×AD sampling accuracy.
[0025] Compared with the related art, the audio acquisition system of the present invention has a single ADC chip with multiple ADC channels, and multiple ADC chips are connected in series in sequence to form an ADC series queue. Multiple ADC series queues are cascaded to each other and are respectively connected to the SOC chip. Each ADC series queue can be connected to the digital audio interface of the SOC chip through the first audio interface, and each ADC series queue can also be connected to the serial peripheral interface of the SOC chip through the serial peripheral interface, that is, the connection mode between the ADC series queue and the SOC chip has been increased. In practical applications, according to the different SOC chip selections, according to the number of digital audio interfaces and serial peripheral interfaces of the SOC chip, the cascade number of different ADC series queues and the number of ADC chips in each ADC series queue can be flexibly combined, thereby effectively ensuring the number of ADC channels for collecting sound, being conducive to formulating different application plans according to different application scenarios, broadening the application field, reducing the waste of redundant channels of a single chip, and reducing the application cost.
Brief Description of the Drawings
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work, among which:
[0027] Figure 1 It is a structural schematic diagram of the audio acquisition system of the present invention;
[0028] Figure 2 This is a schematic diagram of the structure of a single ADC series queue connected to a SOC chip in the present invention;
[0029] Figure 3 It is a schematic diagram of the structure of a single ADC chip of the present invention;
[0030] Figure 4 The present invention is a flow chart of a design method of an audio acquisition system according to the present invention;
[0031] Figure 5 This is a schematic diagram of the principle of transmitting audio data between the SOC chip and the ADC series queue via the I2S interface when the present invention adopts the 1×FS mode;
[0032] Figure 6 This is a schematic diagram of the principle of transmitting audio data between the SOC chip and the ADC series queue via the I2S interface when the present invention adopts the K×FS mode;
[0033] Figure 7This is a schematic diagram of the principle of transmitting audio data between the SOC chip and the ADC series queue via the SPI interface when the present invention adopts the SCPH=0, SCPOL=0 mode;
[0034] Figure 8 This is a schematic diagram of the principle of transmitting audio data between the SOC chip and the ADC series queue via the SPI interface when the present invention adopts the SCPH=0, SCPOL=1 mode;
[0035] Fig. 9 This is a schematic diagram of the principle of transmitting audio data between the SOC chip and the ADC series queue via the SPI interface when the present invention adopts the SCPH=1, SCPOL=0 mode;
[0036] Fig.10 This is a schematic diagram of the principle of transmitting audio data between the SOC chip and the ADC series queue through the SPI interface when the present invention adopts the SCPH=1, SCPOL=1 mode. [Specific implementation method]
[0037] 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 only 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.
[0038] See also Figure 1-3 As shown, the present invention provides an audio acquisition system 100, which includes an ADC series queue 1 and a SOC chip 2.
[0039] The ADC series queues 1 include a plurality of cascade connections mutually connected and respectively connected to the SOC chip 2 , and the plurality of ADC series queues 1 are respectively used to collect audio digital signals and transmit them to the SOC chip 2 .
[0040] In this embodiment, each of the ADC series queues 1 includes N ADC chips 11 (Analog-to-Digital Converter, called analog-to-digital converter in Chinese) connected in series in sequence; each of the ADC chips 11 includes L ADC channels 111, a first audio interface 112, a second audio interface 113, a synchronization module 114 and a synchronous serial interface 115, respectively used to collect the audio digital signal; wherein N and L are both natural numbers greater than 1.
[0041] More specifically, in the same ADC chip 11:
[0042] The L ADC channels 111 are respectively connected to the first audio interface 112, and each of the ADC channels 111 includes a microphone and an analog-to-digital converter respectively connected to the microphone and the first audio interface 112. The microphone is used to collect external sound signals and convert the sound signals into audio analog signals, and the analog-to-digital converter is used to process the audio analog signals and convert them into the audio digital signals.
[0043] The first audio interface 112 and the second audio interface 113 are both I2S interfaces (Inter-IC Sound, Chinese name: integrated circuit built-in audio) for audio data transmission. The second audio interface 113 is connected to the first audio interface 112, and the second audio interface 113 can transmit audio data to the first audio interface 112.
[0044] The synchronization module 114 is a SYNC signal receiving module for receiving a SYNC synchronization signal. The synchronous serial interface 115 is an I2C interface (Inter-Integrated Circuit). The synchronization module 114 is connected to the synchronous serial interface 115. In actual operation, the synchronization module 114 receives the SYNC synchronization signal and transmits it to the synchronous serial interface 115. The synchronous serial interface 115 receives the SYNC synchronization signal and configures each of the ADC chips 11 to operate in different modes according to the SYNC synchronization signal.
[0045] In the same ADC series queue 1 of N ADC chips 11:
[0046] The ADC chip 11 located at the head end of the ADC series queue 1 is defined as the master chip of the ADC series queue 1, that is, the master chip is connected to the SOC chip as the first ADC chip of the ADC series queue 1, and the other N-1 ADC chips 11 of the ADC series queue 1 serve as slave chips of the ADC series queue 1, that is, the slave chips serve as the lower-level chips of the master chip.
[0047] The main chip also includes a serial peripheral interface 116 respectively connected to the L ADC channels 111 of the main chip and its second audio interface 113, and the serial peripheral interface 116 is an SPI interface (Serial Peripheral Interface). The main chip is connected to the SOC chip 2 through its second audio interface 113 and its serial peripheral interface 116 respectively. Each ADC series queue 1 transmits the audio digital signal to the SOC chip 2 through the second audio interface 113 of the main chip or the serial peripheral interface 115 of the main chip, and the analog-to-digital converter of the main chip is also connected to the serial peripheral interface 116.
[0048] The second audio interface 113 of each ADC chip 11 is connected to the first audio interface 112 of the ADC chip at the next level. The second audio interface 113 of each ADC chip 11 is used to receive the audio digital signal of the ADC chip 11 at the next level. The first audio interface 112 of each ADC chip is used to transmit the audio digital signal collected by the ADC chip 11 and the audio digital signal of the ADC chip 11 at the next level to the second audio interface 113 of the ADC chip at the previous level; the synchronization module 114 of the main chip is connected to the SOC chip and at the same time connected to the synchronization module of the ADC chip at the next level. The synchronization module 114 of the main chip is used to receive the synchronization signal of the SOC chip and transmit it to the synchronization module 114 of the ADC chip at the next level.
[0049] The SOC chip 2 (System-on-a-Chip) is used to encode and process the audio digital signal. The SOC chip 2 is connected to the first audio interface 112 of each main chip through the I2S interface thereon, or is connected to the serial peripheral interface 116 of each main chip through the SPI interface thereon.
[0050] like Figure 4 As shown, the present invention also provides a design method of the audio acquisition system according to the present invention, the method comprising the following steps:
[0051] Step S1, determining the number M of the ADC series queues and the number N of ADC chips in each of the ADC series queues according to the number of I2S interfaces or SPI interfaces of the SOC chip.
[0052] Step S2, configuring the ADC chip at the head end of the ADC series queue as the master chip through the synchronous serial interface, and configuring the ADC chip at the rear stage of the master chip as a slave chip. The SOC chip sends a SYNC synchronization signal to each of the slave chips through the master chip to ensure that all the slave chips collect audio data synchronously with the master chip, and ensure that the audio data of the slave chips is synchronously transmitted to the master chip.
[0053] Step S3, configuring the main chip through the synchronous serial interface to select the second audio interface or the serial peripheral interface to transmit the audio digital signal to the SOC chip;
[0054] Step S4, configuring the AD sampling rate, AD sampling accuracy, the number of ADC channels used to collect the audio digital signal, the transmission mode of the second audio interface or the serial peripheral interface of the main chip, and the transmission rate of the audio digital signal of the ADC series queue.
[0055] Specifically, the AD sampling rate, AD sampling accuracy and the number of ADC channels used to collect the audio digital signal can be specifically set according to the needs of actual applications. For example, the sampling rate for CD audio is 44.1KHz, that is, the sound information is sampled at a frequency of 44100 times per second. In principle, the higher the sampling rate, the better the sound quality; AD sampling accuracy includes but is not limited to 8bit, 16bit and 24bit, etc. The greater the AD sampling accuracy, the higher the resolution of the audio data, and the more realistic the recorded and played back sound (the more delicate the sound); the number of ADC channels used to collect the audio digital signal is determined according to the algorithm requirements. For example, when sound source positioning is required, The more ADC channels used to collect the audio digital signal, the more accurate the result of the multi-ADC channel array algorithm will be when only simple sound collection is required; the transmission mode of the second audio interface or the serial peripheral interface of the main chip can be selected at will, and it can be determined according to which of the second audio interface and the serial peripheral interface each ADC series queue actually connects to the SOC chip to determine which transmission mode the ADC series queue supports; further, the transmission rate of the audio digital signal is ≥ the number of ADC channels used to collect the audio digital signal × AD sampling accuracy × AD sampling rate, and the above numerical relationship is set to ensure that data is not lost during transmission.
[0056] Step S5, configuring the working clock frequency of the ADC series queue; wherein the working clock frequency of the ADC series queue is ≥ 2×AD sampling rate×AD sampling accuracy.
[0057] Step S6, controlling the ADC chip of the ADC series queue to collect audio digital signals through the synchronous serial interface.
[0058] When the ADC serial queue performs audio data transmission with the SOC chip via the I2S interface:
[0059] The number of ADC channels of a single ADC chip is L, and the audio data collected by each ADC channel is recorded as CH#0~L-1. Each ADC series queue includes N ADC chips, and the i-th chip is recorded as Chip#i, wherein 0≤i≤N-1, N is a positive integer greater than 1, and i is a positive integer.
[0060] If the number of I2S interfaces of the selected SOC chip is greater than or equal to N*L, the 1xFS mode can be used, such as Figure 5 As shown:
[0061] 1xFS is one ADC sampling cycle. During this cycle, Chip#i transmits a total of (i+1)*L ADC channel data, where CH#0~CH#i*L-1 are the audio data collected by the ADC channels of the input Chip#0~Chip#i-1, and CH#i*L~CH#(i+1)*L-1 are the audio data of the ADC channels of Chip#i itself.
[0062] If the number of I2S interfaces of the selected SOC chip is less than N*L, only KxFS mode can be used, such as Figure 6 As shown:
[0063] KxFS is one ADC sampling cycle. During this cycle, Chip#i transmits a total of (i+1)*L ADC channel data, among which CH#0~CH#i*L-1 are the audio data collected by the ADC channels of the input Chip#0~Chip#i-1, and CH#i*L~CH#(i+1)*L-1 are the audio data of the ADC channels of Chip#i itself.
[0064] When the ADC serial queue transmits audio data with the SOC chip through the SPI interface, the audio acquisition system can support four combination modes of SCPH and SCPOL of the SPI protocol. The effective cycle interval of each SPI interface of the SOC chip can be selected as 0, 0.5 or 1 SCK. CH#0~CH#N*L-1 are N*L channel data of N DC chips connected in series, where:
[0065] according to Figure 7 It can be seen that the audio acquisition system is in the SCPH=0, SCPOL=0 mode, and the audio data is transmitted between the SOC chip and the ADC series queue through the SPI interface.
[0066] according to Figure 8 It can be seen that the audio acquisition system is in the mode of SCPH=0 and SCPOL=1, and the principle of transmitting audio data between the SOC chip and the ADC series queue is through the SPI interface.
[0067] according to Fig. 9 It can be seen that the audio acquisition system is in the mode of SCPH=1 and SCPOL=0, and the principle of transmitting audio data between the SOC chip and the ADC series queue is through the SPI interface.
[0068] according to Fig.10It can be seen that the audio acquisition system is in the SCPH=1, SCPOL=1 mode, and the audio data is transmitted between the SOC chip and the ADC series queue through the SPI interface.
[0069] Compared with the related art, the audio acquisition system of the present invention has a single ADC chip with multiple ADC channels, and multiple ADC chips are connected in series in sequence to form an ADC series queue. Multiple ADC series queues are cascaded to each other and are respectively connected to the SOC chip. Each ADC series queue can be connected to the digital audio interface of the SOC chip through the first audio interface, and each ADC series queue can also be connected to the serial peripheral interface of the SOC chip through the serial peripheral interface, that is, the connection mode between the ADC series queue and the SOC chip has been increased. In practical applications, according to the different SOC chip selections, according to the number of digital audio interfaces and serial peripheral interfaces of the SOC chip, the cascade number of different ADC series queues and the number of ADC chips in each ADC series queue can be flexibly combined, thereby effectively ensuring the number of ADC channels for collecting sound, being conducive to formulating different application plans according to different application scenarios, broadening the application field, reducing the waste of redundant channels of a single chip, and reducing the application cost.
[0070] The above description is only an implementation mode of the present invention. It should be pointed out that, for ordinary technicians in this field, improvements can be made without departing from the creative concept of the present invention, but these all belong to the protection scope of the present invention.
Claims
1. A design method for an audio acquisition system, characterized in that: The audio acquisition system comprises: A SOC chip and a plurality of ADC series queues which are cascade-connected to each other and respectively connected to the SOC chip, wherein the plurality of ADC series queues are respectively used to collect audio digital signals, and the SOC chip is used to encode and process the audio digital signals; Each of the ADC series queues includes N ADC chips connected in series in sequence, each of the ADC chips includes L ADC channels, a first audio interface, and a second audio interface respectively used to collect the audio digital signal, and the L ADC channels and the second audio interface are respectively connected to the first audio interface, wherein N and L are both natural numbers greater than 1; The second audio interface of each ADC chip is connected to the first audio interface of the next-level ADC chip; The second audio interface of each ADC chip is used to receive the audio digital signal collected by the ADC chip of the next level, and the first audio interface of each ADC chip is used to transmit the audio digital signal collected by the ADC chip and the audio digital signal collected by the ADC chip of the next level to the second audio interface of the ADC chip of the previous level; The ADC chip located at the head end of the ADC serial queue is defined as the main chip of the ADC serial queue, and the main chip also includes a serial peripheral interface, which is respectively connected to the L ADC channels of the main chip and its second audio interface, and the main chip is respectively connected to the SOC chip through its second audio interface and its serial peripheral interface, and each of the ADC serial queues transmits the audio digital signal to the SOC chip through the second audio interface of the main chip or the serial peripheral interface of the main chip; Each of the ADC channels comprises a microphone and an analog-to-digital converter respectively connected to the microphone and the first audio interface, the microphone is used to collect external sound signals and convert the sound signals into audio analog signals, the analog-to-digital converter is used to process the audio analog signals into the audio digital signals, and the analog-to-digital converter of the main chip is also connected to the serial peripheral interface; Each of the ADC chips further comprises a synchronization module for receiving a synchronization signal; in the same ADC series queue, the synchronization module of the master chip is connected to the SOC chip and is simultaneously connected to the synchronization module of the next-level ADC chip, and the synchronization module of the master chip is used to receive the synchronization signal of the SOC chip and transmit it to the synchronization module of the next-level ADC chip; Each of the ADC chips further comprises a synchronous serial interface, and the synchronous serial interface is used to configure each of the ADC chips to operate in different modes according to the synchronization signal; The method comprises the following steps: Determine the number M of the ADC series queues and the number N of ADC chips in each of the ADC series queues according to the number of I2S interfaces or SPI interfaces of the SOC chip; The ADC chip located at the head end of the ADC series queue is configured as the master chip through the synchronous serial interface, and the ADC chip located at the rear stage of the master chip is configured as the slave chip; The main chip is configured to select the second audio interface or the serial peripheral interface through the synchronous serial interface to transmit the audio digital signal to the SOC chip; Configure the AD sampling rate, AD sampling accuracy, number of ADC channels for collecting the audio digital signal, the transmission mode of the second audio interface or the serial peripheral interface of the main chip, and the transmission rate of the audio digital signal of the ADC series queue; Configuring the operating clock frequency of the ADC series queue; The ADC chip of the ADC series queue is controlled by the synchronous serial interface to collect audio digital signals.
2. The design method of the audio acquisition system according to claim 1, characterized in that: In the steps of configuring the AD sampling rate, AD sampling accuracy, the number of ADC channels used to collect the audio digital signal, the transmission mode of the second audio interface or the serial peripheral interface of the main chip, and the transmission rate of the audio digital signal of the ADC series queue, the transmission rate of the audio digital signal is ≥ the number of ADC channels used to collect the audio digital signal × AD sampling accuracy × AD sampling rate.
3. The design method of the audio acquisition system according to claim 1, characterized in that: In the step of configuring the working clock frequency of the ADC series queue, the working clock frequency of the ADC series queue is ≥ 2×AD sampling rate×AD sampling accuracy.
