reading rf-remote controller signal

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
Posts: 10
Joined: Wed Feb 23, 2011 10:18 am
Location: Finland

reading rf-remote controller signal

Post by yllis » Sat Aug 11, 2012 3:46 pm

I have a simple rf-remote and a reciever for it. The remote has 22 functions, and I just need to make a PIC to react when a command is sent.

I've used the Ir protocol analyzer to see what the remote controller is sending (in TTL-logic):
It seems that the signal consist of three parts:
-a short "start" part (5 bits)
-a constant part (presumably to identify the remote) (~60 bits) and
-data (18 bits)
The constant and data parts are repeated three times in every "message" sent by the remote.

My idea was to somehow store the received "message" in to an array, and then read only the data part..

So my (noob) question is: What would be the best way to get the signal in to an array?
Should I make a timer and somehow use that to read what the remote is sending (It seems that the data is sent in 500 us "bits" as can be seen from the picture above)?
Or maybe the CCP in capture mode?
Thanks already in advance..

Post Reply