interrupt

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 :astonished:

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

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

MarkT: 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"

alva:
i want to break it when i send a data using serial port.

Sending data over Serial is already interrupt-driven.

Not sure if this answers your question, but a [u]break[/u] statement will get you out of a loop.