Jump to content

Question about basic programming terminology and programming processes

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
pathtotake

pathtotake

    Newbie

  • Members
  • PipPip
  • 13 posts
I'm learning about event driven programming at college but the teacher, and wikipedia... and everywhere else seems to give really general information on:

callback routines
interrupts
interrupt handlers
embedded systems
software layers


I need to write two pages on this, and general information is not enough for me to write two pages...
for example... in hardware interrupts... where are they generated, how are they generated in the hardware? what does a software interrupt code even look like? Where is an interupt handler code (if there is code) held?

also, this is from wikipedia :
"An interrupt handler is a low-level counterpart of event handlers."
what's the difference between the two, and what do they mean by low-level?

#2
Steve.L

Steve.L

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 444 posts

pathtotake said:

I'm learning about event driven programming at college but the teacher, and wikipedia... and everywhere else seems to give really general information on:

callback routines
interrupts
interrupt handlers
embedded systems
software layers


I need to write two pages on this, and general information is not enough for me to write two pages...
for example... in hardware interrupts... where are they generated, how are they generated in the hardware? what does a software interrupt code even look like? Where is an interupt handler code (if there is code) held?

also, this is from wikipedia :
"An interrupt handler is a low-level counterpart of event handlers."
what's the difference between the two, and what do they mean by low-level?

Cool. I don't see how this is relevant to this forum. Looks like you have a lot of reading to do bud. We don't do homework for you.

#3
dcs

dcs

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 775 posts

pathtotake said:

I'm learning about event driven programming at college but the teacher, and wikipedia... and everywhere else seems to give really general information on
I think your following approach is the correct one -- to list specific things you would like clarified.

pathtotake said:

for example... in hardware interrupts... where are they generated, how are they generated in the hardware?
As it shows here, there are many ways in which an interrupt might be generated. Some event happens, such as the change of state on a pin, and when the CPU detects it (skipping other details for the moment), it generates an interrupt. This interrupt tells the CPU to finish its instruction, push some registers, and vector off elsewhere -- to an interrupt service routine.

pathtotake said:

what does a software interrupt code even look like?
A special machine instruction that does the same thing as an external hardware interrupt: causes the CPU to vector to an ISR.

pathtotake said:

Where is an interupt handler code (if there is code) held?
That depends on the architecture.

pathtotake said:

also, this is from wikipedia :
"An interrupt handler is a low-level counterpart of event handlers."
what's the difference between the two, and what do they mean by low-level?
In interrupt handler (or ISR) is code that will be executed when some hardware event occurs. An event handler is code that will be executed when software detects an event and executes code associated with the event -- possibly a callback.

#4
marwex89

marwex89

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 10,720 posts

Steve.L said:

We don't do homework for you.

YES, we do :) Check out MeTh0Dz' "Homework for lulz" thread :P
Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

#5
MeTh0Dz

MeTh0Dz

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,119 posts
Lol yeah, but that's just me liking to lul at easy code and taking a break from hard ****.

#6
marwex89

marwex89

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 10,720 posts
So programming-history assignments are not done?
Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

#7
MeTh0Dz

MeTh0Dz

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,119 posts
**** no. I'm only coding.

#8
marwex89

marwex89

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 10,720 posts
Ok, seems like pathtotake has to do it himself, then ;)
Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa