28139 Parallax Inc, 28139 Datasheet - Page 207

KIT REMOTE IR FOR BOE-BOT W/TEXT

28139

Manufacturer Part Number
28139
Description
KIT REMOTE IR FOR BOE-BOT W/TEXT
Manufacturer
Parallax Inc
Datasheets

Specifications of 28139

Accessory Type
IR Remote
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Each
multiplies one of the bits in the remoteCode variable by 300 before adding 300. Without
parenthesis, the order of operation is left to right. If
result of
remoteCode.BIT3
300 = 600. More generally, the result of these expressions in each
duration argument is 600 if the given bit is 1, or 300 if it's 0, which causes the
command to turn the 555 timer's 38 kHz signal on, either for a duration of 1.2 ms or 0.6
ms.
Even though the same results can be obtained by the
work in the program because of signal timing considerations.
remoteCode.BITX * 300 + 300
block below takes well over a millisecond. While a SONY TV set might or might not be
forgiving enough to decode the signal, the example programs from this text that receive
and decode IR messages are not that forgiving.
PULSOUT
Send_Ir_Remote_Code:
FOR index = 0 TO 11
NEXT
' Change button values to remote codes.
IF (remoteCode = 0) THEN remoteCode = 10
IF (remoteCode <= 10) THEN remoteCode = remoteCode - 1
remoteCode.BIT7 = 1
LOW tPin
PAUSE 26
PULSOUT tPin, 1200
PULSOUT tPin, remoteCode.BIT0 * 300 + 300
PULSOUT tPin, remoteCode.BIT1 * 300 + 300
PULSOUT tPin, remoteCode.BIT2 * 300 + 300
PULSOUT tPin, remoteCode.BIT3 * 300 + 300
RETURN
IF remoteCode.L0WBIT(index) = 1 THEN
ELSE
ENDIF
PULSOUT tPin, duration
remoteCode.BIT2
.
.
.
duration = 600
duration = 300
command in the
is 1, then the result of
Send_Ir_Remote_Code
*
300
calculation, which takes around 500 µs, the code
remoteCode.BIT3
+
300
is 0 * 300 + 300 = 300.
FOR...NEXT
remoteCode.BIT2
subroutine has an argument that
' Set bit-7 = 1 for TV
' 555 signal off
' Rest between messages
' Start pulse
' Bit-0 pulse
' Bit-1 pulse
' Bit-2 pulse
' Etc...
is 1 * 300 + 300 = 300 +
PULSOUT
loop below, it won't
= 0 then the
Unlike the
command's
PULSOUT
If

Related parts for 28139