Timeline for How to make an Arduino act reliably as an SPI slave?
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 18, 2022 at 16:30 | comment | added | Infinity Computers | Honestly, I never thought of putting the busyloop inside an interrupt. It's a great idea. | |
| Mar 18, 2022 at 16:29 | vote | accept | Infinity Computers | ||
| Mar 18, 2022 at 16:29 | comment | added | Infinity Computers | Yes, this looks like the way to go. I made a few modifications to the code and increased the crystal to 20MHz, and managed to achieve 1.5Mbps - although admittedly without any actual processing taking place, not even storing the value. So probably 1Mbps will be achievable. Thanks for the help! | |
| Mar 18, 2022 at 5:24 | comment | added | Nick Gammon♦ | See expanded reply above. | |
| Mar 18, 2022 at 5:24 | history | edited | Nick Gammon♦ | CC BY-SA 4.0 |
Added more explanations.
|
| Mar 18, 2022 at 3:31 | comment | added | Infinity Computers | I see. But the datasheet says that speeds of Fosc/4 are possible in slave mode, which would be 4MHz in this case. Would that be achievable if I removed the ISR and just used a busy loop? | |
| Mar 18, 2022 at 1:54 | history | answered | Nick Gammon♦ | CC BY-SA 4.0 |