# Compuertas, microcontrolador pic16f84a y plc's

Páginas: 8 (1886 palabras) Publicado: 12 de mayo de 2011
Instituto Politécnico Nacional
Escuela Superior de Ingeniería Mecánica y Eléctrica

“Ejercicios”
Compuertas
PLC

Alumno:
Boleta:
2008360689

Fecha de entrega:
Miércoles, 12 de Enero de 2011
Compuertas

Diagrama:

C in | B 0 | A 0 | C out | S |
| | | | |
0 | 0 | 0 | 0 | 0 |
0 | 0 | 1 | 0 | 1 |
0 | 1 | 0 | 0 | 1 |
0 | 1 | 1 | 1 | 0 |
1 | 0 | 0 | 0 | 1 |
1 | 0 | 1 | 1 | 0 |
1 | 1 | 0 | 1 | 0 |
1 | 1 | 1 | 1 | 1 |

S=Ci + B+A
C0=BA+CiA+CiB
Circuito:

Diagrama:

Bi | B | A | B 0 | R |
| | | | |
0 | 0 | 0| 0 | 0 |
0 | 0 | 1 | 1 | 1 |
0 | 1 | 0 | 0 | 1 |
0 | 1 | 1 | 0 | 0 |
1 | 0 | 0 | 1 | 1 |
1 | 0 | 1 | 1 | 0 |
1 | 1 | 0 | 0 | 0 |
1 | 1 | 1 | 1 | 1 |

R=Bi + (B+A)
B0=BA+BiB+ABi
Circuito:

3. Comparador de 2 Bits, Salida 1 cuando A ≥ B.
Diagrama:

B 1 | B 0 | A 1 | A 0 | S |
| | | | |
0 | 0 | 0 | 0 | 1 |
0 | 0 | 0 | 1 | 1 |
0 | 0 | 1 | 0 |1 |
0 | 0 | 1 | 1 | 1 |
0 | 1 | 0 | 0 | 0 |
0 | 1 | 0 | 1 | 1 |
0 | 1 | 1 | 0 | 1 |
0 | 1 | 1 | 1 | 1 |
1 | 0 | 0 | 0 | 0 |
1 | 0 | 0 | 1 | 0 |
1 | 0 | 1 | 0 | 1 |
1 | 0 | 1 | 1 | 1 |
1 | 1 | 0 | 0 | 0 |
1 | 1 | 0 | 1 | 0 |
1 | 1 | 1 | 0 | 0 |
1 | 1 | 1 | 1 | 1 |

S=B1 B0+B1 A0+B1 A1+A1 A0+B0 A1
Circuito:

4. Diseñar un Circuito Multiplicador de 2 Números, de 2Bits.
Diagrama:

B 1 | B 0 | A 1 | A 0 | | M 3 | M 2 | M 1 | M 0 |
| | | | | | | | |
0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 1 | | 0 | 0 | 0 | 0 |
0 | 0 | 1 | 0 | | 0 | 0 | 0 | 0 |
0 | 0 | 1 | 1 | | 0 | 0 | 0 | 0 |
0 | 1 | 0 | 0 | | 0 | 0 | 0 | 0 |
0 | 1 | 0 | 1 | | 0 | 0 | 0 | 1 |
0 | 1 | 1 | 0 | | 0 | 0 | 1 | 0 |
0 | 1 | 1 | 1 | | 0| 0 | 1 | 1 |
1 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 |
1 | 0 | 0 | 1 | | 0 | 0 | 1 | 0 |
1 | 0 | 1 | 0 | | 0 | 1 | 0 | 0 |
1 | 0 | 1 | 1 | | 0 | 1 | 1 | 0 |
1 | 1 | 0 | 0 | | 0 | 0 | 0 | 0 |
1 | 1 | 0 | 1 | | 0 | 0 | 1 | 1 |
1 | 1 | 1 | 0 | | 0 | 1 | 1 | 0 |
1 | 1 | 1 | 1 | | 1 | 0 | 0 | 1 |

M0=A0 B0
M1=A1 B1 B0+A1 A0 B0+A1 A0 B1+A0 B1 B0
M2=B1 A1 A0+A1 B1 B0
M3=B1 B0 A1 A0Circuito:

5. Diseñar un Convertidor de Código, de Binario a Gray, de 3 Bits.
Diagrama:

B 2 | B 1 | B 0 | | G 2 | G 1 | G 0 |
| | | | | | |
0 | 0 | 0 | | 0 | 0 | 0 |
0 | 0 | 1 | | 0 | 0 | 1 |
0 | 1 | 0 | | 0 | 1 | 1 |
0 | 1 | 1 | | 0 | 1 | 0 |
1 | 0 | 0 | | 1 | 1 | 0 |
1 | 0 | 1 | | 1 | 1 | 1 |
1 | 1 | 0 | | 1 | 0 | 1 |
1 | 1 | 1 | |1 | 0 | 0 |

G0=B1 + B0
G1=B2 + B1
G2=B2

Circuito:

6. Diseñar un Convertidor Binario a BCD de 4 Bits.
Diagrama:

B 3 | B 2 | B 1 | B 0 | | D 0 | U 3 | U 2 | U 1 | U 0 |
| | | | | | | | | |
0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 1 | | 0 | 0 | 0 | 0 | 1 |
0 | 0 | 1 | 0 | | 0 | 0 | 0 | 1 | 0 |
0 | 0 | 1 | 1 | | 0 | 0 | 0 | 1 | 1|
0 | 1 | 0 | 0 | | 0 | 0 | 1 | 0 | 0 |
0 | 1 | 0 | 1 | | 0 | 0 | 1 | 0 | 1 |
0 | 1 | 1 | 0 | | 0 | 0 | 1 | 1 | 0 |
0 | 1 | 1 | 1 | | 0 | 1 | 1 | 1 | 1 |
1 | 0 | 0 | 0 | | 0 | 1 | 0 | 0 | 0 |
1 | 0 | 0 | 1 | | 0 | 0 | 0 | 0 | 1 |
1 | 0 | 1 | 0 | | 1 | 0 | 0 | 0 | 0 |
1 | 0 | 1 | 1 | | 1 | 0 | 0 | 0 | 1 |
1 | 1 | 0 | 0 | | 1 | 0 | 0 | 1 | 0 |
1 | 1 | 0 | 1 | | 1 | 0 |0 | 1 | 1 |
1 | 1 | 1 | 0 | | 1 | 0 | 1 | 0 | 0 |
1 | 1 | 1 | 1 | | 1 | 0 | 1 | 0 | 1 |

Circuito:

7. Diseñar un Contador Gray Ascendente de 3 Bits síncrono con JK.
Diagrama:

Q 2 | Q 1 | Q 0 | | Q 2 * | Q 1 * | Q 0 * |
| | | | | | |
0 | 0 | 0 | | 0 | 0 | 1 |
0 | 0 | 1 | | 0 | 1 | 1 |
0 | 1 | 0 | | 1 | 1 | 0 |
0 | 1 | 1 | | 0 | 1 | 0 |...

Regístrate para leer el documento completo.