Adding and reading byte variable from the bit array?


Results 1 to 7 of 7

Threaded View

  1. #3


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: Adding and reading byte variable from the bit array?

    Have you tried something like this?

    Code:
    Myword2.5 = Mybyte1.2          'move bit 2 of Mybyte1 to bit 5 Myword2
    Myword2.6 = Mybyte1.3        
    Myword2.7 = Mybyte1.4        
    Myword2.8 = Mybyte1.5
    Last edited by mark_s; - 18th May 2022 at 19:40.

Similar Threads

  1. Checking Bit of a Byte using another variable
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th December 2010, 15:02
  2. adding new word variable ?
    By iugmoh in forum General
    Replies: 4
    Last Post: - 21st February 2008, 00:26
  3. Setting / resetting a variable bit within a byte
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 9th February 2008, 18:38
  4. Bit/Byte array for Hserin/Hserout
    By mrx23 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st September 2006, 23:07
  5. Word array behaving like byte array.... wierd
    By forgie in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 2nd August 2005, 15:43

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