SlideShare a Scribd company logo
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

More Related Content

What's hot

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
knowdiff
 
Real-Time Scheduling
Real-Time SchedulingReal-Time Scheduling
Real-Time Scheduling
sathish 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 system
Kamal Acharya
 
Computer arithmetic in computer architecture
Computer arithmetic in computer architectureComputer arithmetic in computer architecture
Computer arithmetic in computer architecture
ishapadhy
 
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
Thanveen
 
Computer Organozation
Computer OrganozationComputer Organozation
Computer Organozation
Aabha Tiwari
 
Feng’s classification
Feng’s classificationFeng’s classification
Feng’s classification
Narayan Kandel
 
Real time system
Real time systemReal time system
Real time system
Aftab Hossain
 
Reference model of real time system
Reference model of real time systemReference model of real time system
Reference model of real time system
Kamal 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 and
cseij
 
Chapter 4: Parallel Programming Languages
Chapter 4: Parallel Programming LanguagesChapter 4: Parallel Programming Languages
Chapter 4: Parallel Programming Languages
Heman 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 scheduling
Kamal Acharya
 
Real Time most famous algorithms
Real Time most famous algorithmsReal Time most famous algorithms
Real Time most famous algorithms
Andrea Tino
 
advanced computer architesture-conditions of parallelism
advanced computer architesture-conditions of parallelismadvanced computer architesture-conditions of parallelism
advanced computer architesture-conditions of parallelism
Pankaj Kumar Jain
 

What's hot (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
 

Viewers also liked

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 vijay
Vijay Kumar
 
RTOS - Real Time Operating Systems
RTOS - Real Time Operating SystemsRTOS - Real Time Operating Systems
RTOS - Real Time Operating Systems
Emertxe Information Technologies Pvt Ltd
 
Real Time Operating System Concepts
Real Time Operating System ConceptsReal Time Operating System Concepts
Real Time Operating System Concepts
Sanjiv Malik
 
Embedded System Presentation
Embedded System PresentationEmbedded System Presentation
Embedded System Presentation
Prof. Erwin Globio
 
Unit 1 embedded systems and applications
Unit 1 embedded systems and applicationsUnit 1 embedded systems and applications
Unit 1 embedded systems and applications
Dr.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
 

Viewers also liked (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 to Real time-embedded-system-lec-05

My seminar new 28
My seminar new 28My seminar new 28
My seminar new 28rajeshkvdn
 
viva q&a for mp lab
viva q&a for mp labviva q&a for mp lab
viva q&a for mp lab
g yugandhar srinivas
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
RamaPrabha24
 
8085 intro
8085 intro8085 intro
8085 intro
deval patel
 
8085 microprocessor Embedded system
8085 microprocessor  Embedded system8085 microprocessor  Embedded system
8085 microprocessor Embedded system
Sofcon India Pvt Ltd.
 
8259 a
8259 a8259 a
Control unit-implementation
Control unit-implementationControl unit-implementation
Control unit-implementation
WBUTTUTORIALS
 
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
Darling 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
 
8085.ppt
8085.ppt8085.ppt
8085.ppt
jeronimored
 
BASIC COMPUTER ORGANIZATION AND DESIGN
BASIC  COMPUTER  ORGANIZATION  AND  DESIGNBASIC  COMPUTER  ORGANIZATION  AND  DESIGN
BASIC COMPUTER ORGANIZATION AND DESIGN
Dr. Ajay Kumar Singh
 
COA CHAPTER 5
COA CHAPTER 5COA CHAPTER 5
COA CHAPTER 5
Mori77
 
Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4
Rishikesh Bhavsar
 
Arm architecture
Arm architectureArm architecture
Arm architecture
MinYeop Na
 
.........
..................
.........
malikovvich
 
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
SHIMI S L
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
Haripritha
 
Architecture of pentium family
Architecture of pentium familyArchitecture of pentium family
Architecture of pentium family
University of Gujrat, Pakistan
 

Similar to 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
 

More from University of Computer Science and Technology

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

More from 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
 

Recently uploaded

Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 

Recently uploaded (20)

Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 

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