SLAAER9 May   2025 TAC5212

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Recording Path Mixers
    1. 2.1 Main ASI Mixer
      1. 2.1.1 Q-31 Formatting for Mixer Coefficients
      2. 2.1.2 Recording Path Main ASI Mixer: Example
    2. 2.2 Auxiliary ASI Mixer
      1. 2.2.1 Recording Path Auxiliary ASI Mixer - Example
    3. 2.3 ADC-to-DAC Loopback Mixer
    4. 2.4 TDM Transmission on DOUT
  6. 3Playback Path Mixers
    1. 3.1 Main ASI Mixer
      1. 3.1.1 Q-16 Formatting for Mixer Coefficients
      2. 3.1.2 Playback Path Main ASI Mixer - Example
    2. 3.2 Auxiliary ASI Mixer
      1. 3.2.1 Playback Path Auxiliary ASI Mixer - Example
    3. 3.3 Playback Path Side-Chain Mixer
      1. 3.3.1 Playback Path Side-Chain - Example
  7. 4Application: ADC Channel Summation to Improve TAC5212 Dynamic Range
  8. 5Application: Analog Input to Analog Output Signal Flow in TAC5412-Q1
  9. 6Summary
  10. 7References

Q-16 Formatting for Mixer Coefficients

The coefficients of the playback path mixers [for example, ax, bx, cx, dx and so on] are programmed as 16-bit twos-complement values, each occupying four consecutive registers in the register space of the device. These mixer coefficients are in 2.14 format which is shown in Figure 3-2, with a range from –2 (0x8000) to 1.99994 (0x7FFF).

  • To convert a floating point number to the corresponding Q16 format, multiply the floating point mixer coefficient by 214 and truncate to the nearest integer.
  • For positive integers, convert directly to hexadecimal format.
  • For negative integers, take the absolute value of the coefficient, convert the value to binary, negate the value, add one, and convert to hex. For example, to represent -135 in 16-bit two's complement hexadecimal format:
    • Absolute value of -135 is 0000 0000 1000 0111 in binary (or 0x0087 in hex)
    • Negating the binary and adding 1 results in 1111 1111 0111 1001 in binary (or 0xFF79 in hex). This is the twos-complement representation of the negative integer.

 Q-16 Representation of Floating-Point Numbers (2.14)

Figure 3-2 Q-16 Representation of Floating-Point Numbers (2.14)