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

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

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

869 Views
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

Labels (1)
Tags (4)
0 Kudos
Reply
1 Reply

549 Views
vicentegomez
NXP TechSupport
NXP TechSupport

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

I hope this will help you.

0 Kudos
Reply