28123 Parallax Inc, 28123 Datasheet - Page 64

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 question mark formatter before a variable in a
Terminal to display the name of the variable and its value. This is how the command
displays both the name and the value of the
The
counter = 1 to 10
to 1, then keep executing commands until it gets to the
BASIC Stamp gets to the
statement adds one to the value of
than ten yet. If not, it repeats the process. When the value of counter finally reaches
eleven, the program skips the commands between the
moves on to the command that comes after the
The command that comes after the
FOR…NEXT
DEBUG ? counter
FOR counter = 1 to 10
NEXT
What’s a Byte? A byte is enough memory to store a number between 0 and 255. The
BASIC Stamp has four different types of variables, and each can store a different range of
numbers:
DEBUG ? counter, CR
HIGH 14
PAUSE 500
LOW 14
PAUSE 500
Table 2-2: Variable Types and Values They Can Store
Variable type
loop and all the commands inside it are shown below. The statement
Word
Byte
Nib
Bit
tells the BASIC Stamp that it will have to set the
NEXT
Range of Values
0 to 1
0 to 15
0 to 255
0 to 65535
statement, it jumps back to the
counter
NEXT
statement is:
counter
. Then, it checks to see if
NEXT
statement.
variable in the Debug Terminal.
DEBUG
FOR
NEXT
command tells the Debug
and
FOR
statement. When the
NEXT
statement. The
counter
counter
statements and
is greater
variable
FOR
FOR

Related parts for 28123