In SX Microcontrollers, SX/B Compiler and SX-Key Tool, nate wrote: Since the SX only works in binary format, I am assuming that what you are really saying is that you have a register that has a number that can be expressed as a hex number (eg: register holds %11111111 which is equal to $FF which is equal to 255) To output this number to Hyperterminal you would need to send the ASCII charactors '2' then '5' then '5'. So, first subtract 100 from the register, and count how many times you can do this without getting a result less than 100. That is your 100's count. Then subtract 10 from the register, and count how many times you can do this without getting a result less than 10. That is you 10's count. The remainder is your 1's count. Now send the 100, 10 and 1's count to a serial out routine. Remember you must convert to ASCII (Add $30) if using SASM Nate ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=102330#m102359 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)