Hello,
Is there anybody who has an Arduino based bit rate indicator for the I2S signal?
I have a 7-segment sample rate indicator with an Arduino Nano and would like some indication of the bit rate as well.
Does anyone have a schematic and code for such a bit rate indicator?
Just 3 LEDs would be fine. One for 16 bit, one for 24 bit and one for 32 bit.
hjhjazz
Is there anybody who has an Arduino based bit rate indicator for the I2S signal?
I have a 7-segment sample rate indicator with an Arduino Nano and would like some indication of the bit rate as well.
Does anyone have a schematic and code for such a bit rate indicator?
Just 3 LEDs would be fine. One for 16 bit, one for 24 bit and one for 32 bit.
hjhjazz
You would need to count the number of BCLK pulses in one LRCK (frame clock) period to get the bit-depth, (i.e. 16-bit, 24-bit, or 32-bit). Since for I2S there are two channels multiplexed into a single data line, the number of BCLK pulses per frame clock period with be twice the amount needed to convey all the bits per one channel. Thus, 32-bit I2S will have 64 BCLK pulses per LRCK period.
Bit-rate would be something different: Bit rate - Wikipedia
Bit-rate would be something different: Bit rate - Wikipedia
Last edited:
Counting the number of pulses won't give you the bit depth, just the frame size. You can have 16-bit data in 32-bit frames with only 16 active bits. You can also have 16-bit data in 32-bit frames with all bits active. Both would have a 16-bit bit depth.
Matter of definition. IMHO as a practical matter word size going into a dac includes any padding zeros.
Bit-depth of original source file is another matter. There are VST bit meters for that. A scope can be useful too.
Bit-depth of original source file is another matter. There are VST bit meters for that. A scope can be useful too.
The word size going into the dac is limited by the dacs internal register. Try shoving an incorrectly justified word into a PCM63 and see how that works out for you.
But according to you the bit depth is the framesize which it clearly is not otherwise the cd bitrate would not be 2x16x44100 but 2xwhateverframesizeyouchoosex44100.
I gave an example for 32-bit word size, that was the intention anyway. Obviously, not all dacs can accept that. I could have given other examples too, I guess.
Matter of definition. IMHO as a practical matter word size going into a dac includes any padding zeros.
Any padding is discarded. We have had 32bit per channel frames for at least 30 years, long before 32bit dacs. Bit depth has always been the active bits not the framesize.
You would need to count the number of BCLK pulses in one LRCK (frame clock) period to get the bit-depth, (i.e. 16-bit, 24-bit, or 32-bit). Since for I2S there are two channels multiplexed into a single data line, the number of BCLK pulses per frame clock period with be twice the amount needed to convey all the bits per one channel. Thus, 32-bit I2S will have 64 BCLK pulses per LRCK period.
Bit-rate would be something different: Bit rate - Wikipedia
Sorry!
Bit depth indicator then!
Still same question. 3 LED indicator anyone?
Almost every USB to I2S interface (like Amanero...) has output oins for indication of SR.
You can input that pins to arduino and with program output to some dyspaly?
.
But IF You want simple indication based on 3 LEDs. I think that Yu can use some simple IC and output specific combination of output sygnalas to each led?
like this one:
Amanero - wyświetlanie parametrow pliku - DIY - Audiostereo.pl
.
You can input that pins to arduino and with program output to some dyspaly?
.
But IF You want simple indication based on 3 LEDs. I think that Yu can use some simple IC and output specific combination of output sygnalas to each led?
like this one:
Amanero - wyświetlanie parametrow pliku - DIY - Audiostereo.pl
.
Bit depth indicator...
Well, before we get into that I suppose it would be helpful to clarify exactly what it is you want to know.
Do you want to know how many bits are coming into the dac, whether they are all useful bits or not? Or, do you want to know how many bits a piece of music was recorded at?
Hello.
Sorry to reply to an old thread, but I'm replying to help those who see it later.
I have achieved the bit depth indicator that is on the agenda in this thread by using SPLD.
It can be achieved with an easy to run and very inexpensive SPLD called GreenPAK.
I wrote a blog post about this, though it is written in Japanese since I am Japanese.
You can probably manage to read it with the help of DeepL translation.
https://blog.yokko-jp.com/?p=2428
Sorry to reply to an old thread, but I'm replying to help those who see it later.
I have achieved the bit depth indicator that is on the agenda in this thread by using SPLD.
It can be achieved with an easy to run and very inexpensive SPLD called GreenPAK.
I wrote a blog post about this, though it is written in Japanese since I am Japanese.
You can probably manage to read it with the help of DeepL translation.
https://blog.yokko-jp.com/?p=2428
This problem sounds like an application of a frequency->voltage converter and a few comparators...
hi 🙂Hello.
Sorry to reply to an old thread, but I'm replying to help those who see it later.
I have achieved the bit depth indicator that is on the agenda in this thread by using SPLD.
It can be achieved with an easy to run and very inexpensive SPLD called GreenPAK.
I wrote a blog post about this, though it is written in Japanese since I am Japanese.
You can probably manage to read it with the help of DeepL translation.
https://blog.yokko-jp.com/?p=2428
I visit the link but i could not saw the pictures and schematics? (safari, mac osx)
The images in my blog are delivered in WebP format, so if you are using an older version of MacOS or Safari, you may not be able to view the images.hi 🙂
I visit the link but i could not saw the pictures and schematics? (safari, mac osx)
- Home
- Source & Line
- Digital Line Level
- Bit rate indicator for I2S