32 Bit NEC IR Constants/Variables


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2013
    Posts
    41

    Default 32 Bit NEC IR Constants/Variables

    Interested in suggestions for best dealing with 32 Bit values as used with NEC IR codes. How best would a collection of IR commands of these be stored and used? (VolUp, VolDn, ChUp, ChDn, etc.) (Each 32 Bits) As Constants or as Variables? Using the Long version of the compiler? 2-16 Bit Words linked/associated together? In regards to sending data, what would the best way of clocking/shifting these out be? One way would be a For/Next Loop of 0-15 for the low word, then do again for the high word. (OutBufferHI.0 and OutBufferLO.0)

  2. #2
    Join Date
    Jul 2013
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Re: 32 Bit NEC IR Constants/Variables

    Oops...Asked too fast.
    Looks like it's 2 address bytes followed by 2 command bytes.
    Each 2nd byte is an inverted copy of the first.
    No longs required and the Address versus Command are different animals.

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default Re: 32 Bit NEC IR Constants/Variables

    NEC IR Protocol documentation

    Example PIC Code

  4. #4
    Join Date
    Jul 2013
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Re: 32 Bit NEC IR Constants/Variables

    Dave,

    Thanks very much for the info.
    Very informative website you have there.

    Jay Zebryk

Similar Threads

  1. Port Variables act like Constants
    By MOUNTAIN747 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th March 2011, 17:29
  2. Port bit manipulation useing variables
    By shawn in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st November 2010, 04:41
  3. 32-bit Variables and DIV32, Hourmeter 99999.9
    By Darrel Taylor in forum Code Examples
    Replies: 9
    Last Post: - 23rd November 2006, 07:23
  4. How to tell which PICs can handle 16 bit variables?
    By MikeTamu in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st August 2005, 08:44
  5. Bit variables... typo?
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 29th November 2004, 18:11

Members who have read this thread : 2

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

Tags for this Thread

Posting Permissions

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