Skip to Main Content Skip to Search
Product Documentation

DM642 EVM Audio DAC - Configure codec to convert digital audio input to analog audio output

Library

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C6000/ DM642 EVM

Description

Adding the DM642 EVM DAC (digital-to-analog converter) block to your Simulink model lets you output an analog signal to the LINE OUT connection on the DM642 EVM mounting bracket. When you add the DM642 EVM DAC block, the digital signal received by the codec is converted to an analog signal (digital-to-analog conversion) and sent to the output audio jack.

The DAC data word length is 16 bits. The block converts all input data to int16 before it writes the data out to the DAC output buffer.

With an integer data word length of 16 bits, any data value above 215–1 or below -215 wraps back into the representable range of values between -215 to 215–1. Wrapping uses modulo arithmetic to cast an overflow back into the representable range of the data type. Saturate arithmetic is not available. For example,

While converting the digital signal to an analog signal, the codec rounds floating point data to the nearest integer, thus rounding 0.51 up to 1.0 or 4.49 down to 4.0.

Setting the sample rate configures the codec sampling rate for the analog output data stream. The rates range from 8000 Hz, similar to plain old telephone service quality, to 48 kHz (CD quality audio) to 96 kHz.

Dialog Box

Sample rate (Hz)

Sampling rate of the D/A converter. Available output sample rates are set by the codec. Default rate is 8000 Hz (8 kHz) and the maximum rate is 96000 Hz (96 kHz). Choose the appropriate rate from the list.

See Also

DM642 EVM Audio ADC

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS