In SX Microcontrollers, SX/B Compiler and SX-Key Tool, aa200orion wrote: I am trying to send a word variable using SEROUT. Below is the code. Is there a better way to send a word variable instead of breaking it up as shown below? Is there a way to break a word into upper and lower bytes? SEND_CHARTCODE_TO_AP: eyechartcode = $4164 ' 64 = "d" and 41 = "A" ' test data SEROUT RB.1, N9600, eyeChartcode eyeChartcode = eyeChartcode SHR 8 SEROUT RB.1, N9600, eyechartcode PAUSE 1000 RETURN It works, just looks awkward. Thanks, Jimmy ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=388567 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)