Sie sind auf Seite 1von 39

WWW.STUDENTSFOCUS.

COM Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & MicrocontrollerUNIT I Page 1
WWW.STUDENTSFOCUS.COM Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & MicrocontrollerUNIT I Page 2
WWW.STUDENTSFOCUS.COM Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & MicrocontrollerUNIT I Page 3
WWW.STUDENTSFOCUS.COM Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & MicrocontrollerUNIT I Page 4
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 5
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 6
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 7
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 8
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 9
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 10
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 11
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 12
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 13
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 14
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 15
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 16
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 17
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 18
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 19
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

By
P.B alaGanesh, M .E.
ssistant Prof essor / ECE
A

When your phone r i ngs dur i ng a l ect ur e, w hat w i l l happen?

When you ar e st udyi ng t hen your cell phone r i ngs – w hat w i l l you do?

W hen you finish talking on the phone then you w ill continue w ith

your study

Now your phone r i ngs agai n and som eone al so k nocki ng at your door
t hen w hat w i l l you do?

W hen being inter r upted, you w ill per for m some pr e-defined action

I nter r upt has pr ior ity – some inter r upt is m or e important than the

other s. For example, asking your phone is m or e im portant than opening

the door

I nt r oduct i on
An i nt er r up t i s used t o cause a t em por ar y hal t i n t he execut i on of
pr ogr am .

The m eani n g of ‘i nt er r upt s’ i s t o br eak t he sequence of oper at i on.

Whi l e t he M i cr opr ocessor i s execut i ng a pr ogr am , an ‘i nt er r upt ’


br eaks t he nor m al sequence of execut i on of i nst r uct i ons, di ver t s
it s execut i on to som e ot her pr ogr am cal l ed I nt er r upt Ser vi ce
Rout i ne ( I SR) .

Aft er execut i ng I SR, I RET r et ur n s t he con t r ol back agai n t o


t he m ai n pr ogr am .

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 20
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

Need for I nter r upt:


I nt er r upt s ar e par t i cul ar ly useful w hen i nt er faci ng I / O
devi ces, t hat pr ovi de or r equi r e dat a at r el at i vely l ow dat a
t r ansfer r at e.
Sources of I nter r upts:
Thr ee t ypes of i nt er r upt s sour ces ar e t her e:
1. An ext er nal si gnal appli ed t o NMI or I NTR i nput pi n
( Har dw ar e i nt er r upt )
1. Execut i on of I nt er r upt i nst r uct i on ( Soft w ar e i nt er r upt )
2. I nt er r upt r ai sed due t o som e er r or condi t i on pr oduced i n 8086
i nst r uct i on execut i on pr ocess.
( Divi de by zer o, Over flow er r or s et c)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 21
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 22
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 23
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

PRI ORI TY OF I NTERRUPTS


I nterr upt Type Pr ior ity

INT 0, I NT N, Hi ghest

NMI( INT2)

I NTR

SINGLE STEP Low est

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT I Page 24
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT II Page 1
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT II Page 2
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT II Page 3
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT II Page 4
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT II Page 5
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT II Page 6
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT II Page 7
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT II Page 8
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT II Page 9
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT II Page 10
Sri Vidya college of Engineering & Technology Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & Microcontroller UNIT II Page 11
WWW.STUDENTSFOCUS.COM Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & MicrocontrollerUNIT II Page 12
WWW.STUDENTSFOCUS.COM Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & MicrocontrollerUNIT II Page 13
WWW.STUDENTSFOCUS.COM Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & MicrocontrollerUNIT II Page 14
WWW.STUDENTSFOCUS.COM Course Material (Lecture Notes)

www.studentsfocus.com
EC6504 & Microprocessor & MicrocontrollerUNIT II Page 15

Das könnte Ihnen auch gefallen