28122 Parallax Inc, 28122 Datasheet - Page 106

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
SUMMARY
This chapter introduced the pushbutton and common pushbutton circuits. This chapter
also introduced how to build and test a pushbutton circuit and how to use the BASIC
Stamp to read the state of one or more pushbuttons. The BASIC Stamp was programmed
to make decisions based on the state(s) of the pushbutton(s) and this information was
used to control LED(s). A reaction timer game was built using these concepts. In
addition to controlling LEDs, the BASIC Stamp was programmed to poll a pushbutton
and take time measurements.
Reading individual pushbutton circuits using the special I/O variables built into the
BASIC Stamp (
using
also introduced. For evaluating more than one condition, the
introduced. Adding a condition to a
along with nesting
Questions
Exercises
1. What is the difference between sending and receiving
2. What does “normally open” mean in regards to a pushbutton?
3. What happens between the terminals of a normally open pushbutton when you
4. What is the value of
5. What does the command
6. What kind of code blocks can be used for making decisions based on the value
7. What does the
1. Explain how to modify ReadPushbuttonState.bs2 on page 77 so that it reads the
2. Explain how to modify ReadPushbuttonState.bs2 so that it reads a normally open
IF…THEN…ELSE
using the BASIC Stamp?
press it?
value of
of one or more pushbuttons?
pushbutton every second instead of every ¼ second.
pushbutton circuit with a pull-up resistor connected to I/O pin P6.
IN3
IN3
DO…LOOP
,
IN4
when a pushbutton connects it to Vss?
statements,
HOME
, etc.) was introduced. Making decisions based on these values
code blocks.
formatter do in the statement
IN3
DEBUG ? IN3
IF…ELSEIF…ELSE
when a pushbutton connects it to Vdd? What is the
DO…LOOP
using the
do?
statements, and code blocks were
UNTIL
DEBUG HOME
AND
keyword was introduced
HIGH
and
?
OR
and
operators were
LOW
signals

Related parts for 28122