DLF Microprocessor 02 2017 18
DLF Microprocessor 02 2017 18
DIGITAL ELECTRONICS
& MICROPROCESSOR
Unit : I - V
Unit : I – Overview
Number System
Binary System
Binary Code
Logic Gates
Boolean Algebra
Truth Tables
Universal Gates
Simplification of Boolean functions
Karnaugh Map
Combinational Logic
Number System
Number System is a system of representing letters or numbers in
computer understandable form.
Examples – Binary, Decimal, Octal and Hexadecimal
Octal 8 0,1,2,3,4,5,6,7
Hexadecimal 16 0,1,2,3,4,5,6,7,8,9,A,
B,C,D,E,F
Code Conversion
• Conversion from any Number system to Decimal
• Conversion from decimal to other system
• Conversion from Binary to Octal / Hexadecimal
• Conversion from Octal / Hexadecimal to binary
• Conversion from Decimal to other system
a a
OR a+b + a+b
b b
NOT a 1 a'
a a'
a a
(a.b)' & (a.b)'
NAND b b
a a
NOR (a+b)' 1 (a+b)'
b b
a a
EXCLUSIVE OR ab =1 ab
b b
Commutative Law
A+B=B+A
A.B=B.A
Associative Law
A + (B + C) = (A + B) + C
A (BC) = (AB) C
Distributive Law
A (B + C) = AB + AC
Theorem 1:
―The complement of a product is equal to the sum of individual
complements.‖ In other words,
(AB)‘ = A‘ + B‘ or
NAND = Bubbled OR
Theorem 2:
―The complement of a sum is equal to the product of individual
complements.‖ In other words,
(A + B)‘ = A‘ . B‘ or
NOR = Bubbled AND
The outputs of a sequential logic circuit depend on both the current inputs and
on previous inputs and outputs of the circuit.
Sequential elements have storage elements that record the state of the circuit.
In other words, the state information combined with the inputs is generating the
outputs.
The state and inputs also combine to generate a new state of the circuit.
The same inputs in a sequential circuit may generate different outputs and
different new states, depending on the circuit’s current state.
A bi-stable device i.e. a circuit with only 2 stable states, namely the ‘0’ state
and the ‘1’ state.
Ability to retain its state and store a bit of information.
It is one-bit memory cell.
A flip-flop has 2 outputs and they complement each other.
Types of Flip Flop – SR Flip Flop, JK Flip Flop, D Flip Flop, T Flip Flop.
On the leading edge of the first clock pulse, the signal on the D input is
latched in the first flip flop.
On the leading edge of the next clock pulse, the contents of the first flip-
flop is stored in the second flip-flop, and the signal which is present at the D
input is stored is the first flip-flop, etc.
Because the data is entered one bit at a time, this called a serial-in shift
register. Since there is only one output, and data leaves the shift register
one bit at a time, then it is also a serial out shift register.
000
111
001
101 011
100
The J and K inputs of FF0 are connected to HIGH. FF1 has its J
and K inputs connected to the output of FF0, and the J and K inputs of
FF2 are connected to the output of an AND gate that is fed by the
outputs of FF0 and FF1.
After the 3rd clock pulse, both outputs of FF0 and FF1 are HIGH. The
positive edge of the 4th clock pulse will cause FF2 to change its state due
to the AND gate.
SAE2B– Digital Electronics & Microprocessor 24
Up / Down Counter
Assembly Language
An assembly language is a low-level programming language
for microprocessors and other programmable devices.
An assembly language implements a symbolic representation
of the machine code needed to program a given CPU
architecture.
Assembly language is also known as assembly code.
The largest number that can appear on the data bus is 1111 1111
(i.e. 25510)
Eg: To read data from the memory MPU sends the control signal
called Memory Read.
1. Microprocessor-initiated operations.
2. Internal operations.
Interrupt
Ready
Hold
1.ADD
2.ADI
3.SUB
4.SUI
5.INR
6.DCR
It can perform all the logic functions of the hard-wired logic through
its instruction set.
They are:
AND
OR
Ex OR
NOT
Types:
1. Jump Instructions.
2. Call and Return instructions.
3. Restart instructions.
Classified into:
1. Unconditional Jump.
2. Conditional Jump.
Jump unconditionally
SOLUTION:
Step 1: 0111 0010
-> 0000 0010 Unpacked BCD1.
-> 0000 0111 Unpacked BCD2.
Output:4152:1DH
Input :4150:FF
Output: 4151:55(LSD)
4152:02(MSD)
Example : 85-39
TYPES OF INTERRUPT
SOFTWARE HARDWARE
INTR Yes No --
0
ROM