28139 Parallax Inc, 28139 Datasheet - Page 58
28139
Manufacturer Part Number
28139
Description
KIT REMOTE IR FOR BOE-BOT W/TEXT
Manufacturer
Parallax Inc
Specifications of 28139
Accessory Type
IR Remote
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
- Current page: 58 of 212
- Download datasheet (3Mb)
Example Program – BinaryToDecimal.bs2
Although you can write a PBASIC program that follows each of the steps just discussed,
the
' IR Remote for the Boe-Bot - BinaryToDecimal.bs2
' Enter a binary value into the Debug Terminal's Transmit Windowpane,
' and get the decimal value in the Receive Windowpane.
'{$STAMP BS2}
'{$PBASIC 2.5}
value
DO
LOOP
Your Turn – Counting in Binary
By entering each of the binary numbers listed beginning on page 46, you will get practice
counting in binary. Especially if you delve further into inventions with microcontrollers,
the ability to count in binary will be a skill you will rely on over and over again.
Setting and Clearing Bits with the .BIT Modifier
Although the
Terminal, it's not very helpful for converting a series of pulses into a binary number.
Each pulse corresponds to a different bit in the binary number the remote is transmitting.
DEBUG "Enter binary value: "
DEBUGIN BIN value
DEBUG "Decimal value is: ", DEC value, CR
BIN
√
√
√
√
√
√
√
and
Enter and run BinaryToDecimal.bs2.
Click the Debug Terminal's Transmit Windowpane.
Type in up to eight binary digits (ones and zeros), then press Enter .
Hand-calculate the value using the steps shown in Figure 2-2.
Compare your hand calculated result to the one in the Debug Terminal result.
While the program is running, enter each of the twenty-one binary values listed
beginning on page 46 into the Debug Terminal's Transmit Windowpane.
Make sure that the decimal conversion verifies that you are up-counting
correctly.
DEC
BIN
modifiers make the job easy.
VAR
modifier made it easy to enter binary numbers into the Debug
Byte
Related parts for 28139
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: