90005 Parallax Inc, 90005 Datasheet - Page 14

KIT BASIC STAMP ACTIVITY

90005

Manufacturer Part Number
90005
Description
KIT BASIC STAMP ACTIVITY
Manufacturer
Parallax Inc
Series
BASIC Stamp®r
Type
MCUr
Datasheet

Specifications of 90005

Contents
Board, cable, components, manual and software
Interface Type
RS-232
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp® 2 and Board of Education
For Use With
900-00014 - SERVO CONTROLLER PICO GWS28824 - SERVOPAL SERVO PULSER TIMER130-28029 - KIT PARTS SMART SENSORS28029PAR - KIT PARTS SMART SENSORS W/TEXT28030 - ADAPTER USB TO SERIAL RS23290005 - KIT BASIC STAMP ACTIVITY805-00006 - CABLE USB A TO MINI B28325 - EXPANDER DB-TO-SIP BASIC STAMP27937 - MEMORY STICK DATALOGGER658-1021-5 - PROGRAMMER TEACLIPPER/STAMP30010 - BASIC STAMP LOGIC ANALYZER28119 - KIT UNDERSTANDING SIGNALS28022 - KIT DS2760 THERMOCOUPLE28128 - KIT BASIC ANALOG/DIGI PARTS ONLY27963 - SOLUTIONS CUBED: MEMKEY27964 - UNIPOLAR STEPPER MOTOR 12VDC27220 - BOOK STAMPWORKS27938 - MOTOR CONTROLLER LITTLE STEP-U27330 - PROGRAMMER STACHE BASIC STAMP27218 - MANUAL BASIC STAMP VER 2.0
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Code Listing
The simplest way to control a BASIC Stamp output pin is with the
commands require a pin number parameter. Let's take a look at Listing 1a to see
' {$STAMP BS2}
' Program: LED Blink.BS2
' Purpose: Blinks an LED connected to BASIC Stamp pin P15
' ---------------------------------------------------------------
Start:
As you can see, the program starts by making pin 15 go high (5 volts). This will cause the LED to light. In order
for us to see it, though, we must insert some time before we turn it back off. We can create a short program
delay with the
that follows is the delay time in milliseconds (
LED to stay lit for one-half second.
Parallax, Inc. • BASIC Stamp HomeWork Board ver 1.1
HIGH 15
PAUSE 500
LOW 15
PAUSE 500
GOTO Start
Blinking LED circuit.
Figure 12
PAUSE
command. Like
' turn LED on
' turn LED off
' do it again
' wait one-half second
' wait one-half second
P12
HIGH
P15
P14
P13
P12
P11
P10
P9
P8
P7
P6
P5
P4
P3
P2
P1
P0
X4
X3
and
1
/
1000
(916) 624-8333
www.parallaxinc.com
www.stampsinclass.com
Vdd
LOW
second). In our program a
,
PAUSE
220Ω
Vin
Vss
requires a value parameter. For
© 2002
Rev A
HIGH
Vss
(on) and
PAUSE
LOW
HIGH
value of 500 will allow the
(off) commands. Both
and
LOW
PAUSE
in action.
, the value
Page 14

Related parts for 90005