Digital attenuation for i2s - diyAudio
Go Back   Home > Forums > Source & Line > Digital Source

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 19th September 2002, 05:24 PM   #1
diyAudio Member
 
Join Date: Sep 2002
Location: US
Default Digital attenuation for i2s

I've succesfully connected a Philips cd player a to Behringer Ultracurve using I2s format (2*32 bits/sample) and clock sync.

The only problem the max digital output from the cd is about +6db DIGIMAX level for the behringer which overloads the EQ.
If I reduce the master level in the behringerit works fine, but I can not adjust the volume then.

I'm looking for a simple circuit or chip to attenuate the i2s signal by 12-18db with a simple bit shifting. The Behringer processes 24 bits, so shifting the input stream 2 bits seems to be no problem and Behringer shoul do something similar on the AES/EBU card, as the digit input card does not have this problem.

Can anybody help.
  Reply With Quote
Old 19th September 2002, 05:41 PM   #2
diyAudio Member
 
Steve Eddy's Avatar
 
Join Date: Sep 2002
Location: Sacramento, CA
I don't understand. Are you saying that the I2S out of the CDP is sending greater than 16 bit samples?

se
  Reply With Quote
Old 19th September 2002, 05:55 PM   #3
diyAudio Member
 
Join Date: Sep 2002
Location: US
No. The player sends 16 bits i2s in 32 bit frames. The first 16 bit is cd data, then 16 zeros.
The behringer seems to attenuate the signal in the digital domain by 5db on the digital input (AES/EBU card), and 5db in the analog domain for the analog inputs to allow headroom for the digital eq, As I'm feeding the behringer after the A/D converters with digital signal, I have no attenuation, and overloading the eq.

What I need is a 12 db digital attenuator working with 32 bit i2s frames.
  Reply With Quote
Old 19th September 2002, 06:23 PM   #4
diyAudio Member
 
steve jones's Avatar
 
Join Date: Mar 2002
Location: Vancouver USA
Delay or shift WCLK by two bits should give you 12dB attenuation, provided that the Beringer will accept 18 bit data (or greater) .
  Reply With Quote
Old 19th September 2002, 07:26 PM   #5
diyAudio Member
 
Steve Eddy's Avatar
 
Join Date: Sep 2002
Location: Sacramento, CA
Quote:
Originally posted by fcserei
No. The player sends 16 bits i2s in 32 bit frames. The first 16 bit is cd data, then 16 zeros.
Question. Where exactly are you plucking your I2S output from the CDP and how exactly are you determining that it's being sent in 32 bit frames?

The Philips I2S format is 16 bits left channel data, and 16 bits right channel data. Which decoder chip is your CDP using? And how do you you know what data format the Behringer is expecting to see out of its internal ADC?

se
  Reply With Quote
Old 19th September 2002, 09:18 PM   #6
diyAudio Member
 
Join Date: Sep 2002
Location: US
Quote:
Originally posted by steve jones
Delay or shift WCLK by two bits should give you 12dB attenuation, provided that the Beringer will accept 18 bit data (or greater) .
Sorry, but wrong. (Already tried - big noise).

The behringer uses 24 bits out of the 32. Let's say the input is
0011..11, after the 12dB attenuation the output with padding 0s at the end to have 24 bit data should look like 000011..11000000.

But for data beginning with 1, like 1011..11, the attenuated signal in 24 bits is 111011..11000000.


My logic design skills are a bit rusty now. Can somebody suggest a good TTL CAD package.
  Reply With Quote
Old 19th September 2002, 09:24 PM   #7
diyAudio Member
 
Join Date: Sep 2002
Location: US
Quote:
Originally posted by Steve Eddy


Question. Where exactly are you plucking your I2S output from the CDP and how exactly are you determining that it's being sent in 32 bit frames?

The Philips I2S format is 16 bits left channel data, and 16 bits right channel data. Which decoder chip is your CDP using? And how do you you know what data format the Behringer is expecting to see out of its internal ADC?

se
i2s does not define how long is one frame, so you can have any number of padding bits after the data. 7210 uses 32 bit frames (that is what I tap for the signal), 7220 16 bit frames, newew chips (7345) 24 bit frames.

I've checked the data sheets for A/D, D/A used in the Behringer, checked the mode config pins, and found it is communicating internally with 11.289MHz master clock, 2.822 MHz bitclock and 32 bit long frames.
  Reply With Quote
Old 20th September 2002, 12:19 PM   #8
guido is offline guido  Netherlands
diyAudio Member
 
guido's Avatar
 
Join Date: Mar 2002
Location: diepe zuiden
Guess you need to make a nice drawing with all the signals.
And make one MSB bit into three..

Delaying signals can be done with a '74 FF, search for Guido and you will find an I2S splitter. I use one in this design to delay WS with one clockpulse (two sides of the FF delay each half a clockpulse).

This to know where the dataframe is in time and to inverse it (not inversing the other channel).

btw, it is now designed with one 4517 shiftreg and not the 8 TTL ones. Only 3 chips left, but i have some new idea's....

Regards,

Guido
__________________
GuidoB
  Reply With Quote
Old 20th September 2002, 02:06 PM   #9
diyAudio Member
 
Join Date: Sep 2002
Location: US
Never mind, I've solved it yesterday.
A couple of D flip-flops and a multiplexer - 2 chips. Working great. It was a big help to put down exactly what I need.

Now I have about 6 dB headroom for the eq and about 16 dB usable volume adjustment. With i2s input and 20 bit filterless DAC the Behringer is in an other league now.

If anybody interested, drop me a line.
Warning: not an easy surgery.

Thanks
  Reply With Quote
Old 20th September 2002, 10:42 PM   #10
diyAudio Member
 
Join Date: Oct 2001
Location: .
How do you deal with the sign bit ?

ray
  Reply With Quote

Reply


Hide this!Advertise here!
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
Digital Attenuation, how much detrimental? SKK Digital Source 3 4th February 2007 01:22 PM
Question on activating digital attenuation on this dac chip georgehifi Digital Source 2 30th January 2007 10:31 PM
digital versus analog volume attenuation frdchang Chip Amps 9 31st March 2005 05:46 PM
How does digital attenuation work? kiwi_abroad Digital Source 2 8th September 2002 12:44 AM
use digital attenuation to improve 16-bit CD playback on 24 bit DAC capslock Digital Source 7 9th April 2002 12:18 AM


New To Site? Need Help?

All times are GMT. The time now is 03:16 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2