SlideShare una empresa de Scribd logo
1 de 17
Real-time Embedded  Systems Lecture 5 Understanding targets- 8086 based systems Prof. Dr. Amitava Gupta Department of Power Engineering Jadavpur University, India Real-time  Embedded Systems- Lecture 05
Real-time Embedded  Systems- Lecture 05 Embedded System? Application Operating System Hardware + What have we learnt? Interface with application
Real-time Embedded  Systems- Lecture 05 We start with a survey of 8086 based systems AH BH CH DH AL BL CL DL SP BP SI DI IP CS SS DS ES Instruction queue Control Logic ALU PSW 20 16 Address Data Control
Real-time Embedded  Systems- Lecture 05 Pipelined Architecture  The fetching and execution activities overlap. Instructions are  pre-fetched and kept in instructions queue. While one instruction is being executed, the next one is fetched.  This is because of the fact that fetch and execution units are separate. When processors have more than one execution unit, they are said to have a superscalar architecture. The Pentium is an example of such processors.
Real-time Embedded  Systems- Lecture 05 Bus Organized Computers A set of conductors used for communicating information between the components of a computer is called a bus. External bus- connects two major components e.g. CPU and memory.This is the system bus. Internal bus- connects two minor components within a major component e.g. set of working registers and the control unit. Components which control the Bus are called bus masters, e.g. CPU,DMA controller etc.
Real-time Embedded  Systems- Lecture 05 System Bus Timing contd.. T 1 T 2 T 3 T w T 4 T 4 T i T i Bus Cycle :  Activity involved in transferring a byte or word over system bus is called bus cycle.   The execution of an instruction may require more  than one bus cycle. The timing of signals within the CPU and bus control logic is controlled by a clock. The bus cycles and CPU activity are controlled by groups of clock pulses. The exact number of clock pulses or cycles within a bus cycle varies
Real-time Embedded  Systems- Lecture 05 T 1 T 2 T 3 T 4 Read timing for 8086 without wait states Address out Data in ALE RD Device sends a Ready signal here else wait states are introduced between  T 3  and T 4 T w
Real-time Embedded  Systems- Lecture 05 Physical memory organization o e + D 15 -D 8 D 7 -D 0 512 KB each Selectable by  bit A 0 OA = EA + 1 So, for an even address the next odd address can be obtained by using  A 0  = 1 keeping all other bits same Address Address + 1
Real-time Embedded  Systems- Lecture 05 Basic addressing scheme uses two 16 bit registers to compute a 20 bit address The memory is ‘logically’ organized into segments 1M 64K 16 bit segment register 16 bit pointer register offset 4 Bits base
Real-time Embedded  Systems- Lecture 06 Excercise  If the physical address is 5A230 when [CS] = 5200, what will it be [CS] becomes 7800? Solution:
Real-time Embedded  Systems- Lecture 05 Interrupts (Hardware Interrupts) Each interrupt is associated with an Interrupt Service Routine (ISR) that is executed when an  interrupt occurs Interrupt table IP type 0 CS type 0 00000 00002 00004
Real-time Embedded  Systems- Lecture 05 Interfacing External Interrupts CPU PIC 8259 INTR T 1 T 2 T 3 T 4 ALE T 4 INTA AD7-AD0 INTA
Real-time Embedded  Systems- Lecture 05 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Interrupt Sequence
ICW 1(Chip Control) ICW 2(Type) ICW 3(Slave Control) ICW 4(Mode Control) OCW 1(IMR) OCW 2 OCW 3 In Service Register Priority Resolver IRR & ML 20 20 20 21 21 21 21 Real-time Embedded  Systems- Lecture 05 0 7 0 1 I 0 1 INT 0 Pending INTA
Real-time Embedded  Systems- Lecture 05 1 ADI SNGL LTIM IC 4 0 0 0 SFNM M/S AEOI BUF µPM ICW4- Mode Control ICW1- Chip Control
Real-time Embedded  Systems- Lecture 05 SL EOI R 0 L2 L1 0 L0 ESMM SMM 0 0 P RR 1 RIS OCW2 OCW3
Real-time Embedded  Systems- Lecture 05 Requests arrive simultaneously on IRQ2 and IRQ4, & while IR2 routine is being executed, IRQ1 arrives! Main Program IRQ2 IRQ4 D2 in ISR set IR2 ----------- Reset IF (STI) . . . IRET IRQ1 IR1 ----------- Reset IF (STI) . . . IRET D1 in ISR set IR4 ----------- Reset IF (STI) . . . IRET D1 in ISR reset D2 in ISR reset D4 in ISR set

Más contenido relacionado

La actualidad más candente

Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time SystemsSara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systemsknowdiff
 
Real-Time Scheduling
Real-Time SchedulingReal-Time Scheduling
Real-Time Schedulingsathish sak
 
Lecture 3
Lecture 3Lecture 3
Lecture 3Mr SMAK
 
Hard versus Soft real time system
Hard versus Soft real time systemHard versus Soft real time system
Hard versus Soft real time systemKamal Acharya
 
Computer arithmetic in computer architecture
Computer arithmetic in computer architectureComputer arithmetic in computer architecture
Computer arithmetic in computer architectureishapadhy
 
Real time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CSReal time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CSThanveen
 
Computer Organozation
Computer OrganozationComputer Organozation
Computer OrganozationAabha Tiwari
 
Feng’s classification
Feng’s classificationFeng’s classification
Feng’s classificationNarayan Kandel
 
Reference model of real time system
Reference model of real time systemReference model of real time system
Reference model of real time systemKamal Acharya
 
A survey of paradigms for building and
A survey of paradigms for building andA survey of paradigms for building and
A survey of paradigms for building andcseij
 
Chapter 4: Parallel Programming Languages
Chapter 4: Parallel Programming LanguagesChapter 4: Parallel Programming Languages
Chapter 4: Parallel Programming LanguagesHeman Pathak
 
Parallel Processors (SIMD)
Parallel Processors (SIMD) Parallel Processors (SIMD)
Parallel Processors (SIMD) Ali Raza
 
Clock driven scheduling
Clock driven schedulingClock driven scheduling
Clock driven schedulingKamal Acharya
 
Real Time most famous algorithms
Real Time most famous algorithmsReal Time most famous algorithms
Real Time most famous algorithmsAndrea Tino
 
advanced computer architesture-conditions of parallelism
advanced computer architesture-conditions of parallelismadvanced computer architesture-conditions of parallelism
advanced computer architesture-conditions of parallelismPankaj Kumar Jain
 

La actualidad más candente (20)

Lec3 final
Lec3 finalLec3 final
Lec3 final
 
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time SystemsSara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
 
1.prallelism
1.prallelism1.prallelism
1.prallelism
 
Real-Time Scheduling
Real-Time SchedulingReal-Time Scheduling
Real-Time Scheduling
 
Parallel Algorithms
Parallel AlgorithmsParallel Algorithms
Parallel Algorithms
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Hard versus Soft real time system
Hard versus Soft real time systemHard versus Soft real time system
Hard versus Soft real time system
 
Computer arithmetic in computer architecture
Computer arithmetic in computer architectureComputer arithmetic in computer architecture
Computer arithmetic in computer architecture
 
Real time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CSReal time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CS
 
Computer Organozation
Computer OrganozationComputer Organozation
Computer Organozation
 
Feng’s classification
Feng’s classificationFeng’s classification
Feng’s classification
 
Real time system
Real time systemReal time system
Real time system
 
Reference model of real time system
Reference model of real time systemReference model of real time system
Reference model of real time system
 
A survey of paradigms for building and
A survey of paradigms for building andA survey of paradigms for building and
A survey of paradigms for building and
 
Chapter 4: Parallel Programming Languages
Chapter 4: Parallel Programming LanguagesChapter 4: Parallel Programming Languages
Chapter 4: Parallel Programming Languages
 
Parallel Processors (SIMD)
Parallel Processors (SIMD) Parallel Processors (SIMD)
Parallel Processors (SIMD)
 
Clock driven scheduling
Clock driven schedulingClock driven scheduling
Clock driven scheduling
 
CO Module 5
CO Module 5CO Module 5
CO Module 5
 
Real Time most famous algorithms
Real Time most famous algorithmsReal Time most famous algorithms
Real Time most famous algorithms
 
advanced computer architesture-conditions of parallelism
advanced computer architesture-conditions of parallelismadvanced computer architesture-conditions of parallelism
advanced computer architesture-conditions of parallelism
 

Destacado

Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded SystemsHimanshu Ghetia
 
S emb t10-development
S emb t10-developmentS emb t10-development
S emb t10-developmentJoão Moreira
 
Embedded System Real Time Operating System (ERTS) I unit by vijay
Embedded System Real Time Operating System (ERTS) I unit by vijayEmbedded System Real Time Operating System (ERTS) I unit by vijay
Embedded System Real Time Operating System (ERTS) I unit by vijayVijay Kumar
 
Real Time Operating System Concepts
Real Time Operating System ConceptsReal Time Operating System Concepts
Real Time Operating System ConceptsSanjiv Malik
 
Unit 1 embedded systems and applications
Unit 1 embedded systems and applicationsUnit 1 embedded systems and applications
Unit 1 embedded systems and applicationsDr.YNM
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating SystemTech_MX
 
ppt on embedded system
ppt on embedded systemppt on embedded system
ppt on embedded systemmanish katara
 

Destacado (12)

Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded Systems
 
S emb t2-definition
S emb t2-definitionS emb t2-definition
S emb t2-definition
 
S emb t10-development
S emb t10-developmentS emb t10-development
S emb t10-development
 
Embedded System Real Time Operating System (ERTS) I unit by vijay
Embedded System Real Time Operating System (ERTS) I unit by vijayEmbedded System Real Time Operating System (ERTS) I unit by vijay
Embedded System Real Time Operating System (ERTS) I unit by vijay
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
RTOS - Real Time Operating Systems
RTOS - Real Time Operating SystemsRTOS - Real Time Operating Systems
RTOS - Real Time Operating Systems
 
Real Time Operating System Concepts
Real Time Operating System ConceptsReal Time Operating System Concepts
Real Time Operating System Concepts
 
Embedded System Presentation
Embedded System PresentationEmbedded System Presentation
Embedded System Presentation
 
Real Time Systems
Real Time SystemsReal Time Systems
Real Time Systems
 
Unit 1 embedded systems and applications
Unit 1 embedded systems and applicationsUnit 1 embedded systems and applications
Unit 1 embedded systems and applications
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating System
 
ppt on embedded system
ppt on embedded systemppt on embedded system
ppt on embedded system
 

Similar a Real time-embedded-system-lec-05

My seminar new 28
My seminar new 28My seminar new 28
My seminar new 28rajeshkvdn
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessorRamaPrabha24
 
Control unit-implementation
Control unit-implementationControl unit-implementation
Control unit-implementationWBUTTUTORIALS
 
Introduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorIntroduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorDarling Jemima
 
An introduction to microprocessor architecture using INTEL 8085 as a classic...
An introduction to microprocessor  architecture using INTEL 8085 as a classic...An introduction to microprocessor  architecture using INTEL 8085 as a classic...
An introduction to microprocessor architecture using INTEL 8085 as a classic...Prasad Deshpande
 
BASIC COMPUTER ORGANIZATION AND DESIGN
BASIC  COMPUTER  ORGANIZATION  AND  DESIGNBASIC  COMPUTER  ORGANIZATION  AND  DESIGN
BASIC COMPUTER ORGANIZATION AND DESIGNDr. Ajay Kumar Singh
 
COA CHAPTER 5
COA CHAPTER 5COA CHAPTER 5
COA CHAPTER 5Mori77
 
Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4Rishikesh Bhavsar
 
Arm architecture
Arm architectureArm architecture
Arm architectureMinYeop Na
 
Real Time System Validation using Hardware in Loop (HIL) Digital Platform
Real Time System Validation using Hardware in Loop (HIL) Digital PlatformReal Time System Validation using Hardware in Loop (HIL) Digital Platform
Real Time System Validation using Hardware in Loop (HIL) Digital PlatformSHIMI S L
 
Computer Organization
Computer OrganizationComputer Organization
Computer OrganizationHaripritha
 

Similar a Real time-embedded-system-lec-05 (20)

Introduction to 8085svv
Introduction to 8085svvIntroduction to 8085svv
Introduction to 8085svv
 
My seminar new 28
My seminar new 28My seminar new 28
My seminar new 28
 
viva q&a for mp lab
viva q&a for mp labviva q&a for mp lab
viva q&a for mp lab
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
 
8085 intro
8085 intro8085 intro
8085 intro
 
8085 microprocessor Embedded system
8085 microprocessor  Embedded system8085 microprocessor  Embedded system
8085 microprocessor Embedded system
 
8259 a
8259 a8259 a
8259 a
 
Control unit-implementation
Control unit-implementationControl unit-implementation
Control unit-implementation
 
Introduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorIntroduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM Processor
 
An introduction to microprocessor architecture using INTEL 8085 as a classic...
An introduction to microprocessor  architecture using INTEL 8085 as a classic...An introduction to microprocessor  architecture using INTEL 8085 as a classic...
An introduction to microprocessor architecture using INTEL 8085 as a classic...
 
8085.ppt
8085.ppt8085.ppt
8085.ppt
 
c++
c++ c++
c++
 
BASIC COMPUTER ORGANIZATION AND DESIGN
BASIC  COMPUTER  ORGANIZATION  AND  DESIGNBASIC  COMPUTER  ORGANIZATION  AND  DESIGN
BASIC COMPUTER ORGANIZATION AND DESIGN
 
COA CHAPTER 5
COA CHAPTER 5COA CHAPTER 5
COA CHAPTER 5
 
Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4
 
Arm architecture
Arm architectureArm architecture
Arm architecture
 
.........
..................
.........
 
Real Time System Validation using Hardware in Loop (HIL) Digital Platform
Real Time System Validation using Hardware in Loop (HIL) Digital PlatformReal Time System Validation using Hardware in Loop (HIL) Digital Platform
Real Time System Validation using Hardware in Loop (HIL) Digital Platform
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
Architecture of pentium family
Architecture of pentium familyArchitecture of pentium family
Architecture of pentium family
 

Más de University of Computer Science and Technology

Más de University of Computer Science and Technology (15)

Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
 
12 software maintenance
12 software maintenance12 software maintenance
12 software maintenance
 
11 software testing_strategy
11 software testing_strategy11 software testing_strategy
11 software testing_strategy
 
10 software testing_technique
10 software testing_technique10 software testing_technique
10 software testing_technique
 
09 coding standards_n_guidelines
09 coding standards_n_guidelines09 coding standards_n_guidelines
09 coding standards_n_guidelines
 
08 component level_design
08 component level_design08 component level_design
08 component level_design
 
07 interface design
07 interface design07 interface design
07 interface design
 
06 architectural design_workout
06 architectural design_workout06 architectural design_workout
06 architectural design_workout
 
05 architectural design
05 architectural design05 architectural design
05 architectural design
 
04 design concepts_n_principles
04 design concepts_n_principles04 design concepts_n_principles
04 design concepts_n_principles
 
03 requirement engineering_process
03 requirement engineering_process03 requirement engineering_process
03 requirement engineering_process
 
02 software process_models
02 software process_models02 software process_models
02 software process_models
 
01 software engineering_aspects
01 software engineering_aspects01 software engineering_aspects
01 software engineering_aspects
 
14 software technical_metrics
14 software technical_metrics14 software technical_metrics
14 software technical_metrics
 
13 software metrics
13 software metrics13 software metrics
13 software metrics
 

Último

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 

Último (20)

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 

Real time-embedded-system-lec-05

  • 1. Real-time Embedded Systems Lecture 5 Understanding targets- 8086 based systems Prof. Dr. Amitava Gupta Department of Power Engineering Jadavpur University, India Real-time Embedded Systems- Lecture 05
  • 2. Real-time Embedded Systems- Lecture 05 Embedded System? Application Operating System Hardware + What have we learnt? Interface with application
  • 3. Real-time Embedded Systems- Lecture 05 We start with a survey of 8086 based systems AH BH CH DH AL BL CL DL SP BP SI DI IP CS SS DS ES Instruction queue Control Logic ALU PSW 20 16 Address Data Control
  • 4. Real-time Embedded Systems- Lecture 05 Pipelined Architecture The fetching and execution activities overlap. Instructions are pre-fetched and kept in instructions queue. While one instruction is being executed, the next one is fetched. This is because of the fact that fetch and execution units are separate. When processors have more than one execution unit, they are said to have a superscalar architecture. The Pentium is an example of such processors.
  • 5. Real-time Embedded Systems- Lecture 05 Bus Organized Computers A set of conductors used for communicating information between the components of a computer is called a bus. External bus- connects two major components e.g. CPU and memory.This is the system bus. Internal bus- connects two minor components within a major component e.g. set of working registers and the control unit. Components which control the Bus are called bus masters, e.g. CPU,DMA controller etc.
  • 6. Real-time Embedded Systems- Lecture 05 System Bus Timing contd.. T 1 T 2 T 3 T w T 4 T 4 T i T i Bus Cycle : Activity involved in transferring a byte or word over system bus is called bus cycle. The execution of an instruction may require more than one bus cycle. The timing of signals within the CPU and bus control logic is controlled by a clock. The bus cycles and CPU activity are controlled by groups of clock pulses. The exact number of clock pulses or cycles within a bus cycle varies
  • 7. Real-time Embedded Systems- Lecture 05 T 1 T 2 T 3 T 4 Read timing for 8086 without wait states Address out Data in ALE RD Device sends a Ready signal here else wait states are introduced between T 3 and T 4 T w
  • 8. Real-time Embedded Systems- Lecture 05 Physical memory organization o e + D 15 -D 8 D 7 -D 0 512 KB each Selectable by bit A 0 OA = EA + 1 So, for an even address the next odd address can be obtained by using A 0 = 1 keeping all other bits same Address Address + 1
  • 9. Real-time Embedded Systems- Lecture 05 Basic addressing scheme uses two 16 bit registers to compute a 20 bit address The memory is ‘logically’ organized into segments 1M 64K 16 bit segment register 16 bit pointer register offset 4 Bits base
  • 10. Real-time Embedded Systems- Lecture 06 Excercise If the physical address is 5A230 when [CS] = 5200, what will it be [CS] becomes 7800? Solution:
  • 11. Real-time Embedded Systems- Lecture 05 Interrupts (Hardware Interrupts) Each interrupt is associated with an Interrupt Service Routine (ISR) that is executed when an interrupt occurs Interrupt table IP type 0 CS type 0 00000 00002 00004
  • 12. Real-time Embedded Systems- Lecture 05 Interfacing External Interrupts CPU PIC 8259 INTR T 1 T 2 T 3 T 4 ALE T 4 INTA AD7-AD0 INTA
  • 13.
  • 14. ICW 1(Chip Control) ICW 2(Type) ICW 3(Slave Control) ICW 4(Mode Control) OCW 1(IMR) OCW 2 OCW 3 In Service Register Priority Resolver IRR & ML 20 20 20 21 21 21 21 Real-time Embedded Systems- Lecture 05 0 7 0 1 I 0 1 INT 0 Pending INTA
  • 15. Real-time Embedded Systems- Lecture 05 1 ADI SNGL LTIM IC 4 0 0 0 SFNM M/S AEOI BUF µPM ICW4- Mode Control ICW1- Chip Control
  • 16. Real-time Embedded Systems- Lecture 05 SL EOI R 0 L2 L1 0 L0 ESMM SMM 0 0 P RR 1 RIS OCW2 OCW3
  • 17. Real-time Embedded Systems- Lecture 05 Requests arrive simultaneously on IRQ2 and IRQ4, & while IR2 routine is being executed, IRQ1 arrives! Main Program IRQ2 IRQ4 D2 in ISR set IR2 ----------- Reset IF (STI) . . . IRET IRQ1 IR1 ----------- Reset IF (STI) . . . IRET D1 in ISR set IR4 ----------- Reset IF (STI) . . . IRET D1 in ISR reset D2 in ISR reset D4 in ISR set