Appendix E – ASCII / Hex Conversion
Appendix E – ASCII / Hex Conversion
Devices are typically controlled either by using ASCII text strings or the hexadecimal equivalent.
Control codes can be entered into the hardware using ASCII, hexadecimal, or a combination of both where certain ASCII codes are difficult to enter (e.g. a carriage return).
Char | Hex |
| Char | Hex |
| Char | Hex |
| Char | Hex |
(nul) | 00 |
| (sp) | 20 |
| @ | 40 |
| ` | 60 |
|
|
|
|
|
|
|
|
|
|
|
(soh) | 01 |
| ! | 21 |
| A | 41 |
| a | 61 |
|
|
|
|
|
|
|
|
|
|
|
(stx) | 02 |
| " | 22 |
| B | 42 |
| b | 62 |
|
|
|
|
|
|
|
|
|
|
|
(etx) | 03 |
| # | 23 |
| C | 43 |
| c | 63 |
|
|
|
|
|
|
|
|
|
|
|
(eot) | 04 |
| $ | 24 |
| D | 44 |
| d | 64 |
|
|
|
|
|
|
|
|
|
|
|
(enq) | 05 |
| % | 25 |
| E | 45 |
| e | 65 |
|
|
|
|
|
|
|
|
|
|
|
(ack) | 06 |
| & | 26 |
| F | 46 |
| f | 66 |
|
|
|
|
|
|
|
|
|
|
|
(bel) | 07 |
| ' | 27 |
| G | 47 |
| g | 67 |
|
|
|
|
|
|
|
|
|
|
|
(bs) | 08 |
| ( | 28 |
| H | 48 |
| h | 68 |
|
|
|
|
|
|
|
|
|
|
|
(ht) | 09 |
| ) | 29 |
| I | 49 |
| I | 69 |
|
|
|
|
|
|
|
|
|
|
|
(nl) | 0a |
| * | 2a |
| J | 4a |
| J | 6a |
|
|
|
|
|
|
|
|
|
|
|
(vt) | 0b |
| + | 2b |
| K | 4b |
| k | 6b |
|
|
|
|
|
|
|
|
|
|
|
(np) | 0c |
| , | 2c |
| L | 4c |
| l | 6c |
|
|
|
|
|
|
|
|
|
|
|
(cr) | 0d |
| - | 2d |
| M | 4d |
| m | 6d |
|
|
|
|
|
|
|
|
|
|
|
(so) | 0e |
| . | 2e |
| N | 4e |
| n | 6e |
|
|
|
|
|
|
|
|
|
|
|
(si) | 0f |
| / | 2f |
| O | 4f |
| o | 6f |
|
|
|
|
|
|
|
|
|
|
|
(dle) | 10 |
| 0 | 30 |
| P | 50 |
| p | 70 |
|
|
|
|
|
|
|
|
|
|
|
(dc1) | 11 |
| 1 | 31 |
| Q | 51 |
| q | 71 |
|
|
|
|
|
|
|
|
|
|
|
(dc2) | 12 |
| 2 | 32 |
| R | 52 |
| r | 72 |
|
|
|
|
|
|
|
|
|
|
|
(dc3) | 13 |
| 3 | 33 |
| S | 53 |
| s | 73 |
|
|
|
|
|
|
|
|
|
|
|
(dc4) | 14 |
| 4 | 34 |
| T | 54 |
| T | 74 |
|
|
|
|
|
|
|
|
|
|
|
(nak) | 15 |
| 5 | 35 |
| U | 55 |
| u | 75 |
|
|
|
|
|
|
|
|
|
|
|
(syn) | 16 |
| 6 | 36 |
| V | 56 |
| v | 76 |
|
|
|
|
|
|
|
|
|
|
|
(etb) | 17 |
| 7 | 37 |
| W | 57 |
| w | 77 |
|
|
|
|
|
|
|
|
|
|
|
(can) | 18 |
| 8 | 38 |
| X | 58 |
| x | 78 |
|
|
|
|
|
|
|
|
|
|
|
(em) | 19 |
| 9 | 39 |
| Y | 59 |
| y | 79 |
|
|
|
|
|
|
|
|
|
|
|
(sub) | 1a |
| : | 3a |
| Z | 5a |
| z | 7a |
|
|
|
|
|
|
|
|
|
|
|
(esc) | 1b |
| ; | 3b |
| [ | 5b |
| { | 7b |
|
|
|
|
|
|
|
|
|
|
|
(fs) | 1c |
| < | 3c |
| \ | 5c |
| 7c | |
|
|
|
|
|
|
|
|
|
|
|
(gs) | 1d |
| = | 3d |
| ] | 5d |
| } | 7d |
|
|
|
|
|
|
|
|
|
|
|
(rs) | 1e |
| > | 3e |
| ^ | 5e |
| ~ | 7e |
|
|
|
|
|
|
|
|
|
|
|
(us) | 1f |
| ? | 3f |
| _ | 5f |
| (del) | 7f |
|
|
|
|
|
|
|
|
|
|
|
Instruction Manual – | 125 |
|
|