So it seems to decode the RC5 code, after detecting the initial pulse, some sort of check must be done at a regular time interval at the mid-point of each half bit-time since a full bit-time is 1778us (2x889us).
So after the initial pulse I would have to check midway between the first bit-time, roughly 440us.
So in terms of the pulses and checks we have the following:
Start1--Start2--1st BIT--2nd BIT--3rd BIT---...etc
____|-------|---------|---------|--------|--------
1778| 1778 | 889, 889| 889,889 | 889,889|--
hch__hch____ch__ch___ch__ch___ch__ch
Header
check =hch
ch=bit check
After initial header check, waste some time and then start testing and collecting.
So now to find the right code.
Dennis




Bookmarks