This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

function and isr

what is the difference between jump to a function and jump to the isr? what are the steps involved?
(discuss regarding return also)

Parents
  • "Rather than discussing 'functions' and 'ISRs' in general, I think it would be much more beneficial to learn about a certain architecture"

    I disagree!

    The concept of the "function" call & return is pretty fundamental whatever architecture you use, and whatever language. It is also important to understand the difference from an "unstructured" jump.

    Similarly for interrupts - and you need to understand the concept of the interrupt in order to know the place of an interrupt handler (or "service routine")

    It is important to undersand the concepts before moving on to the implementation in any particular language and/or architecture.

    That's my opinion, anyhow...

Reply
  • "Rather than discussing 'functions' and 'ISRs' in general, I think it would be much more beneficial to learn about a certain architecture"

    I disagree!

    The concept of the "function" call & return is pretty fundamental whatever architecture you use, and whatever language. It is also important to understand the difference from an "unstructured" jump.

    Similarly for interrupts - and you need to understand the concept of the interrupt in order to know the place of an interrupt handler (or "service routine")

    It is important to undersand the concepts before moving on to the implementation in any particular language and/or architecture.

    That's my opinion, anyhow...

Children
  • The concept of the "function" call & return is pretty fundamental whatever architecture you use, and whatever language. It is also important to understand the difference from an "unstructured" jump.

    I am not suggesting to scrap the teaching of concepts. I'm just trying to say that once you intruduce a concept, you should show how it works within a certain architecture. This will show the students the practical significance of the concept and help keep them interested.