I am working on a project that is using an ATtiny861A and this only has one SPI. If I want to hook up a radio and an external memory to the same SPI, will there be an issue sending data from the external memory to the radio? I know I can hook up the external memory and the radio to the same SPI but I am not sure if the radio will be able to send the data saved on the external memory.

  • \$\begingroup\$ Any particular radio? \$\endgroup\$ – Ignacio Vazquez-Abrams May 20 '15 at 14:52
  • \$\begingroup\$ It will be a CC2520 from Texas Instruments \$\endgroup\$ – Therusscher May 21 '15 at 17:39
  • \$\begingroup\$ I'm fairly sure you could run that as a master, making a multi-master system. \$\endgroup\$ – Ignacio Vazquez-Abrams May 21 '15 at 18:01

Your micro is the master and as such you can't get this type of bus to interact slave-to-slave. It's a case of reading the memory into the micro and then forwarding this to the radio i.e. the micro must buffer the data when sending it between slaves.

|improve this answer|||||
  • \$\begingroup\$ So they can communicate but the Micro-controller needs to hold the data before it is sent? Would this all be done in the coding? \$\endgroup\$ – Therusscher May 20 '15 at 14:11
  • \$\begingroup\$ Yes, it is done in the micro's coding \$\endgroup\$ – Andy aka May 20 '15 at 14:16
  • \$\begingroup\$ @Therusscher SPI being Master-Slave protocol, Everything must go through Master \$\endgroup\$ – Swanand May 21 '15 at 10:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.