View previous topic :: View next topic |
Author |
Message |
myl Guest
|
programming pic16f876 |
Posted: Thu Dec 09, 2004 9:15 am |
|
|
hi..i really need help
can anyone tell me how to start off in programming pic16f876?
i'm really lost and don't know how to start programming the pic.
thanks.. |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Thu Dec 09, 2004 10:02 am |
|
|
You mean writing code or physically connecting up and programming the thing.
If you are talking about writing code, then get yourself some sort of demo board and an ICD. I like the Microchip ICD2 because it works with MPLAB so I don't have to have CCS's IDE (more $$). Study some examples, CCS includes many. A lot depends on what you are trying to do. Just get a demo board that will support the things you would like to play around with. You can also look for some Microchip seminars. Some of them come with demo boards and the seminars are pretty cheap (sometimes < $99). |
|
|
Guest
|
|
Posted: Thu Dec 09, 2004 10:16 am |
|
|
Ok, let's say I want to program the pic in C, not using assembly language at all. Is that possible?
Actually, I'm working on a project which compresses the binary input data. Since I'm not sure in progamming the PIC in assembly language, so I decided to use C. Also C is easier to program with.
Any feedbacks? |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Thu Dec 09, 2004 10:20 am |
|
|
Yes it is possible to program the PIC in C if you have a C compiler. |
|
|
Guest
|
|
Posted: Thu Dec 09, 2004 10:22 am |
|
|
Does that mean that the C compiler has to convert fom C into assembly language and from AL into Hex inoder to store into the PIC? |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Thu Dec 09, 2004 10:25 am |
|
|
Yes, but you write the C, compile it and the compiler will spit out the HEX file. You don't get asm files that you have to do something with. |
|
|
Guest
|
|
Posted: Thu Dec 09, 2004 10:29 am |
|
|
Ok, thanks alot. Will start working on it. |
|
|
|