Audio digital-to-analog conversion circuit

By designing audio digital-to-analog conversion circuits, including read and write control modules, clock frequency division modules and CIC filters, the problem of large area of ​​audio DAC circuits, large power consumption and strict clock frequency requirements is solved, and audio data for different sampling rates is realized Flexible support and high-quality processing.

CN113285719BActive Publication Date: 2024-11-29AMICRO SEMICONDUCTOR CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110724792.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-29
Publication Date
2024-11-29
Estimated Expiration
2041-06-29

AI Technical Summary

Technical Problem

Typical audio DAC circuits have large area and large power consumption, only support limited sampling rates, and have strict requirements on clock frequency, poor compatibility, making it difficult to support audio data of different sampling rates.

Method used

An audio digital-to-analog conversion circuit was designed, including a read and write control module, a clock frequency division module, an asynchronous FIFO module and a CIC filter. The hardware area and design complexity are optimized through the new audio DAC architecture, and the clock frequency division module is used to support it. Audio data with different sampling rates is accurate data processing through data transmission and digital-to-analog conversion modules.

Benefits of technology

It reduces the hardware area and design complexity, removes strict requirements on clock frequency, realizes flexible support for audio data with different sampling rates, and improves the quality and fidelity of audio data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113285719B_ABST
    Figure CN113285719B_ABST
Patent Text Reader

Abstract

The present invention discloses an audio digital-to-analog conversion circuit. The circuit adopts a new audio DAC architecture, optimizes a large number of multiplication and addition operations, combinational logic and registers in the traditional architecture, and greatly reduces the hardware area and design complexity. At the same time, it solves the limitation of strict requirements on the working clock frequency of the audio DAC circuit, and can support audio with different sampling rates, which is more flexible in application and design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of DAC digital circuit design, and in particular to an audio digital-to-analog conversion circuit. Background Art

[0002] The typical audio DAC circuit is not only large in area and power consumption, but also only supports sampling rates based on the three base frequencies of 32k, 44.1k, and 48k, and cannot support other sampling rates well. Due to this specific sampling rate, the working clock of this typical design must be a clock source that can separate these three base frequencies or their power of 2 frequency values, such as the typical values ​​of 24.576M (for separating 48K and 32K) and 22.5792MHz (for separating 44.1K) clock sources. The typical audio DAC circuit has too strict requirements on the clock source and poor compatibility. Summary of the invention

[0003] To solve the above problems, the present invention provides an audio digital-to-analog conversion circuit, which solves the limitation of strict requirements on the working clock frequency of the audio DAC circuit, and can support audio with different sampling rates, which is more flexible in application and design. The specific technical solutions of the present invention are as follows:

[0004] An audio digital-to-analog conversion circuit, the circuit comprising: a read-write control module, used for receiving an APB bus signal, outputting a write enable signal of an asynchronous FIFO module and a first frequency division parameter; a clock frequency division module, connected to the read-write control module, used for receiving a working clock of the audio digital-to-analog conversion circuit and the first frequency division parameter output by the read-write control module, and outputting a read enable signal of the phase-synchronized asynchronous FIFO module and a data processing enable signal of a CIC filter; an asynchronous FIFO module, respectively connected to the read-write control module and the clock frequency division module, used for performing data interaction processing between two different clock domains, a clock for writing data and a clock for reading data; and a CIC filter, respectively connected to the clock frequency division module and the asynchronous FIFO module, used for reading data from the asynchronous FIFO module and filtering according to the read enable signal of the phase-synchronized asynchronous FIFO module and the data processing enable signal of the CIC filter. Compared with the existing technology, this technical solution adopts a new audio DAC architecture, optimizes a large number of multiplication and addition operations, combinational logic and registers in the traditional architecture, and greatly reduces the hardware area and design complexity; at the same time, it solves the limitations of the strict requirements on the working clock frequency of the audio DAC circuit, and can support audio with different sampling rates, which is more flexible in application and design.

[0005] Furthermore, the audio digital-to-analog conversion circuit also includes a data transmission module and a digital-to-analog conversion module, the data transmission module is used to transmit data to the asynchronous FIFO module, and the digital-to-analog conversion module is used to receive the data filtered by the CIC filter and convert it into an analog signal.

[0006] Furthermore, the data transmission module includes a CPU controller, a DMA controller and a data selector, wherein the CPU controller and the DMA controller are respectively connected to the data selector, and the data selector selects the data of the CPU controller or the DMA controller to the asynchronous FIFO module through the data selection signal provided by the read-write control module.

[0007] Furthermore, the data selection signal provided by the read-write control module is an interrupt signal or a request signal of the audio digital-to-analog conversion circuit; wherein, when the selection signal is an interrupt signal, the data of the CPU controller is selected to be given to the asynchronous FIFO module, and when the selection signal is a request signal, the data of the DMA controller is selected to be given to the asynchronous FIFO module.

[0008] Further, the clock frequency division module includes: a divider connected to the read-write control module, used to receive a first frequency division parameter and perform a division operation to obtain a second frequency division parameter; wherein the dividend is a preset value; a first counter connected to the divider, used to count the working clock according to the second frequency division parameter to obtain a first counting sequence; a first register connected to the first counter, used to divide the working clock according to the first counting sequence to obtain a data processing enable signal of the CIC filter and its frequency value; a second counter connected to the first register, used to count the data processing enable signal of the CIC filter according to the preset value to obtain a second counting sequence; a second register connected to the first register, used to delay the data processing enable signal of the CIC filter to obtain a delayed enable signal; a third register, respectively connected to the second counter and the second register, used to divide the working clock according to the second counting sequence and the delay enable signal to obtain a read enable signal of the asynchronous FIFO module and its frequency value; wherein the data processing enable signal of the CIC filter and the read enable signal of the asynchronous FIFO module are phase synchronized. Compared with the prior art, the technical solution can correctly generate the sampling rate of the original audio data by dividing the working clock, thereby supporting audio data sources with various sampling rates; the third register divides the working clock according to the second counting sequence and the delay enable signal, so that the data processing enable signal of the CIC filter and the read enable signal of the asynchronous FIFO module can be kept synchronized without generating phase deviation, thereby ensuring that the CIC filter correctly collects the data in the asynchronous FIFO module.

[0009] Furthermore, the first counter counts the rising edges of the working clock, and resets to zero every time the counted number reaches the value of the second frequency division parameter.

[0010] Furthermore, the second counter counts the rising edges of the data processing enable signal of the CIC filter, and resets to zero whenever the counted number reaches a preset value.

[0011] Furthermore, the first register sets the data processing enable signal of the CIC filter to a high level at each value before zero in the first counting sequence, and sets it to a low level in other cases, and its frequency value is the quotient of the working clock and the second frequency division parameter. The data processing enable signal of the CIC filter is generated to oversample the data and improve the quality of the data.

[0012] Furthermore, the third register sets the read enable signal of the asynchronous FIFO module to a high level at each zero return in the second counting sequence and when the delay enable signal is at a high level, and sets it to a low level in other cases, and its frequency value is the quotient of the working clock and the first frequency division parameter. The read enable signal of the asynchronous FIFO module is generated to ensure that data interaction processing is correctly performed between two different clock domains, the clock for writing data and the clock for reading data.

[0013] Furthermore, the delay time of the second register for the data processing enable signal of the CIC filter is a preset number of working clock cycles, which can ensure that the data processing enable signal of the CIC filter and the read enable signal of the asynchronous FIFO module remain synchronized without generating phase deviation.

[0014] Furthermore, the output of the read-write control module also includes an audio digital-to-analog conversion circuit enable signal and a reset signal, which are used as inputs of the clock frequency division module. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 This is a typical audio DAC circuit diagram.

[0016] Figure 2 The present invention is a schematic diagram of an audio digital-to-analog conversion circuit according to an embodiment of the present invention.

[0017] Figure 3 A schematic diagram of a clock frequency division module according to an embodiment of the present invention. DETAILED DESCRIPTION

[0018] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention. It should be understood that the specific embodiments described below are only used to explain the present invention and are not used to limit the present invention.

[0019] In the following description, specific details are given to provide a thorough understanding of the embodiments. However, one of ordinary skill in the art will appreciate that the embodiments may be practiced without these specific details. For example, circuits may be shown in block diagrams so as not to obscure the embodiments in unnecessary detail. In other cases, well-known circuits, structures, and techniques may not be shown in detail in order not to obscure the embodiments.

[0020] like Figure 1 The typical audio DAC circuit shown in the figure is not only large in area and power consumption, but also only supports sampling rates based on three base frequencies (32k, 44.1k, and 48k), and cannot support other sampling rates well. Due to this specific sampling rate, the working clock of this typical design must be a clock source that can separate these three base frequencies or their power of 2 frequency values, such as a clock source with a typical value of 24.576M (for separating 48K and 32K) and 22.5792MHz (for separating 44.1K). The typical audio DAC circuit has too strict requirements on the clock source and poor compatibility.

[0021] Therefore, an embodiment of the present invention provides an audio digital-to-analog conversion circuit, such as Figure 2 As shown, the circuit comprises:

[0022] The read-write control module is used to receive the APB bus signal, the APB bus is used to connect the peripheral device, and then output the write enable signal of the asynchronous FIFO module and the first frequency division parameter. The first frequency division parameter is configured by the peripheral device. After the peripheral device obtains the working clock of the audio digital-to-analog conversion circuit and the sampling rate of the audio data, the first frequency division parameter is obtained by quotient. The working clock and the sampling rate of the audio data are both known parameters. The read-write control module is a module built by register read-write modules with different addresses, and the register value of each address is configured by operating the APB bus signal. APB bus is one of the AMBA bus protocols and is a commonly used bus protocol. Its usage is as follows: APB bus has several signals such as PCLK / PSEL / PENABLE / PWRITE / PADDR / PRDATA / PWDATA / PRESET. When PENABLE, PSEL, and PWRITE are all 1 at the same time, when the rising edge of PCLK arrives, the PWDATA value is written to PADDR, that is, the WDATA value is written to the register read-write module with the address ADDR; on the contrary, when PENABLE, PSEL, and PWRITE are all 0 at the same time, when the rising edge of PCLK arrives, the PRDATA value in PADDR is read, that is, the value in the register read-write module with the address ADDR is read out. The data input and output in the read-write control module are all realized in this way.

[0023] The clock frequency division module is connected to the read-write control module, and is used to receive the working clock of the audio digital-to-analog conversion circuit and the first frequency division parameter output by the read-write control module, and output the read enable signal of the phase-synchronized asynchronous FIFO module and the data processing enable signal of the CIC filter. Figure 3 As shown, the clock frequency division module includes:

[0024] The divider is connected to the read-write control module and is used to receive the first frequency division parameter and perform a division operation to obtain the second frequency division parameter. The dividend is a preset value, specifically referring to the oversampling rate of the CIC filter. Preferably, the oversampling rate is set to 8.

[0025] The first counter is connected to the divider and is used to count the working clock according to the second frequency division parameter to obtain a first counting sequence. The first counter starts counting from 0, and increases by 1 at each rising edge of the working clock, and returns to zero and counts again whenever the count number reaches the value of the second frequency division parameter.

[0026] The first register is connected to the first counter and is used to divide the working clock according to the first counting sequence to obtain the data processing enable signal of the CIC filter and its frequency value. At each previous value of zero in the first counting sequence, the data processing enable signal of the CIC filter is set to a high level 1, and in other cases it is set to a low level 0, and its frequency value is the quotient of the working clock and the second frequency division parameter. It should be noted that when the reset signal is 0, or the audio digital-to-analog conversion circuit enable signal is 0, the data processing enable signal of the CIC filter is also 0. The reset signal is 0, indicating that the audio digital-to-analog conversion circuit is reset, and the audio digital-to-analog conversion circuit enable signal is 0, indicating that the audio digital-to-analog conversion circuit is not in working state. The reset signal and the audio digital-to-analog conversion circuit enable signal are transmitted to the first counter, the first register, the second counter and the third register as the output of the read-write control module.

[0027] The second counter is connected to the first register and is used to count the data processing enable signal of the CIC filter according to the preset value to obtain a second counting sequence. The second counter starts counting from 0, adds 1 at the rising edge of the working clock, and returns to zero and counts again whenever the count number reaches the preset value.

[0028] The second register is connected to the first register and is used to delay the data processing enable signal of the CIC filter to obtain a delayed enable signal. The delay time of the data processing enable signal of the CIC filter by the second register is a preset number of working clock cycles. Preferably, the data processing enable signal of the CIC filter is delayed by one working clock cycle, so that the read enable signal of the asynchronous FIFO module output by the third register can be aligned with the rising edge of the data processing enable signal of the CIC filter.

[0029] The third register is connected to the second counter and the second register respectively, and is used to divide the working clock according to the second counting sequence and the delay enable signal to obtain the read enable signal of the asynchronous FIFO module and its frequency value. At each zero return in the second counting sequence, and when the delay enable signal is at a high level, the read enable signal of the asynchronous FIFO module is set to a high level 1, and in other cases it is set to a low level 0, and its frequency value is the quotient of the working clock and the first frequency division parameter. Similarly, when the reset signal is 0, or the audio digital-to-analog conversion circuit enable signal is 0, the read enable signal of the asynchronous FIFO module is also 0. It should be noted that the frequency value of the read enable signal of the asynchronous FIFO module is equal to the sampling rate of the audio data, so that the asynchronous FIFO module can accurately read the audio data under two different clock domains.

[0030] In addition, the design of the clock frequency division module also makes the data processing enable signal of the CIC filter and the read enable signal of the asynchronous FIFO module synchronized without phase deviation, otherwise the CIC filter will fail to collect data from the asynchronous FIFO module. The design of the clock frequency division module ensures the synchronization of the two signals while supporting data processing under a small range of sampling rate errors.

[0031] The asynchronous FIFO module is connected to the read / write control module and the clock frequency division module respectively, and is used for data interaction processing between two different clock domains, the clock for writing data and the clock for reading data. This module is a common module and will not be described in detail.

[0032] The CIC filter is connected to the clock frequency division module and the asynchronous FIFO module respectively, and is used to read out data from the asynchronous FIFO module and filter it according to the read enable signal of the phase-synchronized asynchronous FIFO module and the data processing enable signal of the CIC filter. The CIC filter is also called the integral-cascade-comb filter, which is the best one among FIR filters, and uses the integral and comb filter cascade method. In the interpolation CIC filter, the input signal passes through the comb filter, oversampling, and the same integral link as the number of combs in sequence. The oversampling rate can be 8, 16, 32, 64, etc. Preferably, the oversampling rate is set to 8. The CIC filter interpolates and integrates the data read out from the asynchronous FIFO module, so the final output data is smoother in the time domain waveform, and the performance such as signal-to-noise ratio and total harmonic distortion are improved.

[0033] Reference Figure 2 The audio digital-to-analog conversion circuit also includes a data transmission module and a digital-to-analog conversion module.

[0034] Wherein, the data transmission module is used to transmit data to the asynchronous FIFO module, including a CPU controller, a DMA controller and a data selector. The CPU controller and the DMA controller are respectively connected to the data selector, and the data selector selects the data of the CPU controller or the DMA controller to the asynchronous FIFO module through the data selection signal provided by the read-write control module, that is, the asynchronous FIFO module has two data sources. The data selection signal provided by the read-write control module is an interrupt signal or a request signal of the audio digital-to-analog conversion circuit. When the selection signal is an interrupt signal, the data of the CPU controller is selected to the asynchronous FIFO module, and when the selection signal is a request signal, the data of the DMA controller is selected to the asynchronous FIFO module.

[0035] The digital-to-analog conversion module is used to receive the data filtered by the CIC filter and convert it into an analog signal. The audio digital-to-analog conversion circuit described in the present invention can play the source audio data almost losslessly. Compared with the prior art, the embodiment of the present invention adopts a new audio DAC architecture, optimizes a large number of multiplication and addition operations, combinational logic and registers in the traditional architecture, greatly reduces the hardware area and design complexity; at the same time, it solves the limitation of the strict requirements on the working clock frequency of the audio DAC circuit, and can support audio with different sampling rates, which is more flexible in application and design.

[0036] The audio digital-to-analog conversion circuit of the present invention is further described below with reference to specific examples.

[0037] Assume that the parameters of the original audio data received by the asynchronous FIFO module from the CPU controller or the DMA controller are Fin=1KHz, Fs=11.025K, ENOB=12bit, where Fin represents the frequency of the audio data, Fs represents the sampling rate of the audio data, and ENOB represents the effective bit width of the signal.

[0038] First, the peripheral device calculates the first frequency division parameter DAC_D2A_CLK_SCAL according to the working clock DAC_CLK and the audio data sampling rate Fs. The working clock DAC_CLK is an external clock source, and its frequency value is not limited to the typical values ​​of 24.576M and 22.5792MHz. It should be emphasized that the input clock source of the clock frequency division module can be changed, and the design of the module does not rely on a specific clock frequency to work, that is, no matter what kind of clock the external clock source is, the clock frequency division module can work normally, and the entire audio digital-to-analog conversion circuit can also work normally. Preferably, the working clock selects a clock source with a frequency greater than 20MHz. Preferably, in this embodiment, the working clock selects a clock source of 48MHz. The advantage of this more common clock frequency value is that it can share a clock with other modules in the SOC project, thereby saving the resource occupation of the clock module and not affecting the performance of the audio digital-to-analog conversion circuit. Therefore, the first frequency division parameter DAC_D2A_CLK_SCAL=DAC_CLK / Fs=48M / 11.025K=4353. After receiving the first frequency division parameter DAC_D2A_CLK_SCAL, the divider calculates the second frequency division parameter CIC_CLK_SCAL=DAC_D2A_CLK_SCAL / OSR=4353 / 8=544, where OSR represents the oversampling rate of the CIC filter.

[0039] Subsequently, the first counter counts the working clock DAC_CLK, and counts each rising edge, from 0 to 543 and then starts from 0, and so on to obtain the first counting sequence CIC_CLK_SCAL_CNT. Whenever CIC_CLK_SCAL_CNT counts to 543, the data processing enable signal CIC_DATA_EN of the CIC filter is set to a high level 1, and the data processing enable signal CIC_DATA_EN of the CIC filter is obtained as DAC_CLK / CIC_CLK_SCAL=48M / 544=88.2K.

[0040] Then, the data processing enable signal CIC_DATA_EN of the CIC filter is counted, and the second counter counts from 0 to 7 and then starts from 0, and so on to obtain the second counting sequence CNT_CIC_EN. At the same time, the second register delays the data processing enable signal CIC_DATA_EN of the CIC filter by one working clock DAC_CLK cycle to obtain the delayed enable signal CIC_DATA_EN_1T. Whenever CNT_CIC_EN=0 and CIC_DATA_EN_1T=1, the read enable signal AFIFO_REN of the asynchronous FIFO module is set to high level 1, and the read enable signal AFIFO_REN of the asynchronous FIFO module is obtained=DAC_CLK / CIC_CLK_SCAL / 8=48M / 544 / 8=11.025K. It can be seen that the read enable signal AFIFO_REN of the asynchronous FIFO module is consistent with the audio data sampling rate Fs, and the clock frequency division module restores Fs. The clock frequency division module described in this embodiment is applicable to various audio data sources and is not picky about the audio sampling rate. Preferably, it can well support audio sampling rates in the continuous range of 11.025K-1M.

[0041] It should be emphasized that counting and delaying the data processing enable signal CIC_DATA_EN can keep the data processing enable signal CIC_DATA_EN of the CIC filter and the read enable signal AFIFO_REN of the asynchronous FIFO module synchronized without phase deviation. Otherwise, the CIC filter will fail to collect data from the asynchronous FIFO module.

[0042] Finally, the CIC filter uses CIC_DATA_EN and AFIFO_REN to interpolate and integrate the data of the asynchronous FIFO module to improve the quality of the audio data, making the audio played through the digital-to-analog conversion module have higher fidelity.

[0043] Obviously, the above-mentioned embodiments are only some embodiments of the present invention, rather than all embodiments, and the technical solutions between the various embodiments can be combined with each other. In addition, if the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside" and the like appear in the embodiments, the orientation or position relationship indicated is based on the orientation or position relationship shown in the accompanying drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation or be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. If the terms "first", "second", "third" and the like appear in the embodiments, it is to facilitate the distinction of related features, and cannot be understood as indicating or implying their relative importance, order or number of technical features.

[0044] In addition, in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0045] Those skilled in the art will appreciate that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. These programs can be stored in a computer-readable storage medium (such as ROM, RAM, magnetic disk or optical disk, etc., which can store program codes). When the program is executed, the steps of the above-mentioned method embodiments are executed.

[0046] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An audio digital-to-analog conversion circuit, characterized in that: The circuit comprises: A read / write control module, used for receiving an APB bus signal, and outputting a write enable signal and a first frequency division parameter of an asynchronous FIFO module; A clock frequency division module is connected to the read-write control module, and is used to receive the working clock of the audio digital-to-analog conversion circuit and the first frequency division parameter output by the read-write control module, and output a read enable signal of the phase-synchronized asynchronous FIFO module and a data processing enable signal of the CIC filter; The asynchronous FIFO module is connected to the read / write control module and the clock frequency division module respectively, and is used for performing data interaction processing between two different clock domains, the clock for writing data and the clock for reading data; The CIC filter is connected to the clock frequency division module and the asynchronous FIFO module respectively, and is used to read data from the asynchronous FIFO module and filter it according to the read enable signal of the phase-synchronized asynchronous FIFO module and the data processing enable signal of the CIC filter.

2. The audio digital-to-analog conversion circuit according to claim 1, characterized in that: The audio digital-to-analog conversion circuit also includes a data transmission module and a digital-to-analog conversion module. The data transmission module is used to transmit data to the asynchronous FIFO module, and the digital-to-analog conversion module is used to receive the data filtered by the CIC filter and convert it into an analog signal.

3. The audio digital-to-analog conversion circuit according to claim 2, characterized in that: The data transmission module includes a CPU controller, a DMA controller and a data selector, wherein the CPU controller and the DMA controller are respectively connected to the data selector, and the data selector selects the data of the CPU controller or the DMA controller to the asynchronous FIFO module through the data selection signal provided by the read-write control module.

4. The audio digital-to-analog conversion circuit according to claim 3, characterized in that: The data selection signal provided by the read-write control module is an interrupt signal or a request signal of the audio digital-to-analog conversion circuit; wherein, when the selection signal is an interrupt signal, the data of the CPU controller is selected to be given to the asynchronous FIFO module, and when the selection signal is a request signal, the data of the DMA controller is selected to be given to the asynchronous FIFO module.

5. The audio digital-to-analog conversion circuit according to claim 1, characterized in that: The clock frequency division module comprises: A divider connected to the read-write control module, used to receive the first frequency division parameter and perform a division operation to obtain a second frequency division parameter; wherein the dividend is a preset value; A first counter, connected to the divider, for counting the working clock according to the second frequency division parameter to obtain a first counting sequence; A first register is connected to the first counter and is used to divide the working clock according to the first counting sequence to obtain a data processing enable signal of the CIC filter and its frequency value; A second counter, connected to the first register, for counting the data processing enable signal of the CIC filter according to the preset value to obtain a second counting sequence; A second register, connected to the first register, for delaying the data processing enable signal of the CIC filter to obtain a delayed enable signal; A third register is connected to the second counter and the second register respectively, and is used to divide the working clock according to the second counting sequence and the delay enable signal to obtain the read enable signal of the asynchronous FIFO module and its frequency value; The data processing enable signal of the CIC filter and the read enable signal of the asynchronous FIFO module are phase synchronized.

6. The audio digital-to-analog conversion circuit according to claim 5, characterized in that: The first counter counts the rising edges of the working clock, and resets to zero every time the counted number reaches the value of the second frequency division parameter.

7. The audio digital-to-analog conversion circuit according to claim 5, characterized in that: The second counter counts the rising edges of the data processing enable signal of the CIC filter, and resets to zero every time the counted number reaches a preset value.

8. The audio digital-to-analog conversion circuit according to claim 5, characterized in that: The first register sets the data processing enable signal of the CIC filter to a high level at each value before zero in the first counting sequence, and sets it to a low level in other cases, and its frequency value is the quotient of the working clock and the second frequency division parameter.

9. The audio digital-to-analog conversion circuit according to claim 5, characterized in that: The third register sets the read enable signal of the asynchronous FIFO module to a high level at each zero return in the second counting sequence and when the delay enable signal is at a high level, and sets it to a low level in other cases, and its frequency value is the quotient of the working clock and the first frequency division parameter.

10. The audio digital-to-analog conversion circuit according to claim 5, characterized in that: The delay time of the second register for the data processing enable signal of the CIC filter is a preset number of working clock cycles.

11. The audio digital-to-analog conversion circuit according to claim 1, characterized in that: The output of the read-write control module also includes an audio digital-to-analog conversion circuit enable signal and a reset signal, which are used as inputs of the clock frequency division module.

Citation Information

Patent Citations

  • Digital Audio Signal transmission system and method

    CN1777088A

  • Audio conversion device

    CN203827323U

  • Audio digital-to-analog conversion circuit

    CN217135473U

  • Device and system and method for PCM audio acquisition on basis of FPGA

    WO2017143642A1