| ToC | Start | Contact |
MC6809-MC6809E 8-Bit Microprocessor Programming Manual [M6809PM/AD]
© Motorola Inc., 1981
APPENDIX E - ASCII CHARACTER SET
E.1 INTRODUCTION
This appendix contains the standard 112 character ASCII character set (7-bit code).
E.2 CHARACTER REPRESENTATION AND CODE IDENTIFICATION
The ASCII character set is given in Figure E-1.
| b7 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| b6 | |||||||||||||||||||||||||||||||
| b5 | |||||||||||||||||||||||||||||||
| b4 ↓ |
b3 ↓ |
b2 ↓ |
b1 ↓ |
Column | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | |||||||||||||||||||
| Row | Hex | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | ||||||||||||||||||||||
| 0 | 0 | 0 | 0 | 0 | 0 | NUL | DLE | SP | 0 | @ | P | ` | p | ||||||||||||||||||
| 0 | 0 | 0 | 1 | 1 | 1 | SOH | DC1 | ! | 1 | A | Q | a | q | ||||||||||||||||||
| 0 | 0 | 1 | 0 | 2 | 2 | STX | DC2 | " | 2 | B | R | b | r | ||||||||||||||||||
| 0 | 0 | 1 | 1 | 3 | 3 | ETX | DC3 | # | 3 | C | S | c | s | ||||||||||||||||||
| 0 | 1 | 0 | 0 | 4 | 4 | EOT | DC4 | $ | 4 | D | T | d | t | ||||||||||||||||||
| 0 | 1 | 0 | 1 | 5 | 5 | ENQ | NAK | % | 5 | E | U | e | u | ||||||||||||||||||
| 0 | 1 | 1 | 0 | 6 | 6 | ACK | SYN | & | 6 | F | V | f | v | ||||||||||||||||||
| 0 | 1 | 1 | 1 | 7 | 7 | BEL | ETB | ' | 7 | G | W | g | w | ||||||||||||||||||
| 1 | 0 | 0 | 0 | 8 | 8 | BS | CAN | ( | 8 | H | X | h | x | ||||||||||||||||||
| 1 | 0 | 0 | 1 | 9 | 9 | HT | EM | ) | 9 | I | Y | i | y | ||||||||||||||||||
| 1 | 0 | 1 | 0 | 10 | A | LF | SUB | * | : | J | Z | j | z | ||||||||||||||||||
| 1 | 0 | 1 | 1 | 11 | B | VT | ESC | + | ; | K | [ | k | { | ||||||||||||||||||
| 1 | 1 | 0 | 0 | 12 | C | FF | FS | , | < | L | \ | l | | | ||||||||||||||||||
| 1 | 1 | 0 | 1 | 13 | D | CR | GS | - | = | M | ] | m | } | ||||||||||||||||||
| 1 | 1 | 1 | 0 | 14 | E | SO | RS | . | > | N | ^ | n | ~ | ||||||||||||||||||
| 1 | 1 | 1 | 1 | 15 | F | SI | US | / | ? | O | _ | o | DEL | ||||||||||||||||||
Each 7-bit character is represented with bit seven as the high-order bit and bit one as the low-order bit as shown in the following example:
| b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 |
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
The bit representation for the character "A" is developed from the bit pattern for bits seven through five found above the column designated 4 and the bit pattern for bits four through one found to the left of the row designated 1.
A hexadecimal notation is commonly used to indicate the code for each character. This is easily developed by assuming a logic zero in the non-existant bit eight position for the column numbers and using the hexadecimal number for the row numbers.
E.3 CONTROL CHARACTERS
The characters located in columns zero and one of Figure E-1 are considered control characters. By definition, these are characters whose occurrance in a particular context initiates, modifies, or stops an action that affects the recording, processing, transmission, or interpretation of data. Table E-1 provides the meanings of the control characters.
| Mnemonic | Meaning |
|---|---|
| NUL | Null |
| SOH | Start of Heading |
| STX | Start of Text |
| ETX | End of Text |
| EOT | End of Transmission |
| ENQ | Enquiry |
| ACK | Acknowledge |
| BEL | Bell |
| BS | Backspace |
| HT | Horizontal Tabulation |
| LF | Line Feed |
| VT | Vertical Tabulation |
| FF | Form Feed |
| CR | Carriage Return |
| SO | Shift Out |
| SI | Shift In |
| DLE | Data Link Escape |
| DC1 | Device Control 1 |
| DC2 | Device Control 2 |
| DC3 | Device Control 3 |
| DC4 | Device Control 4 |
| NAK | Negative Acknowledge |
| SYN | Synchronous Idle |
| ETB | End of Transmission Block |
| CAN | Cancel |
| EM | End of Medium |
| SUB | Substitute |
| ESC | Escape |
| FS | File Separator |
| GS | Group Separator |
| RS | Record Separator |
| US | Unit Separator |
| DEL | Delete |
E.4 GRAPHIC CHARACTERS
The characters in columns two through seven are considered graphic characters. These characters have a visual representation which is normally displayed or printed. These characters and their names are given in Table E-2.
| Symbol | Name |
|---|---|
| SP | Space (Normally Nonprinting) |
| ! | Exclamation Point |
| " | Quotation Marks (Diaeresis) |
| # | Number Sign |
| $ | Dollar Sign |
| % | Percent Sign |
| & | Ampersand |
| ' | Apostrophe (Closing Single Quotation Mark; Acute Accent) |
| ( | Opening Parenthesis |
| ) | Closing Parenthesis |
| * | Asterisk |
| + | Plus |
| , | Comma (Cedilla) |
| - | Hyphen (Minus) |
| . | Period (Decimal Point) |
| / | Slant |
| 0...9 | Digits 0 Through 9 |
| : | Colon |
| ; | Semicolon |
| < | Less Than |
| = | Equals |
| > | Greater Than |
| ? | Question Mark |
| @ | Commercial At |
| A...Z | Uppercase Latin Letters A Through Z |
| [ | Opening Bracket |
| \ | Reverse Slant |
| ] | Closing Bracket |
| ^ | Circumflex |
| _ | Underline |
| ` | Opening Single Quotation Mark (Grave Accent) |
| a...z | Lowercase Latin Letters a Through z |
| { | Opening Brace |
| | | Vertical Line |
| } | Closing Brace |
| ~ | Tilde |
© Motorola Inc., 1981 (now Freescale as of 2006)
Transferred into HTML by Matthias "Maddes" Bücher in 2006, 2007.
Use all information at your own risk.
| Top | ToC | Start | Contact |