In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: We (EFX-TEK) have several products that use the Parallax AppMod protocol so I, too, am comfortable using a command header to sync communications. Ultimately, though, you may want a device that can do serial and something else at the same time (e.g., PWM leds, motors, etc.). I've attached the framework that I use when starting a new EFX-TEK accessory; it uses interrupt-driven serial over one wire (open true baud mode) and takes care of receiving the header from the host which starts with "!", is followed by two alphas, an board address (%00 to %11), and then a command character. The program may be a little advanced from your point-of-view now, but as you study it (I always try to code cleanly and use good comments) it should start to come together. BTW... most of the assembly segments that are in the program I learned from exploring the code generated by the SX/B compiler. One final note: the framework is intended for the SX20 and SX28 -- it would require updates to the transmit UART for the SX48. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=316547#m317395 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)