Menu ▾ ▴

RC5-Transmitter + RC5-Decoder

Ralf Pagel
2026-11-01
2026-11-03
  • Ralf Pagel

    Ralf Pagel - 2026-11-01

    Hello,

    Because they will be easier to maintain, I will probably translate all my old assembler programs that I am currently still using into GCB. This will now also be done with a control unit for an audio amplifier. As this system also incorporates an RC5 decoder, I looked for existing templates but found very little that was directly usable. In short: From what I found, I cobbled together these two, in my opinion, useful programs (attached).

    Best regards
    Ralf

     
  • Anobium

    Anobium - 2026-11-03

    Hi Ralf,

    Thanks for sharing both programs. A transmitter and decoder that work as a pair is a useful addition.

    I've added them to the Demonstration_Sources repository under InfraRed_Remote_Solutions\RC5_Solutions, with a readme that links back to this thread and credits you. Both compile and assemble cleanly with the current build (1665), the transmitter on the 16F1459 and the decoder on the 16F18877.

    A couple of notes:

    • Your adpations to RC5Send in remote.h is a good way to resolve. Keeping the toggle bit as a parameter, so the program decides when it flips, is a good change too.
    • On the decoder: 0x8001 << (13 - bit_nbr) is a good workaround. A constant up to 255 is a Byte, so 0x01 << n is a Byte shift and loses the high bits. [word]0x01 gives the same result and says what it means.

    THANK YOU

     
  • Ralf Pagel

    Ralf Pagel - 2026-11-03

    Hi Evan,

    Thank you for including my contribution in the Demonstration_Sources repository and for your other extensive involvement in the GCB project. It is always a pleasure for me to be able to make a small contribution from time to time.

    Regards

     
    👍
    2

Log in to post a comment.