Author Topic: interrupts  (Read 2619 times)

0 Members and 1 Guest are viewing this topic.

Offline superchikuTopic starter

  • Supreme Robot
  • *****
  • Posts: 952
  • Helpful? 5
  • cooll
interrupts
« on: March 31, 2008, 01:40:23 PM »
hey all ,

i have made 3 bots so far but i have never used interrupts of any kind ,

i would like to know how would the interrupt be different from normal execution and how do they work also  i want to know that suppose iam using 3 adc channels so how do i  store the values from each channel after a conversion in different variables using interrupts using an atmega16

oh yes after storing the values, iam gonna use them for normal comparision and giving commands to my bot .

JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: interrupts
« Reply #1 on: April 06, 2008, 11:14:54 AM »
An interrupt is exactly that - an interrupt in your code to run other code.

So basically you set up an interrupt to trigger when an event occurs - such as a timer count (timer interrupt) or a digital port goes high (hardware interrupt).

When the interrupt is triggered it stops the code that is running, goes to run a special function you wrote, and when that function code is finished it goes back to the normal code.

Offline superchikuTopic starter

  • Supreme Robot
  • *****
  • Posts: 952
  • Helpful? 5
  • cooll
Re: interrupts
« Reply #2 on: April 06, 2008, 11:23:08 AM »
that cleared my fundamentals thank u ..
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

 


data_list