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

programming pic16f876

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







programming pic16f876
PostPosted: Thu Dec 09, 2004 9:15 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Thu Dec 09, 2004 10:02 am     Reply with quote

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








PostPosted: Thu Dec 09, 2004 10:16 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Thu Dec 09, 2004 10:20 am     Reply with quote

Yes it is possible to program the PIC in C if you have a C compiler.
Guest








PostPosted: Thu Dec 09, 2004 10:22 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Thu Dec 09, 2004 10:25 am     Reply with quote

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








PostPosted: Thu Dec 09, 2004 10:29 am     Reply with quote

Ok, thanks alot. Will start working on it.
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