Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Speed questions...

Speed questions...

2006-03-16 by thormj_tiburon

Err... I suppose I could look on a datasheet and try to guess but 
I'd rather defer to the group:

I want to do some audio processing and don't really want to learn 
ASM (or DSP-ASM); I'd rather stick with 90% C.  I want to join an 
Atmel processor with an AD1871 (24bit, 96KHz -- 2 sport access; may 
be multiplexed -- after I get the data streaming, I won't need to 
mess with it again), and, for my first project make a spectrum 
analyzer display on an LCD.

But at 100KHz*32 bits, thats 3.2MHz in just I/O...  Is an Atmel  up 
to that kind of task (which ones?)? Can I store to an external ram 
(10s (32mbit?!) worth) and process that in non-real-time?

I'd also like opinions on a couple of other processors if the Atmel 
can't do it (err... I know this is Atmel territory, and I'd much 
rather deal with Atmels, but I've never had to do something that 
needed this much horsepower before):
  Microchip dsPIC - (Ugh.  Not only DSP-ASM, but uChip DSP ASM)
  SiLabs 8051f310 - 25 MHz/MIPs 8051ish (not sure about the sports)

Thanks,
Thor Johnson

RE: [AVR-Chat] Speed questions...

2006-03-16 by Martin Jay McKee

I don't think you'll be happy with trying the make that interface work at
full speed( 96kHz ). At the 32 bits you mentioned ( I assume you're looking
at 16 bit frames for each channel... ) you are looking at a transfer rate of
~3.1Mbps, running at 20MHz every ~50th instruction would have to save data
to memory, possible but not wonderful.  If you can figure out how to use the
hardware for some things you might be in better shape also.

Basically can you run a spectrum analyzer real time on an AVR... with that
data source I doubt it, but you certainly have time to store it to memory.
All things considered though I think I'd look at either reducing the data
rate, the AD1871 supports 48kHz also, or going to a more powerful chip.  If
the data rate is a requirement and you aren't in a hurry you might want to
wait for the new 32 bit AVR, having perused the architecture document a
couple times it looks to be an excellent chip for this type of thing.  If,
indeed time is a factor also you might want to consider the Atmel SAM series
ARM chips.  I can't say that I know much about compiler availability ( I'm
waiting for the AVR32 ) but the hardware USART would be up to the job, and
the ability to handle larger chunks of data would make things much easier...
not the mention a 50MHz clock vs. 20MHz for the AVR.

Martin Jay McKee

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.