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

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
Reply
 
Thread Tools Search this Thread
Old 5th February 2012, 12:43 PM   #381
diyAudio Member
 
Join Date: Jun 2007
I would also make provision for detecting when the incoming data is in synch with the local clock ,conversion with randomized squarewaves on the data pin makes for unpleasant noise
  Reply With Quote
Old 26th February 2012, 06:56 AM   #382
diyAudio Member
 
Join Date: Dec 2004
Location: Israel
My take on the 1541, work in progress. At least the layout is mine
No SPDIF input stage is implemented yet, as i'll try to make it with back-sync to the PC - 2 SPDIF connectors, IN and OUT. With local 384Fs clock source near the DAC.

I haven't connected the DGND, AGND and AGND2 for a reason - they all should be connected together, but i have to try various ground connection schemes first.
As whether i should connect the output ground near the +5V, -15V, or between DEM - or connect the AGND and DGND together near the -5V, or near the AGND pin.

The I2S attenuator/slew limiter will be fine-tuned in place.
No DEM reclocking, as i feel these largish DEM filter caps will clean-up the current much better than the current averaging network made by DEM current source switching. The DEM switching should switch, no matter an what frequency - the "T" of filtering caps in much greater than "T" of the DEM switches.

CXD1244 DF here, as the only one suitable for 1541.

There will be reclock from MCLK (XTAL@384Fs or recovered from SPDIF, user selectable) prior to passing the I2S to the attenuator.
Attached Images
File Type: jpg DAC_1541_V003.jpg (192.3 KB, 272 views)
Attached Files
File Type: pdf Top2.pdf (131.7 KB, 26 views)
  Reply With Quote
Old 26th February 2012, 09:29 AM   #383
Previously: Kuei Yang Wang
 
ThorstenL's Avatar
 
Join Date: Nov 2002
Location: Somewhere nice on planet earth
Hi,

Quote:
Originally Posted by s3tup View Post
The I2S attenuator/slew limiter will be fine-tuned in place.

....

CXD1244 DF here, as the only one suitable for 1541.
Digital Filter Chips are jitter central. Abandon all hope on good performance, lest you re-clock the output of the digital filter. Sound quality even after that will be ordinary.

If you must oversample, do it in the PC and use a better quality algorithms than what you find in decade old digital filters.

Quote:
Originally Posted by s3tup View Post
No DEM reclocking, as i feel these largish DEM filter caps will clean-up the current much better than the current averaging network made by DEM current source switching.
I think you are seriously mistaking how things work.

DEM reclocking makes sure of two things:

1) Avoid beat tones from interactions between the DEM clock and sample rate, if they are not synchronised

2) Make sure all DEM elements are used for each sample, this means absolute errors may be larger and are not randomised, but relative errors now n \o longer have a random extra error added.

DEM Filter Capacitors filter the switching glitches, which will be at several 100KHz, so we want low ESR and low ESL at those frequencies. Current amounts also vary between the MSB decoupling one sand the lower bits.

Ciao T
  Reply With Quote
Old 26th February 2012, 02:04 PM   #384
diyAudio Member
 
Join Date: Dec 2004
Location: Israel
Quote:
Originally Posted by ThorstenL View Post
Digital Filter Chips are jitter central. Abandon all hope on good performance, lest you re-clock the output of the digital filter. Sound quality even after that will be ordinary.
DF ain't good nor bad on the jitter front, as long as they are reclocked afterwards. They don't relate to any timings beside data integrity, and as long as no errors are introduced to data, the calculations will be precise on the math frontend. Then i'll shape their math output to external Xtal, and get both precise digital filtering and timing with no loss of bits (as much as possible, given the DF FIR filtering algorithms).
The PC will be synced with Xtal, therefore everything will be synchronous - no async reclocking with missing bits.

Quote:
Originally Posted by ThorstenL View Post
If you must oversample, do it in the PC and use a better quality algorithms than what you find in decade old digital filters.
It's a good thing for PC DAC, but everything goes wee when we introduce 176kHz SPDIF. It is quite high sample rate for SPDIF, and really dependant on the SPDIF I/O capabilities on both sides.
Eventually, the 1541 will die with it's 5.6MHz DEM clocking rate, if DEM will be clocked from BCLK.
1.4MHz doesn't seems right for the NOS too. Clock dividers should be used...

Quote:
Originally Posted by ThorstenL View Post
I think you are seriously mistaking how things work.

DEM reclocking makes sure of two things:

1) Avoid beat tones from interactions between the DEM clock and sample rate, if they are not synchronised

2) Make sure all DEM elements are used for each sample, this means absolute errors may be larger and are not randomised, but relative errors now n \o longer have a random extra error added.
I think we should split the cases of OS and NOS.

First of all, how many elements we have which are being switched, and how long is their sequential pattern? I guess they aren't random switching, therefore they should form a kind of repeatable pattern, which will affect DAC output - we will see the pattern on the DAC output if we use FFFFFF on I2S, and cycle the DEM with LR clock. To make the DEM switch thru all of the states per single LR clock (given we have DEM sequence length of N), we need Fcosc=N*Fs. Not more not less than multiples of N*Fs.
If we get the clocking wrong, we will get repeatable pattern on DAC output, which will repeat itself, and show-up on THD plot as stick(s).
If we do so, we get N glitches of DEM per sample.

Then let's check the DEM clocking from the aspect of NOS/OS.
NOS has Fs of 44100Hz. The datasheet-recomended frequency for Cosc is around 400kHz, which overclocked, but marginally covered by BCLK/2=700kHz (or BCLK/4=350kHz) given the BCLK=32Fs.
For BCLK/2 we get 16 iterations of DEM, and for BCLK/4 = 8 itertations.
Looks marginally fine, as long as we have 4, 8 or 16 combinations of elements.

For the OS, our Fs goes to 174kHz, and we can't use it's BCLK/2, BCLK/4 for DEM clocking.
Moreover, if we try to stick to Cosc BW limits of no-more-than 700kHz, we are maxed-out by 4*Fs which is still fine for DEM pattern length of 4. But if we have more than 4 combinations of elements, we don't benefit from per-sample averaging of elements. Say we have 8-cycle combination of elements and 4*Fs clock. Then 1st sample on DAC output will use average from first 4 combinations, and 2nd sample will use 4 other combinations. We get a square wave of Fs/2 on DAC output, which is bad.

On the other hand, if we go with free-running DEM clk, we get some randomness of switching per every sample. It's noise distributes over the spectrum, and we may even benefit from it as from "dithering".

To clearly see the DEM pattern, i think we should remove the DEM filtering caps.

Quote:
Originally Posted by ThorstenL View Post
DEM Filter Capacitors filter the switching glitches, which will be at several 100KHz, so we want low ESR and low ESL at those frequencies. Current amounts also vary between the MSB decoupling one sand the lower bits.
4.7uF X7R 1206 is ok in ESR/ESL domain? Their leakage current should be concerned too...
  Reply With Quote
Old 26th February 2012, 03:23 PM   #385
diyAudio Member
 
Join Date: Dec 2004
Location: Israel
Here is an article about DEM, dated 1976
http://overture.org.ua/wp-content/up...9/00046328.pdf
I need to read it prior to arguing
  Reply With Quote
Old 26th February 2012, 03:48 PM   #386
Previously: Kuei Yang Wang
 
ThorstenL's Avatar
 
Join Date: Nov 2002
Location: Somewhere nice on planet earth
Hi,

Quote:
Originally Posted by s3tup View Post
DF ain't good nor bad on the jitter front, as long as they are reclocked afterwards.
Agreed, yet I seem to have missed the re-clocker in your schematic and on your PCB...

Quote:
Originally Posted by s3tup View Post
It's a good thing for PC DAC, but everything goes wee when we introduce 176kHz SPDIF.
Quad speed SPDIF that locks reliably is now very common. There are chip's from almost any maker. And why not use Quad Speed I2S vias USB?

Quote:
Originally Posted by s3tup View Post
Eventually, the 1541 will die with it's 5.6MHz DEM clocking rate, if DEM will be clocked from BCLK. 1.4MHz doesn't seems right for the NOS too. Clock dividers should be used...
If you read my earlier notes, I agree on using a Dividier for DEM reclocking.

Quote:
Originally Posted by s3tup View Post
I think we should split the cases of OS and NOS.
Why? How does the DAC distinuish between being fed 44.1KHz upsampled to 176.4KHz and being feed a non-oversampled 176.4KHz signal?

Quote:
Originally Posted by s3tup View Post
First of all, how many elements we have which are being switched, and how long is their sequential pattern?
It's in the TDA1541 extended info datasheets...

Quote:
Originally Posted by s3tup View Post
I guess they aren't random switching, therefore they should form a kind of repeatable pattern, which will affect DAC output - we will see the pattern on the DAC output if we use FFFFFF on I2S, and cycle the DEM with LR clock. To make the DEM switch thru all of the states per single LR clock (given we have DEM sequence length of N), we need Fcosc=N*Fs. Not more not less than multiples of N*Fs.
Correct.

Quote:
Originally Posted by s3tup View Post
4.7uF X7R 1206 is ok in ESR/ESL domain? Their leakage current should be concerned too...
Maybe. From experience ceramic should not be used here. Use SMD stacked Film, many options now.

Ciao T
  Reply With Quote
Old 26th February 2012, 04:56 PM   #387
diyAudio Member
 
Join Date: Dec 2004
Location: Israel
Quote:
Originally Posted by ThorstenL View Post
Agreed, yet I seem to have missed the re-clocker in your schematic and on your PCB...
Probably you have missed the:
Quote:
Originally Posted by s3tup View Post
There will be reclock from MCLK (XTAL@384Fs or recovered from SPDIF, user selectable) prior to passing the I2S to the attenuator.
The reclocker was missing because i haven't yet decided which IC to use, and which casing. DIP will look on par with DF and DAC, but a bit clunky.
SOICs are techie, but prevent a nice bypassing under the IC due to VIAs.
I like the way pins are arranged in 574 IC of 74 family. It's quad DFF with positive outputs only, and it has inputs and outputs on opposite edges.
ABT/BCT? BiCMOS looks attractive from propagation delay and power usage points of view...

Quote:
Originally Posted by ThorstenL View Post
Quad speed SPDIF that locks reliably is now very common. There are chip's from almost any maker. And why not use Quad Speed I2S vias USB?
USB-slave is really nice option, but it is USB, and i'm not aware of publically available, cost effective AND easily implementable ICs, which doesn't require FPGAs, MCUs and preflashing.

SPDIF@174kHz? The issus with SPDIF "as-is" is unresolvable thus requiring us to use reclocking + back-syncing.
I'll try to run my project with oversampling @PC + DF bypass, but i'm uncertain whether i'll be able to make the back-sync thing work at 174kHz.
Without back-syncing it gets even worse as the sampling frequency rises...



Quote:
Originally Posted by ThorstenL View Post
Why? How does the DAC distinuish between being fed 44.1KHz upsampled to 176.4KHz and being feed a non-oversampled 176.4KHz signal?
It won't distinguish as long as Fs=176.4KHz is on 1541's inputs.
Yet, the BCLK divider for DEM clocking at Fs=44.1k and Fs=176.4k should be different, otherwise DAC will distinguish the change in a bad manner

Every time i hear "NOS" i think of DAC running at Fs=44100Hz.
As long as we upsample the signal at some point of digital chain, the whole system shouldn't be called "NOS".



Quote:
Originally Posted by ThorstenL View Post
It's in the TDA1541 extended info datasheets...
I'll take closer look at these sheets. (Are they from IEEE?)

Quote:
Originally Posted by ThorstenL View Post
Maybe. From experience ceramic should not be used here. Use SMD stacked Film, many options now.
SMT PPS die when you touch them with soldering iron Lots of care should be taken at soldering time, otherwise we'll hear clicking noises on DAC output when the music hits missing bits.



What about my grounds layout?
I didn't liked the capacitive/inductive coupling of DGND and AGND when they are on top of each other (2-layers), so i decided to move the DGND aside.
By doing this i halved the AGND impedance, got solid AGND layer
But i've got a half-circle loop between -5V and DGND pins with -5V PSU in between. The DAC chip is in center of EMI field produced by currents flowing from -5 to DGND and back given the "right hand rule" is true .
  Reply With Quote
Old 26th February 2012, 05:52 PM   #388
Previously: Kuei Yang Wang
 
ThorstenL's Avatar
 
Join Date: Nov 2002
Location: Somewhere nice on planet earth
Hi,

Quote:
Originally Posted by s3tup View Post
Probably you have missed the:
I looked at the schematic and PCB, sorry.

Personally I don't even bother starting on the PCB until I have the basics sorted and maybe breadboarded any stuff I'm not sure will work.

Quote:
Originally Posted by s3tup View Post
USB-slave is really nice option, but it is USB, and i'm not aware of publically available, cost effective AND easily implementable ICs, which doesn't require FPGAs, MCUs and preflashing.
You could buy something off the shelf (M2-Tech thingey?) and mod it. Not that hard.

Quote:
Originally Posted by s3tup View Post
SPDIF@174kHz? The issus with SPDIF "as-is" is unresolvable thus requiring us to use reclocking + back-syncing.
But you said you would do that, so where is the problem?

Quote:
Originally Posted by s3tup View Post
I'll try to run my project with oversampling @PC + DF bypass, but i'm uncertain whether i'll be able to make the back-sync thing work at 174kHz. Without back-syncing it gets even worse as the sampling frequency rises...
Use Asynchronous USB.

Quote:
Originally Posted by s3tup View Post
Yet, the BCLK divider for DEM clocking at Fs=44.1k and Fs=176.4k should be different,
Why. As long as the minimum of full cycles happen at 176.4KHz it will be fine. At 176.4KHz and at 44.1KHz (Non-OS).

Quote:
Originally Posted by s3tup View Post
Every time i hear "NOS" i think of DAC running at Fs=44100Hz.
I don't. I think of a DAC running at 1Fs, with FS being anything the DAC can handle (for TDA1541 that would be 384KHz in duplex mode).

Quote:
Originally Posted by s3tup View Post
SMT PPS die when you touch them with soldering iron
As the late Steve Jobs so famously said to 21 Million iPhone 4 users that complained calls dropped if they held their phone in a certain way: "Then just don't do that!".

Quote:
Originally Posted by s3tup View Post
What about my grounds layout?
Your call, we all have our preferences.

Ciao T
  Reply With Quote
Old 27th February 2012, 03:50 PM   #389
diyAudio Member
 
Join Date: Dec 2004
Location: Israel
Thorsten,
I want to use some SPDIF-like transformer to isolate the Cosc pins from reclocking circuit.
Should i still tie the Cosc pins to -15v with 2k2 resistors? I don't like the idea of polluting the -15v line with digitallish signal, even thru relatively high resistors. I guess i'll need to split the -15v line to two -15 sources, unless there is alternative solution for DEM clocking signal feed.
Also i find it crude to pull Cosc pins to -15v
And i guess pulling the isolated trafo windings to -15v won't work, probably i need to tie the cosc pins between -15v and somewhere at +/-5v.



By the way, if we get constant averaging of current source variations with DEM clocking, then we will get constant sample-to-sample DEM averaged current delivered to each bit.

Then we could introduce leakage current to each bit by tying the DEM filtering caps somewhere, say GND with trimmer resistors.
Then we could be able to fine-tune the current for each available bit.
Yay? Access to bit tuning of bits...
  Reply With Quote
Old 28th February 2012, 04:15 AM   #390
Previously: Kuei Yang Wang
 
ThorstenL's Avatar
 
Join Date: Nov 2002
Location: Somewhere nice on planet earth
Hi,

Quote:
Originally Posted by s3tup View Post
I want to use some SPDIF-like transformer to isolate the Cosc pins from reclocking circuit.
Frequency may be too low and impedance too high to use SPDIF Transformers.

The DEM reclocking by ecdesigns that I recommend is balanced, so not much net current, if you want to loose sleep over it add a choke and local decoupling, though given the actual internal TDA1541 schematic I think this could be counter-productive.

Quote:
Originally Posted by s3tup View Post
Also i find it crude to pull Cosc pins to -15v
Tell that to Rudy Van Plasche. He designed the TDA1540 and TDA1541 that way.

Quote:
Originally Posted by s3tup View Post
By the way, if we get constant averaging of current source variations with DEM clocking, then we will get constant sample-to-sample DEM averaged current delivered to each bit.

Then we could introduce leakage current to each bit by tying the DEM filtering caps somewhere, say GND with trimmer resistors.
Then we could be able to fine-tune the current for each available bit.
Yay? Access to bit tuning of bits...
Yes, I think you could monkey with that, but I doubt there is much to be gained that way.

Ciao T
  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
Raindrop Hui TDA1541A DAC Kit wushuliu Swap Meet 24 13th April 2011 01:04 PM
which clock for analogmetric tda1541A dac kit Chilli6565 Digital Source 4 6th May 2010 12:41 PM
FS: AYA DAC Rev 2.0b TDA1541A Non-Oversampling DAC kit or complete krishu Swap Meet 0 17th December 2009 09:33 AM
Recommend a DIY tda1541a dac kit? boidos Digital Line Level 2 6th August 2009 01:43 PM
TDA1541A Chineese DAC KIT UV101 Digital Source 8 10th February 2009 10:46 AM


New To Site? Need Help?

All times are GMT. The time now is 08:30 PM.

Page generated in 0.17779 seconds (88.16% PHP - 11.84% MySQL) with 11 queries

Copyright ©1999-2012 diyAudio