Go Back   Home > Forums > Source & Line > Digital Source
Home Forums Rules Articles Store Gallery Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, 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
Reply
 
Thread Tools Search this Thread
Old 17th July 2006, 07:28 AM   #1
Daryl is offline Daryl  Netherlands
diyAudio Member
 
Join Date: Jul 2006
Default Monitoring I2

Hello people,

I am currently working on a school project where I have to design and build a Peak Program Meter.
I have made most of the hardware but am stuck with the processing unit.
I am using an Cirus CS5351 A/D and a Cirus CS8416 bitrate converter to create the I2S bus. My problem is that I would like to monitor this serial data bus with my Atmega 32.
A lot of people are saying that this is not possible, but nobody can give me a clear explanation why this is not possible.
Who could possibly help me?

Daryl
  Reply With Quote
Old 17th July 2006, 12:47 PM   #2
Bee is offline Bee  United Kingdom
diyAudio Member
 
Join Date: Oct 2002
Location: UK
Hi Daryl

Maybe people think it can't be done because the SCK signal of I2S is nearly 3 MHz, and it looks a bit fast to handle in a microcontroller. However, have you considered feeding the I2S into the SPI interface on your ATmega32? Use slave mode, and for starters let LRCK drive the SS pin. The mega needs more than 2 of its clock periods for sampling each half of SCK, but if you're running at 16MHz then no problem. Except you're only sampling the left channel this way... Sounds like a fun project, and worth a try. Look very closely at the I2S timing diagrams though.

OTOH, the mega32 has an A to D converter in it anyway. It's only 10 bit, but it can sample at 15KHz, and you can feed up to eight signals into it through Port A as a multiplexer, which would be more than good enough for a PPM.
  Reply With Quote
Old 18th July 2006, 10:17 AM   #3
Daryl is offline Daryl  Netherlands
diyAudio Member
 
Join Date: Jul 2006
Do you have a code example for monitoring the I2S bus through SPI?
  Reply With Quote
Old 19th July 2006, 07:43 AM   #4
diyAudio Member
 
Join Date: Oct 2001
Location: .
Before attempting to read I2S over SPI, you might want to consider post #9 of this thread and that for the AT91x40 family of ARM devices, Atmel recommend converting I2S data from serial to parallel and moving the data that way. ARM devices are somewhat more powerful than AVR's.
You might also want to consider a device with built-in I2S support if a change of device is possible
  Reply With Quote
Old 20th July 2006, 10:01 AM   #5
Bee is offline Bee  United Kingdom
diyAudio Member
 
Join Date: Oct 2002
Location: UK
Hi Daryl

Sorry, I don't have a code example, it was only a suggestion, and made only because you are building a peak program meter so I assumed - perhaps wrongly - that you would be using a low sample rate, and would not read every sample.

Using a 24 bit A/D with I2S out is making a lot of work for your processor, and I don't understand where the CS8416 fits in. If you haven't physically built it yet, and if your project involves using the ATmega, then do consider its A/D inputs. You could build a simple analog front end that does all the PPM functions - rectification, attack and decay times etc - and leave yourself plenty of processing time to do the maths and the displays.
  Reply With Quote

Reply


Hide this!Advertise here!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Heater current monitoring... nickds1 Tubes / Valves 2 9th November 2006 08:22 PM
audio monitoring software? eaz135 Everything Else 3 13th October 2005 12:18 PM
Power Monitoring led_zeppelin Solid State 1 22nd April 2004 11:13 AM
Midrange used in Quested Monitoring? jheoaustin Multi-Way 4 9th February 2004 02:29 PM
Temperature Monitoring in Leach Amp wrl Solid State 6 2nd October 2003 09:09 PM


New To Site? Need Help?

All times are GMT. The time now is 01:23 AM.

Page generated in 0.79867 seconds (11.60% PHP - 88.40% MySQL) with 10 queries

Copyright ©1999-2012 diyAudio