circuito digital aula3 portas logicas

15

Click here to load reader

Upload: tarcisioti

Post on 04-Jul-2015

4.816 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Circuito Digital Aula3 portas logicas

___________________________________UESPI – UNIVERSDADE ESTADUAL DO PIAUÍBacharelado em Ciências da Computação

CIRCUITO DIGITAL

Funções e Portas Lógicas– Função AND / Tabela Verdade – Função OR / Tabela Verdade– Função NOT– Função NAND– Função NOR

Tarcísio Franco Jaime

Page 2: Circuito Digital Aula3 portas logicas

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

Prof.

Tar

císio

Fran

coPr

of. T

arcís

io Fr

anco

Funções e Portas Lógicas

No início os problemas eram resolvidos usando sistemas lineares.

George Boole desenvolveu um sistema matemático de análise lógica. Álgebra de Boole.

Álgebra de Boole usada em problemas de eletrônica digital.

Utilização de blocos básicos para implementar todas expressões geradas pela álgebra de boole

Page 3: Circuito Digital Aula3 portas logicas

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

Prof.

Tar

císio

Fran

coPr

of. T

arcís

io Fr

anco

Funções e Portas Lógicas

Funções lógicas assumen dois estados: O estado 0(zero): representa não, porta

fechada, aparelho desligado, chave aberta, etc.

O estado 1(um): representa sim, porta aberta, aparelho ligado, chave fechada, etc.

Qual relação entre 0 e 1?

Page 4: Circuito Digital Aula3 portas logicas

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

Prof.

Tar

císio

Fran

coPr

of. T

arcís

io Fr

anco

Funções e Portas Lógicas

Funções E ou AND Mais conhecida como função AND, faz a

multiplicação de 2 ou mais variáveis booleanas.

Representação algébrica para 2 variáveis: S=A.B

Page 5: Circuito Digital Aula3 portas logicas

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

Prof.

Tar

císio

Fran

coPr

of. T

arcís

io Fr

anco

Funções e Portas Lógicas

Situações possíveis porta AND:

1º)Chave A aberta(0) e Chave B aberta(0)− S= 0.0 = 0

2º)Chave A aberta(0) e Chave B fechada(1)− S=0.1 = 0

3º)Chave A fechada(1) e Chave B aberta(0)− S=1.0 = 0

4º)Chave A fechada(1) e Chave B fechada(1)− S= 1.1 = 1

Page 6: Circuito Digital Aula3 portas logicas

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

Prof.

Tar

císio

Fran

coPr

of. T

arcís

io Fr

anco

Funções e Portas Lógicas

Tabela da Verdade de uma Função AND 2 Variáveis:

A B S

0 0 0

0 1 0

1 0 0

1 1 1

Page 7: Circuito Digital Aula3 portas logicas

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

Prof.

Tar

císio

Fran

coPr

of. T

arcís

io Fr

anco

Funções e Portas Lógicas

O Número de situações possíveis é igual a 2N, onde N é o númro de variáveis de entrada. N=3 .:. 23 = 8 (combinações)

A B C S

0 0 0 0

0 0 1 0

0 1 0 0

0 1 1 0

1 0 0 0

1 0 1 0

1 1 0 0

1 1 1 1

Page 8: Circuito Digital Aula3 portas logicas

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

Prof.

Tar

císio

Fran

coPr

of. T

arcís

io Fr

anco

Funções e Portas Lógicas

Função OR Representação algébrica: S = A+B

Page 9: Circuito Digital Aula3 portas logicas

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

Prof.

Tar

císio

Fran

coPr

of. T

arcís

io Fr

anco

Funções e Portas Lógicas

Situações possíveis porta OR:

1º)Chave A aberta(0) e Chave B aberta(0)− S= 0+0 = 0

2º)Chave A aberta(0) e Chave B fechada(1)− S=0+1 = 1

3º)Chave A fechada(1) e Chave B aberta(0)− S=1+0 = 1

4º)Chave A fechada(1) e Chave B fechada(1)− S= 1+1 = 1

Page 10: Circuito Digital Aula3 portas logicas

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

Prof.

Tar

císio

Fran

coPr

of. T

arcís

io Fr

anco

Funções e Portas Lógicas

Tabela da Verdade de uma Função OR 2 Variáveis:

A B S

0 0 0

0 1 1

1 0 1

1 1 1

Page 11: Circuito Digital Aula3 portas logicas

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

Prof.

Tar

císio

Fran

coPr

of. T

arcís

io Fr

anco

Funções e Portas Lógicas

Tabela com 4 variáveis, onde N é o númro de variáveis de entrada. N=4 .:. 24 = 16

A B C D S

0 0 0 0 0

0 0 0 1 1

0 0 1 0 1

0 0 1 1 1

0 1 0 0 1

0 1 0 1 1

0 1 1 0 1

0 1 1 1 1

1 0 0 0 1

1 0 0 1 1

1 0 1 0 1

1 0 1 1 1

1 1 0 0 1

1 1 0 1 1

1 1 1 0 1

1 1 1 1 1

Page 12: Circuito Digital Aula3 portas logicas

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

Prof.

Tar

císio

Fran

coPr

of. T

arcís

io Fr

anco

Funções e Portas Lógicas

Funções NOT Inverte ou complementa o estado da

variável. Se a variável for 0 vai para 1, e se for 1 vai para 0.

Representação algébrica : S=A

Page 13: Circuito Digital Aula3 portas logicas

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

Prof.

Tar

císio

Fran

coPr

of. T

arcís

io Fr

anco

Funções e Portas Lógicas

Situações possíveis porta NOT:

1º)Chave A aberta(0): S= 1

2º)Chave A fechada(1): S=0

A S

0 1

1 0

Page 14: Circuito Digital Aula3 portas logicas

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

Prof.

Tar

císio

Fran

coPr

of. T

arcís

io Fr

anco

Funções e Portas Lógicas

Função NAND:– Composição da função NOT com AND (AND

invertida)

– Representação algébrica: S=(A.B)

A B A.B S

0 0 0 1

0 1 0 1

1 0 0 1

1 1 1 0

Page 15: Circuito Digital Aula3 portas logicas

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

UESPI

–UNIVE

RSIDA

DE ES

TADU

AL DO

PIAU

I - CI

RCUIT

O DIGI

TAL

Prof.

Tar

císio

Fran

coPr

of. T

arcís

io Fr

anco

Funções e Portas Lógicas

Função NOR:– Composição da função NOT com OR (OR

invertida)

– Representação algébrica: S=(A+B)

A B A+B S

0 0 0 1

0 1 1 0

1 0 1 0

1 1 1 0