The document describes experiments conducted in a digital electronics lab to study and implement various logic gates and digital circuits. It includes summaries of experiments to study logic gates and verify their truth tables, design adders and subtractors using logic gates, and design various code converters including binary to gray, gray to binary, BCD to excess-3, and excess-3 to BCD. The document provides circuit diagrams, truth tables, and procedures for designing and verifying the operation of each digital circuit using logic gates.
This document provides an overview of registers and shift registers. It defines four types of shift registers based on data input/output: serial in parallel out (SIPO), parallel in serial out (PISO), serial in serial out (SISO), and parallel in parallel out (PIPO). Common integrated circuit shift registers like 74164 and 74195 are described. Applications of shift registers in arithmetic operations and counters like ring counters and Johnson counters are explained. Upon completing this chapter, students should understand registers, shift register types, their operations and applications.
counter using 4 master slave flip-flops ZunAib Ali
油
This document describes how to design a 4-bit counter using master-slave JK flip-flops. It begins by explaining what a flip-flop is and describing common flip-flop types like the SR, JK, and master-slave JK flip-flop. It then shows how to connect 4 master-slave JK flip-flops in a ring configuration to form a counter that will count from 0 to 15 (hexadecimal F). The document concludes by presenting the circuit design of a 4-bit counter created using DSCH simulation software, along with output waveforms and a timing diagram verifying the counter operates as intended.
The document discusses interfacing analog to digital converters with microprocessors using the 8255 PIO. It describes how the 8255 is used to issue start of conversion pulses to the ADC and read the end of conversion and digital output signals. It provides examples of interfacing the ADC0808/0809 chip, which uses successive approximation conversion. Interfacing a digital to analog converter is also covered, with an example of interfacing the AD7523 DAC and generating an output sawtooth waveform.
Chapter_One.pptx of computer organization andhaileema2011
油
Definition: Small, fast storage locations within the CPU that temporarily hold data, instructions, or addresses during execution.
Types of Registers:
Data Register (DR): Holds data temporarily during processing.
Accumulator Register (AC): Used for arithmetic and logic operations.
Instruction Register (IR): Stores the current instruction being executed.
Program Counter (PC): Holds the address of the next instruction to be executed.
Memory Address Register (MAR): Holds the memory location of data that needs to be accessed.
Memory Data Register (MDR): Contains data to be written to or read from memory.
2. Computer Instructions
Definition: A set of commands given to the CPU to perform specific operations.
Types of Instructions:
Data Transfer Instructions: Move data between registers or between memory and registers.
Arithmetic Instructions: Perform mathematical operations like addition and subtraction.
Logic Instructions: Execute logical operations such as AND, OR, and NOT.
Control Instructions: Manage the flow of execution, such as jumps and branches.
Instruction Format: Typically includes the operation code (opcode) and the operands.
3. Timing and Control
Role: Synchronizes the operations of various parts of the computer system.
Control Signals: Direct internal operations such as data movement and execution of instructions.
Clock Cycles: The time period during which a single machine operation is completed, which includes fetching, decoding, and executing instructions.
The document discusses digital principles and computer organization topics such as Karnaugh maps, universal gates, don't care conditions, NOR and decoder operations, combinational circuits, priority and binary encoders, modeling techniques in HDL, half and full adders/subtractors, carry propagation delay, ring counters, propagation delay, T and JK flip-flop operations, state assignment, shift register applications, differences between synchronous and asynchronous circuits, and classifications of sequential circuits. Key concepts covered include limitations of K-maps, universal properties of NAND and NOR gates, don't care conditions in logic circuits, truth tables for NOR operation, definitions of combinational circuits and encoders/decoders, modeling approaches in HDL, definitions and differences of
This document provides information about a Digital Electronics course with the code ECT-155. It includes the course objectives, which are to understand the merits of digitization and number representation, and impart knowledge of digital circuits. The outcomes are listed as understanding digital systems and number representation, and designing combinational and sequential digital circuits. The syllabus covers topics like combinational circuits, sequential circuits, number systems, logic gates, and adders. Diagrams of half adders and full adders using logic gates are also presented.
The document discusses sequential logic circuits. It describes the basic components of sequential circuits which include flip-flops that have memory. It then explains what a memory cell is and how it can store a value using feedback loops in circuits like an RS latch. An RS latch is described as the basic memory cell that can store a single bit using either NAND or NOR gates in a feedback configuration along with its truth table.
The document discusses various topics related to combinational logic design including:
- The steps in the combinational logic design process including specification, formulation, optimization, technology mapping, and verification.
- Common functional blocks like decoders, encoders, multiplexers and their uses.
- Design of half adders, full adders, half subtractors, full subtractors and binary adders/subtractors.
- Implementation of logic functions using multiplexers and demultiplexers.
- Other topics like parity generators, code converters and hazards in combinational circuits.
Lab 9 D-Flip Flops: Shift Register and Sequence CounterKatrina Little
油
This document describes an experiment involving designing a 4-bit shift register and sequence counter using D-flip flops. It includes building the circuits in an FPGA tool, simulating their operation, and downloading them to a development board. A debouncing circuit is added to prevent erroneous output from noisy button inputs. The objectives of introducing sequential circuit design and implementing a shift register and sequence counter are met.
This document provides an overview of digital logic circuits and sequential circuits. It discusses various logic gates like OR, AND, NOT, NAND, NOR and XOR gates. It explains their truth tables and symbols. It also covers Boolean algebra, map simplification using K-maps, combinational circuits like multiplexers, demultiplexers, encoders and decoders. Finally, it describes different types of flip-flops like SR, D, JK and T flip-flops which are used to build sequential circuits that have memory and can store past states.
This document discusses analog to digital conversion and pulse width modulation.
It explains that analog signals from peripherals must be converted to digital signals the microcontroller can understand using an analog to digital converter (ADC). It also describes how pulse width modulation varies the duty cycle of a signal to control motor speed or other analog systems. Common applications like temperature measurement and motor control are provided as examples.
Computer Organization And Architecture lab manualNitesh Dubey
油
The document discusses the implementation of various logic gates and flip-flops. It describes half adders and full adders can be implemented using XOR and AND gates. Binary to gray code and gray to binary code conversions are also explained. Circuit diagrams for 3-8 line decoder, 4x1 and 8x1 multiplexer are provided along with their truth tables. Finally, the working of common flip-flops like SR, JK, D and T are explained through their excitation tables.
4,encoder & decoder MUX and DEMUX EEng - Copy.pdfDamotTesfaye
油
This document discusses various combinational logic functions including decoding, encoding, multiplexing, and decoding. It provides details on decoder and encoder circuits. Decoders accept a binary input and activate only one output corresponding to that input. Encoders have multiple inputs but activate only one at a time, producing a binary output code. Examples of 3-line to 8-line decoders and 8-line to 3-line encoders are shown with their truth tables.
The document discusses digital circuits including combinational and sequential circuits. It describes various combinational logic circuits such as half adders, full adders, comparators, multiplexers, encoders, decoders. It also discusses sequential circuits and how they employ memory elements. Arithmetic circuits, binary adders, subtractors, and BCD to 7-segment decoders are explained in detail through diagrams and examples.
Digital logic circuits have two states - on or off (1 or 0, true or false). TTL uses bipolar transistors and operates at 5V but requires more power, while CMOS uses MOSFETs, operates at 3-15V, and consumes very little power, making it suitable for portable equipment. Sequential logic has an output dependent on current and previous inputs, while combinational logic only depends on current inputs. Basic logic gates include AND, OR, NAND, NOR, NOT, XOR, and XNOR.
This document describes the design of a bipolar alternate mark inversion (AMI) digital to digital encoding data transmission system. The system uses latch, darlington amplifiers, a solid state relay, a personal computer, and Turbo C++ programming language. Bipolar AMI encoding represents 1s using alternating positive and negative voltages to eliminate DC components. The designed circuit stores input bits, amplifies the signal, and uses the relay to output the encoded signal. The software generates test data and implements the AMI encoding algorithm to control the circuit. The results show the circuit successfully encodes input bits using the bipolar AMI scheme.
The document describes the instruction set of the 8051 microprocessor. It is divided into 5 groups: arithmetic, logical, data transfer, boolean, and branching instructions. The arithmetic instructions include ADD, ADDC, DA for decimal adjust, and MUL/DIV for multiplication and division. Logical instructions include ANL, ORL, XRL. Data transfer instructions move data between registers and memory like MOV, PUSH, POP. Boolean instructions manipulate individual bits. Branching instructions include unconditional jumps, calls, returns, and conditional jumps.
This document summarizes key concepts about combinational logic circuits. It defines combinational logic as circuits whose outputs depend only on the current inputs, in contrast to sequential logic which also depends on prior inputs. Common combinational circuits are described like half and full adders used for arithmetic, as well as decoders. The design process for combinational circuits is outlined involving specification, formulation, optimization and technology mapping. Implementation of functions using NAND and NOR gates is also discussed.
The following presentation is a part of the level 4 module -- Digital Logic and Signal Principles. This resources is a part of the 2009/2010 Engineering (foundation degree, BEng and HN) courses from University of Wales Newport (course codes H101, H691, H620, HH37 and 001H). This resource is a part of the core modules for the full time 1st year undergraduate programme.
The BEng & Foundation Degrees and HNC/D in Engineering are designed to meet the needs of employers by placing the emphasis on the theoretical, practical and vocational aspects of engineering within the workplace and beyond. Engineering is becoming more high profile, and therefore more in demand as a skill set, in todays high-tech world. This course has been designed to provide you with knowledge, skills and practical experience encountered in everyday engineering environments.
FPGA Implementation with Digital Devices Sachin Mehta
油
This document summarizes a laboratory experiment where a student designed and implemented digital circuits on an FPGA board to produce sequences of running lights. The student used components like counters, decoders, and logic gates to create circuits that caused LEDs on the board to light up in different patterns. Two circuits were made - one produced a running light sequence that changed direction when a button was pressed, and another made a "bouncing light" that switched directions when reaching the ends of the LED strip. The goal was to demonstrate an understanding of digital logic design and its application to producing specific outputs on an FPGA board.
The document discusses digital principles and computer organization topics such as Karnaugh maps, universal gates, don't care conditions, NOR and decoder operations, combinational circuits, priority and binary encoders, modeling techniques in HDL, half and full adders/subtractors, carry propagation delay, ring counters, propagation delay, T and JK flip-flop operations, state assignment, shift register applications, differences between synchronous and asynchronous circuits, and classifications of sequential circuits. Key concepts covered include limitations of K-maps, universal properties of NAND and NOR gates, don't care conditions in logic circuits, truth tables for NOR operation, definitions of combinational circuits and encoders/decoders, modeling approaches in HDL, definitions and differences of
This document provides information about a Digital Electronics course with the code ECT-155. It includes the course objectives, which are to understand the merits of digitization and number representation, and impart knowledge of digital circuits. The outcomes are listed as understanding digital systems and number representation, and designing combinational and sequential digital circuits. The syllabus covers topics like combinational circuits, sequential circuits, number systems, logic gates, and adders. Diagrams of half adders and full adders using logic gates are also presented.
The document discusses sequential logic circuits. It describes the basic components of sequential circuits which include flip-flops that have memory. It then explains what a memory cell is and how it can store a value using feedback loops in circuits like an RS latch. An RS latch is described as the basic memory cell that can store a single bit using either NAND or NOR gates in a feedback configuration along with its truth table.
The document discusses various topics related to combinational logic design including:
- The steps in the combinational logic design process including specification, formulation, optimization, technology mapping, and verification.
- Common functional blocks like decoders, encoders, multiplexers and their uses.
- Design of half adders, full adders, half subtractors, full subtractors and binary adders/subtractors.
- Implementation of logic functions using multiplexers and demultiplexers.
- Other topics like parity generators, code converters and hazards in combinational circuits.
Lab 9 D-Flip Flops: Shift Register and Sequence CounterKatrina Little
油
This document describes an experiment involving designing a 4-bit shift register and sequence counter using D-flip flops. It includes building the circuits in an FPGA tool, simulating their operation, and downloading them to a development board. A debouncing circuit is added to prevent erroneous output from noisy button inputs. The objectives of introducing sequential circuit design and implementing a shift register and sequence counter are met.
This document provides an overview of digital logic circuits and sequential circuits. It discusses various logic gates like OR, AND, NOT, NAND, NOR and XOR gates. It explains their truth tables and symbols. It also covers Boolean algebra, map simplification using K-maps, combinational circuits like multiplexers, demultiplexers, encoders and decoders. Finally, it describes different types of flip-flops like SR, D, JK and T flip-flops which are used to build sequential circuits that have memory and can store past states.
This document discusses analog to digital conversion and pulse width modulation.
It explains that analog signals from peripherals must be converted to digital signals the microcontroller can understand using an analog to digital converter (ADC). It also describes how pulse width modulation varies the duty cycle of a signal to control motor speed or other analog systems. Common applications like temperature measurement and motor control are provided as examples.
Computer Organization And Architecture lab manualNitesh Dubey
油
The document discusses the implementation of various logic gates and flip-flops. It describes half adders and full adders can be implemented using XOR and AND gates. Binary to gray code and gray to binary code conversions are also explained. Circuit diagrams for 3-8 line decoder, 4x1 and 8x1 multiplexer are provided along with their truth tables. Finally, the working of common flip-flops like SR, JK, D and T are explained through their excitation tables.
4,encoder & decoder MUX and DEMUX EEng - Copy.pdfDamotTesfaye
油
This document discusses various combinational logic functions including decoding, encoding, multiplexing, and decoding. It provides details on decoder and encoder circuits. Decoders accept a binary input and activate only one output corresponding to that input. Encoders have multiple inputs but activate only one at a time, producing a binary output code. Examples of 3-line to 8-line decoders and 8-line to 3-line encoders are shown with their truth tables.
The document discusses digital circuits including combinational and sequential circuits. It describes various combinational logic circuits such as half adders, full adders, comparators, multiplexers, encoders, decoders. It also discusses sequential circuits and how they employ memory elements. Arithmetic circuits, binary adders, subtractors, and BCD to 7-segment decoders are explained in detail through diagrams and examples.
Digital logic circuits have two states - on or off (1 or 0, true or false). TTL uses bipolar transistors and operates at 5V but requires more power, while CMOS uses MOSFETs, operates at 3-15V, and consumes very little power, making it suitable for portable equipment. Sequential logic has an output dependent on current and previous inputs, while combinational logic only depends on current inputs. Basic logic gates include AND, OR, NAND, NOR, NOT, XOR, and XNOR.
This document describes the design of a bipolar alternate mark inversion (AMI) digital to digital encoding data transmission system. The system uses latch, darlington amplifiers, a solid state relay, a personal computer, and Turbo C++ programming language. Bipolar AMI encoding represents 1s using alternating positive and negative voltages to eliminate DC components. The designed circuit stores input bits, amplifies the signal, and uses the relay to output the encoded signal. The software generates test data and implements the AMI encoding algorithm to control the circuit. The results show the circuit successfully encodes input bits using the bipolar AMI scheme.
The document describes the instruction set of the 8051 microprocessor. It is divided into 5 groups: arithmetic, logical, data transfer, boolean, and branching instructions. The arithmetic instructions include ADD, ADDC, DA for decimal adjust, and MUL/DIV for multiplication and division. Logical instructions include ANL, ORL, XRL. Data transfer instructions move data between registers and memory like MOV, PUSH, POP. Boolean instructions manipulate individual bits. Branching instructions include unconditional jumps, calls, returns, and conditional jumps.
This document summarizes key concepts about combinational logic circuits. It defines combinational logic as circuits whose outputs depend only on the current inputs, in contrast to sequential logic which also depends on prior inputs. Common combinational circuits are described like half and full adders used for arithmetic, as well as decoders. The design process for combinational circuits is outlined involving specification, formulation, optimization and technology mapping. Implementation of functions using NAND and NOR gates is also discussed.
The following presentation is a part of the level 4 module -- Digital Logic and Signal Principles. This resources is a part of the 2009/2010 Engineering (foundation degree, BEng and HN) courses from University of Wales Newport (course codes H101, H691, H620, HH37 and 001H). This resource is a part of the core modules for the full time 1st year undergraduate programme.
The BEng & Foundation Degrees and HNC/D in Engineering are designed to meet the needs of employers by placing the emphasis on the theoretical, practical and vocational aspects of engineering within the workplace and beyond. Engineering is becoming more high profile, and therefore more in demand as a skill set, in todays high-tech world. This course has been designed to provide you with knowledge, skills and practical experience encountered in everyday engineering environments.
FPGA Implementation with Digital Devices Sachin Mehta
油
This document summarizes a laboratory experiment where a student designed and implemented digital circuits on an FPGA board to produce sequences of running lights. The student used components like counters, decoders, and logic gates to create circuits that caused LEDs on the board to light up in different patterns. Two circuits were made - one produced a running light sequence that changed direction when a button was pressed, and another made a "bouncing light" that switched directions when reaching the ends of the LED strip. The goal was to demonstrate an understanding of digital logic design and its application to producing specific outputs on an FPGA board.
Computer Application in Business (commerce)Sudar Sudar
油
The main objectives
1. To introduce the concept of computer and its various parts. 2. To explain the concept of data base management system and Management information system.
3. To provide insight about networking and basics of internet
Recall various terms of computer and its part
Understand the meaning of software, operating system, programming language and its features
Comparing Data Vs Information and its management system Understanding about various concepts of management information system
Explain about networking and elements based on internet
1. Recall the various concepts relating to computer and its various parts
2 Understand the meaning of softwares, operating system etc
3 Understanding the meaning and utility of database management system
4 Evaluate the various aspects of management information system
5 Generating more ideas regarding the use of internet for business purpose
Research & Research Methods: Basic Concepts and Types.pptxDr. Sarita Anand
油
This ppt has been made for the students pursuing PG in social science and humanities like M.Ed., M.A. (Education), Ph.D. Scholars. It will be also beneficial for the teachers and other faculty members interested in research and teaching research concepts.
Prelims of Kaun TALHA : a Travel, Architecture, Lifestyle, Heritage and Activism quiz, organized by Conquiztadors, the Quiz society of Sri Venkateswara College under their annual quizzing fest El Dorado 2025.
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷sCeline George
油
Integrate WhatsApp into Odoo using the WhatsApp Business API or third-party modules to enhance communication. This integration enables automated messaging and customer interaction management within Odoo 17.
Database population in Odoo 18 - Odoo slidesCeline George
油
In this slide, well discuss the database population in Odoo 18. In Odoo, performance analysis of the source code is more important. Database population is one of the methods used to analyze the performance of our code.
Digital Tools with AI for e-Content Development.pptxDr. Sarita Anand
油
This ppt is useful for not only for B.Ed., M.Ed., M.A. (Education) or any other PG level students or Ph.D. scholars but also for the school, college and university teachers who are interested to prepare an e-content with AI for their students and others.
How to use Init Hooks in Odoo 18 - Odoo 際際滷sCeline George
油
In this slide, well discuss on how to use Init Hooks in Odoo 18. In Odoo, Init Hooks are essential functions specified as strings in the __init__ file of a module.
Prelims of Rass MELAI : a Music, Entertainment, Literature, Arts and Internet Culture Quiz organized by Conquiztadors, the Quiz society of Sri Venkateswara College under their annual quizzing fest El Dorado 2025.
2. SAE2B Digital Electronics & Microprocessor 2
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
3. TM
SAE2B Digital Electronics & Microprocessor 3
Number System
Number System is a system of representing letters or numbers in
computer understandable form.
Examples Binary, Decimal, Octal and Hexadecimal
Number System Base Digits or Symbols
included
Binary 2 0,1
Decimal 10 0,1,2,3,4,5,6,7,8,9
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
4. Binary System
A binary number system is made up of only 0s and 1s. Example : 001010
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
Code Conversion
SAE2B Digital Electronics & Microprocessor 4
5. 5
Binary Codes
Codes are alternate representations for the binary numbers.
Different codes are used for binary numbers. Commonly used are
1. BCD (Binary Coded Decimal) Code
a) 8421
b) 2421
c) 4221
2. Excess-3 Code
3. Gray Code
SAE2B Digital Electronics & Microprocessor
6. 6
Logic Gates
EXCLUSIVE OR
a
b
a.b
a
b
a+b
a a'
a
b
(a+b)'
a
b
(a.b)'
a
b
a b
a
b
a.b
&
a
b
a+b
+
AND
a a'
1
a
b
(a.b)'
&
a
b
(a+b)'
1
a
b
a b
=1
OR
NOT
NAND
NOR
Symbol set 1 Symbol set 2
(ANSI/IEEE Standard 91-1984)
SAE2B Digital Electronics & Microprocessor
7. SAE2B Digital Electronics & Microprocessor 7
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
Boolean Algebra
8. SAE2B Digital Electronics & Microprocessor 8
Rules specific to Boolean Algebra
1a. A + 0 = A
2a. A + 1 = 1
3a. A + A = A
4a. A + A = 1
5a. A = A
6a. A + AB = A
7a. A + AB = A + B
8a. A + BC = (A + B) (A + C)
9a. AB + AC + BC = AB + AC
1b. A . 1 = A
2b. A . 0 = 0
3b. A . A = A
4b. A . A = 0
5b. A = A
6b. A (A + B) = A
7b. A (A + B) = AB
8b. A (B + C) = AB + AC
9b. (A+B) (A+C) (B+C) = (A+B) (A + C)
9. SAE2B Digital Electronics & Microprocessor 9
The AND and OR functions can be shown to be related to each other
through the following equations.
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
Demorgans Laws
10. SAE2B Digital Electronics & Microprocessor 10
Truth Table
A truth table is a mathematical table used in logicspecifically in
connection with Boolean algebra and Boolean functions - which sets
out the functional values of logical expressions on each of their
functional arguments, that is, for each combination of values taken by
their logical variables.
11. SAE2B Digital Electronics & Microprocessor 11
Universal gates are the ones which can be used for implementing
any gate like AND, OR and NOT, or any combination of these basic
gates.
NAND and NOR gates are universal gates.
But there are some rules that need to be followed when
implementing NAND or NOR based gates.
Universal Gates
12. SAE2B Digital Electronics & Microprocessor 12
Sum of Products and
Product of Sums
Any given truth table can be converted into a logical expression, by
either SOP or POS method.
To obtain SOP expression,
a) Take the cases where output is a logical 1
b) Represent each case as a product of the variables, such that output is 1.
This product is known as a minterm.
c) ORing the minterms gives us the SOP expression.
To obtain POS expression,
a) Take the cases where output is a logical 0.
b) Represent each case as a sum of the variables, such that output is 0.
This product is known as a maxterm.
c) ANDing the maxterms gives us the POS expression.
13. SAE2B Digital Electronics & Microprocessor 13
Karnaugh maps provide a systematic method to obtain simplified sum-of-
products (SOPs) Boolean expressions.
This is a compact way of representing a truth table and is a technique that
is used to simplify logic expressions.
It is ideally suited for four or less variables, becoming cumbersome for five
or more variables.
A K-map of n variables will have 2n
squares.
Each square represents either a minterm or maxterm.
For a Boolean expression, product terms are denoted by 1's, while sum
terms are denoted by 0's - but 0's are often left blank.
Karnaugh Maps (K-Maps)
14. SAE2B Digital Electronics & Microprocessor 14
A combinational circuit can have an n number of inputs and m number of
outputs.
.
Combinational Logic
Some of the Combinational circuits are
1. Half Adder
2. Full Adder
3. Half Subtractor
4. Full subtractor
16. SAE2B Digital Electronics & Microprocessor
Unit : II Overview
Sequential Logic
Flip-Flops
Shift Register
Counters
16
17. SAE2B Digital Electronics & Microprocessor 17
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 circuits current state.
Sequential Logic
18. SAE2B Digital Electronics & Microprocessor 18
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.
Flip-Flops
19. SAE2B Digital Electronics & Microprocessor 19
A common form of register used in computers and in many other types of
logic circuits is a shift register.
It is simply a set of flip flops (usually D latches or RS flip-flops) connected
together so that the output of one becomes the input of the next, and so on in
series.
It is called a shift register because the data is shifted through the register
by one bit position on each clock pulse.
Shift Register
20. SAE2B Digital Electronics & Microprocessor 20
Serial-in Serial-out Register
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.
21. SAE2B Digital Electronics & Microprocessor 21
Parallel-in Parallel-out Register
Parallel input can be provided through the use of the preset and clear
inputs to the flip-flop.
The parallel loading of the flip-flop can be synchronous (i.e., occurs with
the clock pulse) or asynchronous (independent of the clock pulse)
depending on the design of the shift register.
Parallel output can be obtained from the outputs of each flip-flop as
shown in Figure.
22. SAE2B Digital Electronics & Microprocessor 22
Counters
Counter is a register which counts the sequence in binary form.
The state of counter changes with application of clock pulse.
The counter is binary or non-binary.
The total number of states in counter is called as modulus.
If counter is modulus-n, then it has n different states.
State diagram of counter is a pictorial representation of counter states
directed by arrows in graph.
000
100
111
110
101
001
010
011
State diagram of mod-8 counter
23. SAE2B Digital Electronics & Microprocessor 23
Asynchronous (Ripple) Counters
All Flip-Flops are in toggle
mode.
The clock input is applied.
Count enable = 1.
Counter counts from 0000 to
1111.
24. SAE2B Digital Electronics & Microprocessor 24
In synchronous counters, the clock inputs of all the flip-flops are connected
together and are triggered by the input pulses. Thus, all the flip-flops
change state simultaneously (in parallel).
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.
Synchronous Counter
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.
25. SAE2B Digital Electronics & Microprocessor 25
Up / Down Counter
Bidirectional counters, also known as Up/Down counters, are
capable of counting in either direction through any given count
sequence and they can be reversed at any point within their count
sequence by using an additional control input
26. SAE2B Digital Electronics & Microprocessor
Unit : II Overview
Microprocessors
Microprocessor Architecture
Peripheral/Externally Initiated Operations
Memory and its classification
8085 Instruction Set
Addressing Modes
26
27. SAE2B Digital Electronics & Microprocessor 27
Microprocessors
Multipurpose, clock-driven, register-based electronic device.
Reads binary instructions from memory.
Accepts data as input.
Process data according to instructions.
Provides result as output.
28. SAE2B Digital Electronics & Microprocessor 28
A microcomputer is a small, relatively
inexpensive computer with a microprocessor as its central
processing unit (CPU).
It includes a microprocessor, memory, and minimal
input/output (I/O) circuitry mounted on a single printed circuit
board.
Micro Computer
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.
29. SAE2B Digital Electronics & Microprocessor 29
Microprocessor Architecture
Microprocessor is digital device designed with
Register
Flip-flop
Timing element
31. SAE2B Digital Electronics & Microprocessor 31
Address Bus
Group of 16 lines generally identified as A0 to A15.
It is unidirectional (bits flow in one direction).
Identifies the peripherals or a memory location through these
line.
Carry a 16-bit address.
Capable of identifying 216 = 65,536 (64K) memory locations.
32. SAE2B Digital Electronics & Microprocessor 32
Data Bus
Group of 8 lines used for data flow (D0 to D7)
Bidirectional : data flow both direction between MPU and memory
and peripherals.
The largest number that can appear on the data bus is 1111 1111
(i.e. 25510)
Handles up to 28=256 (i.e 00 to FF ) numbers.
33. SAE2B Digital Electronics & Microprocessor 33
Control Bus
Comprised of various signal lines that carry synchronization
signals.
MPU generates specific control signal for every operation.
Used to identify the device type which MPU intends to
communicate.
Eg: To read data from the memory MPU sends the control signal
called Memory Read.
35. SAE2B Digital Electronics & Microprocessor 35
Classifications of the functions
1. Microprocessor-initiated operations.
2. Internal operations.
3. Peripheral (or externally) initiated operations.
36. SAE2B Digital Electronics & Microprocessor 36
Internal Data Operations
Internal architecture of the 8085 microprocessor determines how
and what operations can be performed.
The operations are:
Store 8-bit data.
Perform arithmetic and logical operations.
Test for conditions.
Sequence the execution of instruction.
Store data temporarily in the Stack.
37. SAE2B Digital Electronics & Microprocessor 37
Peripheral/Externally Initiated Operations
External devices can initiate the MPU operations.
Individual pins on the MPU chip are assigned for various
operations like:
Reset
Interrupt
Ready
Hold
38. SAE2B Digital Electronics & Microprocessor 38
Two basic categories of computer memory:
Primary stores small amounts of data and information that will be
immediately used by the CPU.
Secondary stores much larger amounts of data and information
(an entire software program, for example) for extended periods of
time.
Memory and its classification
39. SAE2B Digital Electronics & Microprocessor 39
Memory and Instruction Fetch
All instructions are stored in memory.
To run a program, the individual instructions must be read from the
memory in sequence, and executed.
Instruction fetch
Decode instruction
Get operands
Execute operation
41. SAE2B Digital Electronics & Microprocessor 41
8085 Instruction Set
An instruction is a binary pattern designed inside a
microprocessor to perform a specific function.
The entire group of instructions that a microprocessor
supports is called Instruction Set.
8085 has 246 instructions.
Each instruction is represented by an 8-bit binary value.
These 8-bits of binary value is called Op-Code or Instruction
Byte.
42. SAE2B Digital Electronics & Microprocessor 42
Addressing Modes
Every instruction has to operate on a data.
The method of specifying the data to be operated by the instruction is
called Addressing.
The 8085 has 5 types of addressing:
1. Immediate Addressing
2. Direct Addressing
3. Register Addressing
4. Register Indirect Addressing.
5. Implied Addressing
43. SAE2B Digital Electronics & Microprocessor 43
Arithmetic Operations
The 8085 microprocessor performs various arithmetic operations,
such as addition, subtraction, increment, and decrement.
1.ADD
2.ADI
3.SUB
4.SUI
5.INR
6.DCR
44. SAE2B Digital Electronics & Microprocessor 44
Microprocessor is basically a programmable logic chip.
It can perform all the logic functions of the hard-wired logic through
its instruction set.
They are:
AND
OR
Ex OR
NOT
Logical Operations
45. SAE2B Digital Electronics & Microprocessor 45
Branching Instructions
Most powerful instructions because they allow the
microprocessor to change the sequence of a program.
Change may be unconditional or under certain test conditions.
Instruct the microprocessor to go to a different memory location.
Types:
1. Jump Instructions.
2. Call and Return instructions.
3. Restart instructions.
46. SAE2B Digital Electronics & Microprocessor 46
Jump Instructions
Specify the memory location explicitly.
They are 3-byte instructions.
One byte for operation code, followed by a 16-bit memory
address.
Classified into:
1. Unconditional Jump.
2. Conditional Jump.
47. SAE2B Digital Electronics & Microprocessor 47
JMP 16-bit address:
Jump unconditionally
The program sequence is transferred to the memory location
specified by the 16-bit address given in the operand.
Example: JMP 2034H or JMP XYZ(Label name)
Unconditional Jump
48. SAE2B Digital Electronics & Microprocessor 48
Conditional Jumps
Allow the microprocessor to make decisions based on certain
conditions indicated by flags.
Check the flag conditions to change or not.
Flags used by jump instructions:
1. Carry flag
2. Zero flag
3. Sign flag
4. Parity flag
49. SAE2B Digital Electronics & Microprocessor
Unit : IV Overview
Time Delay Using One Register
Time Delay Using a Register Pair
Using a Loop within Loop Technique
Counter Design with Time Delay
Stack and Subroutines
BCD to Binary Conversion and Vice-versa
BCD to HEX Conversion and Vice-versa
Binary to ASCII Conversion and Vice-versa
BCD Addition and Subtraction
49
50. SAE2B Digital Electronics & Microprocessor 50
Time Delay
Procedure used to design a specific delay.
A register is loaded with a number , depending on the time delay
required and then the register is decremented until it reaches zero
by setting up a loop with conditional jump instruction.
Time delay using
One register:
51. SAE2B Digital Electronics & Microprocessor 51
Time Delay using Register Pair
Label Opcode Operand Comments T state
LXI B,2384H Load BC with 16-bit count 10
LOOP: DCX B Decrement BC by 1 6
MOV A,C Place contents of C in A 4
ORA B OR B with C to set Zero flag 4
JNZ LOOP if result not equal to 0 , 10/7
jump back to loop
Time Delay in Loop TL= T * Loop T states * N10
= 0.5 * 24* 9092
= 109 ms
Time Delay using LOOP within a LOOP
MVI B,38H 7T Delay in Loop TL1=1783.5 亮s
LOOP2: MVI C,FFH 7T Delay in Loop TL2= (0.5*21+TL1)*56
LOOP1: DCR C 4T =100.46ms
JNZ LOOP1 10/7 T
DCR B 4T
JNZ LOOP 2 10/7T
53. SAE2B Digital Electronics & Microprocessor 53
STACK is a group of memory location in the R/W memory that is
used for temporary storage of binary information during the
execution of a program.
The programmer can store and retrieve the contents of a register
pair by using PUSH and POP.
The Stack
54. SAE2B Digital Electronics & Microprocessor 54
A subroutine is a group of instructions that will be used repeatedly
in different locations of the program.
Rather than repeat the same instructions several times, they
can be grouped into a subroutine that is called from the
different locations.
Instructions used in subroutine are CALL, RET,RTE and RST
SUBROUTINE
55. SAE2B Digital Electronics & Microprocessor 55
SOLUTION:
Step 1: 0111 0010
-> 0000 0010 Unpacked BCD1.
-> 0000 0111 Unpacked BCD2.
Step 2: Multiply BCD2 by 10 = (7x10)
Step 3: Add BCD1 to the answer in step2
Example:7210=01110010BCD
BCD - TO - BINARY CONVERSION
56. SAE2B Digital Electronics & Microprocessor 56
SOLUTION:
Step 1: 0111 0010
-> 0000 0010 Unpacked BCD1.
-> 0000 0111 Unpacked BCD2.
Step 2: Multiply BCD2 by 10 = (7x10)
Step 3: Add BCD1 to the answer in step2
Example:7210=01110010BCD
BCD - TO - BINARY CONVERSION
57. SAE2B Digital Electronics & Microprocessor 57
BINARY-TO-BCD CONVERSION
Example : Assume the binary number is
1111 1111 2(FFH)=25510
To represent this number in BCD requires twelve bits or three
BCD digits, labeled here as BCD3 (MSB) ,BCD2 and BCD1(LSB).
=0010 0101 0101
BCD3 BCD2 BCD1
58. SAE2B Digital Electronics & Microprocessor 58
BCD to HEX conversion
Initialize memory pointer to 4150H.
Get the most significant Digit(MSD)
Multiply the MSD by ten using repeated addition
Add the least significant digit (LSD)to the result to obtained in
previous step.
Store hex data in memory.
Input :4150:02(MSD), 4151:09(LSD)
Output:4152:1DH
59. SAE2B Digital Electronics & Microprocessor 59
HEX to BCD Conversion
Initialize memory pointer to 4150H.
Get the hexa decimal number
Perform repeated addition for n number of times
Adjust for BCD in each step
Store BCD data in memory.
Input :4150:FF
Output: 4151:55(LSD)
4152:02(MSD)
60. SAE2B Digital Electronics & Microprocessor 60
BINARY TO ASCII
LDA 2050H : Take the binary number in the accumulator
CPA 0AH : Compare the given number with 0AH
JC SKIP 7 : If number < 9 no need to add 7
ADI 07H : Else, add 7 to the accumulator
SKIP 7 : ADI 30H :Add 30h to accumulator
STA 2051H :Store the ASCII result in memory
HLT :End the program
61. SAE2B Digital Electronics & Microprocessor 61
BCD ADDITION
The 8085 provides a special instruction DAA(decimal adjust
accumulator) to perform BCD addition.
The DAA instruction is included immediately after an addition or
increment instruction.
The maximum in two digit BCD(8 bits) is 99.
62. SAE2B Digital Electronics & Microprocessor 62
BCD Subtraction
The DAA cannot be used directly to perform BCD subtraction
because DAA instruction requires an addition to be performed
first.
So, 10s complement method is employed.
Example : 85-39
9s complement of 39=99-39=60
(each digit is subtracted from 9)
10s complement of 39=9s complement+1=60+1=61
Therefore 85+61=46(with carry 1(should be omitted))
63. SAE2B Digital Electronics & Microprocessor
Unit : V Overview
Interrupt
Vectored Interrupts
Interfacing I/O Devices
Basic Interfacing Concepts
DMA
63
64. SAE2B Digital Electronics & Microprocessor 64
Interrupts
Interrupt is a process where an external device can get the attention of
the microprocessor.
The process starts from the I/O device
The process is asynchronous.
TYPES OF INTERRUPT
SOFTWARE HARDWARE
VECTORED AND NON VECTORED
65. SAE2B Digital Electronics & Microprocessor 65
The 8085 Interrupts
Interrupt name Maskable Vectored
VECTOR
ADDRESS
TRAP No Yes 0024H
RST 7.5 Yes Yes 003CH
RST 6.5 Yes Yes 0034H
RST 5.5 Yes Yes 002CH
INTR Yes No --
67. The 8085 Vectored Interrupt Process
In vectored interrupts, the processor automatically branches to the specific
address in response to an interrupt.
SAE2B Digital Electronics & Microprocessor 67
68. SAE2B Digital Electronics & Microprocessor 68
The 8085 Non-Vectored Interrupt Process
1. The interrupt process should be enabled using the EI instruction.
2. The 8085 checks for an interrupt during the execution of every
instruction.
3. If INTR is high, MP completes current instruction, disables the interrupt
and sends INTA (Interrupt acknowledge) signal to the device that
interrupted
4. INTA allows the I/O device to send a RST instruction through data bus.
5. Upon receiving the INTA signal, MP saves the memory location of the
next instruction on the stack and the program is transferred to call
location (ISR Call) specified by the RST instruction
69. 6. Microprocessor Performs the ISR.
7. ISR must include the EI instruction to enable the further
interrupt within the program.
8. RET instruction at the end of the ISR allows the MP to
retrieve the return address from the stack and the program is
transferred back to where the program was interrupted.
The 8085 Non-Vectored Interrupt Process
SAE2B Digital Electronics & Microprocessor 69
70. SAE2B Digital Electronics & Microprocessor 70
Interface is the path for communication between two components.
Interfacing is of two types, memory interfacing and I/O interfacing.
Basic Interfacing Concepts
71. SAE2B Digital Electronics & Microprocessor 71
Direct Memory Access
Process of communication or data transfer controlled by an
external peripheral.
Ex: Data transfer between a floppy and R/W memory of the
system.
8085A has two pins for this type of communication
HOLD
HLDA
72. SAE2B Digital Electronics & Microprocessor 72
Direct Memory Access
0
ROM
RAM
Peripherals
DMA
C
n
Memory
Mapped I/O
Time to do 1000 xfers in 1 msec:
1 DMA set-up sequence: @ 50 msec
1 interrupt: @ 2 msec
1 interrupt service sequence: @ 48 msec
100msec
.0001 second of CPU time
CPU sends a starting address,
direction(R/W), and word count
to DMAC. Then issues "start".
DMAC provides;
Peripheral controller Handshake signals
Memory Addresses
Handshake signals
CPU
IOC
device
Memory DMAC
I/O