How to create SPI Master - multi slave base on Daisy-chain with SDK 2.2 and KV5x

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create SPI Master - multi slave base on Daisy-chain with SDK 2.2 and KV5x

1,467 Views
nguyenthap
Contributor I

Dear all,

I'm new member of ARM dev with SDK 2.2, i need create SPI master -multi slave base on Daisy -chain in order to connect multi device of KV5x series. Can you help me, as following:

1. diagram to communicate multi KV58 kit as master - slave schematic.

2. Sample code base on SDK 2.2 to do that.

Thanks and best regards,

Labels (1)
0 Kudos
1 Reply

1,077 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Nguyen,

Regarding your question, frankly speaking, I do not know how you connect the spi modules in Daisy -chain mode. In general, ONE master SPI can connect with multiple slave spi modules with the PCS pin as select pin.

This is hardware connection for KV family:

1)connect the master SCK to all the slave SCK pins.

2)connect the master SOUT pin to all slave SIN pins.

3)connect the master SIn pin with all slave SOUT pins.

4)connect the master PCSx to each slave SS pin.

As you know that the SPI of KV5x has multiple PCS pins for example SPI0_PCS0,SPI0_PCS[3:1],SPI0_PCS4, SPI0_PCS5, you can connect SPI0_PCS0 to SS pin of slave SPI0, connect SPI0_PCS1 to SS pin of slace SPI1, connect SPI0_PCS2 to SS pin of slace SPI2....

For the slave SPI, when the SS pin of slave spi is high, the SOUT pin of slave SPI is in high impedance.

Hope it can help you

BR

Xiangjun rong

0 Kudos