SlideShare a Scribd company logo
Microprocessor-Based Systems
Dr. Randa Elanwar
Lecture 9
Lecture Content
• 8086 Interrupts:
– processing
– instructions
• Interrupt priority controller
• Microprocessor-based data communication
2Microprocessor-Based Systems Dr. Randa Elanwar
8086/8088 instruction set (INT)
Branch instructions
• INTN: Interrupt Type N: In the interrupt structure of
8086/8088, 256 interrupts are defined corresponding to the
types from 00H to FFH.
• When an INT N instruction is executed, the TYPE byte N is
multiplied by 4 and the contents of IP and CS of the interrupt
service routine will be taken from the hexadecimal
multiplication (Nx4) as offset address and 0000 as segment
address.
• For the execution of this instruction, the IF must be enabled.
3Microprocessor-Based Systems Dr. Randa Elanwar
8086/8088 instruction set (IRET)
• Branch instructions
• IRET: Return from ISR: When an interrupt service routine is to
be called, before transferring control to it, the IP, CS and flag
register are stored on to the stack to indicate the location
from where the execution is to be continued, after the ISR is
executed.
• So, at the end of each ISR, when IRET is executed, the values
of IP, CS and flags are retrieved from the stack to continue the
execution of the main program. The stack is modified
accordingly.
4Microprocessor-Based Systems Dr. Randa Elanwar
Interrupts
5Microprocessor-Based Systems Dr. Randa Elanwar
Control
Logic
Creates the
addresses
8088
microprocessor
Data bus
Memory
holds data and
instructions
Address lines
MEMR
MEMW
IOR
IOW
Latch
ACSA
I/O decoder
External
hardware for
interrupt
INT
INTA
Non maskable interrupt
IF
D Q
Interrupts
• The control logic at the end of each instruction execution phase
has to check the INT line signal and the IF (interrupt flag).
• IF (interrupt flag) is a D flip-flop that is set to 1 when the INT
signal is high to indicate to the control logic that some port
requires to read/write from/to buffers/latches.
• If the INT signal becomes high while fetching some instruction,
the microprocessor completes the fetch and execution phases
before responding to the interrupt.
• But if the program executing is time critical, the microprocessor
doesn’t allow interrupts by making ‘interrupt masking’.
6Microprocessor-Based Systems Dr. Randa Elanwar
Interrupts
• The instruction CLI (clear interrupt flag) prevents responding to
any upcoming interrupts. i.e., it masks interrupts.
• The instruction STI (set interrupt flag) allows responding to any
upcoming interrupts. i.e., it unmasks interrupts.
• Responding to the interrupt save the flags, CS and IP registers (6
bytes) into the stack before executing the interrupt subroutine.
• To return back the instruction IRET pops the 6 bytes to return to
the interrupted program.
• If we have more than 1 device requiring service we need to
arrange and store the interrupt subroutines.
7Microprocessor-Based Systems Dr. Randa Elanwar
Interrupts
• If the interrupt pin INT goes high and the interrupt flag is set, at
the end of execution phase of the current instruction , the
microprocessor will:
1. Push flags onto the stack flagsH then flagsL.
2. Clear the interrupt flag and the trap flag.
3. Push CS and IP into the stack CSH then CSL then IPH then IPL.
4. Output 2 interrupt acknowledge cycles, the external interrupts
handling hardware should output 1 byte on the data bus
representing the interrupt number ‘n’.
5. Reads from the external memory (4 MEMR signals):
0000:4n  IPL 0000:4n+1  IPH
0000:4n+2  CSL 0000:4n+3  CSH
8Microprocessor-Based Systems Dr. Randa Elanwar
Interrupts
9Microprocessor-Based Systems Dr. Randa Elanwar
•The interrupt vector table is the
located on the top of the memory
(segment 0000).
•Each 4 bytes represent the
information required for ISR
execution (CS and IP)
•The interrupt vector table holds up
to 256 interrupt vectors
•I.e., 0<= n <=255
0000:0000 ----------
1 ---------
2 --------- INT 0
3 ---------
4 ---------
5 --------- INT 1
6 ---------
7 ---------
8 ---------
9 --------- INT 2
A ----------
B ---------
C ---------
D --------- INT 3
E ---------
F ---------
---------
--------- INT 255Interrupt vector table
Interrupts
• In this case ISR1 prevents ISR2 from execution even if it happened
during executing ISR1 and when it return back to the main
program and execute the next instruction it re-checks the INT pin
and then find it high so it executes ISR2. (No nesting allowed)
10Microprocessor-Based Systems Dr. Randa Elanwar
IRET
CLI
IRET
Main program
Foreground
ISR 1
ISR 2
Background
Interrupts
• In this case ISR1 allows ISR2 to be executed if it happened during
executing ISR1 because it sets IF. (Nesting allowed)
• This option is not valid for 8088 microprocessor, thus it needs
external hardware for interrupt control to arrange the priority of
execution  Priority Interrupt Controller (PIC)
11Microprocessor-Based Systems Dr. Randa Elanwar
IRET
STI
IRET
Main program
ISR 1
ISR 2
Priority Interrupt Controller
• Complex integrated circuit that helps in interfacing a
microprocessor to a set of external devices requesting services
upon an interrupt. The PIC:
1. Accepts interrupts from 8 devices and stores them in IRQ register.
2. If there is an IRQ, it raises the INT pin high and waits for INTA
(acknowledge)
3. Upon receiving INTA, it puts the interrupt number (n) on the data
bus.
4. It allows for masking devices selectively.
5. If there is more than one IRQ it resolves the priority problem and
outputs INT signal. When receiving INTA it puts (n) of the highest
priority on the data bus. (Note: the microprocessor is free to
accept it or not)
12Microprocessor-Based Systems Dr. Randa Elanwar
Priority Interrupt Controller
13Microprocessor-Based Systems Dr. Randa Elanwar
Memory
(has 256
INT)
I/O decoder
L L
LPIC
External
device
External
device
micropr
ocessor
IRQ0
IRQ7
.
.
.
.
……
A0
A19
A0
A9
MEMR
MEMW
IOR
IOW
INT
INTA
NMI
IOR
IOW
A0
A1
CS
Microprocessor-based data communication
• Within a microcomputer data is transferred in parallel
because that is the fastest way to do it.
• For transferring data over long distances, parallel data
transmission require too many wires. Therefore, data to be
sent is converted from parallel to serial form and transmitted
serially on a single or a pair of wires.
• The received serial data is re-converted to parallel to be easily
transferred on the micro-computer buses.
• Serial data systems are either: simplex, half-duplex, and full-
duplex.
• A simplex data line can transmit data only in one direction.
• Half duplex transmission means that communication can take
place in either direction between two systems, but can only
occur in one direction.
14Microprocessor-Based Systems Dr. Randa Elanwar
Microprocessor-based data communication
• Full duplex means that each system can send and receive data
at the same time.
• Serial data can be sent synchoronously or asynchoronously.
• For synchoronous transmission, data is sent in blocks at a
constant rate. The start and end of a block are identified with
specific bytes or bit patterns.
• For asynchoronous transmission, each data character has a bit
which identifies its start and 1 or 2 bits which identify its end.
Characters can be sent at any time (asynchoronously).
• To interface a microcomputer with serial data lines, the data
must be converted to and from serial form. A parallel-in-
serial-out shift register and a serial-in-parallel-out shift
register can be used to do this.
15Microprocessor-Based Systems Dr. Randa Elanwar
Microprocessor-based data communication
• A handshaking circuitry is needed for some cases of serial
data transfer to make sure that a transmitter does not send
data faster than it can be read in by the receiving system.
• The interface device which can only do asynchoronous
communication is referred to as universal asynchoronous
receiver-transmitter ‘UART’.
• The interface device which can only do either synchoronous
or asynchoronous communication is referred to as universal
synchoronous-asynchoronous receiver-transmitter ‘USART’.
• Modems are used to send serial data over long distances are
known as data communication equipment ‘DCE’. The
terminals/computers that are sending or receiving serial data
are referred to as data terminal equipment ‘DTE’.
16Microprocessor-Based Systems Dr. Randa Elanwar
Microprocessor-based data communication
17Microprocessor-Based Systems Dr. Randa Elanwar
DTEDTE
DCEDCE
TxD
RxD
RTS
CTS
CD
DTR
DSR
Computer
Modem
TxD
RxD
RTS
CTS
CD
DTR
DSR
Computer
Modem
Telep
hone
line
After the terminal power is
turned on , it send a data-
terminal-ready DTR signal to tell
the modem it is ready.
When it is powered up and
ready to transmit and receive
data, the modem will send the
data-set-ready DSR signal to the
terminal, the modem then dials
up the computer.
If the computer is available it
will send back a specified
acknowledgement.
Microprocessor-based data communication
18Microprocessor-Based Systems Dr. Randa Elanwar
DTEDTE
DCEDCE
TxD
RxD
RTS
CTS
CD
DTR
DSR
Computer
Modem
TxD
RxD
RTS
CTS
CD
DTR
DSR
Computer
Modem
Telep
hone
line
When the terminal has a
character actually ready to send
it will send Request-to-send RTS
signal to the modem.
The modem will then send its
carrier-detect CD signal back to
the terminal to indicate it has
established contact with the
computer.
When the modem is fully ready
to transmit it sends clear-to-
send CTS signal back to the
terminal.
Microprocessor-based data communication
19Microprocessor-Based Systems Dr. Randa Elanwar
DTEDTE
DCEDCE
TxD
RxD
RTS
CTS
CD
DTR
DSR
Computer
Modem
TxD
RxD
RTS
CTS
CD
DTR
DSR
Computer
Modem
Telep
hone
line
The terminal then sends serial
data characters to the modem.
When the terminal has sent all
the characters it needs to, it
makes its RTS signal high. This
causes the modem to cut the
CTS signal and stop
transmission.
A similar handshake occurs
between the modem and the
computer at the other end of
the data link.
Microprocessor-based data communication
• The data and handshake signal names are part of a serial data
communication standards called RS-232C.
• This standard describes the function of 25 signal and
handshake pins for serial data transfer.
20Microprocessor-Based Systems Dr. Randa Elanwar
Microprocessor-based data communication
The serial communication between PC-A and PC-B through
input/output interface
21Microprocessor-Based Systems Dr. Randa Elanwar
PC-A (sends) PC-B (receives)
1. Set memory pointers 1. Set memory pointers
2. Enable transmission 2. Enable reception
3. Set Strobe (Request) signal low 3. Set Acknowledge signal low
4. Wait for Acknowledge signal low 4. Wait for Strobe signal high
5. Output byte and increment pointer 5. Read byte and store
6. Set Strobe signal high 6. Set Acknowledge signal high
7. Wait for Acknowledge signal high 7. Wait for Strobe signal low
8. Check if transmission complete 8. Set Acknowledge signal low
9. If not go to step 5 9. Check if reception complete
10. If Yes – Exit program 10. If not go to step 4
11. If Yes – Exit program
Microprocessor-based data communication
MOV AX, 3000
MOV DS, AX
MOV SI, 0000
MOV DX, 37A
IN AL, DX
AND AL, DE
OUT DX, AL
MOV DX, 379
IN AL, DX
AND AL, 08
JNZ
LODSB
MOV DX, 378
OUT DX, AL
MOV DX, 37A
IN AL, DX
OR AL, 01
OUT DX, AL
22Microprocessor-Based Systems Dr. Randa Elanwar
Set memory pointers
Enable transmission and set Strobe low
Wait for Acknowledge low
Output byte and increment pointer
Set Strobe high

More Related Content

What's hot

Dma and dma controller 8237
Dma and dma controller 8237Dma and dma controller 8237
Dma and dma controller 8237
Ashwini Awatare
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257
Daniel Ilunga
 
Microprocessors-based systems (under graduate course) Lecture 5 of 9
Microprocessors-based systems (under graduate course) Lecture 5 of 9 Microprocessors-based systems (under graduate course) Lecture 5 of 9
Microprocessors-based systems (under graduate course) Lecture 5 of 9
Randa Elanwar
 
Detailed Explanation of Pin Description of 8085 microprocessor
Detailed Explanation of Pin Description of  8085 microprocessorDetailed Explanation of Pin Description of  8085 microprocessor
Detailed Explanation of Pin Description of 8085 microprocessor
Ramesh Dabhole
 
8259 updated
8259 updated 8259 updated
8259 updated
jemimajerome
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controller
Srikrishna Thota
 
Microprocessor Architecture 4
Microprocessor Architecture  4Microprocessor Architecture  4
Microprocessor Architecture 4
Dr.YNM
 
Arm modes
Arm modesArm modes
Arm modes
abhi165
 
advancsed microprocessor and interfacing
advancsed microprocessor and interfacingadvancsed microprocessor and interfacing
advancsed microprocessor and interfacing
@zenafaris91
 
Pin diagram-of-8085
Pin diagram-of-8085Pin diagram-of-8085
Pin diagram-of-8085
sharan Kumar
 
8259 Interrupt Controller
8259 Interrupt Controller8259 Interrupt Controller
8259 Interrupt Controller
ShivamSood22
 
Embedded system - Introduction To ARM Exception Handling and Software Interru...
Embedded system - Introduction To ARM Exception Handling andSoftware Interru...Embedded system - Introduction To ARM Exception Handling andSoftware Interru...
Embedded system - Introduction To ARM Exception Handling and Software Interru...
Vibrant Technologies & Computers
 
8085 intro
8085 intro8085 intro
8085 intro
deval patel
 
subroutines and interrupts
subroutines and interruptssubroutines and interrupts
subroutines and interrupts
Manoj Chowdary
 
Timing Diagram.pptx
Timing Diagram.pptxTiming Diagram.pptx
Timing Diagram.pptx
ISMT College
 
8259
8259 8259
Assembler4
Assembler4Assembler4
Assembler4
Omar Sanchez
 
Microprocessor and-interfacing-techbymak
Microprocessor and-interfacing-techbymakMicroprocessor and-interfacing-techbymak
Microprocessor and-interfacing-techbymak
Akshay Makadiya
 
Question paper with solution the 8051 microcontroller based embedded systems...
Question paper with solution  the 8051 microcontroller based embedded systems...Question paper with solution  the 8051 microcontroller based embedded systems...
Question paper with solution the 8051 microcontroller based embedded systems...
manishpatel_79
 
8051 Programming Instruction Set
 8051 Programming Instruction Set 8051 Programming Instruction Set
8051 Programming Instruction Set
Shreyans Pathak
 

What's hot (20)

Dma and dma controller 8237
Dma and dma controller 8237Dma and dma controller 8237
Dma and dma controller 8237
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257
 
Microprocessors-based systems (under graduate course) Lecture 5 of 9
Microprocessors-based systems (under graduate course) Lecture 5 of 9 Microprocessors-based systems (under graduate course) Lecture 5 of 9
Microprocessors-based systems (under graduate course) Lecture 5 of 9
 
Detailed Explanation of Pin Description of 8085 microprocessor
Detailed Explanation of Pin Description of  8085 microprocessorDetailed Explanation of Pin Description of  8085 microprocessor
Detailed Explanation of Pin Description of 8085 microprocessor
 
8259 updated
8259 updated 8259 updated
8259 updated
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controller
 
Microprocessor Architecture 4
Microprocessor Architecture  4Microprocessor Architecture  4
Microprocessor Architecture 4
 
Arm modes
Arm modesArm modes
Arm modes
 
advancsed microprocessor and interfacing
advancsed microprocessor and interfacingadvancsed microprocessor and interfacing
advancsed microprocessor and interfacing
 
Pin diagram-of-8085
Pin diagram-of-8085Pin diagram-of-8085
Pin diagram-of-8085
 
8259 Interrupt Controller
8259 Interrupt Controller8259 Interrupt Controller
8259 Interrupt Controller
 
Embedded system - Introduction To ARM Exception Handling and Software Interru...
Embedded system - Introduction To ARM Exception Handling andSoftware Interru...Embedded system - Introduction To ARM Exception Handling andSoftware Interru...
Embedded system - Introduction To ARM Exception Handling and Software Interru...
 
8085 intro
8085 intro8085 intro
8085 intro
 
subroutines and interrupts
subroutines and interruptssubroutines and interrupts
subroutines and interrupts
 
Timing Diagram.pptx
Timing Diagram.pptxTiming Diagram.pptx
Timing Diagram.pptx
 
8259
8259 8259
8259
 
Assembler4
Assembler4Assembler4
Assembler4
 
Microprocessor and-interfacing-techbymak
Microprocessor and-interfacing-techbymakMicroprocessor and-interfacing-techbymak
Microprocessor and-interfacing-techbymak
 
Question paper with solution the 8051 microcontroller based embedded systems...
Question paper with solution  the 8051 microcontroller based embedded systems...Question paper with solution  the 8051 microcontroller based embedded systems...
Question paper with solution the 8051 microcontroller based embedded systems...
 
8051 Programming Instruction Set
 8051 Programming Instruction Set 8051 Programming Instruction Set
8051 Programming Instruction Set
 

Viewers also liked

Lecture 38
Lecture 38Lecture 38
Lecture 38
RahulRathi94
 
Microprocessors-based systems (under graduate course) Lecture 4 of 9
Microprocessors-based systems (under graduate course) Lecture 4 of 9 Microprocessors-based systems (under graduate course) Lecture 4 of 9
Microprocessors-based systems (under graduate course) Lecture 4 of 9
Randa Elanwar
 
Ch6 030702
Ch6 030702Ch6 030702
Ch6 030702
jyothi205
 
Scsi express overview
Scsi express overviewScsi express overview
Scsi express overview
rbeetle
 
Microprocessors-based systems (under graduate course) Lecture 1 of 9
Microprocessors-based systems (under graduate course) Lecture 1 of 9 Microprocessors-based systems (under graduate course) Lecture 1 of 9
Microprocessors-based systems (under graduate course) Lecture 1 of 9
Randa Elanwar
 
Class11
Class11Class11
Lecture4
Lecture4Lecture4
07 input output
07 input output07 input output
07 input output
Sher Shah Merkhel
 
8086 microprocessor introduction
8086 microprocessor introduction8086 microprocessor introduction
8086 microprocessor introduction
Aakash Ugale
 
3. adressingmodes1
3. adressingmodes13. adressingmodes1
3. adressingmodes1
Bhargav Veepuri
 
Scsi
ScsiScsi
Input Output programming in AVR microcontroller
Input  Output  programming in AVR microcontrollerInput  Output  programming in AVR microcontroller
Input Output programming in AVR microcontroller
Robo India
 
Input Output Operations
Input Output OperationsInput Output Operations
Input Output Operations
kdisthere
 
PIN Specification of 8086 Microprocessor
PIN Specification of 8086 MicroprocessorPIN Specification of 8086 Microprocessor
PIN Specification of 8086 Microprocessor
Nikhil Kumar
 
8 interrupt 8051
8 interrupt 80518 interrupt 8051
8 interrupt 8051
daniemol
 
DPA
DPADPA
8086 pin function
8086 pin function8086 pin function
8086 pin function
Chaitanya Kulkarni
 
Pci,usb,scsi bus
Pci,usb,scsi busPci,usb,scsi bus
Pci,usb,scsi bus
Sherwin Rodrigues
 
Pipelining and co processor.
Pipelining and co processor.Pipelining and co processor.
Pipelining and co processor.
Piyush Rochwani
 
Interrupt
InterruptInterrupt
Interrupt
Siddique Ibrahim
 

Viewers also liked (20)

Lecture 38
Lecture 38Lecture 38
Lecture 38
 
Microprocessors-based systems (under graduate course) Lecture 4 of 9
Microprocessors-based systems (under graduate course) Lecture 4 of 9 Microprocessors-based systems (under graduate course) Lecture 4 of 9
Microprocessors-based systems (under graduate course) Lecture 4 of 9
 
Ch6 030702
Ch6 030702Ch6 030702
Ch6 030702
 
Scsi express overview
Scsi express overviewScsi express overview
Scsi express overview
 
Microprocessors-based systems (under graduate course) Lecture 1 of 9
Microprocessors-based systems (under graduate course) Lecture 1 of 9 Microprocessors-based systems (under graduate course) Lecture 1 of 9
Microprocessors-based systems (under graduate course) Lecture 1 of 9
 
Class11
Class11Class11
Class11
 
Lecture4
Lecture4Lecture4
Lecture4
 
07 input output
07 input output07 input output
07 input output
 
8086 microprocessor introduction
8086 microprocessor introduction8086 microprocessor introduction
8086 microprocessor introduction
 
3. adressingmodes1
3. adressingmodes13. adressingmodes1
3. adressingmodes1
 
Scsi
ScsiScsi
Scsi
 
Input Output programming in AVR microcontroller
Input  Output  programming in AVR microcontrollerInput  Output  programming in AVR microcontroller
Input Output programming in AVR microcontroller
 
Input Output Operations
Input Output OperationsInput Output Operations
Input Output Operations
 
PIN Specification of 8086 Microprocessor
PIN Specification of 8086 MicroprocessorPIN Specification of 8086 Microprocessor
PIN Specification of 8086 Microprocessor
 
8 interrupt 8051
8 interrupt 80518 interrupt 8051
8 interrupt 8051
 
DPA
DPADPA
DPA
 
8086 pin function
8086 pin function8086 pin function
8086 pin function
 
Pci,usb,scsi bus
Pci,usb,scsi busPci,usb,scsi bus
Pci,usb,scsi bus
 
Pipelining and co processor.
Pipelining and co processor.Pipelining and co processor.
Pipelining and co processor.
 
Interrupt
InterruptInterrupt
Interrupt
 

Similar to Microprocessors-based systems (under graduate course) Lecture 9 of 9

UNIT 2.pptx
UNIT 2.pptxUNIT 2.pptx
UNIT 2.pptx
BASKARS53
 
Timing n interrupt.pptx
Timing n interrupt.pptxTiming n interrupt.pptx
Timing n interrupt.pptx
JasaRChoudhary
 
B sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacingB sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacing
MahiboobAliMulla
 
UNIT 2 8086 System Bus Structure.pptx
UNIT 2 8086 System Bus Structure.pptxUNIT 2 8086 System Bus Structure.pptx
UNIT 2 8086 System Bus Structure.pptx
Gowrishankar C
 
8051
80518051
8259 a
8259 a8259 a
8259 Programmable Interrupt Controller.pptx
8259 Programmable Interrupt Controller.pptx8259 Programmable Interrupt Controller.pptx
8259 Programmable Interrupt Controller.pptx
tchandoo1
 
With suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerruptsWith suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerrupts
ransherraj
 
Direct Memory Access & Interrrupts
Direct Memory Access & InterrruptsDirect Memory Access & Interrrupts
Direct Memory Access & Interrrupts
SharmilaChidaravalli
 
8259 programmable PPI interfacing with 8085 .ppt
8259 programmable PPI interfacing with 8085 .ppt8259 programmable PPI interfacing with 8085 .ppt
8259 programmable PPI interfacing with 8085 .ppt
DrVikasMahor
 
lesson01.ppt
lesson01.pptlesson01.ppt
lesson01.ppt
SushmaHiremath17
 
8086 Programing.ppt
8086 Programing.ppt8086 Programing.ppt
8086 Programing.ppt
DrRRAMAN
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
ganeshdabhole
 
dma controller Direct Memory Access,The 8237 DMA Controller dma
dma controller Direct Memory Access,The 8237 DMA Controller dmadma controller Direct Memory Access,The 8237 DMA Controller dma
dma controller Direct Memory Access,The 8237 DMA Controller dma
AgathiSiva
 
Introduction to embedded systems
Introduction to embedded systemsIntroduction to embedded systems
Introduction to embedded systems
Игорь Медведев
 
NAVEEN UART BATCH 43
NAVEEN UART BATCH 43NAVEEN UART BATCH 43
NAVEEN UART BATCH 43
Naveen Chinnasamy
 
Training Report on embedded Systems and Robotics
Training Report on embedded  Systems and RoboticsTraining Report on embedded  Systems and Robotics
Training Report on embedded Systems and Robotics
NIT Raipur
 
Introduction to Interrupts of 8085 microprocessor
Introduction to Interrupts of 8085 microprocessorIntroduction to Interrupts of 8085 microprocessor
Introduction to Interrupts of 8085 microprocessor
RAKESHCHOUDHARY164857
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
Neelam Kapoor
 
MP_MC.pdf
MP_MC.pdfMP_MC.pdf
MP_MC.pdf
KRamasamy2
 

Similar to Microprocessors-based systems (under graduate course) Lecture 9 of 9 (20)

UNIT 2.pptx
UNIT 2.pptxUNIT 2.pptx
UNIT 2.pptx
 
Timing n interrupt.pptx
Timing n interrupt.pptxTiming n interrupt.pptx
Timing n interrupt.pptx
 
B sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacingB sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacing
 
UNIT 2 8086 System Bus Structure.pptx
UNIT 2 8086 System Bus Structure.pptxUNIT 2 8086 System Bus Structure.pptx
UNIT 2 8086 System Bus Structure.pptx
 
8051
80518051
8051
 
8259 a
8259 a8259 a
8259 a
 
8259 Programmable Interrupt Controller.pptx
8259 Programmable Interrupt Controller.pptx8259 Programmable Interrupt Controller.pptx
8259 Programmable Interrupt Controller.pptx
 
With suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerruptsWith suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerrupts
 
Direct Memory Access & Interrrupts
Direct Memory Access & InterrruptsDirect Memory Access & Interrrupts
Direct Memory Access & Interrrupts
 
8259 programmable PPI interfacing with 8085 .ppt
8259 programmable PPI interfacing with 8085 .ppt8259 programmable PPI interfacing with 8085 .ppt
8259 programmable PPI interfacing with 8085 .ppt
 
lesson01.ppt
lesson01.pptlesson01.ppt
lesson01.ppt
 
8086 Programing.ppt
8086 Programing.ppt8086 Programing.ppt
8086 Programing.ppt
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
dma controller Direct Memory Access,The 8237 DMA Controller dma
dma controller Direct Memory Access,The 8237 DMA Controller dmadma controller Direct Memory Access,The 8237 DMA Controller dma
dma controller Direct Memory Access,The 8237 DMA Controller dma
 
Introduction to embedded systems
Introduction to embedded systemsIntroduction to embedded systems
Introduction to embedded systems
 
NAVEEN UART BATCH 43
NAVEEN UART BATCH 43NAVEEN UART BATCH 43
NAVEEN UART BATCH 43
 
Training Report on embedded Systems and Robotics
Training Report on embedded  Systems and RoboticsTraining Report on embedded  Systems and Robotics
Training Report on embedded Systems and Robotics
 
Introduction to Interrupts of 8085 microprocessor
Introduction to Interrupts of 8085 microprocessorIntroduction to Interrupts of 8085 microprocessor
Introduction to Interrupts of 8085 microprocessor
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
 
MP_MC.pdf
MP_MC.pdfMP_MC.pdf
MP_MC.pdf
 

More from Randa Elanwar

الجزء السادس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء السادس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوةالجزء السادس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء السادس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
Randa Elanwar
 
الجزء الخامس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الخامس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوةالجزء الخامس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الخامس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوةRanda Elanwar
 
الجزء الرابع ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الرابع ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوةالجزء الرابع ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الرابع ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
Randa Elanwar
 
الجزء الثالث ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الثالث ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوةالجزء الثالث ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الثالث ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوةRanda Elanwar
 
الجزء الثاني ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الثاني ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوةالجزء الثاني ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الثاني ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
Randa Elanwar
 
الجزء الأول ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الأول ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوةالجزء الأول ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الأول ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوةRanda Elanwar
 
تدريب مدونة علماء مصر على الكتابة الفنية (الترجمة والتلخيص )_Pdf5of5
تدريب مدونة علماء مصر على الكتابة الفنية (الترجمة والتلخيص    )_Pdf5of5تدريب مدونة علماء مصر على الكتابة الفنية (الترجمة والتلخيص    )_Pdf5of5
تدريب مدونة علماء مصر على الكتابة الفنية (الترجمة والتلخيص )_Pdf5of5
Randa Elanwar
 
تدريب مدونة علماء مصر على الكتابة الفنية (القصة القصيرة والخاطرة والأخطاء ال...
تدريب مدونة علماء مصر على الكتابة الفنية (القصة القصيرة والخاطرة  والأخطاء ال...تدريب مدونة علماء مصر على الكتابة الفنية (القصة القصيرة والخاطرة  والأخطاء ال...
تدريب مدونة علماء مصر على الكتابة الفنية (القصة القصيرة والخاطرة والأخطاء ال...
Randa Elanwar
 
تدريب مدونة علماء مصر على الكتابة الفنية (مقالات الموارد )_Pdf3of5
تدريب مدونة علماء مصر على الكتابة الفنية (مقالات الموارد   )_Pdf3of5تدريب مدونة علماء مصر على الكتابة الفنية (مقالات الموارد   )_Pdf3of5
تدريب مدونة علماء مصر على الكتابة الفنية (مقالات الموارد )_Pdf3of5
Randa Elanwar
 
تدريب مدونة علماء مصر على الكتابة الفنية (المقالات الإخبارية )_Pdf2of5
تدريب مدونة علماء مصر على الكتابة الفنية (المقالات الإخبارية  )_Pdf2of5تدريب مدونة علماء مصر على الكتابة الفنية (المقالات الإخبارية  )_Pdf2of5
تدريب مدونة علماء مصر على الكتابة الفنية (المقالات الإخبارية )_Pdf2of5
Randa Elanwar
 
تدريب مدونة علماء مصر على الكتابة الفنية (المقالات المبنية على البحث )_Pdf1of5
تدريب مدونة علماء مصر على الكتابة الفنية (المقالات المبنية على البحث )_Pdf1of5تدريب مدونة علماء مصر على الكتابة الفنية (المقالات المبنية على البحث )_Pdf1of5
تدريب مدونة علماء مصر على الكتابة الفنية (المقالات المبنية على البحث )_Pdf1of5
Randa Elanwar
 
تعريف بمدونة علماء مصر ومحاور التدريب على الكتابة للمدونين
تعريف بمدونة علماء مصر ومحاور التدريب على الكتابة للمدونينتعريف بمدونة علماء مصر ومحاور التدريب على الكتابة للمدونين
تعريف بمدونة علماء مصر ومحاور التدريب على الكتابة للمدونين
Randa Elanwar
 
Entrepreneurship_who_is_your_customer_(arabic)_7of7
Entrepreneurship_who_is_your_customer_(arabic)_7of7Entrepreneurship_who_is_your_customer_(arabic)_7of7
Entrepreneurship_who_is_your_customer_(arabic)_7of7
Randa Elanwar
 
Entrepreneurship_who_is_your_customer_(arabic)_5of7
Entrepreneurship_who_is_your_customer_(arabic)_5of7Entrepreneurship_who_is_your_customer_(arabic)_5of7
Entrepreneurship_who_is_your_customer_(arabic)_5of7
Randa Elanwar
 
Entrepreneurship_who_is_your_customer_(arabic)_4of7
Entrepreneurship_who_is_your_customer_(arabic)_4of7Entrepreneurship_who_is_your_customer_(arabic)_4of7
Entrepreneurship_who_is_your_customer_(arabic)_4of7
Randa Elanwar
 
Entrepreneurship_who_is_your_customer_(arabic)_2of7
Entrepreneurship_who_is_your_customer_(arabic)_2of7Entrepreneurship_who_is_your_customer_(arabic)_2of7
Entrepreneurship_who_is_your_customer_(arabic)_2of7
Randa Elanwar
 
يوميات طالب بدرجة مشرف (Part 19 of 20)
يوميات طالب بدرجة مشرف (Part 19 of 20)يوميات طالب بدرجة مشرف (Part 19 of 20)
يوميات طالب بدرجة مشرف (Part 19 of 20)
Randa Elanwar
 
يوميات طالب بدرجة مشرف (Part 18 of 20)
يوميات طالب بدرجة مشرف (Part 18 of 20)يوميات طالب بدرجة مشرف (Part 18 of 20)
يوميات طالب بدرجة مشرف (Part 18 of 20)Randa Elanwar
 
يوميات طالب بدرجة مشرف (Part 17 of 20)
يوميات طالب بدرجة مشرف (Part 17 of 20)يوميات طالب بدرجة مشرف (Part 17 of 20)
يوميات طالب بدرجة مشرف (Part 17 of 20)
Randa Elanwar
 
يوميات طالب بدرجة مشرف (Part 16 of 20)
يوميات طالب بدرجة مشرف (Part 16 of 20)يوميات طالب بدرجة مشرف (Part 16 of 20)
يوميات طالب بدرجة مشرف (Part 16 of 20)Randa Elanwar
 

More from Randa Elanwar (20)

الجزء السادس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء السادس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوةالجزء السادس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء السادس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
 
الجزء الخامس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الخامس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوةالجزء الخامس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الخامس ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
 
الجزء الرابع ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الرابع ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوةالجزء الرابع ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الرابع ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
 
الجزء الثالث ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الثالث ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوةالجزء الثالث ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الثالث ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
 
الجزء الثاني ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الثاني ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوةالجزء الثاني ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الثاني ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
 
الجزء الأول ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الأول ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوةالجزء الأول ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
الجزء الأول ماذا ستقدم لعميلك ريادة الأعمال خطوة بخطوة
 
تدريب مدونة علماء مصر على الكتابة الفنية (الترجمة والتلخيص )_Pdf5of5
تدريب مدونة علماء مصر على الكتابة الفنية (الترجمة والتلخيص    )_Pdf5of5تدريب مدونة علماء مصر على الكتابة الفنية (الترجمة والتلخيص    )_Pdf5of5
تدريب مدونة علماء مصر على الكتابة الفنية (الترجمة والتلخيص )_Pdf5of5
 
تدريب مدونة علماء مصر على الكتابة الفنية (القصة القصيرة والخاطرة والأخطاء ال...
تدريب مدونة علماء مصر على الكتابة الفنية (القصة القصيرة والخاطرة  والأخطاء ال...تدريب مدونة علماء مصر على الكتابة الفنية (القصة القصيرة والخاطرة  والأخطاء ال...
تدريب مدونة علماء مصر على الكتابة الفنية (القصة القصيرة والخاطرة والأخطاء ال...
 
تدريب مدونة علماء مصر على الكتابة الفنية (مقالات الموارد )_Pdf3of5
تدريب مدونة علماء مصر على الكتابة الفنية (مقالات الموارد   )_Pdf3of5تدريب مدونة علماء مصر على الكتابة الفنية (مقالات الموارد   )_Pdf3of5
تدريب مدونة علماء مصر على الكتابة الفنية (مقالات الموارد )_Pdf3of5
 
تدريب مدونة علماء مصر على الكتابة الفنية (المقالات الإخبارية )_Pdf2of5
تدريب مدونة علماء مصر على الكتابة الفنية (المقالات الإخبارية  )_Pdf2of5تدريب مدونة علماء مصر على الكتابة الفنية (المقالات الإخبارية  )_Pdf2of5
تدريب مدونة علماء مصر على الكتابة الفنية (المقالات الإخبارية )_Pdf2of5
 
تدريب مدونة علماء مصر على الكتابة الفنية (المقالات المبنية على البحث )_Pdf1of5
تدريب مدونة علماء مصر على الكتابة الفنية (المقالات المبنية على البحث )_Pdf1of5تدريب مدونة علماء مصر على الكتابة الفنية (المقالات المبنية على البحث )_Pdf1of5
تدريب مدونة علماء مصر على الكتابة الفنية (المقالات المبنية على البحث )_Pdf1of5
 
تعريف بمدونة علماء مصر ومحاور التدريب على الكتابة للمدونين
تعريف بمدونة علماء مصر ومحاور التدريب على الكتابة للمدونينتعريف بمدونة علماء مصر ومحاور التدريب على الكتابة للمدونين
تعريف بمدونة علماء مصر ومحاور التدريب على الكتابة للمدونين
 
Entrepreneurship_who_is_your_customer_(arabic)_7of7
Entrepreneurship_who_is_your_customer_(arabic)_7of7Entrepreneurship_who_is_your_customer_(arabic)_7of7
Entrepreneurship_who_is_your_customer_(arabic)_7of7
 
Entrepreneurship_who_is_your_customer_(arabic)_5of7
Entrepreneurship_who_is_your_customer_(arabic)_5of7Entrepreneurship_who_is_your_customer_(arabic)_5of7
Entrepreneurship_who_is_your_customer_(arabic)_5of7
 
Entrepreneurship_who_is_your_customer_(arabic)_4of7
Entrepreneurship_who_is_your_customer_(arabic)_4of7Entrepreneurship_who_is_your_customer_(arabic)_4of7
Entrepreneurship_who_is_your_customer_(arabic)_4of7
 
Entrepreneurship_who_is_your_customer_(arabic)_2of7
Entrepreneurship_who_is_your_customer_(arabic)_2of7Entrepreneurship_who_is_your_customer_(arabic)_2of7
Entrepreneurship_who_is_your_customer_(arabic)_2of7
 
يوميات طالب بدرجة مشرف (Part 19 of 20)
يوميات طالب بدرجة مشرف (Part 19 of 20)يوميات طالب بدرجة مشرف (Part 19 of 20)
يوميات طالب بدرجة مشرف (Part 19 of 20)
 
يوميات طالب بدرجة مشرف (Part 18 of 20)
يوميات طالب بدرجة مشرف (Part 18 of 20)يوميات طالب بدرجة مشرف (Part 18 of 20)
يوميات طالب بدرجة مشرف (Part 18 of 20)
 
يوميات طالب بدرجة مشرف (Part 17 of 20)
يوميات طالب بدرجة مشرف (Part 17 of 20)يوميات طالب بدرجة مشرف (Part 17 of 20)
يوميات طالب بدرجة مشرف (Part 17 of 20)
 
يوميات طالب بدرجة مشرف (Part 16 of 20)
يوميات طالب بدرجة مشرف (Part 16 of 20)يوميات طالب بدرجة مشرف (Part 16 of 20)
يوميات طالب بدرجة مشرف (Part 16 of 20)
 

Recently uploaded

LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 

Recently uploaded (20)

LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 

Microprocessors-based systems (under graduate course) Lecture 9 of 9

  • 2. Lecture Content • 8086 Interrupts: – processing – instructions • Interrupt priority controller • Microprocessor-based data communication 2Microprocessor-Based Systems Dr. Randa Elanwar
  • 3. 8086/8088 instruction set (INT) Branch instructions • INTN: Interrupt Type N: In the interrupt structure of 8086/8088, 256 interrupts are defined corresponding to the types from 00H to FFH. • When an INT N instruction is executed, the TYPE byte N is multiplied by 4 and the contents of IP and CS of the interrupt service routine will be taken from the hexadecimal multiplication (Nx4) as offset address and 0000 as segment address. • For the execution of this instruction, the IF must be enabled. 3Microprocessor-Based Systems Dr. Randa Elanwar
  • 4. 8086/8088 instruction set (IRET) • Branch instructions • IRET: Return from ISR: When an interrupt service routine is to be called, before transferring control to it, the IP, CS and flag register are stored on to the stack to indicate the location from where the execution is to be continued, after the ISR is executed. • So, at the end of each ISR, when IRET is executed, the values of IP, CS and flags are retrieved from the stack to continue the execution of the main program. The stack is modified accordingly. 4Microprocessor-Based Systems Dr. Randa Elanwar
  • 5. Interrupts 5Microprocessor-Based Systems Dr. Randa Elanwar Control Logic Creates the addresses 8088 microprocessor Data bus Memory holds data and instructions Address lines MEMR MEMW IOR IOW Latch ACSA I/O decoder External hardware for interrupt INT INTA Non maskable interrupt IF D Q
  • 6. Interrupts • The control logic at the end of each instruction execution phase has to check the INT line signal and the IF (interrupt flag). • IF (interrupt flag) is a D flip-flop that is set to 1 when the INT signal is high to indicate to the control logic that some port requires to read/write from/to buffers/latches. • If the INT signal becomes high while fetching some instruction, the microprocessor completes the fetch and execution phases before responding to the interrupt. • But if the program executing is time critical, the microprocessor doesn’t allow interrupts by making ‘interrupt masking’. 6Microprocessor-Based Systems Dr. Randa Elanwar
  • 7. Interrupts • The instruction CLI (clear interrupt flag) prevents responding to any upcoming interrupts. i.e., it masks interrupts. • The instruction STI (set interrupt flag) allows responding to any upcoming interrupts. i.e., it unmasks interrupts. • Responding to the interrupt save the flags, CS and IP registers (6 bytes) into the stack before executing the interrupt subroutine. • To return back the instruction IRET pops the 6 bytes to return to the interrupted program. • If we have more than 1 device requiring service we need to arrange and store the interrupt subroutines. 7Microprocessor-Based Systems Dr. Randa Elanwar
  • 8. Interrupts • If the interrupt pin INT goes high and the interrupt flag is set, at the end of execution phase of the current instruction , the microprocessor will: 1. Push flags onto the stack flagsH then flagsL. 2. Clear the interrupt flag and the trap flag. 3. Push CS and IP into the stack CSH then CSL then IPH then IPL. 4. Output 2 interrupt acknowledge cycles, the external interrupts handling hardware should output 1 byte on the data bus representing the interrupt number ‘n’. 5. Reads from the external memory (4 MEMR signals): 0000:4n  IPL 0000:4n+1  IPH 0000:4n+2  CSL 0000:4n+3  CSH 8Microprocessor-Based Systems Dr. Randa Elanwar
  • 9. Interrupts 9Microprocessor-Based Systems Dr. Randa Elanwar •The interrupt vector table is the located on the top of the memory (segment 0000). •Each 4 bytes represent the information required for ISR execution (CS and IP) •The interrupt vector table holds up to 256 interrupt vectors •I.e., 0<= n <=255 0000:0000 ---------- 1 --------- 2 --------- INT 0 3 --------- 4 --------- 5 --------- INT 1 6 --------- 7 --------- 8 --------- 9 --------- INT 2 A ---------- B --------- C --------- D --------- INT 3 E --------- F --------- --------- --------- INT 255Interrupt vector table
  • 10. Interrupts • In this case ISR1 prevents ISR2 from execution even if it happened during executing ISR1 and when it return back to the main program and execute the next instruction it re-checks the INT pin and then find it high so it executes ISR2. (No nesting allowed) 10Microprocessor-Based Systems Dr. Randa Elanwar IRET CLI IRET Main program Foreground ISR 1 ISR 2 Background
  • 11. Interrupts • In this case ISR1 allows ISR2 to be executed if it happened during executing ISR1 because it sets IF. (Nesting allowed) • This option is not valid for 8088 microprocessor, thus it needs external hardware for interrupt control to arrange the priority of execution  Priority Interrupt Controller (PIC) 11Microprocessor-Based Systems Dr. Randa Elanwar IRET STI IRET Main program ISR 1 ISR 2
  • 12. Priority Interrupt Controller • Complex integrated circuit that helps in interfacing a microprocessor to a set of external devices requesting services upon an interrupt. The PIC: 1. Accepts interrupts from 8 devices and stores them in IRQ register. 2. If there is an IRQ, it raises the INT pin high and waits for INTA (acknowledge) 3. Upon receiving INTA, it puts the interrupt number (n) on the data bus. 4. It allows for masking devices selectively. 5. If there is more than one IRQ it resolves the priority problem and outputs INT signal. When receiving INTA it puts (n) of the highest priority on the data bus. (Note: the microprocessor is free to accept it or not) 12Microprocessor-Based Systems Dr. Randa Elanwar
  • 13. Priority Interrupt Controller 13Microprocessor-Based Systems Dr. Randa Elanwar Memory (has 256 INT) I/O decoder L L LPIC External device External device micropr ocessor IRQ0 IRQ7 . . . . …… A0 A19 A0 A9 MEMR MEMW IOR IOW INT INTA NMI IOR IOW A0 A1 CS
  • 14. Microprocessor-based data communication • Within a microcomputer data is transferred in parallel because that is the fastest way to do it. • For transferring data over long distances, parallel data transmission require too many wires. Therefore, data to be sent is converted from parallel to serial form and transmitted serially on a single or a pair of wires. • The received serial data is re-converted to parallel to be easily transferred on the micro-computer buses. • Serial data systems are either: simplex, half-duplex, and full- duplex. • A simplex data line can transmit data only in one direction. • Half duplex transmission means that communication can take place in either direction between two systems, but can only occur in one direction. 14Microprocessor-Based Systems Dr. Randa Elanwar
  • 15. Microprocessor-based data communication • Full duplex means that each system can send and receive data at the same time. • Serial data can be sent synchoronously or asynchoronously. • For synchoronous transmission, data is sent in blocks at a constant rate. The start and end of a block are identified with specific bytes or bit patterns. • For asynchoronous transmission, each data character has a bit which identifies its start and 1 or 2 bits which identify its end. Characters can be sent at any time (asynchoronously). • To interface a microcomputer with serial data lines, the data must be converted to and from serial form. A parallel-in- serial-out shift register and a serial-in-parallel-out shift register can be used to do this. 15Microprocessor-Based Systems Dr. Randa Elanwar
  • 16. Microprocessor-based data communication • A handshaking circuitry is needed for some cases of serial data transfer to make sure that a transmitter does not send data faster than it can be read in by the receiving system. • The interface device which can only do asynchoronous communication is referred to as universal asynchoronous receiver-transmitter ‘UART’. • The interface device which can only do either synchoronous or asynchoronous communication is referred to as universal synchoronous-asynchoronous receiver-transmitter ‘USART’. • Modems are used to send serial data over long distances are known as data communication equipment ‘DCE’. The terminals/computers that are sending or receiving serial data are referred to as data terminal equipment ‘DTE’. 16Microprocessor-Based Systems Dr. Randa Elanwar
  • 17. Microprocessor-based data communication 17Microprocessor-Based Systems Dr. Randa Elanwar DTEDTE DCEDCE TxD RxD RTS CTS CD DTR DSR Computer Modem TxD RxD RTS CTS CD DTR DSR Computer Modem Telep hone line After the terminal power is turned on , it send a data- terminal-ready DTR signal to tell the modem it is ready. When it is powered up and ready to transmit and receive data, the modem will send the data-set-ready DSR signal to the terminal, the modem then dials up the computer. If the computer is available it will send back a specified acknowledgement.
  • 18. Microprocessor-based data communication 18Microprocessor-Based Systems Dr. Randa Elanwar DTEDTE DCEDCE TxD RxD RTS CTS CD DTR DSR Computer Modem TxD RxD RTS CTS CD DTR DSR Computer Modem Telep hone line When the terminal has a character actually ready to send it will send Request-to-send RTS signal to the modem. The modem will then send its carrier-detect CD signal back to the terminal to indicate it has established contact with the computer. When the modem is fully ready to transmit it sends clear-to- send CTS signal back to the terminal.
  • 19. Microprocessor-based data communication 19Microprocessor-Based Systems Dr. Randa Elanwar DTEDTE DCEDCE TxD RxD RTS CTS CD DTR DSR Computer Modem TxD RxD RTS CTS CD DTR DSR Computer Modem Telep hone line The terminal then sends serial data characters to the modem. When the terminal has sent all the characters it needs to, it makes its RTS signal high. This causes the modem to cut the CTS signal and stop transmission. A similar handshake occurs between the modem and the computer at the other end of the data link.
  • 20. Microprocessor-based data communication • The data and handshake signal names are part of a serial data communication standards called RS-232C. • This standard describes the function of 25 signal and handshake pins for serial data transfer. 20Microprocessor-Based Systems Dr. Randa Elanwar
  • 21. Microprocessor-based data communication The serial communication between PC-A and PC-B through input/output interface 21Microprocessor-Based Systems Dr. Randa Elanwar PC-A (sends) PC-B (receives) 1. Set memory pointers 1. Set memory pointers 2. Enable transmission 2. Enable reception 3. Set Strobe (Request) signal low 3. Set Acknowledge signal low 4. Wait for Acknowledge signal low 4. Wait for Strobe signal high 5. Output byte and increment pointer 5. Read byte and store 6. Set Strobe signal high 6. Set Acknowledge signal high 7. Wait for Acknowledge signal high 7. Wait for Strobe signal low 8. Check if transmission complete 8. Set Acknowledge signal low 9. If not go to step 5 9. Check if reception complete 10. If Yes – Exit program 10. If not go to step 4 11. If Yes – Exit program
  • 22. Microprocessor-based data communication MOV AX, 3000 MOV DS, AX MOV SI, 0000 MOV DX, 37A IN AL, DX AND AL, DE OUT DX, AL MOV DX, 379 IN AL, DX AND AL, 08 JNZ LODSB MOV DX, 378 OUT DX, AL MOV DX, 37A IN AL, DX OR AL, 01 OUT DX, AL 22Microprocessor-Based Systems Dr. Randa Elanwar Set memory pointers Enable transmission and set Strobe low Wait for Acknowledge low Output byte and increment pointer Set Strobe high