PDA

View Full Version : Rs232 Hex Char



brainless
- 1st March 2018, 03:44
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

mpgmike
- 1st March 2018, 06:15
We can't help until we know what you are already doing. Please post your code, including Configuration and Special Function Registers.

aerostar
- 1st March 2018, 11:47
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.

Charlie
- 1st March 2018, 13:07
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?