bill190
02-23-2010, 12:03 PM
I just bought a stamp homework board.
I write a simple program to turn on an LED, then off.
I click on run and that programs·loads into the homework board and runs - turns on the LED, then off.
Then I load in a new simple program which keeps the LED off...
...but in the process of that new program loading via the run function, the homework board runs the old program which is still in the memory of the homework board. So the LED flashes on again.
Then of course once the new program is loaded, I can hit reset on the homework board and the LED stays off.
Why is the old program running when I am loading a new program in via run?
This is not a big deal. I am trying to teach someone "1's and 0's" and how these turn on/off LED's and so forth.
So I would like to enter a "1" on the screen, run the program, and he then sees the light come on then go off.
Then enter a 0 on the screen, run the program, and he sees no light come on.
·
I write a simple program to turn on an LED, then off.
I click on run and that programs·loads into the homework board and runs - turns on the LED, then off.
Then I load in a new simple program which keeps the LED off...
...but in the process of that new program loading via the run function, the homework board runs the old program which is still in the memory of the homework board. So the LED flashes on again.
Then of course once the new program is loaded, I can hit reset on the homework board and the LED stays off.
Why is the old program running when I am loading a new program in via run?
This is not a big deal. I am trying to teach someone "1's and 0's" and how these turn on/off LED's and so forth.
So I would like to enter a "1" on the screen, run the program, and he then sees the light come on then go off.
Then enter a 0 on the screen, run the program, and he sees no light come on.
·