View previous topic :: View next topic |
Author |
Message |
burnsy
Joined: 18 Oct 2003 Posts: 35 Location: Brisbane, Australia
|
Can I add new devices? or buy anew compiler?? |
Posted: Wed Dec 17, 2003 3:13 pm |
|
|
I have just taken delivery of some shiny new 12F629s. I fired up the editior made a template for my new 12F629 code and tried to compile..... ....not a chance. My version is pcm 3.058 or thereabouts.. I also own a recent version of pch.
Question. Can I add new devices or do I need to invest in a new compiler?
Given that I have 4 days to complete a project for a good friend, I may have to go back to (gasp) assembly language... If anybody had some advice for me, it would be appreciated.
thanks,
Jason _________________ This is the last code change until its ready.... |
|
|
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
|
|
Posted: Wed Dec 17, 2003 5:25 pm |
|
|
According to this page:
http://www.ccsinfo.com/devices.shtml
12F629 is supported by PCM so you should have no problems. Maybe your PCM is too old. What is the error you are getting? |
|
|
burnsy
Joined: 18 Oct 2003 Posts: 35 Location: Brisbane, Australia
|
|
Posted: Wed Dec 17, 2003 11:24 pm |
|
|
The error I get is
"File in #INCLUDE can not be opened"
I think this is because there is no 12F629.h file in the devices folder.
Then, I tried renaming a 16F627.h to 12F629.h, and inside the file changing the line
#device PIC16F627 to #device PIC12F629
in an attempt to 'create' a new device header, but it then gave me an error
"Unknown device type"
My version number is 3.055, so I suppose it is just too old.
Before CCS I was a assembly language programmer for 15 years so I suppose I'll cope until i buy a new version ;) unless anyone has some suggestions _________________ This is the last code change until its ready.... |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Dec 18, 2003 12:34 am |
|
|
CC5x is a free compiler, and it will do 12F629. I tried it with MPLAB
vs. 5.70.40, and it compiled a sample file. But where's my printf,
and my delay routines ? You have to do everything manually.
I'm not sure it's worth it. You might be better sticking with your
assembly, if you're fast with that.
http://www.bknd.com/cc5x/index.shtml
It makes me appreciate CCS. |
|
|
Guest
|
|
Posted: Thu Dec 18, 2003 9:00 am |
|
|
I too tried CC5X... not bad for a free compiler, but CCS is worth every dime.
Dale |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Thu Dec 18, 2003 11:49 am |
|
|
Hola burnsy,
You have a freeware compiler version for the 12F629 at:
[url]
http://www.htsoft.com/
[/url]
Regards,
Humberto
|
|
|
burnsy
Joined: 18 Oct 2003 Posts: 35 Location: Brisbane, Australia
|
thanks |
Posted: Fri Dec 19, 2003 2:55 am |
|
|
Thanks for your help. I've d/l both the CC5X and Hitech compilers to give them a trial.....
Should be interesting to compare them to CCS. I think CCS is a great little product. I'm very happy with it. Too bad about the upgrade policy, however. BUT at $99, it's not that expensive really...
Thanks again, _________________ This is the last code change until its ready.... |
|
|
adrian
Joined: 08 Sep 2003 Posts: 92 Location: Glasgow, UK
|
Re: Can I add new devices? or buy anew compiler?? |
Posted: Sat Dec 20, 2003 7:21 am |
|
|
burnsy wrote: | I have just taken delivery of some shiny new 12F629s. I fired up the editior made a template for my new 12F629 code and tried to compile..... ....not a chance. My version is pcm 3.058 or thereabouts.. I also own a recent version of pch.
Question. Can I add new devices or do I need to invest in a new compiler?
|
burnsy wrote: | The error I get is
"File in #INCLUDE can not be opened"
I think this is because there is no 12F629.h file in the devices folder.
Then, I tried renaming a 16F627.h to 12F629.h, and inside the file changing the line
#device PIC16F627 to #device PIC12F629
in an attempt to 'create' a new device header, but it then gave me an error
"Unknown device type"
My version number is 3.055, so I suppose it is just too old.
|
I have tried this also. I also get "Unknown device type" with ver 3.061.
However, I also get "Error file not found" with ver 2.734 even though the header file is in the devices subdirectory?
I assume therefore, that with no responses to the original post about PCM, that adding new devices cannot be done even if you do have the correct header file? |
|
|
KerryW Guest
|
|
Posted: Sat Dec 20, 2003 7:52 am |
|
|
PCW has a database editor that allows you to add devices. PCM does not. |
|
|
KerryW Guest
|
|
Posted: Sat Dec 20, 2003 9:06 am |
|
|
You could always lie to the compiler. For example, if your compiler supports the PIC16F630, that is nearly identical to the 12F629.
From the DOS prompt, type PICCHIPS and see what's listed. Then type, fpr example, PICCHIPS 16F630 to see a detailed listing for the chip and compare it to your chip.
PIC12F629 M 1024 64 6 EEPROM(128) COMP VREF TIMERS(2)
PIC16F630 M 1024 64 12 EEPROM(128) COMP VREF TIMERS(2) PRGMEM
This says that the 16F630 has 6 more I/O pins and the ability to write program memory. As long as you don't use those features, the code should compile and run in your chip. Be sure and look over the header file for incompatibilities. |
|
|
|