Skip to content

Commit 735642b

Browse files
committed
Corrected the idea attribution link
Added some useful theoretical info ...
1 parent e6806ff commit 735642b

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
RC5 (36KHz Phillips protocol) Decoding library for AVR
22

33
Copyright (c) 2011 Filip Sobalski <[email protected]>
4-
Based on the idea presented by Guy Carpenter on http://deep.clearwater.com.au/rc5/
4+
Based on the idea presented by Guy Carpenter on http://www.clearwater.com.au/rc5
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# RC5 (36KHz Phillips protocol) Decoding library for AVR
1+
# RC5 Decoding library for AVR
22

3-
Based on the idea presented by *Guy Carpenter* on [his site](http://deep.clearwater.com.au/rc5/).
3+
*36KHz Phillips protocol*
4+
5+
Based on the idea presented by *Guy Carpenter* on [his site](http://www.clearwater.com.au/rc5).
46

57
## What does it do?
68

@@ -28,8 +30,21 @@ Check out the comments in headers/source. Example in `main.{c,h}` included.
2830

2931
## Does it work?
3032

31-
Yes, it does work flawlessly (at least for me). I built a project on it (*rlamp*) and never had any problems. The sensitivity achieved
33+
Yes, it does work flawlessly (at least for me). I built a project on it ([rlamp](http://add-a-link-to-github)) and never had any problems. The sensitivity achieved
3234
with __TSOP2236__ was astounding. I could point the remote anywhere, metres from the receiver and it would pick up
3335
the signal perfectly with every keypress.
36+
37+
## Some notes
38+
39+
I found an old e-mail that I sent to to Guy Carpenter concerning his very insightful article. He didn't update his website so I am attaching parts of it here
40+
in case it might be helpful:
41+
42+
> In a highly-constrained 8bit environment the clever trick with transition table and bit shifting saves a lot of cpu time (which is even more important if code is executed in interrupts) so the snippet you kindly provided is very relevant. Unfortunately I found a minor problem with it:
43+
> * The two middle values in the transition table should be 0x91, 0x9b respectively
44+
> * I think that it would be helpful for future viewers if you included information about event "IDs" (0 - short space, 2 - short pulse, 4 - long space, 6 - long pulse)
45+
>
46+
> [...]
47+
>
48+
> PS I found it crucial to continue decoding until "start1" is reached. Mid0 is reached naturally, however, the algorithm stops (emits last digit) at mid1 which prevents the last edge change from being processed. In certain situations this can lead to a permanent deadlock.
3449
3550
Copyright &copy; 2011 Filip Sobalski <[email protected]>

rc5.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* RC5 (36KHz Phillips protocol) Decoding library for AVR
33
* Copyright (c) 2011 Filip Sobalski <[email protected]>
44
* based on the idea presented by Guy Carpenter
5-
* on http://deep.clearwater.com.au/rc5/
5+
* on http://www.clearwater.com.au/rc5
66
*
77
* Tested on ATmega328P. Designed for 16MHz crystal.
88
* Should work on the ATmega{4/8/16/32}8 family

0 commit comments

Comments
 (0)