Prezentace se nahrává, počkejte prosím

Prezentace se nahrává, počkejte prosím

Learning program: Mechanic – electrician Name of the program: Numerical systems II. class Conversions between systems Made by: Mgr. Holman Pavel Projekt.

Podobné prezentace


Prezentace na téma: "Learning program: Mechanic – electrician Name of the program: Numerical systems II. class Conversions between systems Made by: Mgr. Holman Pavel Projekt."— Transkript prezentace:

1

2 Learning program: Mechanic – electrician Name of the program: Numerical systems II. class Conversions between systems Made by: Mgr. Holman Pavel Projekt Anglicky v odborných předmětech, CZ.1.07/1.3.09/04.0002 je spolufinancován Evropským sociálním fondem a státním rozpočtem České republiky.

3 Numerical systems

4 In the numerical method we most often use numbers in the binary system. But numbers in the binary system are too long and poorly arranged. Octal and hexadecimal systems are often used in the numerical method as the more transparent and shorter alternative for the numerical record in the binary system. DBOH 0000 1111 21022 31133 410044 510155 611066 711177 81000108 DBOH 91001119 10101012A 11101113B 12110014C 13110115D 14111016E 15111117F 16100002010 17100012111

5 If we want to convert numbers between arbitrary numerical systems, there is a universal way how to do it. First of all we convert the chosen number to the decimal system and than we convert it into the chosen system. Disadvantages of this method are its complicatedness and time demands. Exercise no. 1: Convert the number 254 (6) to the binary numerical system. 254 (6) = 2* 6 2 + 5*6 1 + 4*6 0 254 (6) = 72 + 30 + 4 254 (6) = 106 (10) 106 : 2 = 53 remainder 0 53 : 2 = 26 remainder 1 26 : 2 = 13 remainder 0 13 : 2 = 6 remainder 1 6 : 2 = 3 remainder 0 3 : 2 = 1 remainder 1 1 : 2 = 0 remainder 1 254 (6) = 1101010 (10)

6 Conversion of numbers from the binary system to the hexadecimal system. As you can see in the previous chart, the four-bit number in the binary system (in other words up to four digit number) can be elegantly recorded in the octal system by using only one digit number. Instruction: Start on the right side and divide the binary number into fours. Using the chart you can easily express it in the hexadecimal system. Exercise no. 2: Convert the number 1010111010001111 (2) to the hexadecimal system. 1010 (2) = A 1110 (2) = E 1000 (2) = 8 1111 (2) = F 1010 1110 1000 1111 (2) 1010111010001111 (2) = AE8F (16)

7 The same method can be used in the case of backwards conversion. Don‘t forget that each symbol in the hexadecimal system (it doesn‘t apply for the one in the highest order) must be substituted by four symbols in the binary system. For example if we substitute the number 2 16 just by the number 10 2 instead of 0010 2 we will get the wrong result. A (16) = 1010 A3B8 (16) = 1010001110111000 (2) Conversion of numbers from the binary numerical system to the hexadecimal.. Exercise no. 4: Convert the number A3B8 (16) to the binary system. A 3 B 8 (16) 3 (16) = 0011B (16) = 1011 8 (16) = 1000 Exercise no. 3: Convert the number E7 (16) to the binary system. E (16) = 11107 (16) = 1111 E7 (16) = 11101111 (2)

8 Conversion from the binary to the hexadecimal system: Conversion from the hexadecimal to the binary system: 10101101 (2) = 10111001 (2) = 10001111 (2) = 11100001 (2) = 10000011 (2) = Solution: 10101101 (2) 10110001 (2) 101100 (2) 1010111 (2) 10111010 (2) AE (16) = B2 (16) = 2C (16) = 57 (16) = BA (16) = Solution: AD (16) B9 (16) 8F (16) E1 (16) 83 (16)

9 Question chart: 1 22 2 3 for 100for 500for 300 ABCD EFGH Prémie 3 3 1 1 The End

10 Question for 100 What is the value of the binary number 101 (2) in the decimal system?

11 Question for 100 What is the value of the binary number 10101 (2) in the decimal system?

12 Question for 100 What is the value of the hexadecimal number A1 (16) in the decimal system?

13 Question for 300 What is the value of the binary number 1010 (2) in the hexadecimal system?

14 What is the value of the binary number 1101 (2) in the hexadecimal system? Question for 300

15 What is the value of the binary number 11111111 (2) in the hexadecimal system?

16 What is the value of the hexadecimal number AB (16) in the binary system? Question for 500

17 What is the value of the hexadecimal number B8 (16) in the binary system? Question for 500

18 What is the value of the hexadecimal number 123 (16) in the binary system? Question for 500

19  Mužík, J. Management ve vzdělávání dospělých. Praha: EUROLEX BOHEMIA, 2000. ISBN 80-7361-269-7.  Operační program Vzdělávání pro konkurenceschopnost, ESF 2007 – 2013.  Dostupné na: http://www.msmt.cz/eu/provadeci-dokument-k-op-vzdelavani-pro- konkurenceschopnosthttp://  MALINA, V. Digitální technika. České Budějovice: KOPP, 1996  KRÝDL, M. Číslicová technika. Dubno, 1999  PODLEŠÁK, J., SKALICKÝ, P. Spínací a číslicová technika. Praha, 1994  PECINA, J. Ing. PaedDr. CSc.; PECINA, P. Mgr. Ph.d. Základy císlicové techniky. Brno, 2007


Stáhnout ppt "Learning program: Mechanic – electrician Name of the program: Numerical systems II. class Conversions between systems Made by: Mgr. Holman Pavel Projekt."

Podobné prezentace


Reklamy Google