70016 Parallax Inc, 70016 Datasheet - Page 63
70016
Manufacturer Part Number
70016
Description
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer
Parallax Inc
Datasheet
1.70016.pdf
(212 pages)
Specifications of 70016
Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
For Use With
29122 - KIT PARTS IR REMOTE FOR BOE-BOT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
- Current page: 63 of 212
- Download datasheet (3Mb)
Converting the IR Message Pulse Durations to Decimal Values
The next example program records the first seven (of twelve total) data bit pulses into a
byte named
the Debug Terminal as a decimal value.
While this activity takes a close look at how the example program decodes the IR remote
messages, Activity #2 will demonstrate how to incorporate the working code into a
subroutine. Once it's in a subroutine, all your program has to do is call the subroutine,
and the subroutine will place the result into the
√
√
√
√
√
√
Modify the
Run your modified version of the program. It should now display the decimal
equivalent of the binary number whose bits you are setting and clearing.
Starting with the rightmost bit (bit-0), set it, note the value, then clear it.
Repeat with bit-1, then with bit-2, all the way through bit-7.
Explain what you observed.
Next, try setting and clearing bits so that you count from 0 to 20 in binary again.
DEBUG CLS,
remoteCode
BIN8 value, " <- Binary value", CR,
"76543210 <- Bit index", CR,
"Decimal value: ", DEC3 value, CR, CR,
"Type bit index (0 to 7): ", CR
DEBUG
. The program also displays the result stored in
command so that it looks like this:
remoteCode
variable.
remoteCode
in
Related parts for 70016
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories Breadboard Set
Manufacturer:
Parallax Inc
Part Number:
Description:
Power Entry Modules 4AA Battery Holder
Manufacturer:
Parallax Inc
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:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: