SPI and chip select timing

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
legic_1490776
Level 5
Level 5
25 likes received 10 likes received First like received

In our application we are trying to use a flash chip that has the requirement that the CS line be raised shortly after the last bit is clocked in via SPI.  We try to raise the line directly after the SPI write command returns, but this is not fast enough for the peripheral and some fraction of the time, the command is ignored.

Is there any way to minimize the time between the end of the SPI write and our GPIO call to raise the line, beyond just making it be on the next line of the C code? 

0 Likes
1 Reply