In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Rsadeika wrote: I have seen, in other discussions, where the shiftin/shiftout (shift*) command can be used to simulate(?) an SPI protocol. Now, I am wondering if something like that can be done in SX/B. It would be nice if it could be a master/slave multiples. Meaning, master with many slaves or multiple masters and slaves ... After looking at the asm code for SPI, I noticed that it uses four pins to accomplish the SPI protocol, the shift* commands can only address two pins, one of which is set up as a clk. Also, what would it take to get the transfer rates up to the one meg level. So, is the answer no, it cannot be done with shift* commands, or will it do it, in a very limited usefullness situation. If it is possible, then could it be done within an interrupt, or does this mess things up for other commands or the program itself. This seems like it could be a nice solution, no messing around with resistors, just plug wires into the selected pins, and off you go. Has anybody done something like this, and is willing to share some example code. Or, will the next release of SX/B have the SPI thing covered, and I just sit on my hands till then LOL. Any ideas or input would be appreciated. Thanks Ray ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=107874 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)