Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

interrupts functions and advantage

Status
Not open for further replies.

roomy

Junior Member level 3
Joined
Feb 10, 2011
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,460
Hello,

How interrupts work in detail and advantage and disadvantage of using interrupts to interface with input device like a video camera ,,
 

andre_teprom

Super Moderator
Staff member
Joined
Nov 7, 2006
Messages
9,186
Helped
1,141
Reputation
2,301
Reaction score
1,116
Trophy points
1,403
Location
Brazil
Activity points
53,380
roomy


Interrupts provide a way to you manage events without the need to polling status of external inputs.
Take in mind that polling consumes program processing.

However, in order to suport the interruption feature, core of microprontroller must include additional microinstructions, wich decreases a little the overall MIPS capability.
But not sure if we can consider it like a disvantage.

+++
 
  • Like
Reactions: roomy

    roomy

    points: 2
    Helpful Answer Positive Rating

syeda amna

Full Member level 4
Joined
Jun 1, 2010
Messages
224
Helped
24
Reputation
48
Reaction score
23
Trophy points
1,308
Location
Pakistan
Activity points
2,549
you have two options either use polling or interrupts.

polling means CPU have to check every time the status of the device.

Interrupts means interruption in the sequential flow of the program.actually the processor is too faster than your hardware and can perform more task in the same time as the hardware fetches the data to it. so most of the time interrupts are used.

whenever a device needs the attention of the CPU it generates a signal. the processor finishes the current task before responding to the device(it also saves the current status example save program location in PC register). the CPU then accepts the interrupt (in case of priority based interrupts check the priorty), and the transfers the control to the interrupt routine.

Interrupts are used when you need the fastest response to an event.
disadvatge of priority based interrupts is that faster devices have to wait for slower devices.


http://www.cs.toronto.edu/~demke/469F.06/Lectures/Lecture6.pdf
 
  • Like
Reactions: roomy

    roomy

    points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top