Delay between frames on LPSPI

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

Delay between frames on LPSPI

Jump to solution
2,456 Views
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 Kudos
Reply
1 Solution
2,426 Views
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

View solution in original post

2 Replies
2,427 Views
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,405 Views
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 Kudos
Reply