In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Sparks-R-Fun wrote: Rsadeika, In the Help file under Reference | Definitions | Variables you should find a table describing the variable space differences between the different SX versions. I recommend that you define your UART variables in the following way: [CODE]' ------------------------------------------------------------------------- ' Variables ' ------------------------------------------------------------------------- 'This creates a bank to be used with serial serial var Byte (16) tx1Count var serial(0) tx1Divide var serial(1) tx1Lo var serial(2) tx1Hi var serial(3) rx1Count var serial(4) rx1Divide var serial(5) rx1Byte var serial(6) tx2Count var serial(7) tx2Divide var serial(8) tx2Lo var serial(9) tx2Hi var serial(10) rx2Count var serial(11) rx2Divide var serial(12) rx2Byte var serial(13) ' -----------------------[/CODE] Then change your variable references in each subroutine accordingly. What this should do is provide each UART with its own set of independent variables that are all in the same 16-byte array (or BANK). I have not tested this but hopefully it will start you in the right direction. - Sparks ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=182347#m182699 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)