
6-13
〈
How to convert the decimal number to hexadecimal number
〉
The decimal numbers are divided into following three categories.
Calculation method is different in three categories respectively.
(1) 0 ~ 255
→
00h ~ FFh
(2) 256 ~ 4095
→
0100h ~ 0FFFh
(3) 4096 ~ 65536
→
1000h ~ FFFFh
If the decimal number fall into the category (1);
1)
Divide the decimal number by 16. Result is “A”.
2)
Take the integer portion of the number “A” as “B”.
3)
Calculate the equation (A–B)
×
16. Result is “C”.
4)
“B” is the second digit number of the hexadecimal number
and “C” is the first digit number of the hexadecimal number.
(BC)h
(Example)
If the decimal number is “189”;
1)
189
÷
16 = 1 1 .8125 ·························································· (A)
↑
2)
(B)
3)
(11.8125–11)
×
16 =13 ························································ (C)
4)
189
→
(BD)h is obtained.
If the decimal number fall into the category (2);
1)
Divide the decimal number by 256. Result is “A”.
2)
Take the integer portion of the number “A” as “B”.
3)
Calculate the equation (A-B)
×
256. Result is “C”.
4)
Take the integer portion of the number “C” as “D”.
5)
Calculate the equation (C-D)
×
16. Result is “E”.
6)
“B” is the third digit number, “D” is the second digit number
and “E” is the first digit number of the hexadecimal number.
(BDE)h
(Example)
If the decimal number is “2100”;
1)
2100
÷
256 = 8 .203125 ···················································· (A)
↑
2)
(B)
3)
(8.203125 – 8)
×
256
÷
16 = 3 .25 ······································· (C)
↑
4)
(D)
5)
(3.25–3)
×
16 = 4 ································································ (E)
6)
2100
→
(834)h is obtained.
If the decimal number fall into the category (3);
1)
Divide the decimal number by 4096. Result is “A”.
2)
Take the integer portion of the number “A” as “B”.
3)
Calculate the equation (A–B)
×
4096
÷
256. Result is “C”.
4)
Take the integer portion of the number “C” as “D”.
5)
Calculate the equation (C–D)
×
256
÷
16. Result is “E”.
6)
Take the integer portion of the number “E” as “F”.
7)
Calculate the equation (E–F)
×
16. Result is “G”. (Round the
number “G” to count fractions of 0.5 and over as a unit and cut
away the rest.)
8)
“B” is the fourth digit number, “D” third digit number, “F” is
the second digit number and “G” is the first digit number of
the hexadecimal number. (BDFG)h
(Example)
If the decimal number is “31814”;
1)
31814
÷
4096 = 7 .7670898 ·············································· (A)
↑
2)
(B)
3)
(7.7670898 – 7)
×
4096
÷
256 = 12 .273436 ····················· (C)
↑
4)
(D)
5)
(12.273436 – 12)
×
256
÷
16 = 4 .374976 ·························· (E)
↑
6)
(F)
7)
(4.374976–4)
×
16 = 5.999616
(Round the number to count fractions of 0.5 and over as a
unit and cut away the rest.)
↓
8)
6 ·································································· (G)
9)
31814
→
(7C46)h is obtained.
〈
How to convert the hexadecimal number to decimal number
〉
If the hexadecimal number is (ABCD)h, the decimal number is
calculated by the following equation.
(A
×
4096) + (B
×
256) + (C
×
16) + (D
×
1) = decimal number
(Example)
If the hexadecimal number is “(3BA4)h”:
(3
×
4096) + (11
×
256) + (10
×
16) + (4
×
1)=15268
Summary of Contents for CCD-TRV312 Operating Instructions (primary manual)
Page 8: ...1 2 ...
Page 9: ...1 3 ...
Page 10: ...1 4 ...
Page 11: ...1 5 ...
Page 12: ...1 6 ...
Page 13: ...1 7 ...
Page 14: ...1 8 ...
Page 15: ...1 9 ...
Page 16: ...1 10 ...
Page 17: ...1 11 ...
Page 18: ...1 12 ...
Page 19: ...1 13 ...
Page 20: ...1 14 ...
Page 21: ...1 15 ...
Page 22: ...1 16 ...
Page 23: ...1 17 ...
Page 24: ...1 18 ...
Page 25: ...1 19E ...
Page 66: ...312 TRV512 NTSC 4 73 4 74 page 4 66 for VF 109 BOARD printed wiring board ...
Page 72: ...53 TRV312 TRV512 NTSC age 4 89 for PD 76 BOARD printed wiring board 4 100 ...
Page 76: ...53 TRV312 TRV512 NTSC age 4 111 for PD 77 BOARD printed wiring board 4 110 ...