In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote: That's actually quite simple: create a subroutine to do your SERIN and then call it twice. The SX28 runs fast enough that it will be able to deal with the variables in between transmissions. As of version 1.3 you can use subroutines like functions in other languages: myVar1 = GETBYTE myVar2 = GETBYTE Here's the code for the GETBYTE subroutine: GETBYTE: SERIN Sio, Baud, temp1 RETURN temp1 ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=80293#m80304 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)