How to connect an I2S peripheral to TWR K65F180M Board ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to connect an I2S peripheral to TWR K65F180M Board ?

跳至解决方案
1,131 次查看
balaji_ch
Contributor I

I am trying to stream audio from the TWR K65F180M to an external I2S device. I am unable to find the pins on the board .

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,001 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Balaji,

Pls see the table 11-47, there is only one I2S module for K65, the I2S signal list is displayed in table 11-47.

On the TWR-K65F180 board, there is not dedicated connector which can route the I2S signals, you have to use primary elavator board and connect the I2S signals out from primary elavator board.

Note that the DNP means "Do Not Populate", for example R131 and R133 are not populated, so the I2S0_RXD1 and I2S0_TXD1 can not be connected if you do not solder the resistors.

Hope it can help you

BR

Xiangjun Rong

pastedImage_2.png

pastedImage_1.png

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,002 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Balaji,

Pls see the table 11-47, there is only one I2S module for K65, the I2S signal list is displayed in table 11-47.

On the TWR-K65F180 board, there is not dedicated connector which can route the I2S signals, you have to use primary elavator board and connect the I2S signals out from primary elavator board.

Note that the DNP means "Do Not Populate", for example R131 and R133 are not populated, so the I2S0_RXD1 and I2S0_TXD1 can not be connected if you do not solder the resistors.

Hope it can help you

BR

Xiangjun Rong

pastedImage_2.png

pastedImage_1.png

0 项奖励
回复
1,001 次查看
balaji_ch
Contributor I

I have to connect another board(RPi3) to this K65F.  K65F (master) has to send some pcm samples via I2S to I2S enabled RPi3(slave).
Could you please correct me if I am wrong in the pin conncections?

BitClock of RPi3 to I2S0_Tx_Bclk of K65

LRClk of RPi3 to I2S0_Tx_FS
DIn of RPi3 to I2S0_Tx_D0


I am following the pinouts mentioned in this pdf
http://www.nxp.com/assets/documents/data/en/user-guides/TWRK65F180MUG.pdf 

0 项奖励
回复
1,001 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

BitClock of RPi3 to I2S0_Tx_Bclk of K65

LRClk of RPi3 to I2S0_Tx_FS
DIn of RPi3 to I2S0_Tx_D0

I think your above connection is correct.

BR

Xiangjun Rong

0 项奖励
回复
1,001 次查看
balaji_ch
Contributor I

Hi Xiangjun,

Thank you. :smileylaugh:

Using the following example
C:\Users\admin\Documents\SDK_2.1_TWR-K65F180M\boards\twrk65f180m\demo_apps\sai
I could see all the clocks on the Oscilloscope.
The example has 16KHz 16bit 2 Channel pcm samples and I could verify the following.
A21 pin = mclk = 6.144 MHz (384*16K)

A22 pin = bclk (aka serial clock)= 1 MHz (16*32*2)  even the samples are 16 bit . {The reason seems to be "In Master mode, word length is fixed to be 32. The number of valid data bits in the word can be set, but while computing the bit rate, it must be set to 32." as  per page 4 of  http://www.nxp.com/assets/documents/data/en/application-notes/AN4520.pdf  }
A23 pin = fs(aka lrclk) = 16KHz

0 项奖励
回复