1. ___________________________________
UESPI – UNIVERSDADE ESTADUAL DO PIAUÍ
Bacharelado em Ciências da Computação
CIRCUITO DIGITAL
Circuitos Digitais e Analógicos
Sistemas de Numeração
Soma/Subtração de binários
Tarcísio Franco Jaime
2. Circuitos Digitais e Analógicos
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
Circuitos analógicos utilizam no seu
funcionamento grandezas continuamente
variáveis.
Prof. Tarcísio Franco
Os circuitos digitais produzem sua saída,
respondendo a incrementos fixos.
Relógio Analógico e Digital
ESPI–UNIVERSIDADE
3. Circuitos Digitais e Analógicos
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
Circuito Analógico = Variáveis contínua
variação do tempo
Prof. Tarcísio Franco
Circuito Digital = Variáveis fixas em
períodos de tempo
Ex.: Rampa e Escada
ESPI–UNIVERSIDADE
4. Prof. Tarcísio Franco
hex
Octal
Binário
Decimal
Sistemas de Numeração
Sistema de numeração mais comum?
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
ESPI–UNIVERSIDADE
5. Sistemas de Numeração
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
573
= 500 + 70 + 3
Prof. Tarcísio Franco
ou
= 5 x 10^2 + 7 x 10^1 + 3 x 10^0
O dígito tem dois significados:
ESPI–UNIVERSIDADE
Um é o valor propriamente dito
O outro é o que está relacinado
6. Sistemas de Numeração
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
N = dn . B^n + . . . + d3 . B^3 + d2 . B^2
+ d1 . B^1 + d0 . B^0
Prof. Tarcísio Franco
Onde:
N = representação do número na base B
dn = dígito na posição n
B = base do sistema utilizado
ESPI–UNIVERSIDADE
n = valor posicional do dígito
7. Prof. Tarcísio Franco
Exemplo: 594, 1587
Sistemas de Numeração
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
ESPI–UNIVERSIDADE
8. Sistemas de Numeração Binário
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
Composto por 2(dois) valores
mutuamente excludentes.
Cheio e vazio
Prof. Tarcísio Franco
Verdadeiro e falso
Preto e branco
Ligado e desligado
ESPI–UNIVERSIDADE
9. Sistemas de Numeração Binário
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
Composto por 2(dois) valores
mutuamente excludentes.
Prof. Tarcísio Franco
x = aberto x = fechado
ESPI–UNIVERSIDADE
y = desligado y = ligado
Relação entre x e y?
10. Sistemas de Numeração Binário
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
Dígito binário (0 ou 1) é chamado bit
– 4 bit é um nibble
– 8 bit's um BYTE
Prof. Tarcísio Franco
Em comparação com o decimal, maior
quantidade bits para representar um
respectivo número em binário.
ESPI–UNIVERSIDADE
12. Conversão Decimal / Binário
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
Divisão sucessiva pela base 2 até o quociente seja
1
O número convertido é o último quociente até o
primeiro resto
Prof. Tarcísio Franco
O primeiro resto é o LSB (Leas Significant Bit)
O último quociente é o MSB(Most Significant Bit)
ESPI–UNIVERSIDADE
14. Prof. Tarcísio Franco
Exercício:
Conversão Decimal / Binário
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
ESPI–UNIVERSIDADE
15. Prof. Tarcísio Franco
Exercício:
Conversão Decimal / Binário
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
ESPI–UNIVERSIDADE
16. Soma de Binários
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
Segue idêntico ao sistema decimal
(0,1,2,3,4,5,6,7,8,9)
Binário (0,1)
Prof. Tarcísio Franco
(0,1)
=
ESPI–UNIVERSIDADE
CARRY
17. Prof. Tarcísio Franco
Soma de Binários
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
ESPI–UNIVERSIDADE
18. Prof. Tarcísio Franco
Borrow
=(0,1)
Subtração de Binários
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
ESPI–UNIVERSIDADE
19. Prof. Tarcísio Franco
Subtração de Binários
UESPI–UNIVERSIDADE ESTADUAL DO PIAUI - CIRCUITO DIGITAL
ESPI–UNIVERSIDADE