In SX Microcontrollers, SX/B Compiler and SX-Key Tool, originator99 wrote: Great thanks Bean for the correction. I am really liking these SX chips. Here is the plan: 4 pin dip switch on both Tx and Rx side. In cases where user has more than one system, they can put each system on it's own "channel" by setting the dip switches to the same settings. 16 options for channels. On boot up, a VAR named ChanId loads in i/o bank C somehow. ChanId = RC? dips are connected to RC.0 - RC.3 ( trying to arrive at 11110000 if 0-3 are high.) If all 4 switches are in "high" position, the byte is recorded into ChanId as %11110000 Then, serByte gets the bytes as the come in, which will be either %00000001 or %00000011 + whatever the Tx ChanId is set to. serByte = RecByte 'goes sub and gets byte FinalByte = serByte - ChanId 'Deducts its ID back out If FinalByte = %00000001 Then 'move motor up IF FinalByte = %00000011 Then 'move motor down Is this a decent idea? ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=146108#m146128 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)