Sony SIRC IR Decoder for PIC 16F88

Download
as PDF 
Decodes 12, 15 and 20 bit SIRC data streams
Tested with following Sony Remotes;
- RM-U215
- RMT-D166P
- RM-S325
Connections:
- Connect IR Receiver module TTL output to PIC RB0/INT
input (use TSOP2238, TSOP1738 or similar)
- Optional monitor LED to PIC RA1 output
- Decoded SIRC data is transmitted as async' serial
data from RB5/TX output. ( 38.4Kbs 8N1 )
Configured to use internal RC oscillator at 8Mhz so no external crystal
required.
Do use a 100nF decoupling capacitor on the 5volt supply

beta Code download
Sample output
- command word
-> cNNNNNNNN
- device word
-> dNNNNNNNN
- 20 bit extended word -> xNNNNNNNN
- detected bit stream length [12 | 15 | 20 ] ->
NN
- start pulse error -> S
- data pulse error -> D

With the Sony remotes tested, a single press of any
button results in the same
code being sent three times in succession.
If the button is held down it will repeat the code
indefinitely, but always a
minimum of three times.
Output from
TSOP2238 IR PCM Receiver



