Now to something completely different


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Sorry, there must have been an error of some kind.

    Many posts of the same message appeared.

    Also edited the last message, since it no longer applied.
    DT

  2. #2
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Thanks, Darrel.

    I have no idea why my message got posted repeatedly.

    I'm sorry for the inconvenience caused.

    Regards,

    Anand

  3. #3
    Ted's's Avatar
    Ted's Guest


    Did you find this post helpful? Yes | No

    Default

    I accept your excuse.

    Darrel, do you have a recommendation on how to proceed regarding the main issue?

  4. #4
    Ted's's Avatar
    Ted's Guest


    Did you find this post helpful? Yes | No

    Default RC5 Decoding

    I proceeded in the past. I succeeded in creating the signal, but decoding using pbp is a challenge.
    The code is rc5.
    Here is the pbpcode. Receiver means TSOP1740, 1 = No signal, 0 = Signal:

    Code:
    Palm:
    WHILE Receiver = 1
    WEND  
    WHILE Receiver = 0
    WEND  
    WHILE Receiver = 1
    WEND  
    ByteNumber = 5
    WHILE ByteNumber > 0
    --------Time = 0
    --------WHILE Receiver = 0
    ----------------Time = Time + 1
    ----------------Pauseus 10
    --------WEND
    --------IF Time > 140 THEN
    ----------------DeviceNr.0[ByteNumber-1] = 0
    --------ELSE
    ----------------DeviceNr.0[ByteNumber-1] = 1
    --------ENDIF
    --------ByteNumber = ByteNumber - 1
    --------Time = 0
    --------WHILE Receiver = 1
    ----------------Time = Time + 1
    ----------------Pauseus 10
    --------WEND
    --------IF Time > 140 THEN
    ----------------DeviceNr.0[ByteNumber-1] = 1
    --------ELSE
    ----------------DeviceNr.0[ByteNumber-1] = 0
    --------ENDIF
    --------ByteNumber = ByteNumber - 1
    WEND 
    ByteNumber = 6
    WHILE ByteNumber > 0
    --------IF Receiver = 1 THEN
    ----------------Time = 0
    ----------------WHILE Receiver = 1
    ------------------------Time = Time + 1
    ------------------------Pauseus 10
    ------------------------If Time = 254 THEN
    --------------------------------ByteNumber = 0
    ------------------------ENDIF
    ----------------WEND
    ----------------IF Time > 140 THEN
    ------------------------Content.0[ByteNumber-1] = 0
    ----------------ELSE
    ------------------------Content.0[ByteNumber-1] = 1
    ----------------ENDIF
    ----------------ByteNumber = ByteNumber - 1
    --------ELSE
    ----------------Time = 0
    ----------------WHILE Receiver = 0
    ------------------------Time = Time + 1
    ------------------------Pauseus 10
    ----------------WEND
    ----------------IF Time > 140 THEN
    ------------------------Content.0[ByteNumber-1] = 1
    ----------------ELSE
    ------------------------Content.0[ByteNumber-1] = 0
    ----------------ENDIF
    ----------------ByteNumber = ByteNumber - 1
    --------ENDIF
    WEND
    Goto Palm
    Content and DeviceNr are always 0xFF. Why is this so?

    If you have questions, ASK!

    Thank you.

  5. #5
    Ted's's Avatar
    Ted's Guest


    Did you find this post helpful? Yes | No

Similar Threads

  1. PBP projects for R/C models
    By malc-c in forum Code Examples
    Replies: 771
    Last Post: - 21st October 2016, 12:56
  2. EasyHID and USB for Newbies??
    By Squibcakes in forum USB
    Replies: 68
    Last Post: - 26th November 2015, 22:41
  3. completely incompetent
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th February 2006, 21:07

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