Shop OBEX P1 Docs P2 Docs Learn Events
Is there any RC5 implementation? — Parallax Forums

Is there any RC5 implementation?

Jacky2kJacky2k Posts: 4
edited 2008-10-29 16:40 in Propeller 1
Hello,
I have to interprete RC5 Codes from a TV remote control but I have no idea how to implement it.
So, does someone have a working code I could use or any idea how to implement it?

Jacky2k

Comments

  • Jacky2kJacky2k Posts: 4
    edited 2008-10-29 11:04
    OK...
    I think I know why my implementation isn't running. Is the normal Spin code very slow? In a small test I found out that he needs some thousand clocks to do a litte loop from 0 to 27... is that normal???
    So, do I have to implement it in assembly?
  • hippyhippy Posts: 1,981
    edited 2008-10-29 11:44
    RC5 bit times are around 1.8ms so that should be plenty slow enough for Spin to keep up with if you are using an IR detector with built-in demodulator.

    If you are trying to decode the 36kHz carrier then that has a bit time of around 30us so you would need to use assembly.

    Spin isn't blindingly fast but neither is it incredibly slow. It's certainly capable of handling 9600 baud bit-banged serial at 80MHz. RC5 has an equivalent rate of around 500 bps so Spin should be able to easily handle it.
  • StefanL38StefanL38 Posts: 2,292
    edited 2008-10-29 13:58
    Hello Jacky,

    make a search on the obex

    obex.parallax.com/

    with keywords like rc5, remote etc.

    I remember there is something there around IR-remote-control

    best regards

    Stefan
  • Jacky2kJacky2k Posts: 4
    edited 2008-10-29 16:40
    Nice tip! I just searched for RC5, no result but "remote" has more results [noparse];)[/noparse] In the packet "IR Kit" is an RC5 decoder... have fun
    For thers: Be carefull, RC5 is not from Sony, it's from Phillips!
Sign In or Register to comment.