28123 Parallax Inc, 28123 Datasheet - Page 295

TEXT WHAT'S A MICROCONTROLLER

28123

Manufacturer Part Number
28123
Description
TEXT WHAT'S A MICROCONTROLLER
Manufacturer
Parallax Inc
Type
Programmingr
Datasheet

Specifications of 28123

Style
Book
Title
What's a Microcontroller?
Contents
Whats a Microcontroller? Text
Product
Microcontroller Accessories
Core Processor
PIC16C57c
Flash
128 Bytes
Operating Supply Voltage
9 V
Board Size
31 mm x 16 mm
Lead Free Status / RoHS Status
Not applicable / Not applicable
The next example program demonstrates how you can declare and then use a
For example, the BASIC Stamp Editor assumes that you want to display the input value
of an I/O pin (
DEBUG
P3 is pressed or not pressed. Why? Because the BASIC Stamp Editor knows to
substitute
Here is another example where the BASIC Stamp Editor knows to substitute the value of
9
Example Program: TerminalOperatedSensorArray.bs2
Figure 10-6 shows the Debug Terminal displayed by TerminalOperatedSensorArray.bs2.
The main menu is shown on the left, and an example of the display when ‘4’ is selected is
shown on the right. Remember to use the upper Windowpane to send your menu
selections to the BASIC Stamp.
because the
command will display a 1 or 0 depending on whether the pushbutton connected to
Pb1Pin
DEBUG CLS, ? Pb1Pin
PhotoPin
HIGH PhotoPin
RCTIME PhotoPin, 1, time
IN3
Enter and run TerminalOperatedSensorArray.bs2.
Click the Debug Terminal’s upper Windowpane, and type digits to make your
menu selections.
The measurement displayed is the one taken at the instant the menu selection
is made, and it is displayed for 1.5 seconds. Keep this in mind when you press
and hold the pushbuttons, adjust the potentiometer and cast shade onto the
photoresistor.
PhotoPin PinName
for
IN3
Pb1Pin
) if you are using the
.
PIN
PIN
is used in a
3
9
Pb1Pin PinName
HIGH
command and an
in a
DEBUG
RCTIME
command. This
command.
PinName
.

Related parts for 28123