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

c compiler

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







c compiler
PostPosted: Sat Jan 01, 2005 12:41 am     Reply with quote

Can someone please tell me which C compiler is the best to program the PIC16F877. And are there any restrictions when programming in C for a PIC? So far I've checked out CSC and Hi-tech PICC compilers. Seems to me that CSC has a wider library of commands. Any advice on that point of view? Thanks.
hillcraft



Joined: 22 Sep 2003
Posts: 101
Location: Cape Town (South africa)

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

CCS of course
PostPosted: Sat Jan 01, 2005 1:13 am     Reply with quote

This is a strange place to ask for an objective view on different compilers. Your question is like asking a BMW driver if he prefers a BM or a Merc.
lym
Guest







PostPosted: Sat Jan 01, 2005 1:13 am     Reply with quote

sorry...typo error..it's CCS and not CSC
lym
Guest







PostPosted: Sat Jan 01, 2005 1:15 am     Reply with quote

haha....well, ok..ok..
Can someone tell me how to use this compiler as I have no idea on it.
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Sat Jan 01, 2005 3:54 am     Reply with quote

Assuming you have downloaded the demo version, take a look at the examples that come with it.
lym
Guest







PostPosted: Sat Jan 01, 2005 5:34 am     Reply with quote

I've done that but I'm wondering how come my computer isn't able to open it? What kind of software it uses?
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Sat Jan 01, 2005 9:55 am     Reply with quote

This is the tag line from the demo page:

"The download is an executable. If your file is missing an extension, rename it to give an .EXE extension."

Did you give it the .EXE extension then try to run it?

It is a Windows program, what kind of computer are you using?
lym
Guest







PostPosted: Sun Jan 02, 2005 4:02 am     Reply with quote

Yeah, I've managed to download the demo version into my comp after typing the exe.

There are still a few doubts on my mind.
1) How do I need to burn the program into the PIC that I'll be using?
2) Must I connect a burner circuit into the serial port in order to burn the chip like the normal procedure when burning an ordinary microcontroller?
3) Is there any websites that you can give me in order for me to know the procedure and information for burning the C program into the PIC, ect...
4) What kind of restriction is there when programming in C into the PIC?
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Sun Jan 02, 2005 6:55 am     Reply with quote

Quote:

Is there any websites that you can give me in order for me to know the procedure and information for burning the C program into the PIC, ect...


I guess that this question is the first of 999 more. Very Happy
Just Google it and you will find tons of info in the web.
A good book to start with is a must, one of them:
PICMicro MCU C (by Nigel Gardner)

Best wishes,

Humberto
lym
Guest







PostPosted: Sun Jan 02, 2005 11:51 pm     Reply with quote

Can someone tell me how will be the setup like for a PCW C Compiler IDE or is it ok to just use the deme version for my project?
Guest








PostPosted: Mon Jan 03, 2005 1:39 am     Reply with quote

You really need to get yourself a good book about using the pic... all your questions will be answered.
lym
Guest







PostPosted: Wed Jan 05, 2005 4:57 am     Reply with quote

Can someone please tell me what are the important specifications need to be taken into consideration when programming the PIC16F877A and also the initialization of the PIC? And how do I know which prototype to use?
lym
Guest







PostPosted: Wed Jan 05, 2005 5:24 am     Reply with quote

Can I use the demo version to compile other C program, for example PIC16F84? I tried it but it can't work, so I would like confirmation from someone.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed Jan 05, 2005 7:13 am     Reply with quote

Quote:
Can I use the demo version to compile other C program, for example PIC16F84?
From the web page where you downloaded the demo program:
Quote:
Only the Microchip 14 bit PIC16F877, PIC16C544 and 16 bit PIC18F458 target devices may be specified.


So, no the pic16F84 is not directly supported. However, most PICs are binary compatible, so there is a small chance that when you use only the most basic peripherals it will work on the other PIC16 family members. No garuantee given.

Also note that with the demo version your maximum program size is restricted to 2k bytes, so for serious development you will have to buy the compiler anyway.

PIC processors are nice, but require an initial investment of about $300. This is nothing for a company, but if you are a student looking for a real cheap development environment, then consider switching to the Atmel processors. For Atmel there are free GNU compilers and dirt-cheap programmers available.

As to all your other questions: Doing some research yourself won't hurt.
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