Skip to content Skip to navigation

Connexions

You are here: Home » Content » Using the I/O Ports of the DSK 5510

Navigation

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

In these lenses

  • Real-Time DSP with MATLAB display tagshide tags

    This module is included inLens: DSP with MATLAB lens
    By: Bhaskar BhattacharyaAs a part of collection:"Digital Signal Processing Laboratory (ECE 420 55x)"

    Comments:

    "Real-Time DSP with MATLAB"

    Click the "Real-Time DSP with MATLAB" link to see all content selected in this lens.

    Click the tag icon tag icon to display tags associated with this content.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

Using the I/O Ports of the DSK 5510

Module by: Thomas Shen. E-mail the author

User rating (How does the rating system work?)
Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

:
(0 ratings)

Summary: Provides information on the files to use when using the original input/output ports of the DSK 5510. Also provides information on how to change the sampling rate and input port.

Introduction

The input/output ports of the DSK 5510 can be used when only two inputs and two outputs are needed. Unfortunately, it is currently impossible to utilize the four I/O ports provided by the daughtercard and the two I/O ports on the DSK at the same time. The advantages of the on-board I/O ports are higher signal-to-noise ratio and the ability to change the sampling rate.

The files necessary to utilize the original I/O ports of the DSP board can be found in the V drive under V:\ece420\55x\dsp_board. Much of the functionality is provided in the core.c file. The code is similar to that used in Lab 4 of the Digital Signal Processing Laboratory (ECE 420 55x). Most changes will probably be made in the dspboard_app.c file. The processBuffer() function is called once every 1024 samples so add changes there. Input will be taken from the 'Line In' port. Both output ports are on by default and are designed to drive different impedances.

As given, the code calls function echoInput() which echoes back input channels 1 and 2 on their respective output channels. The echoInput() function is defined in asmfunctions.asm. The input parameters of echoInput() are passed through registers T0, XAR0, and XAR1. To learn more about the passing convention when calling assembly functions from C, please view Section 6.4.1 of the TMS320C55x Optimizing C/C++ Compiler User’s Guide. The code also stores the input into a block of memory located at memory address 0x28000h. This is done to show the DSP can access addresses greater than 16-bit in length.

Changing I/O Parameters

The codec is configured with the following lines of code in core.c:

/* Codec configuration settings */
DSK5510_AIC23_Config config = {
    0x0017, // 0 DSK5510_AIC23_LEFTINVOL  Left line input channel volume
    0x0017, // 1 DSK5510_AIC23_RIGHTINVOL Right line input channel volume
    0x00d8, // 2 DSK5510_AIC23_LEFTHPVOL  Left channel headphone volume
    0x00d8, // 3 DSK5510_AIC23_RIGHTHPVOL Right channel headphone volume
    0x0010, // 4 DSK5510_AIC23_ANAPATH    Analog audio path control
    0x0000, // 5 DSK5510_AIC23_DIGPATH    Digital audio path control
    0x0000, // 6 DSK5510_AIC23_POWERDOWN  Power down control
    0x0043, // 7 DSK5510_AIC23_DIGIF      Digital audio interface format
    0x0081, // 8 DSK5510_AIC23_SAMPLERATE Sample rate control
    0x0001  // 9 DSK5510_AIC23_DIGACT     Digital interface activation
};

The default sampling rate is 48kHz but this can be changed quickly by changing the value of one of the registers in core.c. For example, a 44.1 kHz sampling rate can be obtained by changing register 8 from 0x0081 to 0x00a3. The rate is actually 44.117 kHz as detailed in the TLV320AIC23 Data Manual. A couple different sampling rates are available (e.g. 8kHz, 32kHz) and if necessary, the input and output rates can be different.

The default input is the 'Line In' port. Microphones that have a small output signal need to be connected to a port that will boost its signal. The 'Mic In' port will be perfect for this task. To change input to the 'Mic In' port, change register 4 from 0x0010 to 0x0014. The gain can also be adjusted, but keep in mind that there will be clipping if the input signal is too high. Unfortunately, the microphones we have in lab need to be amplified before being connected to the DSP. Please refer to the TLV320AIC23 Data Manual for further instructions.

Content actions

Give Feedback:

E-mail the module author | Rate module ( How does the rating system work?)

Rating system

Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

(0 ratings)

Download:

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.

| A lens (?)

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks