Parallax Boe-Bot Student Manual page 66

Hide thumbs Also See for Boe-Bot:
Table of Contents

Advertisement

Page 52 · Robotics with the Boe-Bot
press the Reset button, the BASIC Stamp will run the program properly without freezing.
In programs you write yourself, you should add a single command:
DEBUG "Program Running!"
right after the compiler directives. This will open the Debug Terminal and keep the
COM port open. This will prevent your programs from freezing after one pass through
the
, or any of the other looping commands you will be learning in later
DO...LOOP
chapters. You will see this command in some of the example programs that would not
otherwise need a
DEBUG
programs in this book even if your computer failed the diagnostic test.
Introducing the Timing Diagram
A timing diagram is a graph that relates high (Vdd) and low (Vss) signals to time. In
Figure 2-7, time increases from left to right, and high and low signals align with either
Vdd (5 V) or Vss (0 V). This timing diagram shows you a 1000 ms slice of the high/low
signal you just experimented with. The line of dots (. . .) to the right of the signal is one
way of indicating that the signal repeats itself.
500 ms
Vdd (5 V)
Vss (0 V)
instruction. So, you should be able to run all of the remaining
500 ms
1000 ms
Figure 2-7
Timing Diagram
for
HighLowLed.bs2
...
The LED on/off
states are shown
above the timing
diagram.

Advertisement

Table of Contents
loading

Table of Contents