This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320C6713B: Sine8_LED working!

Part Number: TMS320C6713B

Tool/software: Code Composer Studio

The else statement is not being invoked. The led 0 continues to be on even though the DIP switch is not toggled. Also, the headphone port is not producing any sine wave. When I connect a headphone jack to it I  hear sounds only when i press the stop button in the debug window. I also see about 39 warnings, not really sure why they are being there. Attached is the screenshot of it. so Copied is the code I was trying to run. Can someone help me with this? I am using a Windows 7 OS with CCS V 5 3. 

//sine8_LED.c sine generation with DIP switch control

#include "dsk6713_aic23.h" //codec support
Uint32 fs = DSK6713_AIC23_FREQ_8KHZ; //set sampling rate


#define DSK6713_AIC23_INPUT_MIC 0x0015
#define DSK6713_AIC23_INPUT_LINE 0x0011


Uint16 inputsource=DSK6713_AIC23_INPUT_MIC;//select input

#define LOOPLENGTH 8
short loopindex = 0; //table index
short gain = 100; //gain factor
short sine_table[LOOPLENGTH]={0,707,1000,707,0,-707,-1000,-707}; //sine values

void main()
{
comm_poll(); //init DSK,codec,McBSP
DSK6713_LED_init(); //init LED from BSL
DSK6713_DIP_init(); //init DIP from BSL
while(1) //infinite loop
{
if(DSK6713_DIP_get(1)==0) //=0 if DIP switch #0 pressed
{
DSK6713_LED_on(0); //turn LED #0 ON
output_left_sample(sine_table[loopindex++]*gain); //output sample
if (loopindex >= LOOPLENGTH) loopindex = 0; //reset table index
}
else DSK6713_LED_off(0); //turn LED off if not pressed
} //end of while(1) infinite loop
} //end of main