27297 Parallax Inc, 27297 Datasheet - Page 42
27297
Manufacturer Part Number
27297
Description
KIT STAMPWORKS WITH BS2-IC
Manufacturer
Parallax Inc
Datasheet
1.27297.pdf
(230 pages)
Specifications of 27297
Lead Free Status
Contains lead
Product
Microcontroller Accessories
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
- Current page: 42 of 230
- Download datasheet (3Mb)
Write Code like a Pro
This version of the LED blinker is how a professional programmer would approach
the task. Why? What if you were asked to write a program that required several
LEDs and you assumed that they were active-high, yet after hours of work on the
program you were handed a schematic with LED connections that looked like this:
The LED in the schematic above is active-low; you must take the control pin low to
light the LED. Now you would be forced to change the HIGH commands that control
LEDs to LOW, and then original LOW commands to HIGH which would be a lot of work
and possibly lead to the introduction of program errors.
The professional programmer builds flexibility into the program so that an electrical
design change can be accommodated with ease. By using the strategy employed in
this experiment, we only have to change the following declarations:
The rest of the program remains unchanged and is ready to run.
IsOn
IsOff
CON
CON
0
1
' on for active-low LED
' off for active-low LED
Related parts for 27297
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: