You are on page 1of 8

UNIVERSIDAD NACIONAL DE INGENIERÍA

FACULTAD DE ELECTROTECNIA Y COMPUTACIÓN

Departamento de Electrónica

Ingeniería Electrónica

Flip Flops

Tema

Contador Par-Impar Flip-Flop tipo D con entrada de Selección.

Julio Cantillano
Morena López

Ingeniero Carlos Ortega

3T1-EO

Managua, 23 de junio de 2017
Diagrama de Estados
Tabla de Estados

X Estados presente Estados futuro Entrada D

QA QB QC QD QA+1 QB+1 QC+1 QD+1 QA QB QC QD

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

Mapas de Karnaugh

DA DB
00 01 11 10 D.E D.E D.E D.E
000 0 0 0 0 A.B.C 0 0 1 1
001 0 0 0 1 A.B.C 1 1 0 0
011 1 1 0 0 A.B.C 1 1 0 0
010 1 1 1 1 A.B.C 0 0 1 1
100 0 0 0 0 A.B.C 0 0 1 0
101 0 0 1 0 A.B.C 1 1 0 1
111 1 1 0 1 A.B.C 1 1 0 1
110 1 1 1 1 A.B.C 0 0 1 0

DC DD
D.E D.E D.E D.E D.E D.E D.E D.E
A.B.C 1 1 0 0 A.B.C 0 0 0 0
A.B.C 1 1 0 0 A.B.C 0 0 0 0
A.B.C 1 1 0 0 A.B.C 0 0 0 0
A.B.C 1 1 0 0 A.B.C 0 0 0 0
A.B.C 0 1 0 1 A.B.C 1 1 1 1
A.B.C 0 1 0 1 A.B.C 1 1 1 1
A.B.C 0 1 0 1 A.B.C 1 1 1 1
A.B.C 0 1 0 1 A.B.C 1 1 1 1
Ecuaciones

̅𝑩
𝑫𝟏 = 𝑨 ̅ 𝑪𝑫 + 𝑩
̅ 𝑪𝑫𝑬 + 𝑨𝑩𝑬
̅ + 𝑩𝑫 ̅
̅ + 𝑩𝑪

̅𝑪
𝑫𝟐 = 𝑨 ̅𝑫 + 𝑨𝑪𝑬 ̅𝑫𝑬 + 𝑪𝑫
̅+ 𝑪 ̅

̅+ 𝑨
𝑫𝟑 = 𝑨𝑫𝑬 ̅𝑫̅+ 𝑫
̅𝑬

𝑫𝟒 = 𝑨

̅𝑨 𝑫𝑨
= 𝑿 ̅ 𝑩𝑪 + 𝑨
̅ 𝑩𝑪𝑫 + 𝑿𝑨𝑫 ̅ + 𝑨𝑩
̅ + 𝑨𝑪 ̅

̅𝑩
𝑫𝑩 = 𝑿 ̅ 𝑪 + 𝑿𝑩
̅𝑫 + 𝑩 ̅
̅ 𝑪𝑫 + 𝑩𝑪

̅+ 𝑿
𝑫𝑪 = 𝑿𝑪𝑫 ̅𝑪̅+ 𝑪
̅𝑫

𝑫𝑫 = 𝑿
Simulación

U1:A

6
U3
NOTX U9 Acarreo
5 1

S
NOTQA DAAND1 DA D Q QA
DAAND1 DAAND2
3
QB DAAND3 DA CLK CLK
QC DAAND4
AND_4 2
DAAND5 Q NOTQA

R
OR_5
U4
NOTQA

4
4013
QB
DAAND2 U14
QC DBAND1
QD DBAND2 U1:B
AND_4

8
DB
U5 DBAND3
9 13

S
DBAND4 DB D Q QB
OR_4
X
11
QA DAAND3 CLK CLK
NOTQD
12
U18 Q NOTQB

R
AND_3

U6 DCAND1

10
4013
DCAND2 DC
QA DCAND3
DAAND4
OR_3
NOTQC U2:A

6
AND_2
GND
5 1

S
U7 U15 DC D Q QC GND
3
QA X CLK CLK
DAAND5 QC DCAND1
2
NOTQB NOTQD Q NOTQC

R
AND_2 AND_3

4
4013

U16
U10
NOTX U2:B

8
NOTX DCAND2
NOTQB DBAND1 NOTQC
9 13

S
QC X D Q QD
AND_2
AND_3 11
CLK CLK
U17 12
U11
R Q NOTQD
NOTQC
X DCAND3
10

4013
QB DBAND2 QD
NOTQD
AND_2
AND_3

CLK
U12 U8
NOTQB
CLK 1 X

QC DBAND3 X NOTX
QD
NOT
AND_3

U13
QB
DBAND4
NOTQC
AND_2
Contador Par con X=0
U1:A U20

6
U3 7 13
NOTX U9 Acarreo A QA QA7SEG1
5 1 1 12

S
NOTQA DAAND1 DA D Q QA GND B QB QB7SEG1
2 11
DAAND1 DAAND2 GND C QC QC7SEG1
3 6 10
QB DAAND3 DA CLK CLK GND D QD QD7SEG1
4 9
QC DAAND4 BI/RBO QE QE7SEG1
AND_4 2 5 15
DAAND5 Q NOTQA RBI QF QF7SEG1

R
OR_5 3 14
U4 LT QG QG7SEG1
NOTQA

4
4013 7447
QB
DAAND2 U14 U19
QC DBAND1
7 13
QD DBAND2 U1:B S1-A A QA QA7SEG
AND_4 1 12

8
DB S1-B B QB QB7SEG
2 11
U5 DBAND3 S1-C C QC QC7SEG
9 13 6 10

S
DBAND4 DB D Q QB S1-D D QD QD7SEG
OR_4 4 9
X BI/RBO QE QE7SEG
11 5 15
QA DAAND3 CLK CLK RBI QF QF7SEG
3 14
NOTQD LT QG QG7SEG
12
U18 Q NOTQB

R
AND_3 7447
U43
U6 DCAND1

10
4013 10
DCAND2 DC QD A0
12
QA DCAND3 QC A1
13
DAAND4 QB A2
OR_3 15
NOTQC U2:A QA A3
9

6
B0
AND_2 11
GND B1
5 1 14

S
U7 U15 DC D Q QC GND B2
1
B3
3 2 7
QA X CLK CLK A<B QA<B
3 6
DAAND5 QC DCAND1 A=B QA=B
2 4 5
NOTQB NOTQD Q NOTQC A>B QA>B QA>B

R
AND_2 AND_3 7485
U47

4
4013
10 9
U16 QD A1 S1 S1-A
8 6
U10 QC A2 S2 S1-B
3 2
NOTX U2:B QB A3 S3 S1-C
1 15

8
NOTX DCAND2 QA A4 S4 S1-D
NOTQB DBAND1 NOTQC
9 13 11

S
QC X D Q QD GND B1
AND_2 7
QA>B B2
AND_3 11 4
CLK CLK QA>B B3
16
U17 GND B4
12
U11 Q NOTQD

R
13 14
NOTQC GND C0 C4 ACARREO
X DCAND3

10
4013 7483
QB DBAND2 QD
NOTQD
AND_2
AND_3

U12 U8
NOTQB
QC DBAND3 X NOTX
QD
NOT
AND_3
QA7SEG1 QA7SEG
QB7SEG1 QB7SEG
U13 QC7SEG1 QC7SEG
CLK
QD7SEG1 QD7SEG
QB
DBAND4
CLK 0 X QE7SEG1
QF7SEG1
QE7SEG
QF7SEG
NOTQC QG7SEG1 QG7SEG
AND_2

Contador Impar con X=1
U1:A U20
6

U3 7 13
NOTX U9 Acarreo A QA QA7SEG1
5 1 1 12
S

NOTQA DAAND1 DA D Q QA GND B QB QB7SEG1
2 11
DAAND1 DAAND2 GND C QC QC7SEG1
3 6 10
QB DAAND3 DA CLK CLK GND D QD QD7SEG1
4 9
QC DAAND4 BI/RBO QE QE7SEG1
AND_4 2 5 15
DAAND5 Q NOTQA RBI QF QF7SEG1
R

OR_5 3 14
U4 LT QG QG7SEG1
NOTQA
4

4013 7447
QB
DAAND2 U14 U19
QC DBAND1
7 13
QD DBAND2 U1:B S1-A A QA QA7SEG
AND_4 1 12
8

DB S1-B B QB QB7SEG
2 11
U5 DBAND3 S1-C C QC QC7SEG
9 13 6 10
S

DBAND4 DB D Q QB S1-D D QD QD7SEG
OR_4 4 9
X BI/RBO QE QE7SEG
11 5 15
QA DAAND3 CLK CLK RBI QF QF7SEG
3 14
NOTQD LT QG QG7SEG
12
U18 Q NOTQB
R

AND_3 7447
U43
U6 DCAND1
10

4013 10
DCAND2 DC QD A0
12
QA DCAND3 QC A1
13
DAAND4 QB A2
OR_3 15
NOTQC U2:A QA A3
9
6

B0
AND_2 11
GND B1
5 1 14
S

U7 U15 DC D Q QC GND B2
1
B3
3 2 7
QA X CLK CLK A<B QA<B
3 6
DAAND5 QC DCAND1 A=B QA=B
2 4 5
NOTQB NOTQD Q NOTQC A>B QA>B QA>B
R

AND_2 AND_3 7485
U47
4

4013
10 9
U16 QD A1 S1 S1-A
8 6
U10 QC A2 S2 S1-B
3 2
NOTX U2:B QB A3 S3 S1-C
1 15
8

NOTX DCAND2 QA A4 S4 S1-D
NOTQB DBAND1 NOTQC
9 13 11
S

QC X D Q QD GND B1
AND_2 7
QA>B B2
AND_3 11 4
CLK CLK QA>B B3
16
U17 GND B4
12
U11 Q NOTQD
R

13 14
NOTQC GND C0 C4 ACARREO
X DCAND3
10

4013 7483
QB DBAND2 QD
NOTQD
AND_2
AND_3

U12 U8
NOTQB
QC DBAND3 X NOTX
QD
NOT
AND_3
QA7SEG1 QA7SEG
QB7SEG1 QB7SEG
U13 QC7SEG1 QC7SEG
CLK
QD7SEG1 QD7SEG
QB
DBAND4
CLK 1 X QE7SEG1
QF7SEG1
QE7SEG
QF7SEG
NOTQC QG7SEG1 QG7SEG
AND_2
RTL Esquemático