Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

I2S Loopback programming for PSoC6

Kenshow
Level 8
Level 8
50 solutions authored 25 solutions authored 10 solutions authored

Hi all,

I make a CE which I2S in PSoC6 for CM4. This is a simple loop back program using DMA.

The environment used is as follows:

PSoC Creator 4.4

CY8CKIT-062-BLE

I2S format: 24bits, 2wordsChannels, 1bit Delay

    1.png

The circuit2.png

  3.png

DMA Settings

For Tx

4.png

For Rx

5.png

The observed waves and Rx buffer values:

  6.png

  7.png

Thanks,

Kenshow

Update main_cm4.c file in 2020/Dec/14

4 Replies
ravo
Level 5
Level 5
5 solutions authored 100 replies posted 250 sign-ins

 Dear @Kenshow ,

thanks for example. I tried to clone this demo to CY8CKIT062-WIFI-BT using CY8C6247BZI-D54. But it looks that it did not work. Is there any special another requirements ? For example I did not see MCLK pin connection...

Regards

Radim

0 Likes
Kenshow
Level 8
Level 8
50 solutions authored 25 solutions authored 10 solutions authored

Hi Radim,

 Unfortunately, I'm away from PSoC programming, so I can't answer your question right away. My advice would be to check I2S behavior with a simple program without DMA. If you can confirm the operation of I2S, then use DMA.

Best Regards,
Kenshow

 

0 Likes
Kenshow
Level 8
Level 8
50 solutions authored 25 solutions authored 10 solutions authored

Hi Radim,

The pin arrangement can be changed with Pins by PSoC Creator, so please check there. Either way, you should check the output waveforms from your PSoC to see if it's working.

Best Regards,
Kenshow

0 Likes
ravo
Level 5
Level 5
5 solutions authored 100 replies posted 250 sign-ins

Dear @Kenshow ,

thanks for answer. I would like to do audio-loopback test but on the analog side. So I have I2S D/A and A/D on same lines as you. But it also requires MCLK pin connection... I just wrote similar software in ModusToolbox but without DMA.

Regards

Radim

0 Likes