HSERIN/OUT Dec to HEX convertion problem..


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    If I understand correctly that each input character is in the range of zero to 9, then just add 48 to the outgoing character, this gives the correct ascii character to display on your terminal. so try:

    You get 7 = Bell, add 48 = 55 = 7 see link below

    http://www.asciitable.com/


    HSERIN char
    HSEROUT char+32

  2. #2
    Join Date
    Jul 2010
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by aerostar View Post
    If I understand correctly that each input character is in the range of zero to 9, then just add 48 to the outgoing character, this gives the correct ascii character to display on your terminal. so try:

    You get 7 = Bell, add 48 = 55 = 7 see link below

    http://www.asciitable.com/


    HSERIN char
    HSEROUT char+32
    Hi, I am receiving ASCII data bytes anywhere from 0 to 255. The results can display any
    ASCII character and Extended ASCII character from 0 to 255. Example: 142 172 2 16....I need to
    convert them into 8E AC 02 10...

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts