REAL TIME EMBEDDED SYSTEM - Lec5
REAL TIME EMBEDDED SYSTEM - Lec5
Application
+
Operating System
Hardware
Embedded System?
Real-time Embedded Systems- Lecture 05
Instruction Address
AH AL queue Data
BH BL 20
CH CL
DH DL
Control
Logic SP Control
BP 16
CS
SI
SS
ALU DI DS
IP ES
PSW
Real-time Embedded Systems- Lecture 05
Pipelined Architecture
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
External bus- connects two major components e.g. CPU and memory.This
is the system bus.
Components which control the Bus are called bus masters, e.g. CPU,DMA
controller etc.
Real-time Embedded Systems- Lecture 05
T1 T2 T3 Tw T4 T4 Ti Ti
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
T1 T2 T3 T4 Tw
ALE
RD
512 KB each
Selectable by
bit A0
o + e
OA = EA + 1
So, for an even address
the next odd address can
be obtained by using
A0 = 1 keeping all other
bits same
Address D15-D8 D7-D0
+1
Address
Real-time Embedded Systems- Lecture 05
64K
Excercise
Solution:
Real-time Embedded Systems- Lecture 05
Each interrupt is associated with an Interrupt Service Routine (ISR) that is executed when an
interrupt occurs
Interrupt table
00000
IP type 0
CS type 0 00002
00004
Real-time Embedded Systems- Lecture 05
INTR
CPU PIC
8259
INTA
T1 T2 T3 T4 T4
ALE
INTA
AD7-AD0
Real-time Embedded Systems- Lecture 05
Interrupt Sequence
INT I 0
0
In Service Register Priority Resolver IRR & ML 11
Pending
INTA
Real-time Embedded Systems- Lecture 05
OCW2
R SL EOI 0 0 L2 L1 L0
OCW3