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

BOOK

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







BOOK
PostPosted: Tue Apr 19, 2005 5:32 am     Reply with quote

I just started to study with CCS..I know .asm code.I wanna a book to learn CCS. CCS manual is missing sample code and examples. For example i didnt configure input PortA..Can u help
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

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

PostPosted: Tue Apr 19, 2005 7:41 am     Reply with quote

Three things -

First, wrong forum, this should probably be in the "General" forum. This one is for questions about the ICD hardware and programmers (ICD, Mach-X etc).

Second, when you installed CCS there are two directories full of example code. "samples" and "drivers".

Third, there is some example code in the manual (ie the PDF version available for download from [url]www.ccsinfo.com\picc[/url]. Navigate to the downloads section. But the majority of the code is installed with the compiler.

A "borrowed" copy of the compiler may not have all the example code...
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Tue Apr 19, 2005 9:58 am     Reply with quote

Do you know C? Maybe you need a book on that? CCS is a C compiler. What you need to know is C and the PIC. Once you know those, it is just a matter of browsing through the manual to see what "built in" are available. So I would recommend reading the datasheet of the PIC and understand what it can do and then browse the manual of the compiler and then take a look at the samples in the samples directory. If you can program the PIC in asm and know C, then you shouldn't have any problems.
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

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

PostPosted: Tue Apr 19, 2005 1:39 pm     Reply with quote

By the way, look for "set_tris_a()" in the manual...
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
[email protected]
Guest







PostPosted: Wed Apr 20, 2005 11:51 am     Reply with quote

thnks for them..and im sorry.
I know C and pic assembler.But i wanna learn CCS...
thnx set_tris ..But i cant know exactly..
Maybe i must find a book about CCS..
Thanks again
Mark Weir



Joined: 11 Sep 2003
Posts: 51
Location: New Zealand

View user's profile Send private message

Book
PostPosted: Wed Apr 20, 2005 1:38 pm     Reply with quote

Try Embedded C Programming and the Microchip PIC by Barnett, Cox and O'cull.

Great starter with CD rom and examples all in CCS.

Cheers

Mark
DragonPIC



Joined: 11 Nov 2003
Posts: 118

View user's profile Send private message

PostPosted: Thu Apr 21, 2005 12:51 pm     Reply with quote

I have a "PICmicro MCU C - An introduction to programming the Microchip PIC in CCS C" by Nigel Gardner here. It is a very quick guide.

But if you know C and PIC architecture, then the manual and the sample code included with the compiler should be all you need really. The manual even makes reference to code files supplied with compiler in the description of each built in function. Code is not so much in the manual, but on your computer where you can compile it and test it out on your PIC without having to type it all out.
_________________
-Matt
pom



Joined: 25 Nov 2004
Posts: 30
Location: Germany

View user's profile Send private message

PostPosted: Fri May 06, 2005 2:03 am     Reply with quote

Hello,

is in the book of Barnett, Cox,.. an example for using the can-bus?

Best wishes, pom
newguy



Joined: 24 Jun 2004
Posts: 1909

View user's profile Send private message

PostPosted: Fri May 06, 2005 8:10 am     Reply with quote

There is a short example regarding the CAN bus.
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