4.4.2 ASCII Code
ASCII is the short form for
American Standard Code for Information Interchange
. In ASCII
code 7 bits can represent alphanumeric characters and also punctuation marks, miscella
-
neous symbols and control characters.
Data in ASCII code is used to communicate with peripheral devices.
Examples
4–6 MITSUBISHI ELECTRIC
Codes An Introduction to Programming
Bits 3 to 0
Bits 6 to 4
01234567
000 001 010 011 100 101 110 111
0 0000
NUL DLE SP 0 얀 P 쎿 p
1 0001
SOH DC1 ! 1 A Q a q
2 0010
STX DC2 !! 2 B R b r
3 0011
ETX DC3 # 3 C S c s
4 0100
EOT DC4 $ 4 D T d t
5 0101
ENQ NAK % 5 E U e u
6 0110
ACK SYN & 6 F V f v
7 0111
BEL ETB ‘ 7 G W g w
8 1000
BS CAN ( 8 H X h x
9 1001
HT EM ) 9 I Y i y
A 1010
LF SUB * : J Z j z
B 1011
VT ESC + ; K [ k {
C 1100
FF FS , < L \ l 앚
D 1101
CR GS - = M ] m }
E 1110
SO RS . > N 앖 n~
F 1111
SI VS / ? O 씯 o DEL
10 0101
0
0
34
„3“
b0b3b4b6
ASCII
Hexadecimal
Character
00 1001
1
1
47
„G“
b0b3b4b6
ASCII
Hexadecimal
Character