In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: Samuel, The SX/B shiftin/out is only master mode. The SPI VP's are here (spim.src and spis.src) [url=http://www.sxlist.com/techref/ubicom/virtperf.htm]http://www.sxlist.com/techref/ubicom/virtperf.htm[/url] The M/LSBPRE/POST are handled by setting up a cmd byte from spis.src: ; SPIS supports 4 commands, specified by the 4 MSBits of the ; SPIS_CMD byte: ; ; $1 - GET BYTE in SLAVE mode, define FALLING edge ; $5 - GET BYTE in SLAVE mode, define RISING edge ; $9 - SEND BYTE in SLAVE mode, define FALLING edge ; $D - SEND BYTE in SLAVE mode, define RISING edge ; from spim.src ; SPIM supports 4 commands, specified by the 4 MSBits of the ; SPIM_CMD byte ; ; $3 - GET WORD in MASTER FAST mode, define FALLING edge; ; $7 - GET WORD in MASTER FAST mode, define RISING edge; ; $B - SEND WORD in MASTER FAST mode, define FALLING edge; ; $F - SEND WORD in MASTER FAST mode, define RISING edge. ; However, if you only need master mode, SX/B is much simpler to use. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=103788#m103801 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)