??? 01/10/08 00:05 Read: times |
#149206 - How common is 2 Byte ASCII HEX? |
I know I am not a programmer and hobby'ing does not count for much.
But writing code for my little project I have been following a technical document where it says each byte will be transmitted as 2 byte ASCII HEX! It took me some time to figure what was meant. Only today speaking with a programmer did I find out that as well as splitting the lower and upper four bits prefixing with 0011 to provide ASCII characters, if the 4 bits are over 9 (dec) then it becomes prefix with 0101 to give A, B, C etc. How common is this, I guess as in my project we are dealing with serial data that could be viewed on a terminal etc., but wonder about the wider area. Cheers Adrian |
Topic | Author | Date |
How common is 2 Byte ASCII HEX? | 01/01/70 00:00 | |
That is an odd way of looking at is | 01/01/70 00:00 | |
Must not post when tired | 01/01/70 00:00 | |
Correct! | 01/01/70 00:00 | |
Very common indeed! | 01/01/70 00:00 | |
hex_digit_to_ascii | 01/01/70 00:00 | |
optimisation | 01/01/70 00:00 | |
you could, but | 01/01/70 00:00 | |
Widespread | 01/01/70 00:00 | |
ERR Thanks | 01/01/70 00:00 | |
C suggestion | 01/01/70 00:00 | |
and 10 times tougher .. | 01/01/70 00:00 | |
beware | 01/01/70 00:00 | |
C? sorry long post! | 01/01/70 00:00 | |
'C' - not rocket science | 01/01/70 00:00 |