How to check SPI in 'After SCK Delay' for Kinetis K60

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to check SPI in 'After SCK Delay' for Kinetis K60

1,337 次查看
yanam
Contributor II

Hi


I have set the 'Pre' and 'Post' SCK delay to 4 (b01) which takes care of PCS delay before and after SCK. However while accessing a second chip on the same SPI bus, immediately with another PCS, causes the delay problems wherein the another chip select goes permanently low. This is worked around using a simple for() delay loop between two transactions.


However that is non-portable. Is there any bit which I can poll to check the completion of the internal delay (post) and the respective PCS has gone high. Also this post delay is affecting the performance of the software wherein the lowest delay is 2 bus-clocks without prescalars.


Regards,

Yogendra

标签 (1)
标记 (4)
0 项奖励
回复
1 回复

1,017 次查看
vicentegomez
NXP TechSupport
NXP TechSupport

Hi Yogendra I have attached a sample mcode for the SPI.

I hope this will help you.

0 项奖励
回复