Use S32K148 's LPSPI as SLAVE, What is the minimum delay time between CS and SCK.

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

Use S32K148 's LPSPI as SLAVE, What is the minimum delay time between CS and SCK.

Jump to solution
2,343 Views
lixin_zhou
Contributor II

HI supporter, 

I have a question.I use IMX8 SPI as master, S32K148 LPSPI as SLAVE(use DMA).CS & SCK delay time is 100ns. 

When transmission starts, S32K148 always sends data 1 byte slower.

I think maybe CS&SCK delay is too short,But I didn't find minimum delay time in datasheet.

Best regards.

Tags (2)
0 Kudos
Reply
1 Solution
2,300 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

tLead Enable lead time(PCS to SPSCK delay) can be found in Table 46 of datasheet.

tLead.png

Figure 21. LPSPI slave mode timing (CPHA = 0).png

 

View solution in original post

0 Kudos
Reply
7 Replies
2,339 Views
lixin_zhou
Contributor II

here is picture for question

0 Kudos
Reply
2,328 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi lixin,

Do you want to send data 0x0D from slave to master while master sends the first byte to slave?

spi_cs_sck.PNG

If so, please try to fill the data buffer of slave before the master CS pull low and send out the CLK.

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
2,321 Views
lixin_zhou
Contributor II

HI Robin ,

I want send 0x0D from slave to master,but I already fill data buffer before CS pull down.

I fill data buffer at A2(BLUE CIRCLE)

lixin_zhou_0-1641543806612.png

I use another chip as the SPI master, CS and SCK delay time is about 70us,the question didn’t occur.

lixin_zhou_1-1641544423245.png

So,Could you tell me when use S32K148 's LPSPI as SLAVE, What is the minimum delay time between CS and SCK? I didn't find it in the datasheet.

 

Best Regards.

0 Kudos
Reply
2,301 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

tLead Enable lead time(PCS to SPSCK delay) can be found in Table 46 of datasheet.

tLead.png

Figure 21. LPSPI slave mode timing (CPHA = 0).png

 

0 Kudos
Reply
2,293 Views
lixin_zhou
Contributor II

HI Robin,

     Could you send me a copy of S32K-DS? 

     I only have S32K-RM .

 

    Best Regards.

lixin_zhou_0-1641802654390.png

 

    

0 Kudos
Reply
2,288 Views
Robin_Shen
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
2,278 Views
lixin_zhou
Contributor II

HI Robin,

Thanks a lot!

 

Best Regards.

0 Kudos
Reply