0% found this document useful (0 votes)
75 views

TD - Systeme Numeration (Correction)

1. The document discusses number systems including binary, octal, hexadecimal, and BCD. It provides examples of converting between decimal, binary, octal, and hexadecimal numbers. 2. It discusses signed 8-bit numbers and how to convert between decimal and two's complement binary representation. 3. Examples are given of addition, subtraction, and addition in binary, binary subtraction, and BCD addition. 4. Converting between binary and fractional decimal numbers is demonstrated through examples. 5. An example of binary multiplication is shown. 6. Questions are asked about the range of values a signed 8-bit number can represent.

Uploaded by

Amine OUKHOUYA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views

TD - Systeme Numeration (Correction)

1. The document discusses number systems including binary, octal, hexadecimal, and BCD. It provides examples of converting between decimal, binary, octal, and hexadecimal numbers. 2. It discusses signed 8-bit numbers and how to convert between decimal and two's complement binary representation. 3. Examples are given of addition, subtraction, and addition in binary, binary subtraction, and BCD addition. 4. Converting between binary and fractional decimal numbers is demonstrated through examples. 5. An example of binary multiplication is shown. 6. Questions are asked about the range of values a signed 8-bit number can represent.

Uploaded by

Amine OUKHOUYA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

TD Système de numération

1. Compléter le Tableau de conversion

Décimal Binaire Octal Hexadécimal BCD


211 ………………. ………………. ………………. ……………….
………………. 101010101 ………………. ………………. ……………….
………………. ………………. 317 ………………. ……………….
………………. ………………. ………………. 8B ……………….
………………. ………………. ………………. ………………. 1001110100
2. Nombres signés sur 8 bits:

(-107)10 = (…………………)2 (11000110)2= (…………….…..)10


Méthode:……………………………………… Méthode:……………………………………
…………………………………………… ……………………………………………….
…………………………………………… ………………………………………………
…………………………………………… ………………………………………………
…………………………………………… ………………………………………………

3. Réaliser les opérations suivantes


Addition en binaire pur Soustraction en binaire Addition en BCD

10111 11001 …111 0101……..


+ 10010 - 0111 + …101 0110.

………….. …………. -----------------------------


…… ……..…
4.conversion binaire ↔ nombre fractionnaire:

(31,75)10  (…………. , ….….…. )2 (1111,0101)2=(……,…………..)10


……………………………………………………… ……………………………………………………
……………………………………………………… ………………………………………………………
……………………………………………………… ………………………………………………………
……………………………………………………… ………………………………………………………
……………………………………………………… ………………………………………………………
……………………………………………………… ………………………………………………………

5. Réaliser les opérations suivantes

Multiplication en binaire 10110


x 1 01
-----------------------------
……..……………………….
……..……………………….

6. Question : Un nombre A signé sur 8 bits vérifie :

 - 27 ≤ A< 27  - 27 ≤ A< 27-1


 - 28 ≤ A< 28  - 28 ≤ A< 28-1

1/2 (TD Numération ) Mr KHATORY


Correction TD système de Numération

1. Compléter le Tableau de conversion

Décimal Binaire Octal Hexadécimal BCD


211 11010011 323 D3 1000010001
341 101010101 525 155 1101010101
207 11001111 317 CF 1000000111
139 10001011 213 8B 100111001
274 100010010 422 112 1001110100
2. Nombres signés sur 8 bits:

(-107)10 = (10010101)2 (11000110)2= (-58)10


Méthode:……………………………………… Méthode:……………………………………
Ce nombre est négatif ( bit 7 = 1 )  On calcule son
(107)10=…(01101011)2…………………… complément à 2 !!!! :
Complément à 1 : 1 0 0 1 0 1 0 0 … Complément à 1 : 0 0 1 1 1 0 0 1
Complément à 2 (+1) : 1 0 0 1 0 1 0 1 Complément à 2 (+1) : 0 0 1 1 1 0 1 0
Donc : (-107)10 = (10010101)2 (00111010)2=(58)10
DONC (11000110)2= (-58)10

3. Réaliser les opérations suivantes A ne pas oublier !!


( ajouter à chaque fois (6)10= (0110)2 si
cessaire !!)
Addition en binaire pur Soustraction en binaire Addition en BCD né

10111 11001 0111 0101


+ 10010 - 0111 + 0101 0110
-------------------- -------------------- + 0110 0110
101001 10010 -----------------------------
…… 1 0011 0001…
4.conversion binaire ↔ nombre fractionnaire:

(31,75)10  (11111 , 11)2 (1111,0101)2=(15.,3125)10


(31)10= (11111)2 (1111)2= (15)10
Partie Fractionnaire : Partie Fractionnaire :
On multiplie successivement (0,75) par 2 (0,0101)2= 0* 2-1 + 1*2-2 + 0*2-3 + 1* 2-4 = 1/4 + 1/16 =0,3125
0,75 * 2 = 1,50 1 Donc
0,50 * 2 = 1,00 1 (0,0101)2=(0.,3125)10
0,00 * 2 = 0 Finalement :(1111,0101)2=(15.,3125)10
Donc (0,75)10 =(0,11)2
Finalement (31,75)10  (11111 , 11)2

5. Réaliser les opérations suivantes


Multiplication en binaire 10110
x 1 01
-----------------------------
……..……1 0 1 1 0
……… 0 0 0 0 0
…….. 1 0 1 1 0
---------------------------
1101110
6. Question : Un nombre A signé sur 8 bits vérifie :
- 27 ≤ A< 27  - 27 ≤ A< 27-1
 - 2 ≤ A< 2
8 8
 - 28 ≤ A< 28-1

You might also like