Rs232 Hex Char


+ Reply to Thread
Results 1 to 4 of 4

Thread: Rs232 Hex Char

  1. #1
    Join Date
    Feb 2018
    Posts
    3

    Default Rs232 Hex Char

    Hi to all

    To this time i have some troubles to send some
    Hex chars. I'm using a 16f628a, 9600 bauds
    Most of the chars print whitout troubles however
    Chars $04, $40, $A2, $D6,$13 don't work, on the terminal shows 00 or empty. The serial configuration as fine. But i can't understand the reason. The realterm software and pic are setting properly. I aprecciate any advice about this issue.
    Best Regards

  2. #2
    Join Date
    Apr 2014
    Location
    Northeast
    Posts
    252

    Default Re: Rs232 Hex Char

    We can't help until we know what you are already doing. Please post your code, including Configuration and Special Function Registers.

  3. #3

    Default Re: Rs232 Hex Char

    On Realterm - display tab - have you chosen Display as Hex + ASCII ?

    $04 is technically an unprintable character - it means "End of Transmission"

    https://www.ascii-code.com/

    Also it depends on the font that is chosen as to what will be shown.

  4. #4

    Default Re: Rs232 Hex Char

    Quote Originally Posted by brainless View Post
    Hi to all

    To this time i have some troubles to send some
    Hex chars. I'm using a 16f628a, 9600 bauds
    Most of the chars print whitout troubles however
    Chars $04, $40, $A2, $D6,$13 don't work, on the terminal shows 00 or empty. The serial configuration as fine. But i can't understand the reason. The realterm software and pic are setting properly. I aprecciate any advice about this issue.
    Best Regards
    For starters, most of these are either control codes (which don't print anything), or codes that don't exist in ASCII at all (anything bigger than $7F). The only exception is $40 which is "@" . Are you sure that one does not print?
    What were you expecting to happen?

Similar Threads

  1. Replies: 2
    Last Post: - 28th February 2014, 00:27
  2. TTL magnetic card reader reads but unprintable char
    By dima shawahneh in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th April 2010, 13:57
  3. rs232
    By rondo2 in forum General
    Replies: 20
    Last Post: - 1st July 2009, 01:06
  4. Char. LCD and 18F452 on 20 MHz not work
    By samettin in forum General
    Replies: 11
    Last Post: - 28th July 2008, 09:59
  5. ASCII char shiftout... Possible or NOt?
    By Srigopal007 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th September 2004, 20:28

Members who have read this thread : 18

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

Tags for this Thread

Posting Permissions

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