Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ATMEGA 328 interrupts

Status
Not open for further replies.

fallaciez

Newbie level 1
Joined
Dec 3, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
NYC
Activity points
1,290
hello ladies & gents,

I am currently working on making a clock/stopwatch using the ATMEGA 328...

I think that I have most of my code down, but I need to know how to:

(1) - Have the board determine where an interrupt has come from... Button 1, 2 or 3 (let's say they are going into the board's pins 2, 4 and 8 - relatively)... so that i can then code execution senarios depending on interrupt location.

and,
(2) - How to jump to specific code? I am coding in C; and, if I remember correctly, in C, it is "goto;" however, when i write the code in arduino, it doesn't change the color of the word "goto" as it recognizing it as a function... i was wondering, maybe it will still execute when it's actually running? or does arduino have a different command to execute jumps?

thank you,
P.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top