This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello everyone,
On a custom board I have a TMS320F28335 micro controller and a flash SPANSION S25FL512S
The two devices are connected through SPI
The F28335 is configured with CPOL = 1 CPHA = 0 ; FIFO disabled ; interrupts disabled ; 8 bit mode for CHAR
My goal is to read the id of the flash to make sure everything is going well
Here's in pseudo-code what I do
1 - Drive CS low (STEA) = 0
2- write the command read id RDID 9F to TXBUF
3- wait for the INT FLAG to be 1
4- dummy read the RX BUF to clear the flag
5- dummy write 0 to TXBUF to get the data from the slave
6- read RXBUF
7- Drive CS high = 1
Now what I see on the oscilloscope is that as soon as (2) is executed, CS goes back to HIGH
(on its own! the code never asks it to do it)
Is there a setting (to disable this behavior) that I missed ?
Regards,
Clement
Thank you for your answer and the suggestion that I'll follow.
Why is it NOT written anywhere in the SPI documentation for this processor ? or did I miss it ?
Regards,
Clement
Glad to hear that everything works as expected.
I will file a ticket to make sure that the docs are updated to be more clear.
Regards,
Mark