Timeline for SPI between Master arduino and Slave arduino
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 16, 2023 at 6:04 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Jan 6, 2021 at 16:51 | comment | added | anon | As far as I understand SPI communication, Slave cannot send data to Master without Master initiating the communication. Typically, Master sends a dummy data so that it can receive a response from Slave. So Master needs to know how many bytes to receive and send dummy data to Slave as many times to get the response. | |
| Jan 2, 2021 at 22:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Dec 17, 2020 at 3:00 | history | tweeted | twitter.com/StackArduino/status/1339405133747277826 | ||
| Dec 2, 2020 at 14:47 | review | Close votes | |||
| Dec 17, 2020 at 3:06 | |||||
| Dec 2, 2020 at 13:42 | comment | added | Peter Paul Kiefer |
At first: spi_port |= (1<<SS); after the return wil not work. You'll never reach the line. Why do you initialize spi_data_reg = 0;? Have you set the master to input like spi_data_direc=(1<<MISO); elsewhere? I did not yet programmed SPI communications with the low level api, so I do not know if one of these could be the problem. But as no one else repsonded ... Just some ideas; better than nothing.
|
|
| Dec 2, 2020 at 10:12 | history | asked | Kunal | CC BY-SA 4.0 |