Addressing ports via offset using lookup command


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Addressing ports via offset using lookup command

    well it compiles ,after making the change to lookup2 , and portoffset to a word variable

    but ill have to wait for the pcbs to arrive to test it

    cheers hendrick

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


    Did you find this post helpful? Yes | No

    Default Re: Addressing ports via offset using lookup command

    When you are using the "Bit Offset from Port" method, it is using "BIT Array" operations internally.

    BIT array's have a limit of 256 elements.
    Giving it a WORD sized offset will not work.

    It will compile using a WORD, but it will only use the LowByte of that value.
    DT

Similar Threads

  1. PicBasic Lookup command
    By queenidog in forum mel PIC BASIC
    Replies: 15
    Last Post: - 18th June 2016, 21:54
  2. 10bit ADC with offset on 16F88
    By Amoque in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st April 2012, 16:11
  3. DS1820 Negative Numbers and OffSet
    By gadelhas in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd April 2011, 22:53
  4. dt int timer1 ignores offset value
    By DDDvvv in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 15th June 2010, 10:53
  5. Offset to variable howto ?
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 3rd October 2008, 10:36

Members who have read this thread : 1

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