RC5 code for infrared receiver


Results 1 to 24 of 24

Threaded View

  1. #19


    Did you find this post helpful? Yes | No

    Default still trying

    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
    Last edited by Dennis; - 3rd March 2010 at 01:37.

Similar Threads

  1. PBP code to read R/C signal from receiver
    By malc-c in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 28th October 2009, 22:51
  2. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 22:55
  3. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 22:31
  4. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 9th December 2008, 00:40
  5. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts