Re: Differences between interrupt service routine (ISR) and a subroutine



On 28 Nov, in article
<1164736936.337323.40270@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
uws2003@xxxxxxxxx "2005" wrote:
Hi

What are the differences between ISR and a subroutine in embedded
systems, how about the following:

Sounds like a homework question, you want somebody else to answer
for you.

Hint see if you can find a difference between interupts and functions
on NON embedded systems.

- interrupts are disabled by the microprocessor prior to calling the
isr
- isr's are always smaller
- an isr cannot be written in C
- a subroutine always has arguments
- the CPU flags are stored on the stack in addition to the return
address

Well I suggest you go back and read the book again, as these appear
to be badly copied from a text book.

--
Paul Carpenter | paul@xxxxxxxxxxxxxxxxxxxxxxxxxxx
<http://www.pcserviceselectronics.co.uk/> PC Services
<http://www.gnuh8.org.uk/> GNU H8 & mailing list info
<http://www.badweb.org.uk/> For those web sites you hate

.



Relevant Pages