SLAAEH2A December   2023  – June 2024 TAA5212 , TAC5111 , TAC5112 , TAC5211 , TAC5212 , TAD5112 , TAD5212

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2TAX5X1X Audio Serial Interface
  6. 3TAX5X1X Synchronous Sampling Rate Converter
    1. 3.1 ADC Sampling Rate Conversion
    2. 3.2 DAC Sampling Rate Conversion
    3. 3.3 SRC Use Case Examples
      1. 3.3.1 Default Mode (Main Fs - Higher rate)
      2. 3.3.2 Default Mode (Main Fs - Higher rate) with Recording
      3. 3.3.3 Custom Mode (Main Fs - Lower rate)
      4. 3.3.4 Custom Mode (Main Fs - Lower rate) with Recording
  7. 4Summary
  8. 5References
  9. 6Revision History

ADC Sampling Rate Conversion

An overview of ADC SRC flow in default mode is shown in the block diagram below where an ADC input running at higher sampling rate (main Fs) is converted to a lower sampling rate (auxiliary Fs) and be available on the other ASI. User has the choice to choose Primary ASI or Secondary ASI with the higher or lower rate interface. The flow applies also when main Fs is chosen from the lower rate thus SRC is converting from lower to higher rate.

The SRC process has option to mix with a DAC loopback data for example adding audio data from host to the recorded voice data.

 TAx5x1x ADC SRC Overview - Default ModeFigure 3-1 TAx5x1x ADC SRC Overview - Default Mode

Users can watch the levels when mixing, set the coefficients so the output does not exceed the maximum allowed as higher level causes clipping or distortion. The mixer output levels are defined by the following equations.

Equation 1. Out1 = ADC Ch1 Level*(1-Coeff) + DAC Loopback 1 Level*CoeffOut2 = ADC Ch2 Level*(1-Coeff) + DAC Loopback 2 Level*Coeff

For ADC mixer, the equation to set the mixing coefficients is given below where w represents the weight or scale of magnitude. For example w=0.5 represents half of the magnitude which translates into 'h40000000 in the 32-bit DAC mixer coefficients. The default on some of the path coefficients are 'h7FFFFFFF for the full scale magnitude of 1. The ADC mixer coefficients are configured through register page address 0x0A and register address from 0x08 to 0x47.

Equation 2. Coeff(hex) =hex(231 × w)

For Digital Loopback (ADC to DAC) mixer, the equation to set the mixing coefficients is the same as the ADC mixer equation given above and is set through register page address 0x0A with register address from 0x48 to 0x67.

For ADC Auxiliary mixer, the equation to set the mixing coefficients is given below where w represents the weight or scale of magnitude. This Auxiliary ADC mixer coefficients are configured through register page address 0x0B and register address from 0x30 to 0x37.

Equation 3. C o e f f ( h e x )   = h e x ( 2 30   ×   w )

Examples for this ADC SRC are demonstrated in the subsequent section.