70016 Parallax Inc, 70016 Datasheet - Page 59

TEXT INFRARED REMOTE FOR BOE-BOT

70016

Manufacturer Part Number
70016
Description
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer
Parallax Inc
Datasheet

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
Part Number:
70016SE
Manufacturer:
ST
0
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