martes, 8 de mayo de 2012

Trabajo Practico nº1 Ejercicio 8

a)Pasar de decimal a BCD Y binario.
De decimal a BCD

6         3     ,     5
(0110) (0011) , (0101)
9          3     ,     0         2          1
(1001) (0011) , (0000) (0010) (0001)
De decimal a binario

                                  Resto
63/2 = 31                        1
31/2 = 15                        1
15/2 = 7                          1
7/2 = 3                            1
3/2 = 1                            1
0,5x2 = 1,0






BCD = 01100011,0101
Binario = 111111,1
                                      Resto
93/2 = 46                          1
46/2 = 23                          0
23/2 = 11                          1
11/2 = 5                            1
  5/2 = 2                            1
2/2 = 1                              0
0,21x2 = 0,42
0,42x2 = 0,84
0,84x2 = 1,68
0,68x2 = 1,36
0,36x2 = 0,72
0,72x2 = 1,44
0,44x2 = 0,88
BCD = 10010011,000000100001
Binario = 1011101,0011010
  
b)Pasar de BCD a decimal y binario

De BCD a decimal

(1000) (1001) , (0000) (0101)
    8          9     ,     0          5
(0001) (1000) (0000) , (1001)
    1          8         0      ,     9
De BCD a binario

                                 
                                 Resto
89/2 = 44                     1
44/2 = 22                     0
22/2 = 11                     0
11/2 = 5                       1
  5/2 = 2                       1
  2/2 = 1                       0
0,5x2 = 1,0




Binario = 1011001,1

                                      Resto
180/2 = 90                       0                   90/2 = 45                         0                 45/2 = 22                         1                   22/2 = 11                         0                    11/2 = 5                           1                 5/2 = 2                             1                     2/2 = 1                             0         0,9x2 = 1,8
0,8x2 = 1,6
0,6x2 = 1,2
0,2x2 = 0,4
0,4x2 = 0,8
0,8x2 = 1,6
Binario = 10110100,111001



No hay comentarios:

Publicar un comentario