DSP speed needed for 192Khz ADC/DAC?

Discussion in 'Embedded Systems and Microcontrollers' started by DaveH, Jul 15, 2009.

  1. DaveH

    Thread Starter Active Member

    Jan 1, 2009
    53
    0
    I guess this is a question about digital audio techniques. Any idea, even if you're not sure, please shout, I bet you know more than me that's for sure.

    Say you have a digital audio processing circuit, it doesn't matter what make the DSP is or what make the ADC/DAC chip is (commonly called a CODEC if its on the same chip), but if the sampling rate is 192Khz that means the period between samples is 5.2 microseconds.

    From what I've read the DSP usually takes data from the ADC in batches to capture at least 1 wave cycle of audio, or probably several cycles, before changing it with some algorithm and passing the data to the DAC to be turned back to an analog approximation.

    Say the effect is not a delay type effect, does that mean that the DSP has to process all that data and pass it onto the DAC in less than 5.2 microsecs? I'm getting a bit confused because if the DSP takes longer than one period of the sample rate, the reconstituted analog output will get delayed. 5.2 microsecs is not that long, even if the sample rate is the more common 96Khz and the period is about 10microsecs, that's still not much time to do a lot of computation I think. May be I'm wrong and DSPs are pretty quick?

    Say the DSP only processes after every few cycles of audio, but takes longer than 1 period of the sample rate to do it's computation, then the delay at the reconstituted analog output will get progressively larger?

    I think my understanding is a bit screwed up. Please help me out, thanks.

    My next problem will be how to solder a 64pin low profile quad flat packSMD with pin spacing too small to see without an electron microscope. I'll post about that later :mad:
     
  2. nanovate

    Distinguished Member

    May 7, 2007
    665
    1
    The Codec does that for you. Now are referring to the codec IC sending an I2S stream to a DSP which the DSP processes? DSPs can run at 300+ MHz.
     
  3. DaveH

    Thread Starter Active Member

    Jan 1, 2009
    53
    0
    Hi Nanovate,

    Yeah, that's what I'm referring to:

    The ADC part of the Codec chip will output the data in I2S to the DSP. The DSP of course has some kind of fast memory buffer that will be used to hold the data. When that buffer gets filled up with a certain amount of data, the DSP gets an interrupt to process the data.

    I'm looking at an 80MHz el cheapo DSP. This means you can fit 400 DSP clock cycles in 5.2 microsecs. I've heard that the whole point about DSPs is that they are optimised with an instruction set that takes few or only one clock cycle. So I guess that's enough clock cycles to do a bit of C or assembler do things like wave compression or clipping algorithms.

    What DSPs do you think are good for this kind of thing. I've already decided on the 192Khz ADC/DAC chip. This is an audio application as I'm sure you know.
     
Loading...