28122 Parallax Inc, 28122 Datasheet - Page 67

KIT WHAT'S A MICRO:PARTS ONLY

28122

Manufacturer Part Number
28122
Description
KIT WHAT'S A MICRO:PARTS ONLY
Manufacturer
Parallax Inc
Datasheet

Specifications of 28122

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Core Processor
PIC16C57c
Flash
128 Bytes
Operating Supply Voltage
9 V
Board Size
31 mm x 16 mm
For Use With/related Products
Board of Education Full Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Using a Program to Test the Second LED Circuit
In Activity #2, you used an example program and the
the LED circuit connected to P14. These commands will have to be modified to control
the LED circuit connected to P15. Instead of using
HIGH 15
Example Program: TestSecondLed.bs2
' What's a Microcontroller - TestSecondLed.bs2
' Turn LED connected to P15 on and off.
' Repeat 1 time per second indefinitely.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program Running!"
P15
P14
and
Enter TestSecondLed.bs2 into the BASIC Stamp Editor.
Connect power to your Board of Education or HomeWork Board.
Run TestSecondLED.bs2.
Make sure the LED circuit connected to P15 is flashing. If the LED connected
to P15 flashes, move on to the next example (Controlling Both LEDs). If the
LED circuit connected to P15 is not flashing, check your circuit for wiring
errors and your program for typing errors and try again.
470
LOW 15
.
Vss
470
LED
Vss
LED
P15
P14
P13
P12
P11
P10
P9
P8
P7
P6
P5
P4
P3
P2
P1
P0
X2
X3
Vdd
HIGH 14
HIGH
and
Vin
and
LOW
+
+
Vss
LOW 14
commands to control
, you will use
Figure 2-14
Connecting
the Second
LED to the
BASIC
Stamp
Schematic
(left) and
wiring
diagram
(right).

Related parts for 28122