In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Sparks-R-Fun wrote: T&E Engineer, Any unused temporary byte variable that is not altered by the ISR should work in place of tmpB3. Yes, I expect you will still need the Hex_Digit DATA statement. Good call! I expect that there is still a LOT of work you will need to do to get everything running as you would like. One thing that I did notice upon taking a second glance at your program is that the SendByte subroutine will probably need to be replaced as it currently sends data to the serial port. You may not even need it! For displaying the day you can probably get away with the following (shown only for Monday and Tuesday). [CODE] Monday: Message1(PosDay0) = $4D ' M Message1(PosDay1) = $6F ' o Message1(PosDay2) = $6E ' n Goto Finish Tuesday: Message1(PosDay0) = $54 ' T Message1(PosDay1) = $75 ' u Message1(PosDay2) = $65 ' e Goto Finish[/CODE] This assumes that you have defined some constants earlier in the program like the following:[CODE]STARTOFDAYENTRY CON 20 ' Start position of the Day Entry PosDay0 CON STARTOFDAYENTRY ' Start position of the Day Entry PosDay1 CON STARTOFDAYENTRY + 1 ' next character position PosDay2 CON STARTOFDAYENTRY + 2 ' next character position[/CODE] Doing this allows you to alter the day position simply by changing the STARTOFDAYENTRY constant and recompiling! Finally, I noticed that your rewrite of the StringWriter subroutine references Message1 in both branches of the IF...THEN statement. The second reference should be to Message2 if you indeed keep two separate messages. I hope this helps! - Sparks ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=183305#m183496 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)