RC5 decode on a 10F + Question


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    My problem now is:
    The variable Y is a WORD the has bit's 0 to 13 stored with info.
    How do i break up the word in to 3 sections ?

    bits 0 to 2 '000' are for the S1, S2 and toggle bit
    bits 3 to 7 '00000' are for the System address
    bits 8 to 13 '000000' are for the command bits

    I want to end up with 2 variables SYSTEM(5 bits) and COMMAND(6 bits)
    Simple bit level manipulation as described in the PBP manual...i.e.
    temp var byte
    temp.bit0 = y.bit0
    temp.bit1 = y.bit1
    ....and so on and so on...

  2. #2
    Join Date
    Apr 2006
    Location
    GearSweaterMountain, The Netherlands
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Ahhh, a classic case of RTFM ! You are so right !

    I tried it but it seems i cannot declare another byte.

    CMD VAR BYTE
    ERROR: Unable to fit variable CMD

    Even with the modedefs include removed .....

    Is there a way to free up some program memory ?

    The 10F202 has 24 bytes of data memory, so why can't i fit 1 word and 1 byte ?


    Thanks !
    Last edited by ultiblade; - 10th September 2008 at 15:10.

Similar Threads

  1. Please answer my first question
    By John_001 in forum Off Topic
    Replies: 1
    Last Post: - 15th September 2006, 07:49
  2. Switch Debounce using a 10F chip
    By modifyit in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 21st March 2006, 06:22
  3. IR decode problem "hitachi TV remote"
    By chai98a in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th March 2006, 16:29
  4. Decode RC5 ?
    By charudatt in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd November 2005, 11:12
  5. RC5 Encode / Decode
    By charudatt in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 18th October 2003, 06:14

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