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...
Type: Posts; User: vilaprinyo; Keyword(s):
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...
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...
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
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
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...
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