assigning register bits to an array?


Results 1 to 14 of 14

Threaded View

  1. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Let's see the code in context as to how you are using it, The little bit you posted I cannot make heads or tails of it. Basically you assign a port to the displays and your number to a variable . . . Index var byte . . then from the manual . . ..
    Code:
     LOOKUP2 Index,[value, value, value . . .],var
    var is where the segment patterns are stored, then port = var . . . value is the segment pattern of each number. Use the DIG statement to select each individual digit to cycle through the lookup loop.
    Last edited by Archangel; - 17th January 2009 at 18:14.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 20:31
  3. PIC16F877A pwm use for IR transmission
    By mcbeasleyjr in forum General
    Replies: 0
    Last Post: - 11th July 2009, 18:51
  4. Replies: 14
    Last Post: - 26th September 2007, 05:41
  5. error on compiling
    By parker in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th June 2005, 14:31

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