c'mon guys, lets put our heads together to control a STA310 ac3 decoder

Time for me to share some great news, just couldn't keep it for myself a whole night :)

After some brakes and frustrations with the data sheet :scratch1: it creates sound and even for the setup some damn find sound.

DTS and DD all sound pretty fine.

2 days earlier the project got a jump start in finding Tomek article and download of the board and schematic in a Polish magazine. It is in Protel 99SE format. Get the files here.
This got the PLL filters right for me and apparently it was the only thing left of the schematic, the rest worked fine for months :xeye:

The project is far from identical to that of Tomek. It is still very much vero and breadboard at this point.
So far only Left an Right channels have a DAC/IV attached to them, but for a first test it will be fine, there is data coming out of the other I2S data lines. The dac is a PCM1798 with 6xOPA132 IV following the dac data sheet.

The STA310 is controlled with a FTDI usb controller in I2C mode. This allowed for some register tweaking on the fly with a home brew VB program. Came in very handy for debugging the "fully" documented registers of the STA310 data sheet.

I'm now gonna bug you guys with some pictures, I'm just to damn proud this evening :D

(Just hit the enter button once more, forbidden warning is bugging us)
First picture is the STA310 with the PLL filters and the FTDI usb chip.
http://www.wirdumonline.nl/DAC/01_STA310_USB.jpg

Very high end I2C cabling
http://www.wirdumonline.nl/DAC/02_I2S.jpg

DAC with IV, again the high-end I lines
http://www.wirdumonline.nl/DAC/03_DAC_IV.jpg

Power supply, nothing fancy, one regulator per supply, even a boring heatsink ;)
http://www.wirdumonline.nl/DAC/04_powersupply.jpg

How its all connected
http://www.wirdumonline.nl/DAC/05_overview.jpg

The program I made, just show a small part of the register values
http://www.wirdumonline.nl/DAC/06_vb_util.jpg
 
TriLithium said:
Time for me to share some great news, just couldn't keep it for myself a whole night :)

After some brakes and frustrations with the data sheet :scratch1: it creates sound and even for the setup some damn find sound.

DTS and DD all sound pretty fine.

2 days earlier the project got a jump start in finding Tomek article and download of the board and schematic in a Polish magazine. It is in Protel 99SE format. Get the files here.
This got the PLL filters right for me and apparently it was the only thing left of the schematic, the rest worked fine for months :xeye:

The project is far from identical to that of Tomek. It is still very much vero and breadboard at this point.
So far only Left an Right channels have a DAC/IV attached to them, but for a first test it will be fine, there is data coming out of the other I2S data lines. The dac is a PCM1798 with 6xOPA132 IV following the dac data sheet.

The STA310 is controlled with a FTDI usb controller in I2C mode. This allowed for some register tweaking on the fly with a home brew VB program. Came in very handy for debugging the "fully" documented registers of the STA310 data sheet.

I'm now gonna bug you guys with some pictures, I'm just to damn proud this evening :D

(Just hit the enter button once more, forbidden warning is bugging us)
First picture is the STA310 with the PLL filters and the FTDI usb chip.
http://www.wirdumonline.nl/DAC/01_STA310_USB.jpg

Very high end I2C cabling
http://www.wirdumonline.nl/DAC/02_I2S.jpg

DAC with IV, again the high-end I lines
http://www.wirdumonline.nl/DAC/03_DAC_IV.jpg

Power supply, nothing fancy, one regulator per supply, even a boring heatsink ;)
http://www.wirdumonline.nl/DAC/04_powersupply.jpg

How its all connected
http://www.wirdumonline.nl/DAC/05_overview.jpg

The program I made, just show a small part of the register values
http://www.wirdumonline.nl/DAC/06_vb_util.jpg


No pics...
:xeye:
 
Changed host, Looks a lot better :)

First picture is the STA310 with the PLL filters and the FTDI usb chip.
An externally hosted image should be here but it was not working when we last tested it.


Very high end I2S cabling
An externally hosted image should be here but it was not working when we last tested it.


DAC with IV, again the high-end I lines
An externally hosted image should be here but it was not working when we last tested it.


Power supply, nothing fancy, one regulator per supply, even a boring heatsink
An externally hosted image should be here but it was not working when we last tested it.


How its all connected
An externally hosted image should be here but it was not working when we last tested it.


The program I made, just show a small part of the register values
An externally hosted image should be here but it was not working when we last tested it.
 
Well I would if I could :)

I tried using the sound card with just a DTS audio stream, it is hard to see of course with an audio stream. But I see some lower level on 200Hz an an great level of att. at 100Hz and below. In my eyes there would be a -3dB point in the regions of 120..150Hz. But at which order...? 2nd maybe.

If you might have any suggestion for a nice test DVD it would come in rather handy.
 
seroius
I use PCM1796 in my new "high end" DAC. On the pictures balanced output monaural version (one channel, one DAC) with STA120 SPDIF receiver.
It sound very well :)
 

Attachments

  • dscn1864_1.jpg
    dscn1864_1.jpg
    95 KB · Views: 1,089
Ahh ok, that explains. If TI is keeping up with their sample program it will be the only DAC I will be using in the future, they just don't stop sending them :)
Even an upsampled PCM2707 24/96 DAC was sounding great on breadboard. All the low bitrate mp3 files were absolutely terrible after that.

You're building a nice collections of equipment as I think. As I need to have a first proto made for a 3xDAC STA310 board it created a question.. What is the name of the company you're having the PCB's made? They look good enough, for me anyway.
 
Re: I Have STA310 for sale

brettcoupe said:
Hi Guys
I have a stock of STA310's arriving in a few weeks
I will have approx 20 avail for sale at $15.00 USD each + shipping from Australia if you are interested in them please let me know

Cheers
Brett
Wow! Perfect, I almost gave up on DD for my preamp project.
I would like to order 3 is you can spare them. (Or is that too greedy :)
 
Hello brett,

June 2003.
Not sure if it is more complete to yours jan 2003 since it's still marked preliminary, but at least it's newer :) I will mail it to you.

I gathered some more information by accident searching for some dvb-t receiver chip info.
It appears it is using the same core (ST20) and some decoding logic. This chip also decodes DD and DTS into 3 pcm streams.
But in these datasheets there is some more explaining considering the clocks and DTS registers. It helped me on some point in the right direction.
Search for the following datasheets and the corresponding STi5518 chip from ST. Some strange language sites involved, but links are pretty obvious.

sti5518_revD.pdf
sti5518b-rm_1.pdf

Concerning the clock from out mail exchange . I made some progress, In the datasheet it is stated that any integer multiple is valid for the PCM clock.
Since the internal spdif pll generated 12.288MHz it would work with 24.576MHz at a higher times fs. Well it worked.
Just adjusting the PCM divider to value 3, thus dividing by 4, it gave the dac a right stream of I2S data and the voices were singing.
This is a increase from internal generated 128fs at 4x oversampling to 256fs at 8x oversampling externally generated by a oscillator.
So this should work with 24/48 at 256fs and 24/96 at 128fs. These both rates should suffice for DD, DTS and DVD-A.

I'll include a part of my code from my test software I wrote in how I got the sound out a 24/48 DTS stream.

Code:
            WriteDevice(&H10, &H1, ftStatus)    'Soft Reset
            WriteDevice(&H2B, &H8, ftStatus)    'BreakPoint
            WriteDevice(&H3A, &H0, ftStatus)    'Clock Command

Wait until 0xFF holds 0x01 - Raminit

            WriteDevice(&H7, &HFF, ftStatus)    'Interrupt 01
            WriteDevice(&H8, &HFF, ftStatus)    'Interrupt 02
            WriteDevice(&HB5, &H1, ftStatus)    'PLL Audio Enable
            WriteDevice(&HC, &HB, ftStatus)     'Sin Setup
            WriteDevice(&HD, &H2, ftStatus)     'CAN_Setup
            WriteDevice(&HE0, &H1, ftStatus)    'AutoDetect

            WriteDevice(&H4C, &H5, ftStatus)    'Stream
            WriteDevice(&H4D, &H6, ftStatus)    'Decode
            WriteDevice(&H54, &H3, ftStatus)    'PCM Divider
            WriteDevice(&H55, &H23, ftStatus)   'PCM Conf
            WriteDevice(&H12, &H11, ftStatus)   'PLL Control
            WriteDevice(&H1D, &H0, ftStatus)    'PLL Command

            WriteDevice(&H72, &H1, ftStatus)    'Run
            WriteDevice(&H13, &H1, ftStatus)    'Play

            WriteDevice(&H68, &H1, ftStatus)    'Decode LFE
            WriteDevice(&H66, &H5, ftStatus)    'ByPass Output filter and rounding

These commands are the only thing I do. It does no autodetect or anything fancy.

There is noting more to the clock arrangements and the PLL that are in need of any configuration. Both fractional PLL's configure them self apparently. At least the system PLL. I'm not using the Audio PLL.

Hope this helps.