Pages: [1]   Go Down
Author Topic: interrupt  (Read 289 times)
0 Members and 1 Guest are viewing this topic.
indonesia
Offline Offline
Newbie
*
Karma: 0
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Need help>.>
how to use interrupt to break a loop.
exactly i created a lopping program, and i want to break it when i send a data using serial port.
Anny suggestion?? thx a lot smiley-eek
Logged

0
Offline Offline
Shannon Member
****
Karma: 200
Posts: 11672
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you read the sticky thread "Read this before posting a programming question..." ?
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Full Member
***
Karma: 4
Posts: 187
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Have you read the sticky thread "Read this before posting a programming question..." ?

i agree with you

@alva

try this
http://arduino.cc/en/Reference/SerialEvent
http://arduino.cc/en/Tutorial/SerialEvent
« Last Edit: November 19, 2012, 11:23:41 pm by Cybernetician » Logged

From Idea To Invention

Offline Offline
Edison Member
*
Karma: 19
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you read the sticky thread "Read this before posting a programming question..." ?

I think that thread should be given a less obvious name because I feel like I'm insulting people's intelligence when I say "Did you read "Read this before posting a programming question..." before you posted a programming question?"

Perhaps "DON'T READ THIS SECRET STUFF INSIDE"
Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6106
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

i want to break it when i send a data using serial port.
Sending data over Serial is already interrupt-driven.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Indiana, US
Offline Offline
Full Member
***
Karma: 12
Posts: 204
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Not sure if this answers your question, but a break statement will get you out of a loop.
Logged

There are 10 types of people in the world, those that understand binary, and those that don't.

Pages: [1]   Go Up
Jump to: