OpenCores
no use no use 1/1 no use no use
Using I2S Master
by Unknown on Oct 19, 2006
Not available!
I'm trying to use the Opencores I2S master logic as the driver for my
test platform to generate test audio signals.

The core came configured with SCK = 2.77 MHz and WS(left/right clock)=
69.44 KHz.

I would like to be able to reconfigure the core to generate SCK=3.07MHz

and WS=48 KHz.

I played around with the conf variable but could not get the ratio I'm
looking for.

I read the documentation but I still cannot understand. An explanation
would certainly help.

According to the manual,
The sample rate is given by bit_rate/(RES * 2)

If I choose the sample rate to be 48 KHz, and the resolution is 20-bits,
the bit rate would be 1.92 Mbps.

However, the RATIO would then be calculated as follows.

RATIO= (wishbone_bus_clock - (sample_rate * RES * 8)) /
(sample_rate * RES * 4)

wishbone_bus_clock= 50 MHz
sample rate = 48 KHz
RES=20 bits

which would then be equal to ~22 (10110)
This is not giving me the values of 48KHz for WS and 3.072 MHz for
i2s_sck.

Could you please help?

Thanks,
cbr

Using I2S Master
by Unknown on Oct 25, 2006
Not available!
I know that there are atleast a few in this group who have used this core and know how to configure it. Can anyone be kind enough to help me out? Thanks, Cbr ----- Original Message ----- From: cbr_929rr at hotmail.comcbr_929rr at h...> To: Date: Thu Oct 19 06:18:42 CEST 2006 Subject: [oc] Using I2S Master
I'm trying to use the Opencores I2S master logic as the driver for
my
test platform to generate test audio signals.
The core came configured with SCK = 2.77 MHz and WS(left/right
clock)=
69.44 KHz.
I would like to be able to reconfigure the core to generate
SCK=3.07MHz
and WS=48 KHz.
I played around with the conf variable but could not get the ratio
I'm
looking for.
I read the documentation but I still cannot understand. An
explanation
would certainly help.
According to the manual,
The sample rate is given by bit_rate/(RES * 2)
If I choose the sample rate to be 48 KHz, and the resolution is
20-bits,
the bit rate would be 1.92 Mbps.
However, the RATIO would then be calculated as follows.
RATIO= (wishbone_bus_clock - (sample_rate * RES * 8)) /
(sample_rate * RES * 4)
wishbone_bus_clock= 50 MHz
sample rate = 48 KHz
RES=20 bits
which would then be equal to ~22 (10110)
This is not giving me the values of 48KHz for WS and 3.072 MHz for
i2s_sck.
Could you please help?
Thanks,
cbr




Using I2S Master
by Unknown on Oct 28, 2006
Not available!
I changed the conf ratio to "00001011", bypassed the WB_interface and it started working. The ACLK and LRCLK seemed to be what I expected. However, the SCLK was not. I used a FIFO to latch the data and read it out based on ACLK. Thanks. Cbr ----- Original Message ----- From: cbr_929rr at hotmail.comcbr_929rr at h...> To: Date: Wed Oct 25 01:52:50 CEST 2006 Subject: [oc] Using I2S Master
I know that there are atleast a few in this group who have used this core and know how to configure it. Can anyone be kind enough to help me out? Thanks, Cbr ----- Original Message ----- From: cbr_929rr at hotmail.com To: Date: Thu Oct 19 06:18:42 CEST 2006 Subject: [oc] Using I2S Master
> I'm trying to use the Opencores I2S master logic as the driver

for
> my
> test platform to generate test audio signals.
> The core came configured with SCK = 2.77 MHz and WS(left/right
> clock)=
> 69.44 KHz.
> I would like to be able to reconfigure the core to generate
> SCK=3.07MHz
> and WS=48 KHz.
> I played around with the conf variable but could not get the

ratio
> I'm
> looking for.
> I read the documentation but I still cannot understand. An
> explanation
> would certainly help.
> According to the manual,
> The sample rate is given by bit_rate/(RES * 2)
> If I choose the sample rate to be 48 KHz, and the resolution

is
> 20-bits,
> the bit rate would be 1.92 Mbps.
> However, the RATIO would then be calculated as follows.
> RATIO= (wishbone_bus_clock - (sample_rate * RES * 8)) /
> (sample_rate * RES * 4)
> wishbone_bus_clock= 50 MHz
> sample rate = 48 KHz
> RES=20 bits
> which would then be equal to ~22 (10110)
> This is not giving me the values of 48KHz for WS and 3.072 MHz

for
> i2s_sck.
> Could you please help?
> Thanks,
> cbr
>
>





no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.