View previous topic :: View next topic |
Author |
Message |
lym Guest
|
c compiler |
Posted: Sat Jan 01, 2005 12:41 am |
|
|
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)
|
CCS of course |
Posted: Sat Jan 01, 2005 1:13 am |
|
|
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
|
|
Posted: Sat Jan 01, 2005 1:13 am |
|
|
sorry...typo error..it's CCS and not CSC |
|
|
lym Guest
|
|
Posted: Sat Jan 01, 2005 1:15 am |
|
|
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
|
|
Posted: Sat Jan 01, 2005 3:54 am |
|
|
Assuming you have downloaded the demo version, take a look at the examples that come with it. |
|
|
lym Guest
|
|
Posted: Sat Jan 01, 2005 5:34 am |
|
|
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
|
|
Posted: Sat Jan 01, 2005 9:55 am |
|
|
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
|
|
Posted: Sun Jan 02, 2005 4:02 am |
|
|
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
|
|
Posted: Sun Jan 02, 2005 6:55 am |
|
|
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.
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
|
|
Posted: Sun Jan 02, 2005 11:51 pm |
|
|
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
|
|
Posted: Mon Jan 03, 2005 1:39 am |
|
|
You really need to get yourself a good book about using the pic... all your questions will be answered. |
|
|
lym Guest
|
|
Posted: Wed Jan 05, 2005 4:57 am |
|
|
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
|
|
Posted: Wed Jan 05, 2005 5:24 am |
|
|
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
|
|
Posted: Wed Jan 05, 2005 7:13 am |
|
|
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. |
|
|
|