27403 Parallax Inc, 27403 Datasheet - Page 53
![GUIDE APP ROBOTCS W/SUMOBOT V1.0](/photos/8/99/89972/mfg_27403_sml.jpg)
27403
Manufacturer Part Number
27403
Description
GUIDE APP ROBOTCS W/SUMOBOT V1.0
Manufacturer
Parallax Inc
Datasheet
1.27404.pdf
(266 pages)
Specifications of 27403
Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
SumoBot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
- Current page: 53 of 266
- Download datasheet (6Mb)
temp = temp + 1
WRITE EepromCounter, temp
temp = temp - 1
IF temp = 0 THEN
ELSE
ENDIF
END
Your Turn - Distinguishing Odd from Even
You can determine whether the Reset button has been pressed/released an odd or even
number of times by examining the
counts up in binary, the rightmost binary bit (1 or 0) changes every time. Here is an
example:
Aside from the fact that it changes every time, notice that the rightmost bit is always 1 for
odd numbers and 0 for even numbers. If you want your program to take action based on
whether a value is odd or even, you'll need to access this rightmost binary bit and use it in
IF...THEN
PBASIC has the
values in a variable. The rightmost binary value, is accessed with
DEBUG "Since download, you have", CR,
DEBUG CRSRX, 11, "...", DEC temp,
Decimal
"pressed Reset ", DEC temp,
" times.", CR
" times.", CR
statements.
0
1
2
3
4
5
6
7
.BIT
(pronounced "dot-bit") operator for accessing the individual binary
%0000
%0001
%0010
%0011
%0100
%0101
%0110
%0111
Binary
temp
variable as a binary number. When a variable
.BIT0
. The second
Related parts for 27403
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![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:
![70016](/photos/8/99/89966/mfg_70016_tmb.jpg)
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
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:
![28023](/photos/9/30/93020/mfg_28023_tmb.jpg)
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
![30010](/photos/9/30/93025/mfg_30010_tmb.jpg)
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
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: