View previous topic :: View next topic |
Author |
Message |
semihdw@yahoo.com Guest
|
BOOK |
Posted: Tue Apr 19, 2005 5:32 am |
|
|
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
|
|
Posted: Tue Apr 19, 2005 7:41 am |
|
|
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
|
|
Posted: Tue Apr 19, 2005 9:58 am |
|
|
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
|
|
Posted: Tue Apr 19, 2005 1:39 pm |
|
|
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! |
|
|
semihdw@yahoo.com Guest
|
|
Posted: Wed Apr 20, 2005 11:51 am |
|
|
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
|
Book |
Posted: Wed Apr 20, 2005 1:38 pm |
|
|
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
|
|
Posted: Thu Apr 21, 2005 12:51 pm |
|
|
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
|
|
Posted: Fri May 06, 2005 2:03 am |
|
|
Hello,
is in the book of Barnett, Cox,.. an example for using the can-bus?
Best wishes, pom |
|
|
newguy
Joined: 24 Jun 2004 Posts: 1907
|
|
Posted: Fri May 06, 2005 8:10 am |
|
|
There is a short example regarding the CAN bus. |
|
|
|