View previous topic :: View next topic |
Author |
Message |
Don P
Joined: 26 Aug 2004 Posts: 23 Location: California
|
21 bit max ? ! |
Posted: Tue Jan 25, 2005 6:39 pm |
|
|
I define a variable as int32.
Using "0b" binary notation to equate it to a constant, it won't compile if I specify more than 21 bits. Is this known?
Regards,
Don |
|
![](templates/subSilver/images/spacer.gif) |
rwyoung
Joined: 12 Nov 2003 Posts: 563 Location: Lawrence, KS USA
|
|
Posted: Tue Jan 25, 2005 7:28 pm |
|
|
Can you post with your compiler version number and short (but complete) program demonstrating the issue? _________________ Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month! |
|
![](templates/subSilver/images/spacer.gif) |
Don P
Joined: 26 Aug 2004 Posts: 23 Location: California
|
|
Posted: Tue Jan 25, 2005 7:41 pm |
|
|
#include <16F628.h>
int32 X ;
void Main()
{
X = 0b11110000111100001 ; // add another digit and you get
// *** Error 76 "junk.c" Line 5(24,25): Expect ;
}
I used to know where to find the compiler ersion, but it's not apparent since it's combined with MPLAN 6.60
Tell me where.
Regards,
Don |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Jan 25, 2005 9:06 pm |
|
|
Quote: | I used to know where to find the compiler version |
There are at least three ways to find the compiler version.
1. Compile a test file, and look at the top of the .LST file.
It will show the version.
2. Click on Start/ Programs, and then find the entry for CCS.
It might be called "PIC-C". Then click on the icon for "Compiler Version".
2. Open a DOS window and go to c:\Program Files\Picc
and run this command line: CCSC +v |
|
![](templates/subSilver/images/spacer.gif) |
Don P
Joined: 26 Aug 2004 Posts: 23 Location: California
|
|
Posted: Tue Jan 25, 2005 9:35 pm |
|
|
Ah ha !
ver 3.152 |
|
![](templates/subSilver/images/spacer.gif) |
dyeatman
Joined: 06 Sep 2003 Posts: 1924 Location: Norman, OK
|
works OK in 3.216 and 3.190 |
Posted: Tue Jan 25, 2005 10:04 pm |
|
|
Version 3.216 and both 3.190 work OK, no problem |
|
![](templates/subSilver/images/spacer.gif) |
Don P
Joined: 26 Aug 2004 Posts: 23 Location: California
|
|
Posted: Tue Jan 25, 2005 10:32 pm |
|
|
OK, unless it's a free upgrade, I can live with it. |
|
![](templates/subSilver/images/spacer.gif) |
|