In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: I have only ever replied "do the work yourself" to those that are blatantly lazy. Clearly, you are not. That you seem sincere is the only reason why I'll spend my time helping you -- it's fun to help those that want to learn and I know you do. First things first: the IDE does not install the latest beta SX/B compiler and you will need that for my examples. You can get it (and support documentation) from a sticky thread at the top of the SX forum. This will clear the errors you had when running my program. Keep in mind that SX/B is free and changing almost daily so Parallax doesn't release a new installer unless there's a big change. SX/B 2.0 is still in a tiny bit of flux as we all work to wring the most out of it. As for your project... I do this kind of stuff all the time. Most of our (EFX-TEK) accessories are simple command processors that are told what to do by a master controller. They can even report information back if instructed to do so. Have a look at what I've attached. It uses a very simple protocol to control relays and report their status. Once you get this working you can easily expand on it. Now, if part of your expansion ever includes things like PWM control of outputs you will have to update the program to use interrupts. When you get there I will happily show you how; today I'm working on a new EFX-TEK accessory program that uses interrupt-driven serial comms and can do things in the "background" while the foreground is handling other tasks. Start simple. Get this going, then expand on it to build your confidence. Once you have that licked then you can tackle bigger things. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=372213#m372459 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)