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,
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