More progress on my 5.1 system

Hello. No problem at all! Ah yes, I found the same ebay vendor, I think. I will go with them if things like VAT are ok (brexit sucks). I noticed in your other thread that you were planning to make the schematics open-source. Is that the case? Also, could you link me to the programmer’s manual? Thanks.
 
It's still my plan, but I don't quite have a working schematic yet. I mean, it worked, but there were a few glitches I need to address in the next iteration before I release it.

Send me a DM or an email or something and I can fire you off what I have.
 
Send me a DM or an email or something and I can fire you off what I have.
Why DM and PM ?

Why do you not share openly on the forum any information you have in excess of what is already available ? That was the way I did when you asked me for help in your "other" thread below ?

https://www.diyaudio.com/community/threads/lm3886-5-1-build.393554/
I noticed in your other thread that you were planning to make the schematics open-source. Is that the case? Also, could you link me to the programmer’s manual? Thanks.
For the time being, I have shown my schematics in post #8 of the "other" thread. The schematic has been verified in the thread/post below.

https://www.diyaudio.com/community/...ces-opinions-ideas.381423/page-3#post-7026769

Programming guide attached. Enjoy.
 

Attachments

Last edited:
I received the following question(s) from @duanestorey via PM that I'm answering below.

I'm not sure if it's just because of my Amazon firestick, but every once and a while the unit triggers the interrupt with stream sel / decode sel of 3 3..In the datasheet, that says stereo PCM.
No, the datasheet clearly says that STREAMSEL / DECODESEL is how you select the decoder while DTYPE indicates the S/PDIF audio format once decoding has started.

For example, my DVD player puts out STREAMSEL / DECODESEL = 3/3 every time I pause/stop the playback, but that doesn't mean there's PCM data in the stream.
But then it barfs and stops working. I do the reset procedure, but it never gets back into sync and the audio just plays garbage.. It's like it gets PCM on the line and can't handle it? I'm not sure.. It often happens when switching movies with Firestick and Netflix.. But once I see that 3 3, doesn't seem to matter what I do, but it craps out. Maybe that's just a random error when it doesn't understand the bitstream? Thanks.
Check using devices that transmit valid streams for the PLL to lock onto. I had a similar problem that was easily solved by using a better 3.3V supply.
 
But I also get the RST/LCK interrupt, which means there is a change of format, no? If says if you get RST/LCK, you need to soft reset the encoder. As soon as I do that with the 3/3, I get garbled audio.

The STA310.pdf says on RST: "The STA310 has detected a change in the incoming audio format. The soft Reset produce must be applied and the device must be re-initialized according to the new audio format detected. Registers DECODESEL (0x4d) and STREAMSEL (0x4c) contain the new audio format (1)". Which to me means in the interrupt I need to grab the DECODESEL and STREAMSEL registers, do a soft reset, then configure the encoder to 3/3, no? The documentation is confusing upon what you need to do here.
 
Also, in the PDF, it says 3/3 corresponds to Stereo PCM, which is why I'm confused.
Screenshot 2023-10-30 at 9.42.34 AM.png
 
But I also get the RST/LCK interrupt, which means there is a change of format, no? If says if you get RST/LCK, you need to soft reset the encoder. As soon as I do that with the 3/3, I get garbled audio.
Well, if you're so interested in debugging, you need to capture a reasonably long length of the S/PDIF bitstream, decode using bi-phase markcode and obtain the header information (read IEC61937-2 )to crosscheck/verify the same yourself. Altenatively, use a device that puts out a known bitstream, one that adheres to standards, for example a CD/DVD/BD player or computer.
The soft Reset produce must be applied and the device must be re-initialized according to the new audio format detected. Registers DECODESEL (0x4d) and STREAMSEL (0x4c) contain the new audio format (1)".......The documentation is confusing upon what you need to do here.

Also, in the PDF, it says 3/3 corresponds to Stereo PCM, which is why I'm confused.
Doesn't that mean that the new values for STREAMSEL and DECODESEL are automatically loaded for you into 0x4c and 0x4d by the autodetection algorithm ? I think that's fairly straightforward. If you've serviced the interrupt correctly, then check the bitstream by using a) another source b) another receiver.
 
Last edited: