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.

Sending interrupt using the DSK_AUDIO4 Daughtercard

I am trying to save the audio data from 4 microphone inputs connected to the DSK_AUDIO4 daughtercard so that I can process it for sound source localization. I understand that the audio data from the 4 microphones are sent to the McBSP. How do I enable interrupts using the daughtercard such that I can save the audio data to buffers? 

For instance in the loop_buf project that came with the Digital Signal Processing texbook by R Chassang and D Reay, they had a function called comm_intr() that sets up the interrupts for the AIC23 Codec. 

                                             
interrupt void comm_intr()						 	//for communication/init using interrupt
{
	poll=0;                        	//0 since not polling
   IRQ_globalDisable();           	//disable interrupts
	c6713_dsk_init(); 					//init DSP and codec
	CODECEventId=MCBSP_getXmtEventId(DSK6713_AIC23_codecdatahandle);//McBSP1 Xmit

#ifndef using_bios						//do not need to point to vector table
  	IRQ_setVecs(vectors);     			//point to the IRQ vector table
#endif										//since interrupt vector handles this

  	IRQ_map(CODECEventId, 11);			//map McBSP1 Xmit to INT11
  	IRQ_reset(CODECEventId);    		//reset codec INT 11
   IRQ_globalEnable();       			//globally enable interrupts
  	IRQ_nmiEnable();          			//enable NMI interrupt
   IRQ_enable(CODECEventId);			//enable CODEC eventXmit INT11

	output_sample(0);        			//start McBSP interrupt outputting a sample
}

How do I do something similar for the PCM3794 codec on the DSK_AUDIO4 daughtercard. In particular I'm not sure what
CODECEventId=MCBSP_getXmtEventId(DSK6713_AIC23_codecdatahandle);  is doing.

Thanks for the help. 
  • Mustafa,

    Before pointing you toward any particular training material, which board and DSP are you using? There are hints but I do not want to waste your time making assumptions.

    The function you show above should not have the 'interrupt' keyword, from my understanding of the code snippet. Are you sure you copied this correctly?

    Does the DSK_AUDIO4 daughtercard not come with example code that you can run and documentation on how to use it?

    What version of CCS and the compiler tools and BIOS are you using?

    What does the Chassaing/Reay book say about the MCBSP_getXmtEventId() function and the DSK6713_AIC23_codecdatahandle data element?

    How much have you done with your board so far? Have you run any examples and tutorials, run through labs from online training, and so on?

    Regards,
    RandyP