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.

A quick question about hardware interrupts in DSP/BIOS mode

Other Parts Discussed in Thread: TMS320C6416

Hello all,

I am trying to implement a program in Chassaing's book (Digital Signal Processing and Applications with the TMS320C6713 and TMS320C6416 DSK), which generates a sine wave using a hardware interrupt.

The code is:

#define CHIP_6713 1
#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 // size of look up table
short sine_table[LOOPLENGTH]={0,7071,10000,7071,0,-7071,-10000,-7071};
short loopindex = 0; // look up table index

void c_int11() //interrupt service routine
{
output_left_sample(sine_table[loopindex]); // output look up table value
if (++loopindex >= LOOPLENGTH) loopindex = 0; // check for end of look up table
return; //return from interrupt
}

void main()
{
comm_intr(); // initialise DSK
}

I don't know if the first line of this is entirely necessary or not (#define CHIP_6713 1), I've used it on other projects but I get the following error when I try and compile:

#error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is chip number, i.e. 6201) BIOSsinewave line 262 1388335857289 7002

In the book (page 381 2nd edition) it described, looking in the 'preprocessor category'. but it's unclear where this is located in the software, previously it instructs you to change the 'Target Version' to C671x which is found in the Basic category in the under the compiler options in the build options (see the attached screenshot). Where can I find this 'preprocessor category' and will it help me to solve my problem? 

Thanks,
Jack