In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: SEROUT only works with bytes so it's best that you encapsulate it in a subroutine and then call it. For programs that don't use interrupts you can code the subroutine like this: [code]SUB TX_BYTE SEROUT TX, Baud, __PARAM1 ENDSUB[/code] And, of course, it's good practice to define your serial output pin using the PIN declaration, and your baud rate as a constant (see the SX/B help file). Now you can do this: [code]TX_BYTE eyechartcode_LSB TX_BYTE eyechartcode_MSB[/code] This assumes that you've defined the variable using Word; the compiler will create the _LSB and _MSB [byte] variables automatically. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=388567#m388570 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)