Addressing bits in a loop?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Mad_Labs's Avatar
    Mad_Labs Guest

    Default Addressing bits in a loop?

    Hi all,

    I want to address bits in a loop, like:
    i var byte
    char var byte
    bla var byte

    for i = 0 to 7
    serin2, serpin, serbaud,[char]
    bla.bit(i) = char
    next

    Anyway to do this? The above doesn't compile, of course.

    Thanks,

    Jonathan

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

  3. #3
    Mad_Labs's Avatar
    Mad_Labs Guest


    Did you find this post helpful? Yes | No

    Default

    Melanie,

    As always, thanks so much. I did look but didn't find.

    Much appreciated,

    Jonathan

    PS Wicked quick answer, too

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. Controlsystem for compact sporting (clay shooting)
    By Fredrick in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 30th July 2009, 16:48
  3. Serial Relays
    By tazntex in forum General
    Replies: 3
    Last Post: - 17th May 2007, 17:42
  4. How to reference variable bits in a loop
    By JackPollack in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st April 2006, 15:56
  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