Delay between frames on LPSPI

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

Delay between frames on LPSPI

ソリューションへジャンプ
1,672件の閲覧回数
Grzechu81
Contributor I

Hello,

 

uC: MWCT2016S (S32K312)

When using 32 bit data width for ExternalBuffer in SPI Channel configuration I've noticed that there is still a 6us delay between 4 bytes frames on SPI (see attachment).

Interesting thing is that delay length is the same as frame length (6,23 us).

I am using Spi_SyncTransmit API.

How to get rid (if possible) of this delay ?

0 件の賞賛
返信
1 解決策
1,642件の閲覧回数
PavelL
NXP Employee
NXP Employee

Hi @Grzechu81 ,

you need to setup LPSPI CCR1 register - field PCSPCS - please find detailed description in S32K3 RM rev9, chapter 70.6.1.13 .

Best regards,

Pavel

元の投稿で解決策を見る

2 返答(返信)
1,643件の閲覧回数
PavelL
NXP Employee
NXP Employee

Hi @Grzechu81 ,

you need to setup LPSPI CCR1 register - field PCSPCS - please find detailed description in S32K3 RM rev9, chapter 70.6.1.13 .

Best regards,

Pavel

1,621件の閲覧回数
Grzechu81
Contributor I

Yes, this was it, I was using default timings in Tresos SPI configuration because i thought they are not taken into consideration since I'm not using CS driven by SPI engine but the GPIO.

Thanks a lot, have a nice day

 

0 件の賞賛
返信