How about using a binary number? How many bits can be allocated to a Constant? I know that there are 8 bits in a byte.
I would like to use 10 bits if it works.
eg
MyNumber_0 CON %0000000111
MyNumber_128 CON %1111111000
Seems to compile ok.
Would it work? I am using a 16F628 which is an 8 bit controller, but has 2048x14 program space....or doesn't matter because PBP compilies for 8 bits only? Your advice is much appreciated.




Bookmarks