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.

Difference between software interrupt & hardware interrupt?

Status
Not open for further replies.

HSN39

Newbie level 5
Joined
Sep 14, 2011
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Tunisia
Activity points
1,328
Hello,

Does anyone can help me know the difference between the software interrupt and hardware interrupt?


thank's
 

cubanflyer

Full Member level 5
Joined
Jul 31, 2010
Messages
255
Helped
75
Reputation
152
Reaction score
71
Trophy points
1,308
Location
UK
Activity points
2,500
A software interupt is drive by a predifined period of time usual a counter, that overflows or reaches zero, that triggers the interrupt routine, where as a hardware interrupt is from an external force for example a switch. HTH
 
  • Like
Reactions: HSN39

    HSN39

    Points: 2
    Helpful Answer Positive Rating

Kurenai_ryu

Advanced Member level 2
Joined
Jun 10, 2006
Messages
671
Helped
159
Reputation
316
Reaction score
99
Trophy points
1,308
Location
Bolivia
Activity points
5,909
A software interupt is drive by a predifined period of time usual a counter, that overflows or reaches zero, that triggers the interrupt routine, where as a hardware interrupt is from an external force for example a switch. HTH

as far as i konw those are still hardware interrupts....

the hardware interrupts could be internal (like timers) or external (like io change or communication receive) which are generated by specific hardware (the timer is also a internal harware periferal, separated from the internal CPU).

some microprocessors (and thus some microcontrollers) have an specific instruction for a "software interrupt" which 'generates' or 'emulates' the behavior from a hardware interrupt, but it's 'called' from the user program (via the software interrupt instruction (like an ASM nemonic of SWI in a 6800, or a software reset in others micros (which some people consider a interrupt per-se))

a software interrupt call is different from any normal call by:

-it calls to a specific interrupt vector like a hardware interrupt.
-if the micro is capable, it will also save the working area (like accumulators and some registers) like a hardware interrupt
-you end the interrupt routine like any interrupt (via a interrupt-return in contrast with a normal return)
-if the micro is capable of some configuration or it has only one interrupt vector, you can 'call' a hardware interrupt from the main code.

so, a software interrupt emulates most features from a hardware interrupt, even you can use some hardware interrupt routines via a software interrupt. but not many microcontrollers have an actual real software interrupt instruction.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top