Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

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 ,,
 

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
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.


**broken link removed**
 
  • Like
Reactions: roomy

    roomy

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top