Loading...
Pages: [1]   Go Down
Author Topic: interrupt  (Read 144 times)
0 Members and 1 Guest are viewing this topic.
indonesia
Offline Offline
Newbie
*
Karma: 0
Posts: 18
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
Tesla Member
***
Karma: 71
Posts: 6603
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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: 15
Posts: 1003
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: 41
Posts: 5166
CMiYC
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

www.cmiyc.com - A guide to being an Enginerd

Indiana, US
Offline Offline
Full Member
***
Karma: 12
Posts: 161
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
Print
 
Jump to: