28119 Parallax Inc, 28119 Datasheet - Page 102

KIT UNDERSTANDING SIGNALS

28119

Manufacturer Part Number
28119
Description
KIT UNDERSTANDING SIGNALS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28119

Lead Free Status
Contains lead
Accessory Type
Oscilloscope
Interface Type
USB
For Use With/related Products
BASIC Stamp® 2 and Board of Education
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
281197-2
Manufacturer:
TE
Quantity:
20 000
Part Number:
281197-2
Manufacturer:
MOLEX
Quantity:
2 500
' -----[ Subroutine - Process IR Pulses ]----------------------------------
Process_IR_Pulses:
' -----[ Subroutine - Display IR Pulse Values ]----------------------------
Display_IR_Pulse_Values:
' -----[ Subroutine - Convert to Binary Number Display ]-------------------
Convert_to_Binary_Number_Display:
NEXT
RETURN
DO
LOOP UNTIL (IR_pulse(0) > 1400) AND (IR_pulse(0) <> 0)
' The BASIC Stamp 2p and 2SX modules are fast enough to load these
' values using a FOR...NEXT loop, but all other modules should load the
' pulse values as a sequence of PULSIN Commands.
PULSIN IR_detect,active_low,IR_pulse(0)
PULSIN IR_detect,active_low,IR_pulse(1)
PULSIN IR_detect,active_low,IR_pulse(2)
PULSIN IR_detect,active_low,IR_pulse(3)
PULSIN IR_detect,active_low,IR_pulse(4)
PULSIN IR_detect,active_low,IR_pulse(5)
PULSIN IR_detect,active_low,IR_pulse(6)
PULSIN IR_detect,active_low,IR_pulse(7)
PULSIN IR_detect,active_low,IR_pulse(8)
PULSIN IR_detect,active_low,IR_pulse(9)
PULSIN IR_detect,active_low,IR_pulse(10)
PULSIN IR_detect,active_low,IR_pulse(11)
RETURN
FOR counter = 0 TO 10
NEXT
RETURN
ENDIF
PULSIN IR_detect,active_high,IR_pulse(0)
DEBUG " ", DEC2 counter
DEBUG " = ", DEC5 IR_pulse(counter) * 2, " us "
IF IR_pulse(counter) > 450 THEN
ELSE
ENDIF
DEBUG " Binary-1", CR
DEBUG " Binary-0", CR
' pulse is detected.

Related parts for 28119