CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Can I add new devices? or buy anew compiler??

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
burnsy



Joined: 18 Oct 2003
Posts: 35
Location: Brisbane, Australia

View user's profile Send private message Send e-mail Visit poster's website

Can I add new devices? or buy anew compiler??
PostPosted: Wed Dec 17, 2003 3:13 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Dec 17, 2003 5:25 pm     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Dec 17, 2003 11:24 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Dec 18, 2003 12:34 am     Reply with quote

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








PostPosted: Thu Dec 18, 2003 9:00 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Dec 18, 2003 11:49 am     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

thanks
PostPosted: Fri Dec 19, 2003 2:55 am     Reply with quote

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

View user's profile Send private message

Re: Can I add new devices? or buy anew compiler??
PostPosted: Sat Dec 20, 2003 7:21 am     Reply with quote

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







PostPosted: Sat Dec 20, 2003 7:52 am     Reply with quote

PCW has a database editor that allows you to add devices. PCM does not.
KerryW
Guest







PostPosted: Sat Dec 20, 2003 9:06 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group