Bits to Word?


Results 1 to 7 of 7

Thread: Bits to Word?

Threaded View

  1. #3
    Qacer's Avatar
    Qacer Guest


    Did you find this post helpful? Yes | No

    Question

    It actually compiled without any problems. But now I think I have another question. If I had a byte that represents different config bits, how can I set each bit individually?

    If I had variable set as testbit VAR databyte1.0, will bit0 of databyte1 change if I set testbit to another value?

    Errr.... how would I also set multiple bits in a byte? Say, I want to set bit5 to bit0 to a certain value.

    Thanks!
    Last edited by Qacer; - 10th March 2006 at 21:17.

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. Minimizing code space
    By Tobias in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th May 2009, 07:25
  3. DS2760 Thermocouple Kit from Parallax in PicBasicPro
    By seanharmon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th July 2008, 23:19
  4. calculation problem
    By nicolelawsc in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2006, 15:23
  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