Sony CCD-TRV32 Service Manual page 142

Video camera recorder
Hide thumbs Also See for CCD-TRV32:
Table of Contents

Advertisement

〈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
(2) 256 ~ 4095
(3) 4096 ~ 65536 →
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".
Calculate the equation (A–B) ×16. Result is "C".
3)
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";
189 ÷ 16 = 1 1 .8125 ·························································· (A)
1)
2)
(B)
(11.8125–11) ×16 =13 ························································ (C)
3)
189 → (BD)h is obtained.
4)
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".
Calculate the equation (A-B) × 256. Result is "C".
3)
4)
Take the integer portion of the number "C" as "D".
Calculate the equation (C-D) ×16. Result is "E".
5)
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";
2100 ÷ 256 = 8 .203125 ···················································· (A)
1)
2)
(B)
(8.203125 – 8) × 256 ÷16 = 3 .25 ······································· (C)
3)
4)
(3.25–3) ×16 = 4 ································································ (E)
5)
2100 → (834)h is obtained.
6)
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".
Calculate the equation (A–B) × 4096 ÷ 256. Result is "C".
3)
4)
Take the integer portion of the number "C" as "D".
00h ~ FFh
0100h ~ 0FFFh
1000h ~ FFFFh
(D)
Calculate the equation (C–D) ×256÷16. Result is "E".
5)
6)
Take the integer portion of the number "E" as "F".
Calculate the equation (E–F) ×16. Result is "G". (Round the
7)
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";
31814 ÷ 4096 = 7 .7670898 ·············································· (A)
1)
2)
(B)
(7.7670898 – 7) × 4096 ÷ 256 = 12 .273436 ····················· (C)
3)
4)
(12.273436 – 12) × 256 ÷ 16 = 4 .374976 ·························· (E)
5)
6)
(4.374976–4) × 16 = 5.999616
7)
(Round the number to count fractions of 0.5 and over as a
unit and cut away the rest.)
8)
6 ·································································· (G)
31814 → (7C46)h is obtained.
9)
〈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
6-13
(D)
(F)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents