In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: The only thing different about SX/B SEROUT is that it just accepts a single character. That's easy to adjust for, though, which is exactly what happens on the inside of the BASIC Stamp. I always put SEROUT into a subroutine so that it just gets compiled once, like this: [code]TX_BYTE: tmpB1 = __PARAM1 SEROUT TX, Baud, tmpB1 RETURN[/code] Then I have another subroutine like this to send strings (a literal string or DATA label with a z-string is passed): [code]TX_STR: tmpW1 = __WPARAM12 DO READINC tmpW1, tmpB1 IF tmpB1 = 0 THEN EXIT TX_BYTE tmpB1 LOOP RETURN[/code] This is pretty simple code, and with a fast oscillator you can serial data at incredibly fast rates (I routinely use 115.2K). ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=165270#m177578 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)