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 Systems
knowdiff
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
Mr SMAK
 
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
 

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 (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 28
rajeshkvdn
 
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
 

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

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Último (20)

Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 

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