|
by Peter Gibbs
Start ý The
Objectives ý Circuit Operation ý Decoding
the URIC ý Short Program ý The
Multiplexer Design ý Software ý Sources
and PDF
SHORT PROGRAM
Listing
1 (IRTEST.BAS) shows a
short Stamp program that allows you to visually examine the digital
code produced by the UIRC buttons. A storage scope may also be used.
Hook up the Sharp module to the Stamp (bit 7) and download Listing
1 from the PC to the Stamp.
Note that although the high pulse preceding
each low pulse is read, the value and the leader pulse width are not
stored. For the UIRC used, logic 1 returned a count between 135 and
145, and logic 0 fell between 70 and 80. You can try this method with
other remotes and look for unique patterns.
Table 1 shows the binary data patterns
(first 12 bits only), obtained for the buttons on my UIRC, in TV mode.
I converted the count values to binary using integer division by 110,
a number midway between the two ranges.
|
Button
|
Code
|
|
0
|
0000 0010 1100
|
|
1
|
0000 0010 0000
|
|
2
|
0000 0010 1000
|
|
3
|
0000 1010 0000
|
|
4
|
0000 1010 1000
|
|
5
|
1000 0010 0000
|
|
6
|
1000 0010 1000
|
|
7
|
1000 1010 0000
|
|
8
|
1000 1010 1000
|
|
9
|
0000 0010 0100
|
|
Mem
|
1000 0110 0000
|
|
PLAY
|
1100 0110 0010
|
|
STOP
|
1100 0110 1010
|
|
REW
|
1100 1010 0000
|
|
FF
|
1100 1010 1000
|
|
PAUSE
|
1100 0010 1010
|
|
ENT
|
0000 1010 1100
|
|
Ch+
|
0000 0110 0000
|
|
Chý
|
0000 0110 1000
|
|
Vol+
|
0000 1110 0000
|
|
Volý
|
0000 1110 1000
|
|
Prev Ch
|
0100 1110 1100
|
Table 1ýHere you can see the binary
bit-string patterns for the 3-in-1 Radio Shack UIRC.
PREVIOUS
NEXT
Circuit Cellar provides up-to-date information for engineers. Visit
www.circuitcellar.com for
more information and additional articles.
For subscription information, call (860) 875-2199, subscribe@circuitcellar.com
or subscribe online.
ýCircuit Cellar, the Magazine for Computer Applications. Posted with
permission. |