Herunterladen Inhalt Inhalt Diese Seite drucken

Anhang; Umrechnungstabelle (Hex Dezimal) - FunkTronic Major 6 Bedienungsanleitung

Inhaltsverzeichnis

Werbung

Anhang

Umrechnungstabelle (HEX <--> Dezimal)
Die zu einer Dezimalzahl (< 256) gehörige HEX-Zahl (2-stellig !) kann direkt aus folgender
Tabelle entnommen werden :
HEX $x0 $x1 $x2 $x3 $x4 $x5 $x6 $x7 $x8 $x9 $xA $xB $xC $xD $xE $xF
$0x 0
1
2
$1x 16 17
18
$2x 32 33
34
$3x 48 49
50
$4x 64 65
66
$5x 80 81
82
$6x 96 97
98
$7x 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
$8x 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
$9x 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
$Ax 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
$Bx 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
$Cx 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
$Dx 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
$Ex 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
$Fx 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
Unter Verwendung der Tabelle können aber auch Dezimalzahlen (255 < x < 65.536) in
die zugehörige 4-stellige HEX-Zahl (h
h
HEX-Zahl(h
3
2
h
HEX-Zahl(h
1
0
wobei die Operation DIV eine Ganzzahl-Division ist (ganzzahliger Anteil der Division)
und die Operation MOD der Rest der Ganzzahl-Division ist (ganzzahliger Rest).
Zur Probe muß gelten:
Dezimalzahl = h
Beispiel:
Dezimalzahl = 4800 --> Hex-Zahl = ?
1) HEX-Zahl(h
2) HEX-Zahl(h
==> Hex-Zahl(h
Kompetent für Elektroniksysteme
3
4
5
6
19
20
21
22
35
36
37
38
51
52
53
54
67
68
69
70
83
84
85
86
99
100 101 102 103 104 105 106 107 108 109 110 111
h
3
2
) = Dezimalzahl DIV 256
) = Dezimalzahl MOD 256
x 4096 + h
x 256 + h
3
2
h
) = 4800 DIV 256 = 18 (Dezimal) = $12 (Hex)
3
2
h
) = 4800 MOD 256 = 192 (Dezimal) = $C0 (Hex)
1
0
h
h
h
) = $12C0
3
2
1
0
7
8
9
10
23
24
25
26
39
40
41
42
55
56
57
58
71
72
73
74
87
88
89
90
h
h
) umgerechnet werden :
1
0
(High-Byte)
(Low-Byte)
x 16 + h
1
0
- 37 -
11
12
13
14
27
28
29
30
43
44
45
46
59
60
61
62
75
76
77
78
91
92
93
94
(High-Byte)
(Low-Byte)
15
31
47
63
79
95
M6 (02.10.02)

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis