28122 Parallax Inc, 28122 Datasheet - Page 61

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
persistence of vision. Here is how to test to see what your persistence of vision threshold
is:
One last thing to try is to create a one-shot LED flasher. When the program runs, the
LED flashes only once. This is a way to look at the functionality of the
can temporarily remove the
left of both the
ACTIVITY #3: COUNTING AND REPEATING
In the previous activity, the LED circuit either flashed on and off all the time, or it
flashed once and then stopped. What if you only want the LED to flash on and off ten
times? Computers (including the BASIC Stamp) are great at keeping running totals of
how many times something happens. Computers can also be programmed to make
' DO
' LOOP
Try modifying both of your
they are 100.
Re-run your program and check for flicker.
Reduce both
Keep reducing the
time with no flicker. It will be dimmer than normal, but it should not appear to
flicker.
Modify and re-run the program using the code snippet above.
Explain what happened, why did the LED only flash once?
Commenting a line of code: Placing an apostrophe to the left of a command changes it
into a comment.
command to see what happens if you remove it from the program. It is much easier to add
and remove an apostrophe than it is to delete and re-type the commands.
HIGH 14
PAUSE 1000
LOW 14
PAUSE 2000
DO
and
LOOP
Duration
This is a useful tool because you don’t actually have to delete the
keywords as shown below.
DO…LOOP
Duration
arguments by 5 and try again.
from the program by placing an apostrophe to the
PAUSE
arguments until the LED appears to be on all the
command’s
Duration
arguments so that
DO…LOOP
. You

Related parts for 28122