satyakam Posted January 24 Share Posted January 24 Hello Sir, I want to use Analog Discovery 3 (AD3) as a SPI slave. is it possible? if yes, how? Thanks, Satya. Link to comment Share on other sites More sharing options...
0 attila Posted January 25 Share Posted January 25 Hi @satyakam SPI slave is not supported. It could be implemented with Pattern Generator 'ROM Logic' option but this would be a bit complicated, see: https://digilent.com/reference/waveforms_-_rom_logic Link to comment Share on other sites More sharing options...
0 Marco_s_indiotech Posted January 25 Share Posted January 25 Hi @attila, I've just read this post that interest me. I'm trying to communicate via SPI between a Raspbery Pi and the Analog Discovery 2. The Raspberry is the master of communication, so I'd like to use the AD2 as slave. From the Waveform I correctly receive data over SPI with the Protocol Analyzer tool. I'm trying to use the Waveform SDK to receive data and, after correctly received, send data over SPI. Is it possible to use AD2 as slave using SDK? Thanks in advance, Marco Link to comment Share on other sites More sharing options...
0 attila Posted January 25 Share Posted January 25 Hi @Marco_s_indiotech If you refer by slave to be able to respond on MISO, this is not supported. Decoding/spying on SPI communication is supported, see the WF SDK/ samples/ py/ Digital_Spi_Spy_DD.py Digital_Spi_Spy.py DigitalIn_Spi_Spy.py examples Marco_s_indiotech 1 Link to comment Share on other sites More sharing options...
0 satyakam Posted January 26 Author Share Posted January 26 Hello Attila, Thank you for the confirmation. Is there any plan in the near future to support it? Thanks, Satyakam. Link to comment Share on other sites More sharing options...
0 attila Posted January 29 Share Posted January 29 Hi @satyakam I'm working on it. Link to comment Share on other sites More sharing options...
0 attila Posted January 30 Share Posted January 30 Hi @satyakam Link to comment Share on other sites More sharing options...
0 satyakam Posted February 5 Author Share Posted February 5 Hello Attila, Thank you for the prompt solution. I tried to use the beta version with AD3 as slave, it is keep sending the first byte repeatedly instead of sending the pattern in the response. I was trying to use it for 32bytes data transfer. I have attached the pic for your reference. I used MISO with 16bytes but it behaves the same for 32bytes. Thanks, satyakam. Link to comment Share on other sites More sharing options...
0 attila Posted February 6 Share Posted February 6 Hi @satyakam The MISO words are returned in order starting with the first one, after each CS activation. In your case the CS is activated multiple times for one word length every time. You could set the Select to none so the words are returned in order regardless of CS. Link to comment Share on other sites More sharing options...
0 satyakam Posted February 6 Author Share Posted February 6 Hello Attila, Yes, you are right. The CS is activated every byte and that is how my settings are. After making the Select to None, it works as expected. Thank you for adding the support for the spi slave in the Waveform software. Satyakam. attila 1 Link to comment Share on other sites More sharing options...
Question
satyakam
Hello Sir,
I want to use Analog Discovery 3 (AD3) as a SPI slave. is it possible? if yes, how?
Thanks,
Satya.
Link to comment
Share on other sites
9 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