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.

time stamping audio samples

 

Hi,

Firstly, thanks for the HWAFFT documentation. I can successfully detect
car horns from road sound recordings for my application after reading the
document. :-) I have modified the audio filter sample program for ezdsp.

I now need to time stamp each window of audio samples. For 64 point FFT,
the RcvL1, RcvL2, RcvR1, RcvR2 will each be of size 64 and when each is
full, a DMA interrupt occurs. I want to store the current time from RTC
when a DMA interrupt occurs as time of that window of audio samples. I 
wish to use the LSB 16 bits (which contain 0 for the imaginary part of audio samples)
of RcvL1/L2/R1/R2[0] to RcvL1/L2/R1/R2[3] to store the 7 RTC register values. When
I will later use the Rcv registers for FFT, I'll access the array bits properly to 
differentiate audio and time values. 

In the ISR function in the dma_routines.c file, I am thinking of 
making the following change (in red).
        if(CurrentRxL_DMAChannel ==1){
            CurrentRxL_DMAChannel =2;
            DMA0_CH2_DST_LSW = (Uint16)RxL2_DMA_address;
            DMA0_CH2_DST_MSW = 0xFFFF & (RxL2_DMA_address >> 16);
	   store RTC values in 16 LSB of RcvL1[0] to RcvL1[3] 
        }
This is when interrupt occurs for RcvL1 being full. I'll make similar changes for 
other Rcv's too.
Let me know if someone finds any issue in this.