SlideShare a Scribd company logo
1 of 16
Prepared and presented by Dr. A. Islam
1
EC4205/EC203
Dr. A. Islam
Dept. of ECE
BIT, Mesra, Ranchi
Microprocessor and Microcontroller/DSD
Webcast link:
https://sites.google.com/a/bitmesra.ac.in/aminulislam/home
All announcement made through webpage: check back often
Students are welcome outside the class (right after class)
Prepared and presented by Dr. A. Islam
2
EC4205/EC203
Lecture notes based on material
• From me, Prof. (Dr.) R. Sukesh Kumar and following
text books:
1. Digital Computer Electronics, 2/e, by A. P. Malvino.
2. Microprocessor Architecture, Programming and Applications with 8085, by
R. S. Gaonkar.
3. Microprocessor and Interfacing, Programming of Hardware, by D. Hall.
4. Microprocessor and Peripherals, by S. P. Chowdhury and S. Chowdhury.
5. INTEL 8086/8088 Microprocessor, Architecture, Programming, Design
and Interfacing, 3/e, by B. S. Chhabra.
6. Microprocessor, Microcomputer and their Applications, 2/e, by A, K.
Mukhopadhyay.
7. The Intel Microprocessors 8086/888, 80186/80188, 80286, 80386, 80486,
Pentium and Pentium Pro processor – architecture, programming and
interfacing, 4/e, by B. B. Brey.
8. Microprocessors with applications in process control, by SI Ahson.
9. Microprocessors – theory and applications: Intel and Motorola, by M.
Rafiquzzaman.
Use the material without violating copyright act involved with original books.
Prepared and presented by Dr. A. Islam
3
Module-I: Outline
1. Revision of logic circuits with emphasis on control lines
2. SAP concepts with stress on timing diagrams
3. Microinstructions
4. Microprogramming
5. Variable machine cycle
6. Architecture of 8085 Processor
7. Functions of all signals
8. Bus concepts
9. Multiplexed and De-multiplexed Bus
10.Minimum system
Module – 5 (for EC203 DSD):
Design of simple computing machines: SAP-I concepts with stress on timing
diagrams, Microinstructions, Fetch and Execution cycle variable machine cycle,
Hardware control Matrix, Macroinstructions, Microprogramming, Bus concepts,
Multiplexed Minimum system. Pipelining concepts.
Prepared and presented by Dr. A. Islam
4
SAP concepts with stress on timing diagrams
• Program counter: On
reset it contains 0000.
It places the address
(onto the W bus during
T1 or address state) of
the instruction to be
fetched and executed.
• Input and MAR: It
includes address & data
switch registers. These
s/w registers allow to
send 4 address bits and
8 data bits to RAM.
MAR is part of SAP-1
memory. Address from
PC and IR gets latched
into MAR. A bit latter,
MAR applies this 4-bit
address to the RAM,
where a read operation
is performed.
Prepared and presented by Dr. A. Islam
5
SAP concepts with stress on timing diagrams
• RAM: In SAP-1
RAM is 16×8 bit
TTL 74189 static
RAM which is
programmed with
address and data
s/w registers
before a computer
run.
Prepared and presented by Dr. A. Islam
6
SAP concepts with stress on timing diagrams
• Instruction register:
When memory read
operation is
performed content of
addressed memory
location is loaded
into instruction
register on next +ve
clock edge.
• Its content is split
into two nibbles.
Upper nibble is a
two-state o/p that
goes to
controller/sequencer.
• The lower nibble is a
three-state o/p that is
placed onto W bus for
further reading and
placing onto MAR.
Prepared and presented by Dr. A. Islam
7
SAP concepts with stress on timing diagrams
Prepared and presented by Dr. A. Islam
8
SAP concepts with stress on timing diagrams
• Controller-
sequencer: When
CLEAR/START push-
button of debouncer
ckt is pressed a low
CLR_bar goes to PC,
(C29) start-the-clock-
flip-flop) and ring
counter. A high CLR
goes to instruction
register.
• This resets the PC to
0000 and wipes out
the previous content
of instruction
register. The
controller-sequencer
generates a 12 bit
control word of the
format shown on its
o/p
Prepared and presented by Dr. A. Islam
9
SAP concepts with stress on timing diagrams
• Accumulator: is a
buffer register that
stores intermediate
result during program
run. It has two o/ps.
The two-state o/p goes
to adder/subtracter.
This o/p continuously
drives the
adder/subtracter. The
three-state o/p goes to
W bus and appears on
W bus when EA
(Enable accumulator) is
high.
Prepared and presented by Dr. A. Islam
10
SAP concepts with stress on timing diagrams
• B register: is another
buffer register used for
arithmetic operation. A
low on LB bar and +ve
clock edge loads the
word on W bus into B
register.
• Output register
(output port): When
EA (Enable
Accumulator) is high
and LO bar is low, the
next +ve clock edge
loads the accumulator
content into output
register for further LED
display.
• Binary display: is a
row of 8 LEDs
connected to Q output
of each FF of
74LS173.
Prepared and presented by Dr. A. Islam
11
SAP concepts with stress on timing diagrams
INSTRUCTION SET OF SAP-1: There are 5 instructions in SAP-1. They are:
LDA, ADD, SUB, OUT and HLT which are upward compatible with 8080/8085.
Every instruction should have machine language code, called opcode. Opcode
of SAP-1 instructions are assumed to be:
Mnemonic Op code
LDA 0000
ADD 0001
SUB 0010
OUT 1110
HLT 1111
Example program:
Address: Mnemonics
0H LDA 9H
1H ADD AH
2H ADD BH
3H SUB CH
4H OUT
5H HLT
The content of A after execution of the program will be 02H.
Address data
6H 00H
7H 00H
8H 00H
9H 01H
AH 02H
BH 03H
CH 04H
DH 00H
EH 00H
FH 00H
Prepared and presented by Dr. A. Islam
12
SAP concepts with stress on timing diagrams
The machine language version of the same
program is
Address contents
0000 0000 1001
0001 0001 1010
0010 0001 1011
0011 0010 1100
0100 1110 XXXX
0101 1111 XXXX
0110 XXXX XXXX
0111 XXXX XXXX
1000 XXXX XXXX
1001 0000 0001
1010 0000 0010
1011 0000 0011
1100 0000 0100
As can be seen, the four MSBs of a SAP-1
machine instruction specify the operation, and the
four LSBs give the address. Hence the MSBs is
called instruction field and LSBs as the address
field.
Instructions = XXXX XXXX
Instruction field
Address field
Prepared and presented by Dr. A. Islam
13
SAP concepts with stress on timing diagrams
Prepared and presented by Dr. A. Islam
14
SAP concepts with stress on timing diagrams
• As can be seen ring counter generates six timing states called
T states (T1 through T6), period during which registers
contents change. Initially when ring counter is cleared with
CLR the ring word is
T1 = 000001
• The successive clock pulses produce following rings words:
T2 = 000010
T3 = 000100
T4 = 001000
T5 = 010000
T6 = 100000
• As can be seen that a positive CLK edge occurs midway
through each T states, where loading of registers take place.
Prepared and presented by Dr. A. Islam
15
SAP concepts with stress on timing diagrams
• Fetch cycle consists of three states: Address state, Increment state, and
memory state. These states taken together is called fetch cycle.
Various operations that take place during these states are tabulated as
given below:
T states State
name
Active
control
signals
Active
parts of
SAP-1
Operation takes place
T1 Address
state
EP
LM bar
PC
MAR
CON
As high EP enables tristated o/p
buffer of PC, its content is outputted
onto W bus. Low LM bar makes MAR
enabled to be loaded. when +ve CLK
edge hits in the middle of T1 state
MAR gets loaded with the address
available on the W bus.
T2 Incremen
t state
CP PC
CON
In T2 state CP (J & K i/p of PC) goes
high. On +ve CLK edge, PC
increments.
T3 Memory
state
CE bar
LI bar
MAR
RAM
IR
CON
CE bar enables tristated o/p of RAM
making addressed RAM content
available onto W bus. LI bar enables
Instruction register to be loaded with
present content of W bus on +ve
CLK edge.
Prepared and presented by Dr. A. Islam
16
SAP concepts with stress on timing diagrams
Fig. 10.3 (Malvino) Fetch Cycle (a) T1 state; (b) T2 state (c) T3 state

More Related Content

Similar to EC203DSD - Module 5 - 3.ppt

Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013harshalata
 
8085 microproceesor ppt
8085 microproceesor ppt8085 microproceesor ppt
8085 microproceesor pptRJ Aniket
 
8085 paper-presentation
8085 paper-presentation8085 paper-presentation
8085 paper-presentationJiMs ChAcko
 
8085 microprocessor(1)
8085 microprocessor(1)8085 microprocessor(1)
8085 microprocessor(1)Reevu Pal
 
Ec6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontrollerEc6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontrollerSenthil Kumar
 
Addressing Modes
Addressing ModesAddressing Modes
Addressing ModesMayank Garg
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085Sumit Swain
 
ICT-Lecture_12(VonNeumannArchitecture).pptx
ICT-Lecture_12(VonNeumannArchitecture).pptxICT-Lecture_12(VonNeumannArchitecture).pptx
ICT-Lecture_12(VonNeumannArchitecture).pptxSirRafiLectures
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085ShivamSood22
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Neelam Kapoor
 
Assembly Language Paper.docx
Assembly Language Paper.docxAssembly Language Paper.docx
Assembly Language Paper.docxwrite22
 
Discussion on 8080 Microprocessor_r1 - Everyting you need to know.pptx
Discussion on 8080 Microprocessor_r1 - Everyting you need to know.pptxDiscussion on 8080 Microprocessor_r1 - Everyting you need to know.pptx
Discussion on 8080 Microprocessor_r1 - Everyting you need to know.pptxpjmulat
 
timing_diagram_of_8085.pptx
timing_diagram_of_8085.pptxtiming_diagram_of_8085.pptx
timing_diagram_of_8085.pptxBhagyarajKosamia
 
8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish Nagar8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish NagarNitish Nagar
 
Introduction to 8085 microprocessor
Introduction to 8085 microprocessorIntroduction to 8085 microprocessor
Introduction to 8085 microprocessorvenkateshkannat
 

Similar to EC203DSD - Module 5 - 3.ppt (20)

8085 (1)
8085 (1)8085 (1)
8085 (1)
 
Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013
 
8085 microproceesor ppt
8085 microproceesor ppt8085 microproceesor ppt
8085 microproceesor ppt
 
8085 paper-presentation
8085 paper-presentation8085 paper-presentation
8085 paper-presentation
 
8085 microprocessor(1)
8085 microprocessor(1)8085 microprocessor(1)
8085 microprocessor(1)
 
Ec6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontrollerEc6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontroller
 
Addressing Modes
Addressing ModesAddressing Modes
Addressing Modes
 
Lec04
Lec04Lec04
Lec04
 
Lec04
Lec04Lec04
Lec04
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
ICT-Lecture_12(VonNeumannArchitecture).pptx
ICT-Lecture_12(VonNeumannArchitecture).pptxICT-Lecture_12(VonNeumannArchitecture).pptx
ICT-Lecture_12(VonNeumannArchitecture).pptx
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
Assembly Language Paper.docx
Assembly Language Paper.docxAssembly Language Paper.docx
Assembly Language Paper.docx
 
Discussion on 8080 Microprocessor_r1 - Everyting you need to know.pptx
Discussion on 8080 Microprocessor_r1 - Everyting you need to know.pptxDiscussion on 8080 Microprocessor_r1 - Everyting you need to know.pptx
Discussion on 8080 Microprocessor_r1 - Everyting you need to know.pptx
 
microprocessor
 microprocessor microprocessor
microprocessor
 
timing_diagram_of_8085.pptx
timing_diagram_of_8085.pptxtiming_diagram_of_8085.pptx
timing_diagram_of_8085.pptx
 
8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish Nagar8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish Nagar
 
Introduction to 8085 microprocessor
Introduction to 8085 microprocessorIntroduction to 8085 microprocessor
Introduction to 8085 microprocessor
 

More from shashankbhadouria4

Artificial Neural Network.pptx
Artificial Neural Network.pptxArtificial Neural Network.pptx
Artificial Neural Network.pptxshashankbhadouria4
 
IT201 Basics of Intelligent Systems-1.pptx
IT201 Basics of Intelligent Systems-1.pptxIT201 Basics of Intelligent Systems-1.pptx
IT201 Basics of Intelligent Systems-1.pptxshashankbhadouria4
 
MO 2020 DS Doubly Linked List 1 AB.ppt
MO 2020 DS Doubly Linked List 1 AB.pptMO 2020 DS Doubly Linked List 1 AB.ppt
MO 2020 DS Doubly Linked List 1 AB.pptshashankbhadouria4
 
A New Multi-Level Inverter Topology With Reduced Switch.pptx
A New Multi-Level Inverter Topology With Reduced Switch.pptxA New Multi-Level Inverter Topology With Reduced Switch.pptx
A New Multi-Level Inverter Topology With Reduced Switch.pptxshashankbhadouria4
 
Birla Institute of Technology Mesra Jaipur.pptx
Birla Institute of Technology Mesra Jaipur.pptxBirla Institute of Technology Mesra Jaipur.pptx
Birla Institute of Technology Mesra Jaipur.pptxshashankbhadouria4
 
III_Data Structure_Module_1.ppt
III_Data Structure_Module_1.pptIII_Data Structure_Module_1.ppt
III_Data Structure_Module_1.pptshashankbhadouria4
 
Chap 2 Arrays and Structures.ppt
Chap 2  Arrays and Structures.pptChap 2  Arrays and Structures.ppt
Chap 2 Arrays and Structures.pptshashankbhadouria4
 
Chap 4 List of Data Structure.ppt
Chap 4 List of Data Structure.pptChap 4 List of Data Structure.ppt
Chap 4 List of Data Structure.pptshashankbhadouria4
 
SUmmer Training PPT FINAL.pptx
SUmmer Training PPT FINAL.pptxSUmmer Training PPT FINAL.pptx
SUmmer Training PPT FINAL.pptxshashankbhadouria4
 
MO 2020 DS Applications of Linked List 1 AB.ppt
MO 2020 DS Applications of Linked List 1 AB.pptMO 2020 DS Applications of Linked List 1 AB.ppt
MO 2020 DS Applications of Linked List 1 AB.pptshashankbhadouria4
 
III_Data Structure_Module_1.pptx
III_Data Structure_Module_1.pptxIII_Data Structure_Module_1.pptx
III_Data Structure_Module_1.pptxshashankbhadouria4
 
Chap 2 Arrays and Structures.pptx
Chap 2  Arrays and Structures.pptxChap 2  Arrays and Structures.pptx
Chap 2 Arrays and Structures.pptxshashankbhadouria4
 

More from shashankbhadouria4 (20)

Artificial Neural Network.pptx
Artificial Neural Network.pptxArtificial Neural Network.pptx
Artificial Neural Network.pptx
 
IT201 Basics of Intelligent Systems-1.pptx
IT201 Basics of Intelligent Systems-1.pptxIT201 Basics of Intelligent Systems-1.pptx
IT201 Basics of Intelligent Systems-1.pptx
 
MO 2020 DS Doubly Linked List 1 AB.ppt
MO 2020 DS Doubly Linked List 1 AB.pptMO 2020 DS Doubly Linked List 1 AB.ppt
MO 2020 DS Doubly Linked List 1 AB.ppt
 
MO 2020 DS Stacks 3 AB.ppt
MO 2020 DS Stacks 3 AB.pptMO 2020 DS Stacks 3 AB.ppt
MO 2020 DS Stacks 3 AB.ppt
 
A New Multi-Level Inverter Topology With Reduced Switch.pptx
A New Multi-Level Inverter Topology With Reduced Switch.pptxA New Multi-Level Inverter Topology With Reduced Switch.pptx
A New Multi-Level Inverter Topology With Reduced Switch.pptx
 
Birla Institute of Technology Mesra Jaipur.pptx
Birla Institute of Technology Mesra Jaipur.pptxBirla Institute of Technology Mesra Jaipur.pptx
Birla Institute of Technology Mesra Jaipur.pptx
 
EE306_EXP1.pptx
EE306_EXP1.pptxEE306_EXP1.pptx
EE306_EXP1.pptx
 
III_Data Structure_Module_1.ppt
III_Data Structure_Module_1.pptIII_Data Structure_Module_1.ppt
III_Data Structure_Module_1.ppt
 
Chap 6 Graph.ppt
Chap 6 Graph.pptChap 6 Graph.ppt
Chap 6 Graph.ppt
 
Chap 5 Tree.ppt
Chap 5 Tree.pptChap 5 Tree.ppt
Chap 5 Tree.ppt
 
Chap 2 Arrays and Structures.ppt
Chap 2  Arrays and Structures.pptChap 2  Arrays and Structures.ppt
Chap 2 Arrays and Structures.ppt
 
Chap 4 List of Data Structure.ppt
Chap 4 List of Data Structure.pptChap 4 List of Data Structure.ppt
Chap 4 List of Data Structure.ppt
 
SUmmer Training PPT FINAL.pptx
SUmmer Training PPT FINAL.pptxSUmmer Training PPT FINAL.pptx
SUmmer Training PPT FINAL.pptx
 
RVPN TRAINING PPT.pptx
RVPN TRAINING PPT.pptxRVPN TRAINING PPT.pptx
RVPN TRAINING PPT.pptx
 
MODULE 1.pptx
MODULE 1.pptxMODULE 1.pptx
MODULE 1.pptx
 
MODULE 1.pptx
MODULE 1.pptxMODULE 1.pptx
MODULE 1.pptx
 
MO 2020 DS Applications of Linked List 1 AB.ppt
MO 2020 DS Applications of Linked List 1 AB.pptMO 2020 DS Applications of Linked List 1 AB.ppt
MO 2020 DS Applications of Linked List 1 AB.ppt
 
MO 2020 DS Stacks 1 AB.ppt
MO 2020 DS Stacks 1 AB.pptMO 2020 DS Stacks 1 AB.ppt
MO 2020 DS Stacks 1 AB.ppt
 
III_Data Structure_Module_1.pptx
III_Data Structure_Module_1.pptxIII_Data Structure_Module_1.pptx
III_Data Structure_Module_1.pptx
 
Chap 2 Arrays and Structures.pptx
Chap 2  Arrays and Structures.pptxChap 2  Arrays and Structures.pptx
Chap 2 Arrays and Structures.pptx
 

Recently uploaded

办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一F dds
 
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
PORTAFOLIO   2024_  ANASTASIYA  KUDINOVAPORTAFOLIO   2024_  ANASTASIYA  KUDINOVA
PORTAFOLIO 2024_ ANASTASIYA KUDINOVAAnastasiya Kudinova
 
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Servicejennyeacort
 
Revit Understanding Reference Planes and Reference lines in Revit for Family ...
Revit Understanding Reference Planes and Reference lines in Revit for Family ...Revit Understanding Reference Planes and Reference lines in Revit for Family ...
Revit Understanding Reference Planes and Reference lines in Revit for Family ...Narsimha murthy
 
Introduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptxIntroduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptxnewslab143
 
Kindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUpKindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUpmainac1
 
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`dajasot375
 
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Call Girls Satellite 7397865700 Ridhima Hire Me Full Night
Call Girls Satellite 7397865700 Ridhima Hire Me Full NightCall Girls Satellite 7397865700 Ridhima Hire Me Full Night
Call Girls Satellite 7397865700 Ridhima Hire Me Full Nightssuser7cb4ff
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...babafaisel
 
Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...narwatsonia7
 
306MTAMount UCLA University Bachelor's Diploma in Social Media
306MTAMount UCLA University Bachelor's Diploma in Social Media306MTAMount UCLA University Bachelor's Diploma in Social Media
306MTAMount UCLA University Bachelor's Diploma in Social MediaD SSS
 
shot list for my tv series two steps back
shot list for my tv series two steps backshot list for my tv series two steps back
shot list for my tv series two steps back17lcow074
 
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
SCRIP Lua HTTP PROGRACMACION PLC WECON CA
SCRIP Lua HTTP PROGRACMACION PLC  WECON CASCRIP Lua HTTP PROGRACMACION PLC  WECON CA
SCRIP Lua HTTP PROGRACMACION PLC WECON CANestorGamez6
 
Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Rndexperts
 
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service AmravatiVIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
Call Girls Bapu Nagar 7397865700 Ridhima Hire Me Full Night
Call Girls Bapu Nagar 7397865700 Ridhima Hire Me Full NightCall Girls Bapu Nagar 7397865700 Ridhima Hire Me Full Night
Call Girls Bapu Nagar 7397865700 Ridhima Hire Me Full Nightssuser7cb4ff
 

Recently uploaded (20)

办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
 
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
PORTAFOLIO   2024_  ANASTASIYA  KUDINOVAPORTAFOLIO   2024_  ANASTASIYA  KUDINOVA
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
 
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
 
Revit Understanding Reference Planes and Reference lines in Revit for Family ...
Revit Understanding Reference Planes and Reference lines in Revit for Family ...Revit Understanding Reference Planes and Reference lines in Revit for Family ...
Revit Understanding Reference Planes and Reference lines in Revit for Family ...
 
Introduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptxIntroduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptx
 
Kindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUpKindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUp
 
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
 
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
 
Call Girls Satellite 7397865700 Ridhima Hire Me Full Night
Call Girls Satellite 7397865700 Ridhima Hire Me Full NightCall Girls Satellite 7397865700 Ridhima Hire Me Full Night
Call Girls Satellite 7397865700 Ridhima Hire Me Full Night
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
 
Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
 
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 night
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 nightCheap Rate Call girls Kalkaji 9205541914 shot 1500 night
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 night
 
306MTAMount UCLA University Bachelor's Diploma in Social Media
306MTAMount UCLA University Bachelor's Diploma in Social Media306MTAMount UCLA University Bachelor's Diploma in Social Media
306MTAMount UCLA University Bachelor's Diploma in Social Media
 
shot list for my tv series two steps back
shot list for my tv series two steps backshot list for my tv series two steps back
shot list for my tv series two steps back
 
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
young call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Service
young call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Service
young call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Service
 
SCRIP Lua HTTP PROGRACMACION PLC WECON CA
SCRIP Lua HTTP PROGRACMACION PLC  WECON CASCRIP Lua HTTP PROGRACMACION PLC  WECON CA
SCRIP Lua HTTP PROGRACMACION PLC WECON CA
 
Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025
 
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service AmravatiVIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
 
Call Girls Bapu Nagar 7397865700 Ridhima Hire Me Full Night
Call Girls Bapu Nagar 7397865700 Ridhima Hire Me Full NightCall Girls Bapu Nagar 7397865700 Ridhima Hire Me Full Night
Call Girls Bapu Nagar 7397865700 Ridhima Hire Me Full Night
 

EC203DSD - Module 5 - 3.ppt

  • 1. Prepared and presented by Dr. A. Islam 1 EC4205/EC203 Dr. A. Islam Dept. of ECE BIT, Mesra, Ranchi Microprocessor and Microcontroller/DSD Webcast link: https://sites.google.com/a/bitmesra.ac.in/aminulislam/home All announcement made through webpage: check back often Students are welcome outside the class (right after class)
  • 2. Prepared and presented by Dr. A. Islam 2 EC4205/EC203 Lecture notes based on material • From me, Prof. (Dr.) R. Sukesh Kumar and following text books: 1. Digital Computer Electronics, 2/e, by A. P. Malvino. 2. Microprocessor Architecture, Programming and Applications with 8085, by R. S. Gaonkar. 3. Microprocessor and Interfacing, Programming of Hardware, by D. Hall. 4. Microprocessor and Peripherals, by S. P. Chowdhury and S. Chowdhury. 5. INTEL 8086/8088 Microprocessor, Architecture, Programming, Design and Interfacing, 3/e, by B. S. Chhabra. 6. Microprocessor, Microcomputer and their Applications, 2/e, by A, K. Mukhopadhyay. 7. The Intel Microprocessors 8086/888, 80186/80188, 80286, 80386, 80486, Pentium and Pentium Pro processor – architecture, programming and interfacing, 4/e, by B. B. Brey. 8. Microprocessors with applications in process control, by SI Ahson. 9. Microprocessors – theory and applications: Intel and Motorola, by M. Rafiquzzaman. Use the material without violating copyright act involved with original books.
  • 3. Prepared and presented by Dr. A. Islam 3 Module-I: Outline 1. Revision of logic circuits with emphasis on control lines 2. SAP concepts with stress on timing diagrams 3. Microinstructions 4. Microprogramming 5. Variable machine cycle 6. Architecture of 8085 Processor 7. Functions of all signals 8. Bus concepts 9. Multiplexed and De-multiplexed Bus 10.Minimum system Module – 5 (for EC203 DSD): Design of simple computing machines: SAP-I concepts with stress on timing diagrams, Microinstructions, Fetch and Execution cycle variable machine cycle, Hardware control Matrix, Macroinstructions, Microprogramming, Bus concepts, Multiplexed Minimum system. Pipelining concepts.
  • 4. Prepared and presented by Dr. A. Islam 4 SAP concepts with stress on timing diagrams • Program counter: On reset it contains 0000. It places the address (onto the W bus during T1 or address state) of the instruction to be fetched and executed. • Input and MAR: It includes address & data switch registers. These s/w registers allow to send 4 address bits and 8 data bits to RAM. MAR is part of SAP-1 memory. Address from PC and IR gets latched into MAR. A bit latter, MAR applies this 4-bit address to the RAM, where a read operation is performed.
  • 5. Prepared and presented by Dr. A. Islam 5 SAP concepts with stress on timing diagrams • RAM: In SAP-1 RAM is 16×8 bit TTL 74189 static RAM which is programmed with address and data s/w registers before a computer run.
  • 6. Prepared and presented by Dr. A. Islam 6 SAP concepts with stress on timing diagrams • Instruction register: When memory read operation is performed content of addressed memory location is loaded into instruction register on next +ve clock edge. • Its content is split into two nibbles. Upper nibble is a two-state o/p that goes to controller/sequencer. • The lower nibble is a three-state o/p that is placed onto W bus for further reading and placing onto MAR.
  • 7. Prepared and presented by Dr. A. Islam 7 SAP concepts with stress on timing diagrams
  • 8. Prepared and presented by Dr. A. Islam 8 SAP concepts with stress on timing diagrams • Controller- sequencer: When CLEAR/START push- button of debouncer ckt is pressed a low CLR_bar goes to PC, (C29) start-the-clock- flip-flop) and ring counter. A high CLR goes to instruction register. • This resets the PC to 0000 and wipes out the previous content of instruction register. The controller-sequencer generates a 12 bit control word of the format shown on its o/p
  • 9. Prepared and presented by Dr. A. Islam 9 SAP concepts with stress on timing diagrams • Accumulator: is a buffer register that stores intermediate result during program run. It has two o/ps. The two-state o/p goes to adder/subtracter. This o/p continuously drives the adder/subtracter. The three-state o/p goes to W bus and appears on W bus when EA (Enable accumulator) is high.
  • 10. Prepared and presented by Dr. A. Islam 10 SAP concepts with stress on timing diagrams • B register: is another buffer register used for arithmetic operation. A low on LB bar and +ve clock edge loads the word on W bus into B register. • Output register (output port): When EA (Enable Accumulator) is high and LO bar is low, the next +ve clock edge loads the accumulator content into output register for further LED display. • Binary display: is a row of 8 LEDs connected to Q output of each FF of 74LS173.
  • 11. Prepared and presented by Dr. A. Islam 11 SAP concepts with stress on timing diagrams INSTRUCTION SET OF SAP-1: There are 5 instructions in SAP-1. They are: LDA, ADD, SUB, OUT and HLT which are upward compatible with 8080/8085. Every instruction should have machine language code, called opcode. Opcode of SAP-1 instructions are assumed to be: Mnemonic Op code LDA 0000 ADD 0001 SUB 0010 OUT 1110 HLT 1111 Example program: Address: Mnemonics 0H LDA 9H 1H ADD AH 2H ADD BH 3H SUB CH 4H OUT 5H HLT The content of A after execution of the program will be 02H. Address data 6H 00H 7H 00H 8H 00H 9H 01H AH 02H BH 03H CH 04H DH 00H EH 00H FH 00H
  • 12. Prepared and presented by Dr. A. Islam 12 SAP concepts with stress on timing diagrams The machine language version of the same program is Address contents 0000 0000 1001 0001 0001 1010 0010 0001 1011 0011 0010 1100 0100 1110 XXXX 0101 1111 XXXX 0110 XXXX XXXX 0111 XXXX XXXX 1000 XXXX XXXX 1001 0000 0001 1010 0000 0010 1011 0000 0011 1100 0000 0100 As can be seen, the four MSBs of a SAP-1 machine instruction specify the operation, and the four LSBs give the address. Hence the MSBs is called instruction field and LSBs as the address field. Instructions = XXXX XXXX Instruction field Address field
  • 13. Prepared and presented by Dr. A. Islam 13 SAP concepts with stress on timing diagrams
  • 14. Prepared and presented by Dr. A. Islam 14 SAP concepts with stress on timing diagrams • As can be seen ring counter generates six timing states called T states (T1 through T6), period during which registers contents change. Initially when ring counter is cleared with CLR the ring word is T1 = 000001 • The successive clock pulses produce following rings words: T2 = 000010 T3 = 000100 T4 = 001000 T5 = 010000 T6 = 100000 • As can be seen that a positive CLK edge occurs midway through each T states, where loading of registers take place.
  • 15. Prepared and presented by Dr. A. Islam 15 SAP concepts with stress on timing diagrams • Fetch cycle consists of three states: Address state, Increment state, and memory state. These states taken together is called fetch cycle. Various operations that take place during these states are tabulated as given below: T states State name Active control signals Active parts of SAP-1 Operation takes place T1 Address state EP LM bar PC MAR CON As high EP enables tristated o/p buffer of PC, its content is outputted onto W bus. Low LM bar makes MAR enabled to be loaded. when +ve CLK edge hits in the middle of T1 state MAR gets loaded with the address available on the W bus. T2 Incremen t state CP PC CON In T2 state CP (J & K i/p of PC) goes high. On +ve CLK edge, PC increments. T3 Memory state CE bar LI bar MAR RAM IR CON CE bar enables tristated o/p of RAM making addressed RAM content available onto W bus. LI bar enables Instruction register to be loaded with present content of W bus on +ve CLK edge.
  • 16. Prepared and presented by Dr. A. Islam 16 SAP concepts with stress on timing diagrams Fig. 10.3 (Malvino) Fetch Cycle (a) T1 state; (b) T2 state (c) T3 state