Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help regarding real time application on TMS320C6713

Status
Not open for further replies.

rey619

Newbie level 6
Joined
Apr 30, 2008
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,334
hi,
i am doing my project that is related to cancelling noise in a real-time
enviornment.for this i want to give input through Mic in and want to see my headphone output on CRO.
plz help as soon as possible.
Thanking u in advance.
 

Hi
plz see this code connect mic to mic in and connect cro to line out .



/*******************************************************************************
SCIENTECH TECHNOLOGIES PVT. LTD.


Name: PLAY SONG example code

*********************************************************************************
*
*
* File Name : codec.c
*
* Date : 3/15/07

* Target :

* Version : 3.1

*Purpose ; This program is for check the functionality of CODEC. input is connected from Function Generator
and output is observed on osilloscope.
***************************************************************************/


#include "codeccfg.h"



#include "dsk6713.h"
#include "dsk6713_aic23.h"
/* if use line in set digital audio path to 0x0012*/
/* Codec configuration settings */
DSK6713_AIC23_Config config = { \
0x0017, /* 0 DSK6713_AIC23_LEFTINVOL Left line input channel volume */ \
0x0017, /* 1 DSK6713_AIC23_RIGHTINVOL Right line input channel volume */\
0x01f9, /* 2 DSK6713_AIC23_LEFTHPVOL Left channel headphone volume */ \
0x01f9, /* 3 DSK6713_AIC23_RIGHTHPVOL Right channel headphone volume */ \
0x0015, /* 4 DSK6713_AIC23_ANAPATH Analog audio path control */ \
0x0001, /* 5 DSK6713_AIC23_DIGPATH Digital audio path control */ \
0x0002, /* 6 DSK6713_AIC23_POWERDOWN Power down control */ \
0x0043, /* 7 DSK6713_AIC23_DIGIF Digital audio interface format */ \
0x0023, /* 8 DSK6713_AIC23_SAMPLERATE Sample rate control */ \
0x0001 /* 9 DSK6713_AIC23_DIGACT Digital interface activation */
};

/* main() - Main code routine, initializes BSL and generates tone */

int delay(unsigned int i);
short amplitude=2;
main()
{



DSK6713_AIC23_CodecHandle hCodec;
Uint32 l_input, r_input,l_output, r_output;

/* Initialize the board support library, must be called first */
DSK6713_init();

/* Start the codec */
hCodec = DSK6713_AIC23_openCodec(0, &config);

/*set codec sampling frequency*/
DSK6713_AIC23_setFreq(hCodec, 1);

while(1)
{



/* Read a sample to the left channel */
while (!DSK6713_AIC23_read(hCodec, &l_input));



/* Read a sample to the right channel */
while (!DSK6713_AIC23_read(hCodec, &r_input));



l_output=l_input;


r_output=l_output;




/* Send a sample to the left channel */
while (!DSK6713_AIC23_write(hCodec,l_output));

/* Send a sample to the right channel */
while (!DSK6713_AIC23_write(hCodec, r_output));


/* Close the codec */
//DSK6713_AIC23_closeCodec(hCodec);
}

}
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top