Programming Question
I was messing around with my BS2sx and a MotorMind B, writing code to
exercise the motors from off to full speed in steps, and something wierd
happened. I used a FOR NEXT loop to step the duty cycle from 0 to 255 hex,
and foolishly wrote a DEBUG statement to show the value of the loop
variable. Naturally it was displayed as the ASCII equivilent to the hex
code.
Anyhow, I figured out I would put in a decimal counter and increment /
display it, but the old statement with the hex stuff is still being shown on
the debug screen even though I deleted the code. The new statement does not
show. It acts like I'm not updating the code in the BS2sx when I run the
program from the PC.
Any ideas? Is there a way to dump the processor memory and start fresh?
exercise the motors from off to full speed in steps, and something wierd
happened. I used a FOR NEXT loop to step the duty cycle from 0 to 255 hex,
and foolishly wrote a DEBUG statement to show the value of the loop
variable. Naturally it was displayed as the ASCII equivilent to the hex
code.
Anyhow, I figured out I would put in a decimal counter and increment /
display it, but the old statement with the hex stuff is still being shown on
the debug screen even though I deleted the code. The new statement does not
show. It acts like I'm not updating the code in the BS2sx when I run the
program from the PC.
Any ideas? Is there a way to dump the processor memory and start fresh?
Comments
then re-load the original program.
ie:
for counter = 0 to 2047 'for bs2
write counter, 0
next
end
Regards, Chris
Original Message
From: Rodent <daweasel@s...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, March 06, 2001 7:46 AM
Subject: [noparse][[/noparse]basicstamps] Programming Question
> I was messing around with my BS2sx and a MotorMind B, writing code to
> exercise the motors from off to full speed in steps, and something wierd
> happened. I used a FOR NEXT loop to step the duty cycle from 0 to 255 hex,
> and foolishly wrote a DEBUG statement to show the value of the loop
> variable. Naturally it was displayed as the ASCII equivilent to the hex
> code.
>
> Anyhow, I figured out I would put in a decimal counter and increment /
> display it, but the old statement with the hex stuff is still being shown
on
> the debug screen even though I deleted the code. The new statement does
not
> show. It acts like I'm not updating the code in the BS2sx when I run the
> program from the PC.
>
> Any ideas? Is there a way to dump the processor memory and start fresh?
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>