I don't have a lot of experience programing which is probably my problem but·I have to re run the program to get it to start after a shutdown. I would appreciate any help.·Thanks, Al Cooke· See attachment.··
Al, · ·· Not to nit-pick but your filename would seem to indicate this was code for a 74xx165 shift register, however it is Stepper Motor code.· What happens if you press the reset button after startup?· Also, your main loop goes back to the very beginning of the program, but you should only be going back to the main program loop, labeled Main:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Chris Savage Parallax Tech Support
Thanks for both of your replys. I made the change to no avail. Pressing the reset after startup stops the program.
I overwrote an old program instead of arranging for it to be last when the new program was entered. Admittedly sloppy. Al Cooke
Al, · ·· Perhaps I worded my reply in a bad way…What I meant was, after you power up the board and your program does not seem to be running, does pressing and releasing the reset button start the program?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Chris Savage Parallax Tech Support
Al, · ·· What this indicates is that your computer is somehow holding the BASIC Stamp in a reset state.· When you download the code again it releases the DTR line.· But later it is back to being reset.· When you unplug the cable the computer is not able to do this.· So the problem is either on the PC side or your board that the BS2 Module is plugged into.· Which board are you using?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Chris Savage Parallax Tech Support
Comments
·
·· Not to nit-pick but your filename would seem to indicate this was code for a 74xx165 shift register, however it is Stepper Motor code.· What happens if you press the reset button after startup?· Also, your main loop goes back to the very beginning of the program, but you should only be going back to the main program loop, labeled Main:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I overwrote an old program instead of arranging for it to be last when the new program was entered. Admittedly sloppy. Al Cooke
·
·· Perhaps I worded my reply in a bad way…What I meant was, after you power up the board and your program does not seem to be running, does pressing and releasing the reset button start the program?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
·
·· Okay, by any chance is the programming cable plugged in during this?· If so, try it with it unplugged.· Also, how are you powering the board?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
·
·· What this indicates is that your computer is somehow holding the BASIC Stamp in a reset state.· When you download the code again it releases the DTR line.· But later it is back to being reset.· When you unplug the cable the computer is not able to do this.· So the problem is either on the PC side or your board that the BS2 Module is plugged into.· Which board are you using?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support