AE07. L061KCK7

Circuits

Digital Circuits

Analog Circuits

Digital Signal

represent data

Analog Signal

image

image

high precision not needed

image

more values, less precision when noise is added

amplitude has continuous values

limited ranges of amplitude

Values can be still determined if affected by noise (not too high)

Not need as precise values as analog

Easy to produce million of components at large scale

Binary System: 1 and 0

interpret data

Positive logic

Negative logic

logic ranges and noise margins

image

store data

bit

digital words

nibble: 4 digits

byte: 8 digits

transmit data

Parallel Transmission

Serial Transmission

one wire per bit in word, plus ground wire

one bit after the other, single pair of wires

long-distance

faster, short distances

representing numerical data

1 digit

Binary Arithmetic

Addition

position

Gray Code

image

Subtraction

output depends only on current input

image

COMBINATORIAL LOGIC CIRCUIT

operate with inputs

Logic Gates

AND gate

truth table

rules

Boolean Algebra

AND

A(BC)=(AB)C

image

image

NOT gate

image

higher amplitude:1; lower amplitude:0

higher amplitude:0; lower amplitude:1

numbers

Binary form

Hexadecimal-Binary Conversion

Binary-Coded Decimal Format (BCD)

OR gate

truth table

image

OR

image

image

A(B + C) = AB + AC

A + 0 = A

A + 1 = 1

image

A + A = A

truth table

image

NOT

image

image

A0=0

A1=1

(A + B) + C = A + (B + C) = A + B + C

image

De Morgan's Law

image

image

image

image

way to remember

Invert variables, switch places between AND and OR, invert entire expression = same as before

grouping / ungrouping

Octal-Binary Conversion

grouping / ungrouping

Binary-Decimal Conversion

image

Multiplication

Division

image

image

Two's Complement form

8421 BCD

4221 BCD

since the maximum digit is 9=4+2+2+1

maximizing speed, free from errors

image

Binary Code

image

erroneous positions during transition if digits don't change simultaneously

in theory

image

in practice

image

only one line needs to change (used in Karnaugh maps)

start with line of zeros, change the lsb to a new state

do not confuse with Binary Arithmetic

1: true 0: false

image

"the bar of the sum is the product of the bars",
'the bar of the product is the sum of the bars"

image

truth table

image

image

image

image

image

high output only if both inputs have same value

to apply logic signal to low-impedance load

implement logic circuits

minimize logic circuits

only one type of operation

NAND

AND from NAND

NOT from NAND

OR from NAND

SOP Implementation

POS Implementation

image

stored in computer, useful for calculations

division (multiplication for decimal part) / weighted sum

sum of minterms corresponding to a line of the truth table for which the output is 1

product of maxterms corresponding to a line of the truth table for which the output is 0.

image

Karnaugh Maps

image

image

image

image

image

Borrow to compute

Carry to compute

output depends on both present and past input

image

SEQUENTIAL LOGIC CIRCUITS

building block

image

have memory

Flip-Flops

Simple Flip Flop

image

two stable states possible

not useful, can't control states

Set-Reset Flip-Flop (SR FF)

image

image

image

Clocked SR FF

can control states

used to debounce a switch

image

Clocked SR FF with Asynchronous Inputs

image

image

image

can also control moment that FF responds to inputs

clock signal must be high to enable R and S signals as inputs of the SR FF

with R and S low, the SR FF "remembers" which input (R or S) was high most recently

Edge-Triggered D Flip-Flop

image

image

image

can also set or clear FF independently of clock

if preset input is high, Q becomes high; if clear input is high, Q becomes low

if S is high and R low, Q is high ; if R is high and S low, Q is low

responds to inputs only at a transition in the clock signal

respond when clock switches from low to high (leading edge)

respond when clock switches from high to low (trailing edge)

Positive-edge-triggered circuits

Negative-edge-triggered circuits

D Flip-Flop

image

image

JK Flip-Flop

image

image

image

image

delays data D from reaching output one clock pulse

SR FF in which S and R are complement

Interconnecting flip-flops

Registers

Counter

Parallel-In Serial-Out Shift Register

Serial-In Parallel-Out Shift Register

Octal

Hexadecimal

BCD

AB=BA

Logic gates can be interconnected to form flip-flops. Interconnections of flip-flops form registers. A complex digital system, such as a computer, consists of many gates, flip-flops, and registers. Thus, logic gates are the basic building blocks for complex digital systems

similar to SR FF, except that if the J and K inputs are both high, the output toggles on the next trailing edge