circuito digital aula 01
DESCRIPTION
Circuitos Digitais e Analógicos Sistemas de Numeração Soma/Subtração de bináriosTRANSCRIPT
![Page 1: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/1.jpg)
___________________________________UESPI – UNIVERSDADE ESTADUAL DO PIAUÍBacharelado em Ciências da Computação
CIRCUITO DIGITAL
Circuitos Digitais e AnalógicosSistemas de NumeraçãoSoma/Subtração de binários
Tarcísio Franco Jaime
![Page 2: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/2.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Circuitos Digitais e Analógicos
Circuitos analógicos utilizam no seu funcionamento grandezas continuamente variáveis.
Os circuitos digitais produzem sua saída, respondendo a incrementos fixos.
Relógio Analógico e Digital
![Page 3: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/3.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Circuitos Digitais e Analógicos
Circuito Analógico = Variáveis contínua variação do tempo
Circuito Digital = Variáveis fixas em períodos de tempo
Ex.: Rampa e Escada
![Page 4: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/4.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Sistemas de Numeração
Sistema de numeração mais comum? Decimal Binário Octal hex
![Page 5: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/5.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Sistemas de Numeração
573
= 500 + 70 + 3
ou
= 5 x 10^2 + 7 x 10^1 + 3 x 10^0 O dígito tem dois significados:
Um é o valor propriamente dito O outro é o que está relacinado
![Page 6: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/6.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Sistemas de Numeração
N = dn . B^n + . . . + d3 . B^3 + d2 . B^2 + d1 . B^1 + d0 . B^0
Onde:
N = representação do número na base B
dn = dígito na posição n
B = base do sistema utilizado
n = valor posicional do dígito
![Page 7: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/7.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Sistemas de Numeração
Exemplo: 594, 1587
![Page 8: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/8.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Sistemas de Numeração Binário
Composto por 2(dois) valores mutuamente excludentes. Cheio e vazio Verdadeiro e falso Preto e branco Ligado e desligado
![Page 9: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/9.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Sistemas de Numeração Binário
Composto por 2(dois) valores mutuamente excludentes.
x = aberto x = fechado
y = desligado y = ligado
Relação entre x e y?
![Page 10: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/10.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Sistemas de Numeração Binário
Dígito binário (0 ou 1) é chamado bit– 4 bit é um nibble
– 8 bit's um BYTE Em comparação com o decimal, maior
quantidade bits para representar um respectivo número em binário.
![Page 11: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/11.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Conversão Binário / Decimal
1101 = 1.2³ + 1.2² + 0.2¹ + 1.2°
= 8 + 4 + 0 + 1 = 13
11010 = > 1 . 2^4 + 1 . 2^3 + 0 . 2^2 + 1 . 2^1 + 0 . 2^0
11010 = > 16 + 8 + 0 + 2 + 0 11010 = > 26 (D)
1100100 = > 1 . 2^6 + 1 . 2^5 + 0 . 2^4 + 0 . 2^3 + 1 . 2^2 + 0 . 2^1 + 0 . 2^0
1100100 = > 64 + 32 + 0 + 0 + 4 + 0 + 0 1100100 = 100 (D)
![Page 12: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/12.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Conversão Decimal / Binário
Divisão sucessiva pela base 2 até o quociente seja 1
O número convertido é o último quociente até o primeiro resto
O primeiro resto é o LSB (Leas Significant Bit) O último quociente é o MSB(Most Significant Bit)
![Page 13: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/13.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Conversão Decimal / Binário
23 |2____1 11 |2____ 1 5 |2____ 1 2 |2____ 0 1 - bit mais significativo
23 (10) = 10111 (2)
52 |2____0 26 |2____
0 13 |2____ 1 6 |2 ____ 0 3 |2____ 1 1
52 (10) = 110100 (2)
![Page 14: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/14.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Conversão Decimal / Binário
Exercício:
![Page 15: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/15.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Conversão Decimal / Binário
Exercício:
![Page 16: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/16.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Soma de Binários
Segue idêntico ao sistema decimal (0,1,2,3,4,5,6,7,8,9)
Binário (0,1)
( 0 , 1 )
CARRY
=
![Page 17: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/17.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Soma de Binários
![Page 18: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/18.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Subtração de Binários
( 0 , 1 ) =
Borrow
![Page 19: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/19.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Subtração de Binários
![Page 20: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/20.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Exercícios
1) 11001(2) + 1011(2)
2) 101101(2) + 11100011(2)
3) 11111(2) + 111111(2)
4) 100111(2) + 1110(2) + 1011(2)
5) 1010(2) – 1000(2)
6) 10010(2) – 10001(2)
7) 11000(2) – 111(2)
![Page 21: Circuito Digital aula 01](https://reader033.vdocuments.site/reader033/viewer/2022060123/5597946a1a28abf3108b4717/html5/thumbnails/21.jpg)
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
UESP
I–UNIV
ERS ID
ADE E
STAD
U AL D
O PIAU
I - CI
RCUI T
O DIGI
TAL
Prof.
Tar
c ísio
Fran
coPr
of. T
arc ís
io Fr
anco
Exercícios
1) 11001(2) + 1011(2) = 100100(2)
2) 101101(2) + 11100011(2)=100010000(2)
3) 11111(2) + 111111(2)=1011110(2)
4) 100111(2) + 1110(2) + 1011(2)=1000000(2)
5) 1010(2) – 1000(2) = 10(2)
6) 10010(2) – 10001(2) = 1(2)
7) 11000(2) – 111(2) = 10001(2)