Bit rate indicator for I2S

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
 
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
 
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.
 
Please see excerpt from ES9038Q2M datasheet below. How do you know OP wasn't asking about the meaning in that context?
 

Attachments

  • Datasheet.jpg
    Datasheet.jpg
    441.3 KB · Views: 234
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?
 
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
 
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
hi 🙂
I visit the link but i could not saw the pictures and schematics? (safari, mac osx)