70016 Parallax Inc, 70016 Datasheet - Page 59
![TEXT INFRARED REMOTE FOR BOE-BOT](/photos/8/99/89966/mfg_70016_sml.jpg)
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: 59 of 212
- Download datasheet (3Mb)
That means that each pulse has to be translated to a 1 or 0, and then the corresponding bit
position in a variable has to be set or cleared.
The
making it possible to select individual bits in a given variable.
Let's say that you have a byte variable named
bit-6. Here's a way to do that with the help of the
The next example program demonstrates how to use the
bits in a byte variable with the help of the Debug Terminal's Transmit and Receive
Windowpanes. It uses three variables, a byte named
a bit named
command, you can pick any bit in the
zero with these commands:
.BIT
value.BIT5 = 0
value.BIT6 = 1
DEBUGIN DEC1 index
DEBUGIN BIN1 setClear
IF index = 0 THEN value.BIT0 = setClear
IF index = 1 THEN value.BIT1 = setClear
IF index = 2 THEN value.BIT2 = setClear
IF index = 3 THEN value.BIT3 = setClear
IF index = 4 THEN value.BIT4 = setClear
IF index = 5 THEN value.BIT5 = setClear
IF index = 6 THEN value.BIT6 = setClear
IF index = 7 THEN value.BIT7 = setClear
variable modifier can be used to set and clear bits in a variable. It does so by
Coding tip – the
in a variable as array elements. Here is how you can use the
the eight
This technique cannot be used in the upcoming IR remote examples because it would
require more calibration with the IR remote pulse measurements. Even so, it's a worthwhile
exercise to replace the eight
example program. Verify that both techniques perform the same operation.
setClear
IF…THEN
value.LOWBIT(index) = setClear
. By storing values in
.LOWBIT
statements just discussed.
modifier: The
IF…THEN
value
variable and either set it to one or clear it to
value
statements with this one command in the next
.LOWBIT
index
.BIT
, and you want to clear bit-5 and set
value
variable modifier:
and
modifier can be used to treat the bits
.BIT
setClear
, a nibble named
.LOWBIT
modifier to set and clear
with the
modifier to replace
index,
DEBUGIN
and
Related parts for 70016
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![700-32305](/photos/15/95/159516/700-32305-l_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories Breadboard Set
Manufacturer:
Parallax Inc
![700-00038](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Power Entry Modules 4AA Battery Holder
Manufacturer:
Parallax Inc
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![27404](/photos/26/91/269197/27404-l_tmb.jpg)
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![28135](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
![SX18AC/SO](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: