28125 Parallax Inc, 28125 Datasheet - Page 65

TEXT ROBOTICS

28125

Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28125

Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
How HighLowLed.bs2 Works
Figure 2-6 shows how the BASIC Stamp can connect an LED circuit alternately to Vdd
and Vss. When it’s connected to Vdd, the LED emits light. When it’s connected to Vss,
the LED does not emit light. The command
connect P13 to Vdd. The command
circuit in that state for 500 ms. The command
connect the LED to Vss. Again, the command
leave it in that state for another 500 ms. Since these commands are placed between
and
A Diagnostic Test for your Computer
A very few computers, such as some laptops, will halt the PBASIC program after the first
time through a
By placing a
prevents this from possibly happening. You will next re-run this program without the
DEBUG
not likely, but it would be important for you to know.
If the LED blinks on and off continuously, just as it did when you ran the original
program with the
If the LED blinked on and off only once and then stopped, you have a computer with a
non-standard serial port design. If you disconnect the serial cable from your board and
SOUT
VSS
ATN
SIN
LOOP
P0
P1
P2
P3
P4
P5
P6
P7
10
11
12
1
3
4
6
8
9
2
5
7
command to see if your computer has this non-standard serial port problem. It is
BS2
Open HighLowLed.bs2.
Delete the entire
Run the modified program while you observe your LED.
BS2-IC
, they execute over and over again.
Vdd
Vss
DEBUG
24
23
22
21
20
19
18
17
16
15
14
13
DO
VSS
RES
VDD (+5V)
P15
P14
P13
P12
P11
P10
P9
P8
VIN
DEBUG
...
LOOP
command the program LedOnOff.bs2, the open Debug Terminal
command, your computer will not have this problem.
DEBUG
loop. These computers have a non-standard serial port design.
instruction.
SOUT
PAUSE 500
VSS
ATN
SIN
P0
P1
P2
P3
P4
P5
P6
P7
10
11
12
1
3
4
6
8
9
2
5
7
BS2
BS2-IC
Vdd
Vss
PAUSE 500
HIGH 13
instructs the BASIC Stamp to leave the
LOW 13
24
23
22
21
20
19
18
17
16
15
14
13
VSS
RES
VDD (+5V)
P15
P14
P13
P12
P11
P10
P9
P8
VIN
instructs the BASIC Stamp to
instructs the BASIC Stamp to
instructs the BASIC Stamp to
The BASIC Stamp
can be programmed
to internally connect
the LED circuit’s
input to Vdd or Vss.
Figure 2-6
BASIC Stamp
Switching
DO

Related parts for 28125