Array Display on LCD


Results 1 to 5 of 5

Threaded View

  1. #5
    Join Date
    Feb 2011
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Re: Array Display on LCD

    Try using NCD & then Lookup to simplify your code.

    per the manual:
    4.17.12 NCD returns the priority encoded bit number 1-32 of a value. it is used to find the HIGHEST bit set in a vlaue. it returns 0 if no bit is set.

    b0 = NCD %010000100 'set b0 to 7



    so
    then use
    Code:
    If PortB <> $FF then 
    lookup PortB,[7,4,1,0,8,...],UserCode[x]
    ...
    endif

    hope that helps
    Last edited by ofuzzy1; - 6th March 2011 at 05:28.

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