Lee-InSeong Posted March 26, 2023 Share Posted March 26, 2023 Hello I want to control the select signal in SPI. How can I do set the select signal in high state during sending the data. I want to make the select signal high state in the rest time. In first figure, it is the setting in my setup. The next one is the result of my result. But, I want to write my data like 'h0000, h0001, h0002, h0003' separately with little delay. How can I get the switching select signal like third figure. I want to get when I send 'h0000', select signal's state low and then, little time state high. And then next sending 'h0001' select signal's state low and little time state high. I don't know well in analog discovery2. please help me.. Thank you. Link to comment Share on other sites More sharing options...
0 attila Posted March 27, 2023 Share Posted March 27, 2023 Hi @Lee-InSeong Separate transfers are needed. With the newer software version the CS is activated by firmware: With older sw version use:Start() Write(16, 0) Stop() Start() Write(16, 1) ... Link to comment Share on other sites More sharing options...
0 Lee-InSeong Posted April 3, 2023 Author Share Posted April 3, 2023 Thank you @attila Your advice has proven invaluable to me. I can solve my problem. attila 1 Link to comment Share on other sites More sharing options...
Question
Lee-InSeong
Hello
I want to control the select signal in SPI.
How can I do set the select signal in high state during sending the data.
I want to make the select signal high state in the rest time.
In first figure, it is the setting in my setup.
The next one is the result of my result.
But, I want to write my data like 'h0000, h0001, h0002, h0003' separately with little delay.
How can I get the switching select signal like third figure.
I want to get when I send 'h0000', select signal's state low and then, little time state high.
And then next sending 'h0001' select signal's state low and little time state high.
I don't know well in analog discovery2.
please help me..
Thank you.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now