27297 Parallax Inc, 27297 Datasheet - Page 108

KIT STAMPWORKS WITH BS2-IC

27297

Manufacturer Part Number
27297
Description
KIT STAMPWORKS WITH BS2-IC
Manufacturer
Parallax Inc
Datasheet

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
Part Number:
27297SQ
Manufacturer:
NS
Quantity:
4
EXPERIMENT #15: COUNTING EVENTS
This experiment demonstrates an events-based program delay.
Look It Up: PBASIC Elements to Know
Building the Circuit
Program: SW21-EX15-Event_Count.BS2
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Program Description ]---------------------------------------------
'
' Counts extenal events by wait for a low-to-high transition on the event
' input pin.
' -----[ I/O Definitions ]-------------------------------------------------
EventIn
' -----[ Variables ]-------------------------------------------------------
nScan
oScan
xScan
eCount
target
' -----[ Initialization ]--------------------------------------------------
Reset:
CLS, CR, CRSRXY (used with DEBUG)
PIN
VAR
VAR
VAR
VAR
VAR
15
Bit
Bit
Bit
Word
Word
' event input pin
' new scan (changed)
' old scan of input
' scan change
' event count
' target count value

Related parts for 27297