28123 Parallax Inc, 28123 Datasheet - Page 44

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
Projects
Solutions
2. Guess what the Debug Terminal would display if you ran this command:
3. There is a problem with these two commands. When you run the code, the
1. Use
2. Which lines can you delete in FirstProgramYourTurn.bs2 if you place the
Q1. A microcontroller is a kind of miniature computer found in electronic products.
Q2. The BASIC Stamp module contains a microcontroller called the PIC16C57.
Q3. If the appliance has buttons and a digital display, these are good clues that it has
Q4. A comment.
Q5.
Q6. Disconnect the power from the BASIC Stamp project.
E1. It multiplies the two operands 7 and 11, resulting in a product of 77. The asterisk
E2. The Debug Terminal would display: 18
E3. To fix the problem, add a carriage return, the
P1. Here is a program to display a solution to the math problem: 1+2+3+4
DEBUG DEC 7 + 11
numbers they display are stuck together so that it looks like one large number
instead of two small ones. Modify these two commands so that the answers
appear on different lines in the Debug Terminal.
DEBUG DEC 7 * 11
DEBUG DEC 7 + 11
command shown below on the line just before the
Test your hypothesis (your prediction of what will happen). Make sure to save
FirstProgramYourTurn.bs2
FirstProgramCh01Project05.bs2. Then make your modification, save and run
your program.
DEBUG "What's 7 X 11?", CR, "The answer is: ", DEC 7 * 11
a microcontroller inside.
DEBUG
is the multiply operator.
DEBUG DEC 7 * 11
DEBUG CR, DEC 7 + 11
'{$STAMP BS2}
'{$PBASIC 2.5}
DEBUG
and
END
to display the solution to the math problem: 1 + 2 + 3 + 4.
with
a
CR,
control character.
END
new
command in the program?
name,
like

Related parts for 28123