In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Capt. Quirk wrote: I tried those ideas and the one that worked the best was "SWAP", it did exactly what I needed. The "mask" versions with or without the "SWAP", didn't work. The masking always changes the data by adding "0000" to one side or the other and by the last instruction you end up with %0000_0000 and no data. Swap did it very neatly, if I started with %0010_1000 the high nibble (%0010) would go out rb.4 - 7 and then after "SWAP" the low nibble (%1000) would go out. The problem with SWAP is when you need the other 4 RB pins connected too some other device, can I declare those 4 data bus pins (RB.4 -.7) as an array? and if so can somebody post an example? Also Basme said he thought the 4 RA pins were actually 8 bit, but in the SX 28 data sheet it talks about the SX as an 8 bit processor that uses 12 bit words, so does that mean RA is only 4 bit. And what does it's pins 0 thru 3, pass the LSB or MSB? Thanks ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=161442#m162061 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)