DA7212 I2S word length

3 posts / 0 new
Last post
thgu
Offline
Last seen: 4 months 2 weeks ago
Joined: 2019-01-14 09:26
DA7212 I2S word length

Hi,

I am working at DA7212 and I2S data. I have set DAI_WORD_LENGTH to 24-bits, but for me it seems like the DOUT is "only" 23-bit. The same happens if I set the length to 16-bits, the DOUT data seems to be 15-bits. I have attached a screenshot showing the I2S data. Yellow=BCLK, red=WCLK, blue=DOUT. Is it rigth that the DOUT is only 23-bits or am I missing something?

Attachment: 
Device: 
bmcadam
Offline
Last seen: 1 month 3 days ago
Staff
Joined: 2015-09-16 16:25
Hello,

Hello,

We should be producing the correct number of bits for the selected DAI_Word_Length. I would ensure that there is no DAI_Offset being applied, which is a setting in the DAI.

Regards,

thgu
Offline
Last seen: 4 months 2 weeks ago
Joined: 2019-01-14 09:26
Hi,

Hi,

Thank you for your answer.

I was wrong about the DOUT word length when DAI_WORD_LENGTH is set to 16-bits, the DA7212 DOUT output is 16-bits. When DAI_WORD_LENGTH is set to 20-bits, DA7212 also outputs 20-bits. But when DAI_WORD_LENGTH is set to 24-bits, we only get 23-bits of data. The same happens when we set DAI_WORD_LENGTH to 32 bit, we only get 23-bits of data.

DAI_FORMAT is set to I2S and DAI_FORMAT is set to default.

I have tried to run the same tests with DA7218, and there everything looks as expected, DOUT is 24-bits.

I have attached the script I use for DA7212.