Arduino dumilanove cannot read while writing?

lk90lbc89:

bubulindo:
When you want to post code... use the button with the # sign above the message box.

As I said... the auto-reset of the board causes it to stop. It is perceptible for a couple of seconds or so, but it then resumes. Not like your program is doing a lot either, is it?

Test your program with the serial port always open, then when you find that the program is good and finished, load it to the board and cut the auto-reset track. That will solve your problem. And create another to load new programs.

thank you man

but another thing is: when i open the serial port to AnalogRead() some value, there is only one number popping out then it stoped, forever stoped