Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

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

cross mob
shankaragurur_5
Employee
Employee
25 sign-ins 5 replies posted First reply posted

Please let me know nay working I2s code examples for psoc 4343w

0 Likes
4 Replies
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored
0 Likes
shankaragurur_5
Employee
Employee
25 sign-ins 5 replies posted First reply posted

Thanks @Ekta_N ,

I have tried all of these above examples , and failed start cyhal_i2s_start_tx(&i2s) , ended in terminate main

I have tried example in psoc creator which working example , i need similar working code here , i need ported code from psoc creator to MTB

0 Likes
shankaragurur_5
Employee
Employee
25 sign-ins 5 replies posted First reply posted

what should be the connection on PSoc 4343W

->is it P5_1,2,3  for sck,data,sync line , 

->are we supposed to enable i2s0 or i2s1 ?

->if we  enable i2s , are we still suppose to connect or link any line like P5 or P11 pins ?

0 Likes
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hi @shankaragurur_5 

->are we supposed to enable i2s0 or i2s1 ?

Since the code example I shared uses HAL you would not need to enable I2S_0 or I2S_1 in the device configurator. When using HAL it is not required to use device configurator.

->is it P5_1,2,3  for sck,data,sync line

The code example is created by default for the CY8CKIT-062-WIFI-BT board, and you would need to make the following connections:

Ekta_0-1692687761378.png

If you are using the CY8CKIT-062-WIFI-BT then you would need to use the CY8CKIT-028-TFT shield along with the board. The shield contains the audio codec required for the working of this code example.

In case you are using any other board you would need to use a third party module Pmod I2S2: Stereo audio input and output .
Can you confirm that you are using one of these for testing the example?

This may be the reason that the example is failing.

->if we  enable i2s , are we still suppose to connect or link any line like P5 or P11 pins

The code takes care of linking the I2S pins to port 5

Ekta_1-1692688080857.png

 

 

Best Regards
Ekta

 

0 Likes