Mõõtmistulemused ja arvutused: Lähtepunkt Sihtpunkti Kaugus Kaugu Kõverjoonelisus Kaugus Lv=Lt- (Lv)2 nr nr teed s otse e koef. (Ki) arvutatud La mööda (Lo) (La=Lo*K) (Lt) A B 5951 5489 1,084 6339,8 -388,8 151165,44 A D 7416 7096 1,045 8195,9 -779,9 608244,01 B C 9601 8567 1,121 9894,9 -293,9 86377,21 C D 2929 2701 1,084 3119,7 -190,7 36366,49 A C 10 551 7321 1,441 8455,8 2095, 4389863,04 2
0 1 1 0 0 So 123.45610 = 0111 1011.0111 01002 b) Hexadecimal Fractional part : Integral part : 0,456 x 16 = 7,296 7 123 / 16 = 7 0,6875 x 16 =B(11) 0,296 x 16 = 4,736 4 7 / 16 = 0 0,4375 x 16 = 7 So 123.45610 = 7B.7416 c) base-5 Fractional part: Integral part : 0,456 x 5 = 2.28 2 123 / 5 = 24 0,6 x 5 = 3 0.28 x 5 = 1,4 1 24 / 5 = 4 0,8 x 5 = 4 0,4 x 5 = 2 2 4/5=0 4 So 123.45610 = 443.2125 d) BCD 1 2 3 . 4 5 6
Mictrocontroller Week 03 Numbering systems 1. Convert the decimal number 123.456 to the following formats, taking whole numbers and fractions into account. Show calculations. a) binary b) hexadecimal c) base-5 d) BCD === 1. a) 0111 1011.0111 01002 b) 7B.7416 c) 443.2125 d) 0001 0010 0011.0100 0101 01102 === 2. Extend the following unsigned 8-bit binary numbers to their 16-bit equivalents and convert the result to hexadecimal. a) 011010112 b) 101101012 === 2. a) 006B b) 00B5 === 3. Extend the following signed two’s complement 8-bit binary numbers to their 16-bit equivalents and convert the result to hexadecimal. a) 011010112 b) 101101012 === 3. a) 006B b) FFB5 === Logic and arithmetic 4
S = 82,5-83,5 15 83 = ,024x = 024 n1,-792 1 55 t = = 2,,56 27 + 8 , 44 + 1= +1,17 0887 ,19 + 20,25 7416 ,44 = 5S 83,5-84,5 = = 1,35. 84 55 55 t = St - 1 ( ;6) =84,5-85,5 1,0887 11 85 = 0,4; = 1 - = 0,6 85,5-86,5 4 86 55 2.19. , ,
7405 52833 12/24/2011 Medium 8 7406 52837 1/18/2012 Critical 32 7407 52839 4/11/2010 High 8 7408 52839 4/11/2010 High 25 7409 52867 8/13/2009 High 15 7410 52868 2/16/2011 Low 19 7411 52870 3/9/2009 Not Specified 21 7412 52896 10/22/2010 High 9 7413 52896 10/22/2010 High 6 7414 52896 10/22/2010 High 24 7415 52896 10/22/2010 High 49 7416 52896 10/22/2010 High 36 7417 52897 8/22/2009 Medium 40 7418 52900 5/20/2011 High 16 7419 52929 4/8/2011 High 43 7420 52929 4/8/2011 High 19 7421 52929 4/8/2011 High 7 7422 52929 4/8/2011 High 20 7423 52930 11/8/2011 Low 16 7424 52930 11/8/2011 Low 39 7425 52930 11/8/2011 Low 24 7426 52930 11/8/2011 Low 40