|
|||||||
| Home | Forums | Rules | Articles | Store | Gallery | Blogs | Register | Donations | FAQ | Calendar | Search | Today's Posts | Mark Forums Read | Search |
| Digital Line Level DACs, Digital Crossovers, Equalizers, etc. |
|
Please consider donating to help us continue to serve you.
Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving |
|
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
diyAudio Member
Join Date: Jul 2006
|
I posted this question before but am still trying to proove it with an answer.
I was told that I could not interface the I2S bus with an Atmega32. I have found an alternative processor. But how can I proove that the Atmega32 is not possible for this application. Which calculations can be made? I am using sample rates up to 96 kHz and possibly 192 kHz. Therfore the SCK line of the I2S-bus is 64*Fs = 6.1 MHz T= 1/F = 160ns These are the only calculations I can work out. Could somebody help me with some more information? |
|
|
|
#2 | |
|
diyAudio Member
Join Date: Oct 2003
Location: Ottawa, Canada
|
Quote:
Keeping in mind that I know nothing of how the Atmega32 works specfically, in general you would need to receive the data as 8 bytes per WCLK period (in the 96 kHz case, 1 byte every 1.3 microseconds or so. You would probably use a syncronous serial port or similar peripheral. Then (I guess!) you have to do something useful with that data within the remaining CPU cycles until another byte is ready. If you need to transmit too, then you add even more stuff to do within the 1.3 microseconds. And don't forget that the data needs to be syncronised to the WCLK somehow. How many MIPS does the Atmega32 run at? Interrupt latency and overhead? I personally wouldn't say it's impossible, but... good luck! |
|
|
|
|
#3 |
|
diyAudio Member
Join Date: Oct 2001
Location: .
|
Depending on your approach, one can prove or disprove either case.
|
|
|
|
#4 |
|
diyAudio Member
Join Date: Nov 2005
|
It all depends on your I2C bus... and what you plan to implement.
An I2C bus can be "bit banged" on an AVR and the built in SPI's can be used with some tricks. More elegant solutions are available when when there are Master/Slave limitations involved. It is true that the AVR lacks the hardware to detect bus contention... bus contention is not always an issue though. Do you have a specific implementation in mind?
|
|
|
|
#5 |
|
diyAudio Member
Join Date: Jul 2006
|
The MIPS of the Atmega 32 is:16MIPS --> 16MHz
Does this give you any more information to help me further on? |
|
|
|
#6 |
|
diyAudio Member
Join Date: Nov 2005
|
Nope, speed has nothing to do with it...
It's more about what you wish to hook to the AVR ![]() SORRY... I misread your speed req's... yeah that could be a problem. |
|
|
|
#7 | |
|
diyAudio Member
Join Date: Oct 2001
Location: .
|
Quote:
|
|
|
|
|
#8 |
|
diyAudio Member
Join Date: Nov 2005
|
rfbrw,
The AVR SPI's are limited to local clock over 4. So about the best one can do is 5 mHz. Of course there ways around this, to me it comes back to what the AVR is supposed to do afterwards.
|
|
|
|
#9 | |
|
diyAudio Member
Join Date: Oct 2001
Location: .
|
Quote:
|
|
|
|
|
#10 |
|
diyAudio Member
Join Date: Nov 2005
|
Exactly what I was thinking... a few shift registers and byte wide data.
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 24 bit ADC interfacing with ARM using I2S | sukhdeep | Digital Line Level | 2 | 20th June 2009 03:37 PM |
| Emulator and programer for ATMEL MCUs | Suoliang | Swap Meet | 2 | 24th September 2004 12:14 PM |
| ISP of Atmel | BCP99 | Digital Source | 8 | 27th July 2004 03:17 PM |
| Development board Atmel ATmega | Freddie | Everything Else | 1 | 16th August 2003 03:27 PM |
| New To Site? | Need Help? |
| Page generated in 0.13003 seconds (80.42% PHP - 19.58% MySQL) with 10 queries |