Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: vilaprinyo; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    24
    Views
    75,673

    Sticky: Re: Bits, Bytes Words and Arrays

    Hello,

    I have more information.

    I started commenting all the lines between this code, resulting the same. MR value is 0.
    Next, I continued commenting all the lines outside this code. Result...
  2. Replies
    24
    Views
    75,673

    Sticky: Re: Bits, Bytes Words and Arrays

    Thanks,

    I tried to run the isolated code and it works. :S
    I'm sorry. I tested only the complete program before.

    Sure the problem is in the code between. the weird is it works compiled with...
  3. Replies
    24
    Views
    75,673

    Sticky: Re: Bits, Bytes Words and Arrays

    Henrik,

    Thanks for your help. I not tried exaktly this (i have no LCD)

    I tried this:

    MR var word: H var byte

    for H=0 to 15
    MR.0[H]=1 'set bit H of MR
  4. Replies
    24
    Views
    75,673

    Sticky: Re: Bits, Bytes Words and Arrays

    This is working in Pic Basic:

    For MyVar=0 to 15
    MyBit=MyWord.0(MyVar)
    LCDOut $FE,1,"Bit ",#MyVar,"=",MyBit
    Pause 2000
    Next MyVar

    But I can not get to work in Pic Basic Pro
  5. Replies
    3
    Views
    3,070

    Re: Accessing the variable bits

    Thanks Joe,

    I mean to read single bits I can use MR instead of MR.0[bit]??

    Also, I can keep using this variable as a Word? I mean for example if I can assign this bit variable to a word...
  6. Replies
    3
    Views
    3,070

    Accessing the variable bits

    Hi,

    I migrated from PicBasic to PicBasicPro and I found this code stops running well.

    MR var word: H var byte

    for H=0 to 15
    MR.0[H]=1 'set bit H of MR
    next H
Results 1 to 6 of 6