Author Topic: interrupts  (Read 1566 times)

0 Members and 1 Guest are viewing this topic.

Offline superchikuTopic starter

  • Supreme Robot
  • *****
  • Posts: 953
  • 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,585
  • Helpful? 169
    • 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: 953
  • 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"

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
1523 Views
Last post January 09, 2008, 01:43:31 PM
by Admin
5 Replies
2343 Views
Last post June 22, 2008, 12:38:12 PM
by coldkryten
2 Replies
5953 Views
Last post October 04, 2008, 04:34:29 AM
by aruna1
6 Replies
2124 Views
Last post January 13, 2009, 03:21:01 PM
by TrickyNekro


Get Your Ad Here