Hi Hans, Some years ago (in 2014 to be exact) I wrote a decoder routine that is capable of decoding RC5 and RC6 messages. It works on an interrupt basis. I wrote two variants, one using Timer 0 and one using Timer 1. I attached the sources files in the attached zip file.
I could make a JAL library out of it - since these source files are not yet Jallib compilant - and make it part of Jallib. I could then incorporate the timer part in the decoder part so that you only have one library to include. Currently I am enjoying my vacation so I am not able to test them but I think they work. The main program uses a USART to write the received RC5 or RC6 message. The UART part is also included in the zip file. I could make an RC5 and RC6 encoder program since I have done that in the past because I have worked at Philips many years ago and was one of the contributors of the Philips RC6 standard 🙂. As you may know, for the encoder you need a 36 kHz modulated signal to drive the Infra Red LED so you need a PWM signal for that. Kind regards, Rob ________________________________ Van: [email protected] <[email protected]> namens hans <[email protected]> Verzonden: dinsdag 15 juni 2021 10:49 Aan: jallib <[email protected]> Onderwerp: [jallib] RC5 lib Is there beside the SIRC lib also one for sending/receiving RC5 ? -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/0e2b7ff9-dfde-4d3b-8db2-72e3c50ee21fn%40googlegroups.com<https://groups.google.com/d/msgid/jallib/0e2b7ff9-dfde-4d3b-8db2-72e3c50ee21fn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/AM0PR07MB62414D1779B36FB240AC0709E6309%40AM0PR07MB6241.eurprd07.prod.outlook.com.
<<attachment: IR_RC5_RC6_Decoder.zip>>
