Do-Loop Program is not Looping
VecTen
Posts: 3
I could not find similar problems looking through the site. I spent some time looking so I don't appear to be too lazy.
I am new to programming, but have the HomeWork Board and "What's A Microcontroller?" book. My first programs worked well. I am trying to flash an LED continuously. It cycles once, then freezes. This laptop seems to have a non-standard serial port. Following the instructions, I disconnected the serial cable--still no Loop when I press the reset button. I changed the program by adding the following after the compiler directives:
DEBUG "Program Running!"
The book says this should keep the COM port open? Fascinating! Man, this is great stuff!
This seems to be a laptop problem, not Stamp. I appreciate any help.
I am new to programming, but have the HomeWork Board and "What's A Microcontroller?" book. My first programs worked well. I am trying to flash an LED continuously. It cycles once, then freezes. This laptop seems to have a non-standard serial port. Following the instructions, I disconnected the serial cable--still no Loop when I press the reset button. I changed the program by adding the following after the compiler directives:
DEBUG "Program Running!"
The book says this should keep the COM port open? Fascinating! Man, this is great stuff!
This seems to be a laptop problem, not Stamp. I appreciate any help.
Comments
2) You may have a weak battery. That's a common cause of programs starting to run then hang or reboot.
I appreciate your reply. I have uploaded file and fresh battery. And I accidentally pushed your ignore button to find out what this button was! Ouch!
For your information, I have it on good authority that at the Roman Amphitheatre a "thumbs down" sign meant the Gladiator would live to fight again.
I don't see that attachment opening, maybe I just write it out like I see it.
'What's a Microcontroller - LedOnOff.bs2
'Turn an LED on and off. Repeat
' {$STAMP BS2}
'{$PBASIC 2.0}
DEBUG "Program Running!"
DO
High 14
Pause 500
LOW 14
PAUSE 500
LOOP
Post Edited (VecTen) : 4/29/2010 12:07:38 AM GMT
Thank you. I am making good progress now. This was a simple blunder on my part. I'm on my way to becoming the next Dean Kamen! Let me know if I can do anything for you here on the East Coast.