Skip to Main Content Skip to Search
Product Documentation

C6713 DSK DAC - Configure codec to convert digital input to analog output

Library

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C6000/ C6713 DSK

Description

Adding the C6713 DSK DAC (digital-to-analog converter) block to your Simulink model lets you connect an analog signal to the analog output jack on the C6713 DSK. When you add the C6713 DSK DAC block, the digital signal received by the codec is converted to an analog signal and sent to the output jack.

The input on the C6713DSK DAC block takes [Nx1] and [Nx2] signals. The AIC23 audio codec on the C6713DSK board always outputs stereo samples, even though it accepts both mono [Nx1] and stereo [Nx2] signals. If the input is a mono signal with dimension [Nx1], the block outputs the same signal on both the left and right channels. If the input is a stereo signal with dimension [Nx2], each of the N samples are output separately through the left and right channels.

Only the Word length option in the block affects the codec. The other options relate to the model you are using in Simulink software and the signal processor on the board. Refer to the following table for information.

Option

Affected Hardware

Overflow mode

TMS320C6713 Digital Signal Processor

Scaling

TMS320C6713 Digital Signal Processor

Word length

Codec

Dialog Box

Word length

Sets the DAC to interpret the input data word length. Without this setting, the DAC cannot convert the digital data to analog as expected. The value defaults to 16 bits, with options of 20, 24, and 32 bits. Select the word length to match the ADC setting.

Scaling

Selects whether the input to the codec represents unmodified data, or data that has been normalized to the range ±1.0. Matching the setting for the C6713 DSK ADC block is appropriate here.

Overflow mode

Determines how the codec responds to data that is outside the range specified by the Scaling parameter. You can choose Wrap or Saturate options to apply to the result of an overflow in an operation. Saturation is the less efficient operating mode if efficiency is important to your development.

See Also

C6713 DSK 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