Communicating with SPI slave driver without using ChipSelect pin

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Communicating with SPI slave driver without using ChipSelect pin

5,664件の閲覧回数
jaikumar81
Contributor II

Hello 

 

We are using custom board  S32k148-100 pin for our development activities.

We have a communication requirement to communicate with SPI master(on another chip- exeynos) with SPI slave on S32k148.

We notice that, master is always setting CS(chip select) Pin as high due to which, we are unable to receive any changes on the SPI slave i.e the DMA configured on SPI slave has not triggering DMA complete call back. While on the SPI master (from exeynos) we could see Master clock with 500kbps and data on MOSI line too.

Could you please share the application and changes in the driver required  so that LPSPI  slave communicates with SPI Master with SPI Slave 3 pins(MOSI, MISO and Clock).

 

Regards,

Jayakumar Appari

0 件の賞賛
返信
4 返答(返信)

5,605件の閲覧回数
jaikumar81
Contributor II

Thanks Daniel.

0 件の賞賛
返信

5,645件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Jayakumar,

The LPSPI module can work as a Slave without PCS if the CFGR1[AUTOPCS] is set.

It has some restrictions as you can see in this description:

danielmartynek_0-1606132446739.png

 

BR, Daniel

0 件の賞賛
返信

5,635件の閲覧回数
jaikumar81
Contributor II

Hi Daniel

Thanks for sharing the insights.

Would like to understand, how the below configuration can be synchronized w.r.t master data.

jaikumar81_0-1606215163481.png

Kindky share your  inputs.

 

Best Regards,

Jayakumar Appari

0 件の賞賛
返信

5,619件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Jayakumar

You need to configure the master to have the required delay, at least 4 cycles of the prescaled functional clock

 

Regards,

Daniel

0 件の賞賛
返信