28123 Parallax Inc, 28123 Datasheet - Page 129
28123
Manufacturer Part Number
28123
Description
TEXT WHAT'S A MICROCONTROLLER
Manufacturer
Parallax Inc
Type
Programmingr
Datasheet
1.28123.pdf
(340 pages)
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
- Current page: 129 of 340
- Download datasheet (6Mb)
You will also program the BASIC Stamp to use these values to control the servo.
Parts and Circuit
Same as Activity #1
Programming the BASIC Stamp to Receive Messages from Debug
Programming the BASIC Stamp to send messages to the Debug Terminal is done using
the
Debug Terminal is done using the
also have to declare one or more variables for the BASIC Stamp to store the information
it receives. Here is an example of a variable you can declare for the BASIC Stamp to
store a value:
Later in the program, you can use this value to store a number received by the
command:
When the BASIC Stamp receives a numeric value from the Debug Terminal, it will store
it in the
characters you are sending will be digits that form a decimal number. As soon as you hit
the carriage return, the BASIC Stamp will store the digits it received in the
variable as a decimal number, then move on.
Although it is not included in the example program, you can add a line to verify that the
message was processed by the BASIC Stamp.
Example Program: ServoControlWithDebug.bs2
Figure 4-19 shows a close-up view of the Transmit Windowpane in the Debug Terminal.
Your Transmit Windowpane may be smaller. You can click and drag the separator
between the two panes downward to make the Transmit Windowpane larger. You can
type characters into the Transmit Windowpane to send them to the BASIC Stamp. In this
example, somebody typed in 100, then hit the carriage return, then typed in 850. The
Receive Windowpane displays the “Enter number of pulses:” message sent by the BASIC
Stamp. It also displays an echo of the characters 100 that were typed into the Transmit
Windowpane.
DEBUG
pulses VAR Word
DEBUGIN DEC pulses
DEBUG CR,
pulses
command. Programming the BASIC Stamp to receive messages from the
variable. The
"You sent the value: ",
DEC
DEBUGIN
formatter tells the
command. When using this command, you
DEC pulses
DEBUGIN
command that the
DEBUGIN
pulses
Related parts for 28123
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: