Deber - U1 - Emily

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 14

UNIVERSIDAD DE LAS FUERZAS ARMADAS - ESPE

CIRCUITOS DIGITALES
1. Escriba los 10 primeros nmeros de base: 2, 4, 8 y 16
Base 2
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001

Base 4
0000
0001
0002
0003
0010
0011
0012
0013
0020
0021

Base 8
0000
0001
0002
0003
0004
0005
0006
0007
0010
0011

Base 16
0000
0001
0002
0003
0004
0005
0006
0007
0008
0009

2. Determinar los equivalentes en el sistema decimal, de los siguientes nmeros


binarios.
a.- 11001
= 1*24 + 1*23 + 0*22 + 0*21 + 1*20
=16 + 8 + 1
=25
b.- 10101
= 1*24 + 0*23 + 1*22 + 0*21 + 1*20
=16 + 4 + 1
=21
c.- 0.01101
=0*20 + 0*2-1 + 1*2-2 + 1*2-3 + 0*2-4 + 1*2-5
=1 + 0.25 + 0.125 + 0.03125
=1.40625
d.- 10011.1011
=1*24 + 0*23 + 0*22 + 1*21 + 1*20 + 1*2-1 + 0*2-2 + 1*2-3 + 1*2-4
=16 + 2 + 1 + 0.5 + 0.125 + 0.0625
=19.6875
3. Realice las siguientes conversiones:
a. (34567)8 a base 10
=3*84+4*83+5*82+6*81+7*80
=12288+2048+320+48+7
=14711
b. (143112)8 a base 16
=(001100011001001010)2
=1100 0110 0100 1010
= (C64A)16
c. (A988)16 a base 10
=10*163+9*162+8*161+8*80

=(43400)10
d. (ABCD)16 a base 2
=10+11+12+13
=(1010101111001101)2
e. (42)8 a base 2
=(100010)2
f. (101011.1011)2 a base 16
=0010 1011. 1011
=2B.B
g. (1001100110)2 a base 8
=001-001-100-110
=(1146)8
h. (72C)16
a base 2
=(011100101100)2
i. (38.65)10 a base 2
=38/2=19
r=0
=19/2=9
r=1
=9/2=4
r=1
=4/2=2
r=0
=2/2=1
r=0
=0.65*2=1.3
=0.3*2=0.6
=0.6*2=1.2
=0.2*2=0.4
=0.4*2=0.8

e=1
e=0
e=1
e=0
e=0

=(100110.10100)2
j. (347)8
a base 16
=(011100111)2
=1110-0111
=(E7)16
4. Convertir:
a. (226.978)10 a binario
=226/2=113 r=0
=113/2=56 r=1
=56/2=28
r=0
=28/2=14
r=0
=14/2=7
r=0
=7/2=3
r=1
=3/2=1
r=1
=0.978*2=1.956
=0.956*2=1.912
=0.912*2=1.824
=0.824*2=1.648

=0.648*2=1.296
=0.296*2=0.592
=0.592*2=1.184

e=1
e=1
e=1
e=1

e=1
e=0
e=1

=(11100010.1111101)2
b. (1101100101.11011011)2 a hexadecimal
=0011 - 0110 - 0101.1101 1011
=(365.DB)16
c. (7AD.EF)16 a binario y octal
=(011110101101.11101111)2
=011-110-101-101.111-011-110
=(3655.736)8
d. (126.2)10 a octal
=126/8=15
r=6
=15/8=1
r=7
=0.2*8=1.6
=0.6*8=4.8
=0.8*8=6.4
=0.4*8=3.2
=0.2*8=1.6
=0.6*8=4.8

e=1
e=4
e=6
e=3
e=1
e=4

=(67.146314)8
5. Realice las siguientes operaciones
a. 1101 + 110
1

1 1 0 1
+
1 1 0
1 0 0 1 1

b. 101011 + 101010

1 0 1 0 1 1
+ 1 0 1 0 1 0
1 0 1 0 1 0 1

c. 11111 + 111
1

1 1 1 1 1

+
1 1 1
1 0 0 1 1 0

d. 10111 + 1110111
1

1 0 1 1 1
+ 1 1 1 0 1 1 1
1 0 0 0 1 1 1 0

e. 1000 1100
M
S

1 0 0 0
1 1 0 0

SCA
1

0 0 1 1

1 0 0 0
+ 0 0 1 1
1 0 1 1

Resp.:

- 1 0 0

f. 10100 1111
M
S

1 0 1 0 0
0 1 1 1 1

SCA
1

1 0 0 0 0

1 0 1 0 0
+ 1 0 0 0 0
1 0 0 1 0 0
+
Resp.:

1
1 0 1

g. 1001 11101
M
S

0 1 0 0 1
1 1 1 0 1

SCA
1

0 0 0 1 0

0 1 0 0 1
+ 0 0 0 1 0
0 1 0 1 1
Resp
.:
-

1 0 1 0 0

h. (41531)8 + (3641)8
1

1 0 0 0 0 1 1 0 1 0 1 1 0 0 1
+
0 1 1 1 1 0 1 0 0 0 0 1
1 0 0 1 0 1 0 1 1 1 1 1 0 1 0
Resp
.:

45372

i. (234.5)10 + (34.7)8
1

0
1 0 0 0 1 1 1 0 . 1 0 1
0
+
0 1 1 1 0 . 1 1 1
1
1 0 0 1 1 1 0 0 . 1 0 0
Resp
.:

471.4

j. (11.100100)2 + (101011.1011)2
1

1
1 . 1 0 0 1 0 0
1
+ 1 0 1 0 1 . 1 0 1 0 0 0
1
1 0 1 1 1 . 0 0 1 1 0 0

6. Convierta los siguientes nmeros decimales a binario y encuentre el complemento


A1 y A2
a. 15
b.- 123
481.75

c.- 846

a) (1111)2
CA1= 0000
CA2= 0001
b) 123/16=7

r=B
=7

(1111011)2
CA1=0000100
CA2= 0000101
c) =846/16 = 52 r= E
=52/16 = 3
r=4
=3
(1101001110)2
CA1=0010110001
CA2=0010110010
d) =115/16 =7

r=3
=7

(1110011.011)2
CA1= 0001100.100
CA2= 0001100.101

0.375*16=6

d.- 115.375

e.- 349.78125

f.-

e) =349/16= 21
=21/16= 1

r= D
r=5
=1
(101011101.11001)2
CA1=010100010.00110
CA2=010100010.00111

0.78125*16= C
0.5*16
=8

f) =481/16= 30
=30/16 =1

r=1
r=E
=1

0.75*16= C

(111100001.11)2
CA1=000011110.00
CA2=000011110.01

7. Restar utilizando complemento A1 y A2:


a. 100110 11011
1

M
S

1 0 0 1 1 0
0 1 1 0 1 1

SCA
1

1 0 0 1 0 0

1 0 0 1 1 0
+ 1 0 0 1 0 0
1 0 0 1 0 1 0
+

1
1 0 1 1

Resp.:

M
S

1 0 0 1 1 0
0 1 1 0 1 1

1 0 0 1 0 0
+
1

SCA
2

1 0 0 1 1 0
+ 1 0 0 1 0 1
1 0 0 1 0 1 1
Resp.:

1 0 1 1

1 0 0 1 0 1

b. 1101010 - 110100
1

M 1 1 0 1 0 1 0
S
1 1 0 1 0 0
SCA
1

1 1 0 1 0 1 0
+ 0 0 1 0 1 1
1 1 1 0 1 0 1

0 0 1 0 1 1
Resp.:

1 0 1 0
1

M 1 1 0 1 0 1 0
S
1 1 0 1 0 0
1

SCA
1
SCA
2

0 0 1 0 1 1
+
1
0 0 1 1 0 0

1 1 0 1 0 1 0
+ 0 0 1 1 0 0
1 1 1 0 1 1 0

0 0 0 1 0 0 1
+
Resp.:

1
1 0 1 0

c. 10011.1101 - 101.11
1

1
1 0 0 1 . 1 1 0 1
1
0 0 1 0 . 1 1 0 0

SCA
1

1 1 0 1

0
. 0 0 1 1

1
1 0 0 1 . 1 1 0 1
1
0 0 1 0 . 1 1 0 0
1

SCA
1
SCA
2

1 1 1

0
. 0 0 0 1

0
1 1 0 1 . 0 0 1 1
+
1
0
1 1 0 1 . 0 1 0 0
1 1 1

0
. 0 0 0 1

d. 1010111 1111011
M
S

1 0 1 0 1 1 1
1 1 1 1 0 1 1

SCA
1

0 0 0 0 1 0 0

1 0 1 0 1 1 1
+ 0 0 0 0 1 0 0
1 0 1 1 0 1 1

Resp.:

1 0 0 1 0 0
1

SCA
1
SCA
2

1
1 0 0 1 . 1 1 0 1
0
+ 1 1 0 1 . 0 1 0 0
0
1 0 1 1 1 . 0 0 0 1

Resp.:

M
S

Resp.:

1
1 0 0 1 . 1 1 0 1
0
+ 1 1 0 1 . 0 0 1 1
0
1 0 1 1 1 . 0 0 0 0

1 0 1 0 1 1 1
1 1 1 1 0 1 1

1 0 1 0 1 1 1
+ 0 0 0 0 1 0 1
1 0 1 1 1 0 0

0 0 0 0 1 0 0
+
1

0 1 0 0 0 1 1

0 0 0 0 1 0 1
Resp.:

+
1
- 1 0 0 1 0 0

8. Represente los siguientes nmeros en NBCD y como un nmero binario


a. (820)10 b.- (19.75)10
c.- (25.2)10
d.- (21.45)10
a)
=820/16=51 r=4
=51/16=3 r=3
=3
(001100110100)NBCD
(1100110100)2
b)
=19/16=1

r=3

=0.75*16= C

=1
(00010011.1100)NBCD
(10011.11)2
c)

=25/16=1

r=9

=0.2*16= 3

=1
(00011001.0011....)NBCD
(11001.0011.....)2

d)
=21/16=1 r=5
=1

=0.45*16= 7
=0.2*16=3

(00010101.01110011)NBCD
(10101.01110011)2

9. Definir: bit, byte, cdigo NBCD y ASCII.


Bit: El bit es la unidad mnima de informacin empleada en informtica, en
cualquier dispositivo digital (0,1).
Byte: Conjunto de 8 bits.
Cdigo NBCD: Decimal codificado en binario es un estndar para representar
nmeros decimales en el sistema binario, en donde cada dgito decimal es
codificado con una secuencia de 4 bits.
Cdigo ASCII: es un cdigo de caracteres basado en el alfabeto latino, tal
como se usa en ingls moderno y en otras lenguas occidentales.

10. Escriba sus nombres y apellidos completos en cdigo ASCII.


E
1000101
T
1010100

m
1101101
o
1101111

i
1101001
b
1100010

l
1101100
a
1100001

y
1111001
r
1110010

K
1001011
V
1010110

a
1100001
i
1101001

r
1110010
d
1100100

i
1101001
a
1100001

n
1101110
l
1101100

a
1100001

11. Para el siguiente vector de datos 10011110101011111000111, determine los bits del cdigo de Hammimg, asuma un error de bit sencillo y
demuestre que el cdigo detecta y corrige el error.
2
8
1

2
7
0

2
6
0

2
5
1

2
4
1

2
3
1

2
2
1

2
1
0

0
0

0
0

1
1

0
1

0
0

0
0

0
0

1
0

0
1

1
1

0
0

1
0

1
1

0
1

0
1

0
0

1
0

1
0

0
1

1
0

0
0
0

1
1
1

1
1
1

1
0
1

0
0
1

1
2
1
3
1
4
1

20
1

1
9
0

1
8
1

1
7
0

1
6
1

1
5
1

1
4
1

1
8
2
0
2
2
2
3
2
4
2

1
3
1

1 1
2 1
1 H

1
0
0

9 8
0 H

1
0

0
0

0
0

1
0

0
1

1
1

0
0

1
1

0
0

0
1

1
0

0
0

1
0

1
1

0
1

1
1

0
0

1
1

1
0

1
0

1
0
1

1
1
1

0
1
0

0
0
0

0
0
1

7 6
0 H

5
1

4 3
1 H

2 1
1 H

5
0

1
6

2
8
1

2
7
0

2
6
0

1
2
8

1
1

0
0

0
0

0
1

0
1

2
5
1

2
4
1

2
3
1

2
2
1

2
1
0

2
0
1

1
9
0

0
0

0
1

0
0

1
1

0
1

0
0

0
1

1
1

0
1

0
1

5
1
2
1
4
1
5
1
6

0
0

0
1

1
0

0
1

1
0

0
0

1
0

1
1

0
1

0
0

0
0

1
1

1
0

1
0

0
0

0
0

1
0

1
1

1
1

1
1

18
1

1
7
0

1
6
1

1
5
1

1
4
1

1
0

1
1

1
0

0
0

0
1 CODIGO

1
3
1

1
2
1

1
1
0

1
0
0

9
0

8
1

7
0

1
0

0
0

0
1

1
0

0
1

1
1

0
0

1
0

0
0

0
1

1
0

0
0

1
1

1
1

0
1

1
1

0
0

1
0

1
0

1
0

1
0

1
1

0
0

0
0

0
0

1
1

1
0

0
0

0
0

1
1

1
8
2
0
2
2
2
3
2
4
2
5
2
8

6
0

5
1

4
1

3
0

2
1

1
1

12. Escriba su primer nombre y apellido en cdigo ASCII y transmita con paridad par y paridad impar.

Paridad par
0

E
1000101

M
1101101

i
1101001

l
1101100

y
T
1111001 1010100

o
b
1101111 1100010

a
1100001

r
1110010

You might also like